publish
Что он делает
Позволяет ассистенту разместить готовое веб-приложение, страницу статуса или дашборд онлайн для людей в вашей организации. Он нужен командам, которым нужен общий внутренний инструмент со стабильной ссылкой.
Когда использовать
- ✓Когда вы хотите, чтобы дашборд или внутреннее веб-приложение работали и после завершения чата.
- ✓Когда нужна общая страница статуса, которую коллеги могут открыть в браузере.
- ✓Когда вы хотите вернуть более раннюю версию приложения, если что-то пошло не так.
Ссылка на скилл
https://github.com/yc-software/qm/blob/main/skills-seed/publish/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Опубликуй этот дашборд продаж как внутреннюю страницу, которую моя команда сможет открыть по стабильной ссылке.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Ассистент собирает и тестирует приложение, затем передаёт его в отдельную размещённую среду выполнения. Каждый релиз сохраняется как версия, поэтому более раннюю можно восстановить. Открыть его могут только ваша область и люди, с которыми вы поделились.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Publish (internal apps & dashboards)
Use this skill when the user wants something that outlives the turn and is reachable in a browser — a small web app, an internal API, a status page, a dashboard you generated from a query. Publishing ships your files from the selected sandbox to a separate, long-lived runtime with a stable link.
Publish with the apps tool, action publish. Build the app in the workspace with
files actions write / read; install dependencies and test with execute. Keep the
same explicit sandbox_id throughout writing, building, testing, previewing, and
publishing. Use sandbox only to manage computers, not to run commands.
The app must listen on the PORT env var (the runtime sets it).
Match the house style (the default)
Anything browsable you publish should look designed, not defaulted. Before you build the UI, load the design skills and apply your organization's house style unless the user asked for a different look:
- The deployment's house-style skill — if the Skills index lists a
*-designskill, it carries the org's look as ready-to-paste CSS and design tokens. Start there for the look. taste-skill— the design process: reading the brief, layout, hierarchy, verifying the result, avoiding generic AI-design slop.popular-web-designs— when the user wants a specific visual reference (Stripe, Linear, Vercel…).
This is about the page a person sees — skip it for an internal-only API or a script with no UI.
Publishing
First publish, and every later update — same call, same name, a new immutable version:
apps({ action: "publish", dir: "dist", entrypoint: "node server.js", name: "status-board", sandbox_id: "<selected sandbox ID>" })
Roll back to an earlier version (an instant pointer flip):
apps({ action: "publish", name: "status-board", rollbackTo: 3 })
Give an auto-named deployment a friendly link:
apps({ action: "publish", renameFrom: "s-1176-p-5050", name: "status-board" })
apps action publish returns { id, name, version, url, dataDir? } — give the user the full absolute url, whose path is /d/<name>/.
App bar and editing
On a configured app subdomain, signed-in people who can manage the app automatically see a slim top bar. Chat opens a resizable editing conversation beside the app. Normal app links and refreshes keep editing available for the signed-in session; viewers with read-only access see the app alone.
The bar uses a consistent neutral appearance, independent of the app's theme. Its name follows the app document title. The drawer opens directly into an empty composer; the app identity is supplied as conversation context, not pasted into the draft. The conversation survives app reloads after a publish.
Durable data — where app state must live
The app's disk is reset from source on every relaunch, with one exception: when the
runtime supports durable app data it sets $DATA_DIR (and the publish result reports
dataDir). Everything the app writes under $DATA_DIR survives restarts, redeploys, and
platform recycles.
- Any state the app keeps — write it under
$DATA_DIR. Never beside the code, never in/tmp, never in a JSON file in the app dir: all of that silently vanishes on the next relaunch. - Database: SQLite at exactly
$DATA_DIR/app.db. That specific path gets the strongest durability the runtime offers (continuous replication where enabled — ~seconds of loss window — periodic snapshots otherwise). Other files under$DATA_DIRare snapshotted periodically. - Guard the no-persistence case: if
$DATA_DIRis unset, the runtime has no durable app storage — don't build an app that quietly accumulates state on disk; say so and bake data in or fetch it live instead. - Updating an existing stateful app? If it writes runtime state (a db, uploads,
counters) anywhere else, move that state under
$DATA_DIRas part of the update — do this on your own initiative; the user should never have to ask. Data deliberately baked into the repo (seed/reference files) stays where it is.
Check your work before you call it done
A published app is a new immutable version the moment the runtime accepts it — that is not the same as the app working. So for anything browsable, sanity-check it locally before you publish:
- Run it locally. Start the server in the background on a port — e.g.
PORT=8080 node server.jsviaexecutewit
Частые вопросы
Может ли приложение увидеть любой пользователь интернета?
Нет. Ссылка внутренняя, поэтому открыть её могут только ваша область и люди, с которыми вы ею поделились.
Что здесь означает откат?
Каждая опубликованная версия сохраняется, поэтому ассистент при необходимости может вернуть приложение к более ранней версии.
Нужен ли приложению особый порт?
Да. Приложение должно слушать порт из настройки PORT, которую предоставляет среда выполнения.
Подробности
Оригинальное описание автора
Publish a long-lived internal web app, site, or dashboard from the agent computer. Scope-bound (only the owner's scope, plus whoever you share it with, can reach it), immutable versions with rollback, a stable friendly link. No public URL.
repo: yc-software/qm
Популярность
- Звёзды на GitHub
- 16k
- Место в рейтинге
- #10902
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
deploy-qm
16kРазворачивает пакет QM на Fly.io, AWS или Render, затем настраивает администратора, коннекторы и при необходимости Slack по полному чек-листу.
onboarding
16kПроводит нового пользователя через подключение аккаунтов, рассказ о своей работе, выбор голоса и настройку первой помощи в одном коротком разговоре.
admin
16kПозволяет проверенному администратору организации смотреть или менять общие настройки и другие области из чата, подтверждая каждое изменение до его внесения.
browse
16kУправляет настоящим браузером из командной строки, чтобы выполнять действия на сайтах, например входить в аккаунт или заполнять формы.
Похожие скиллы
openclaw-update
394kПомогает агенту обновить уже работающий OpenClaw Gateway, выбрав способ обновления по тому, как он был установлен, и сохранив вашу сессию.
diagnose-gateway
394kПомогает агенту выяснить, почему ваш OpenClaw Gateway не работает, проверяя настройки, каналы и порты, но ничего не меняя.
crabbox-apps
394kПомогает агенту открыть и запустить приложение на временной облачной машине, а затем показать его вид на боковой панели чата.