deployment-gate
Skill1 starsChanged 4 months agoMITView on GitHub
Mandatory gate for all deployment and infrastructure operations. Use this skill before running ANY command that touches a cluster, database, cloud resource, or production environment — kubectl, helm, cloud CLIs, migrations, service restarts. Also trigger it when writing deployment plans or scripts. No infrastructure command executes in this project without passing this gate.
In this repository4 other files it gives its agents.
- architectureSkill
- documentationSkill
- gitflowSkill
- pr-gateSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
No delete. No remove. No recreate-from-scratch: Only removals that are strictly necessary and explicitly listed in the approved plan may …
- Distinctive: line 15
Assess first, deform nothing: Before planning, inspect the current environment.
- Distinctive: line 16
Write the full command manifest: Every command that will run, in order, before anything runs.
- Distinctive: line 20
Execute exactly the approved manifest: If reality diverges (a command fails, output is unexpected), STOP — do not improvise recovery.
- Very specific: line 21
Verify: Run the post-deploy checks (health endpoints, smoke tests, migration status).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deployment Gate Skill
Purpose
Production is shared and live. This gate exists because agents are very good at cleaning everything and starting over — and on shared infrastructure, that instinct is an outage. Autonomy here is not granted; it is gated into existence.
The prime directive
No delete. No remove. No recreate-from-scratch. Only removals that are strictly necessary and explicitly listed in the approved plan may run. If an operation would delete, drop, scale-to-zero, or recreate any resource not explicitly listed: STOP. Ask the Leader.
Protocol — every deployment
- Assess first, deform nothing. Before planning, inspect the current environment. The plan must deploy into the existing configuration without changing unrelated resources.
- Write the full command manifest. Every command that will run, in order, before anything runs. No composing commands mid-deployment.
- Prefer standard commands. Draw from
references/standard-commands.md— the vetted vocabulary of deployment operations. A command outside the standard set must be flagged as NON-STANDARD in the manifest. - Advisor go/no-go. Spawn an advisor agent with this skill and the manifest. The advisor checks each command against the checklist below and returns GO or NO-GO per command. Any NO-GO halts the deployment.
- Leader approval when required. First deployment of a new kind, any NON-STANDARD command, anything touching the database, and anything on the prime directive's boundary: Leader approves before execution.
- Execute exactly the approved manifest. If reality diverges (a command fails, output is unexpected), STOP — do not improvise recovery. Report, re-plan, re-gate.
- Verify. Run the post-deploy checks (health endpoints, smoke tests, migration status). Record everything in a production release record per the
documentationskill.
Advisor checklist
- Every command is in the manifest; nothing improvised.
- No command violates the prime directive; necessary removals are itemized and justified.
- Namespace/context is explicit on every command — nothing runs against a default context.
- Database changes are versioned migrations, run via the standard containerized initialization, never DDL snapshots or hand-edits.
- Secrets/certificates handled per plan: correct location, never echoed, never logged, never committed.
- Network exposure follows the allow-list; no port or ingress opened beyond the plan.
- Rollback steps exist and are as concrete as the deploy steps.
- Blast radius stated: what could this touch beyond the target application?
Failure stance
Uncertain → NO-GO. On shared infrastructure, the cost of a wrongly stopped deployment is minutes; the cost of a wrongly passed one is other people's applications.
Bundled resources
references/standard-commands.md— the vetted command vocabulary (create/edit for your environment).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

