deploy-runbook
БесплатноБез исполняемых скриптовНе проверенThe exact three.ws production deploy runbook (clean worktree, build:gcp chain, submit gates, cron sync, CDN purge, verify). Load before any deploy.
от nirholas★ 289 звёзд на GitHubОб этом скилле
Deploy runbook (API/frontend)
Remember stop-and-ask gate 2: production deploys need owner approval unless the owner's current instruction is itself the approval. Full runbook incl. LB/DNS/TLS/env/rollback/recovery: docs/ops/gcp-production.md. GPU workers deploy from their own workers/<name>/cloudbuild.yaml.
Reclaim disk first:
npm run clean:worktrees(add--applyto act). Deploy worktrees are created by every deploy and removed by nobody. On 2026-08-04 ten had accumulated and filled the 126 GB disk to 100%, which fails in a way that reads like a different bug entirely:git worktree adddies mid-checkout withNo space left on deviceand leaves a half-written tree behind. The script only reclaims a linked worktree that is detached, clean, and idle past--min-age-hours(default 2, so a concurrent agent's live build is never deleted); anything with uncommitted work is reported and kept. It applies the same rules to the subagent worktrees under.claude/worktrees/, which additionally must have theirworktree-agent-*branch already merged into HEAD; the merged branch is deleted withgit branch -d(on 2026-10-08 nine of those held 31 GB).Prepare a CLEAN worktree:
npm run prep:worktree -- --apply. That is the whole step; it encodes everything below, and running it beats staging by hand. Plan first with a barenpm run prep:worktree(writes nothing),--path <dir>to stage your own tree instead of colliding with a concurrent agent on the default/workspaces/.deploy-wt,--forceto replace an existing tree (refused if it holds uncommitted work). What it does:git worktree add --detach <path> HEAD, then hardlinks every artifact in theARTIFACTSlist ofscripts/prepare-deploy-worktree.mjswithcp -alon the same filesystem (not just the first). Three of them are build-critical,node_modules,chat/node_modulesandcharacter-studio/build; the optional ones (walk-sdk/dist,multiplayer/node_modules,animation-sources) are what let the worktree also run the repo's own test suite, so a pre-shipnpm testcan be taken at the exact commit being shipped instead of in the shared tree. It then copies BOTH.envand.env.local. Omitting either nested one kills the build minutes in: an OOM exit 144 on the avatar-studio rebuild, orCannot find package '@sveltejs/vite-plugin-svelte'on the chat build. A nested artifact that is missing from the source tree is BUILT first (deps:chat,build:avatar-studio) rather than skipped, which is the failure a hand-runcp -alproduces on a machine that has never deployed..env.localis the one that carriesDATABASE_URL, and without it step 3's migration gate cannot read the schema state and refuses to submit. Remove it when the deploy lands (git worktree remove --force <path>); that is what step 0 exists to clean up after. Seedocs/ops/gcp-production.md.Build:
npm run build:gcp. ORDER IS LOAD-BEARING andbuild:gcpalready encodes it. Never hand-run the steps in a different order. The full chain, in order:check:conflicts→check:browser-graph→check:tdz-bootstrap→ensure:avatar-studio→build:info:snapshot→docs:freshness→build:lib:full(the UMD lib) →build:avatar-sdk→build:chat→build(the frontendvite build) →publish:lib→build:info→check:dist→check:pagesWhy the order is load-bearing:
check:conflictsruns first so an unresolved merge-conflict marker fails in seconds instead of after a full build.check:tdz-bootstrapsits beside it for the same reason: it refuses a browser module whose top-level bootstrap call runs above thelets that call writes. JavaScriptCore checks an assignment target's temporal dead zone before evaluating the right-hand side and V8 does not, so that ordering ships green on Chrome and throws "Cannot access uninitialized variable." on every Safari, which is how/avatars/:idwent dead on iOS and macOS while every desktop check passed.build:lib:fullwritesdist-lib/agent-3d.js,build:avatar-sdkcopies that bundle intoavatar-sdk/dist/index.mjs, and the frontendvite buildresolvesavatar-sdk/src/agent.jsagainst it, so both must come BEFOREbuild; skipping them shipped whatever staleavatar-sdk/distthe build machine happened to hold, and in a fresh worktree failed the build outright withCould not resolve "../dist/index.mjs"(2026-08-17). The frontendvite buildruns withemptyOutDir, so it WIPESdist/and everything that writes intodist/must come after it: that is whypublish:lib, which mirrors the UMD lib intodist/, followsbuildrather than sitting next tobuild:lib:full, andcheck:distfails without that bundle present.publish:libwrites only the moving channels (latest,1,1.5) from the fresh build; every released version directory is downloaded from the write-once archivegs://three-ws-lib-releasesand checked againstdata/agent-3d-releases.json, so the build
Установить deploy-runbook в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл deploy-runbook?
The exact three.ws production deploy runbook (clean worktree, build:gcp chain, submit gates, cron sync, CDN purge, verify). Load before any deploy.
Как установить скилл deploy-runbook?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл deploy-runbook запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub