ship-preflight
Skill1 starsChanged 5 months agoMITView on GitHub
Block-on-red gate before calling a slice done, pushing an authorized change, or running a deploy. Runs the repository's canonical full check, or its documented typecheck, tests, build, and lint sequence. Any red stops dependent effects and names the failing gate.
In this repository13 other files it gives its agents.
- adversarial-verifySkill
- closed-loopSkill
- cluster-feedbackSkill
- doubt-gateSkill
- fleet-loopSkill
- hill-climbSkill
- keep-greenSkill
- loop-auditSkill
- loop-readinessSkill
- loop-stateSkill
- prod-watchSkill
- scaffold-planningSkill
- source-groundedSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Run the repository-defined full verification suite before declaring a slice done, pushing it, or issuing a deploy command.
- Distinctive: line 11
Read the repository instructions and current Git state.
- Distinctive: line 12
Run that canonical command once.
- Distinctive: line 17
If any gate is red: stop immediately, name the gate that failed, and report the error.
- Distinctive: line 18
If all gates pass, distinguish the authorized effect:
- Distinctive: line 19
Routine branch push explicitly authorized: verify the intended commit, branch, and remote relation, then push only that branch.
- Distinctive: line 25
Never skip a gate to unblock a deploy.
- Distinctive: line 26
Never deploy, publish, notarize, release, or push a release tag without exact authorization.
- Distinctive: line 27
Never stage or commit unrelated work to make a tree appear clean.
- Distinctive: line 45
Run it as a one-shot before any slice completion claim:
≈ “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
Ship Preflight
Run the repository-defined full verification suite before declaring a slice done, pushing it, or issuing a deploy command. This is a one-shot gate, not a loop.
Steps
- Read the repository instructions and current Git state. Preserve unrelated changes and identify the canonical full-check command.
- Run that canonical command once. If no aggregate gate exists, run the documented checks in strict order:
typecheck— must exit 0tests— ALL must pass (no skips, no flakes tolerated)build— must produce a clean artifactlint/size gate— if configured
- If any gate is red: stop immediately, name the gate that failed, and report the error. Do not continue.
- If all gates pass, distinguish the authorized effect:
- Routine branch push explicitly authorized: verify the intended commit, branch, and remote relation, then push only that branch. A push does not authorize a release, tag, deploy, or unrelated commit.
- Deploy, publish, notarize, release, or release tag not explicitly authorized: print the exact command and stop.
Constraints
- On kernel/host changes, run the FULL suite — not a subset.
- Never skip a gate to unblock a deploy.
- Never deploy, publish, notarize, release, or push a release tag without exact authorization.
- Never stage or commit unrelated work to make a tree appear clean.
- A dropped tool connection counts as "gate incomplete" — re-run, don't assume pass.
Report format
Gate results:
typecheck — PASS | FAIL (<error summary>)
tests — PASS (<n> passed) | FAIL (<n> failed, <first failure>)
build — PASS | FAIL
lint — PASS | FAIL (<violation count>)
Overall: GREEN — ready to ship | RED — blocked on <gate>
Next step: <deploy command or "fix <gate> first">Usage
Run it as a one-shot before any slice completion claim:
Run /ship-preflight before marking this done.Or as a pre-commit hook or pre-deploy check in a loop:
After building the card, run /ship-preflight. Only move it to shipped if all gates pass.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.

