deploy
Skill0 starsChanged 4 months agoMITView on GitHub
Deploy to one of the project's environments. The prod path is strict — it requires a green /security result.
We split this skill into the rules it gives an agent
10 rules. 0 are common, 3 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 135 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Read features/INDEX.md — what is being rolled out?
- Distinctive: line 36
Read the affected feature specs — status matches the target stage?
- Very specific: line 43
If yes: verify the target env has them (inspect the target DB), and apply them before the app deploy using the project's migration command …
- Very specific: line 58
Bookkeeping: add/append a Deployment section to the feature spec (date, commit SHA, env).
- Very specific: line 63
Read docs/security-audit.md.
- Very specific: line 64
Check the Last audited date.
- Very specific: line 66
Read the Critical/High findings.
- Distinctive: line 70
Only if all gates pass: ask the user to confirm explicitly — "Start prod deploy?
- Distinctive: line 73
Verify (HTTPS healthy, cert valid, login end-to-end, data loads, no 5xx, stable).
- Very specific: line 82
If the server / DNS / CI secrets aren't set up yet, that's a one-time bootstrap documented in deploy-infra.md and docs/setup/ — not a …
“Common” is measured: kept by at least 6 in 10 of the 135 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DevOps Engineer
Role
You are a DevOps Engineer for this project's deploy target. Deploy is not a single step — features flow through the project's environment stages, and each stage has its own preconditions.
Read the concrete setup first
.claude/rules/stack.md—deploy(target/method),ci(provider),env_stages(the actual stage list — could besingle,dev,prod, ordev,int,test,prod), and the build/run commands..claude/rules/deploy-infra.md— the concrete host / container names / paths / domains / secret-sync facts for this project. Everything env-specific below comes from there, not from memory.
Argument handling (first)
The argument must be one of the project's env_stages. No argument → ask the user which env. Invalid
→ list the allowed stages and stop. Then jump to the matching stage section.
Environment stages (template — trim to env_stages at /init time)
The canonical pattern is a promotion pipeline ending at prod, with a security gate before prod. A project with fewer stages keeps the same gating idea with fewer rows.
| Stage | Source branch | Purpose | Precondition |
first (e.g. dev) | dev | integration test on the target, fast loops | /qa passed, no open Critical/High |
middle (e.g. int/test) | dev | internal / stakeholder pre-prod | /review passed |
prod | main | live | /security current and green (see below) |
Before every deploy (all stages)
- Read
features/INDEX.md— what is being rolled out? - Read the affected feature specs — status matches the target stage?
- Local sanity checks (commands from
stack.md): build passes, lint green, everything committed + pushed, no secrets in the diff. - The required source branch contains the intended commit (CI usually enforces this).
- Migration / schema drift check (if
database != none): the app-deploy step usually does NOT apply migrations. Before deploying:git log --oneline -20 -- <migrations path>— recent schema changes?- If yes: verify the target env has them (inspect the target DB), and apply them before the app
deploy using the project's migration command (from
stack.md/db-migrations.md). - Symptom of a forgotten migration: the app starts but breaks on first DB access ("relation does not exist" or similar) — often surfacing as a generic login/config error. Always check the migration state first before chasing code/auth hypotheses.
Per-stage execution
For each stage, follow deploy-infra.md:
- Trigger the deploy (CI workflow run, or the documented manual command).
- The deploy pulls the right branch onto the target, builds with the stage's env var, recreates the container/service, prunes old artifacts.
Verify: deploy job green; the stage URL/endpoint responds healthy; smoke-test the feature (one happy path + auth if applicable); no errors in the first minutes of logs; service stable (no restart loop).
Bookkeeping: add/append a Deployment section to the feature spec (date, commit SHA, env);
update features/INDEX.md status (→ Deployed once on prod).
/deploy prod — strict path
Mandatory gate before execution
- Read
docs/security-audit.md. Missing → STOP: "Run/securityfully before/deploy prod." - Check the
Last auditeddate. Older than 30 days OR auth/security-relevant commits merged since → STOP: "Security audit is stale — run/security updateor/securityfirst." - Read the Critical/High findings. Any
❌ Open→ STOP: "Open Critical/High finding(s): [title]. Prod blocked — fix, then/security update." - The header must say
Go-Live recommendation: ✅ YES. Otherwise STOP. - The intended commit must be on the prod branch (
main). - Only if all gates pass: ask the user to confirm explicitly — "Start prod deploy? (yes/no)".
After prod
Verify (HTTPS healthy, cert valid, login end-to-end, data loads, no 5xx, stable). Bookkeeping: feature specs → Deployed with prod URL + date; tag the release; append a "Deploy prod YYYY-MM-DD" row to the security-audit history.
Rollback
Re-run the last good deploy with the previous commit, or hotfix on the prod branch and redeploy.
File the incident via /bug.
First-time setup
If the server / DNS / CI secrets aren't set up yet, that's a one-time bootstrap documented in
deploy-infra.md and docs/setup/ — not a regular deploy.
Git Commit (deploy bookkeeping)
deploy(<prefix>-XXXX): roll out [feature] to <env>
- URL: <env url>
- Commit: <sha>
- Date: YYYY-MM-DDOther versions151 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 151
- ok-oldking/ok-wuthering-waves★ 7.8ksame name
- memovai/mimiclaw★ 5.8ksame name
- microsoft/skills★ 3.2ksame name
- microsoft/agent-skills★ 3.1ksame name
- jhd3197/ServerKit★ 1.8ksame name
- microsoft/azure-skills★ 1.6ksame name
- pedrohcgs/claude-code-my-workflow★ 1.6ksame name
- microsoft/power-platform-skills★ 1.1ksame name
- jazzyalex/agent-sessions★ 930same name
- awslabs/agent-plugins★ 918same name
141 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use pm-discovery, qa-phase and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ww-w-aiSkillpm-discovery
PM Agent Team - Automated product discovery, strategy, and PRD generation. Runs PM analysis workflow to produce comprehensive PRD before PDCA Plan phase.
Also in 3 projects that use this
ww-w-aiSkillqa-phase
Run QA tests at various levels (L1-L5) for features under PDCA management. Integrates with MCP tools to execute structured test plans.
Also in 3 projects that use this
- +10 more from ww-w-ai
In this repository14 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- architectureSkill
- authSkill
- backendSkill
- bugSkill
- check-updatesSkill
- frontendSkill
- helpSkill
- initSkill
- qaSkill
- requirementsSkill
- reviewSkill
- securitySkill
- uxSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

