staging-deploy
Deploy to staging — test, build, push the image, migrate the staging DB, deploy, and smoke-check. Use when the task is deploying to staging.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- staging-deploy
- description
- Deploy to staging — test, build, push the image, migrate the staging DB, deploy, and smoke-check. Use when the task is deploying to staging.
02 资源文件 2
- 参考文档grading.json1.0 KB
- 参考文档meta.json199 B
03 SKILL.md 正文
Deploy to staging by running these steps in order. Stop and report if any step fails; do not proceed to the next step on top of a failure.
- Capture the SHA once and reuse it for every later step:
SHA=$(git rev-parse --short HEAD). The same value tags the image in step 4 and verifies the deploy in step 7. - Test:
pnpm test. All tests must pass — a non-zero exit code stops the deploy here. - Build:
pnpm build. Must exit 0. - Push the image:
make docker-push TAG=staging-$SHA. - Migrate the staging DB:
pnpm db:migrate:staging. The.envfile also holds the prod DB URL — confirm the command targets staging before running it; never run a migration command against the prod URL. - Deploy:
make deploy-staging. - Smoke-check:
curl -s -o /dev/null -w '%{http_code}' https://staging.acme.dev/healthzmust return200, and the sha reported by the deployed service must equal$SHA. Both conditions must hold — a 200 with a stale sha is not a successful deploy.
If the smoke-check fails
Run make rollback-staging immediately, then report the failure.
04 同仓库更多 Skills
tune
Find and fix real defects in a skill, AGENTS.md, or CLAUDE.md, then prove the description still routes. Runs the bundled token-spending runner, so it starts only on the human's explicit instruction.
skill-tuner
Evidence-tagged rules for writing documents agents consume. Use when creating, editing, or shortening skills, AGENTS.md, or CLAUDE.md.
portfolio
Inventory every skill the agent is shown, with its per-turn listing cost, usage count and visibility knob, then decide one skill at a time whether the model should start it on its own. Reads files only; starts on the human's explicit instruction.
shipit
Release builds with the shipit CLI. Use when releasing or promoting a build to staging or prod, checking a release manifest, or rolling back a shipit deployment.
shipit
Release builds with the shipit CLI. Use when releasing or promoting a build to staging or prod, checking a release manifest, or rolling back a shipit deployment.
shipit
Release builds with the shipit CLI. Use when releasing or promoting a build to staging or prod, checking a release manifest, or rolling back a shipit deployment.