agentleFS
jpoindexterjpoindexter/ai-agent-skills/ship-preflight/SKILL.md

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.

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
  1. Distinctive:

    Run the repository-defined full verification suite before declaring a slice done, pushing it, or issuing a deploy command.

    line 7
  2. Distinctive:

    Read the repository instructions and current Git state.

    line 11
  3. Distinctive:

    Run that canonical command once.

    line 12
  4. Distinctive:

    If any gate is red: stop immediately, name the gate that failed, and report the error.

    line 17
  5. Distinctive:

    If all gates pass, distinguish the authorized effect:

    line 18
  6. Distinctive:

    Routine branch push explicitly authorized: verify the intended commit, branch, and remote relation, then push only that branch.

    line 19
  7. Distinctive:

    Never skip a gate to unblock a deploy.

    line 25
  8. Distinctive:

    Never deploy, publish, notarize, release, or push a release tag without exact authorization.

    line 26
  9. Distinctive:

    Never stage or commit unrelated work to make a tree appear clean.

    line 27
  10. Distinctive:

    Run it as a one-shot before any slice completion claim:

    line 45

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Read the repository instructions and current Git state. Preserve unrelated changes and identify the canonical full-check command.
  2. Run that canonical command once. If no aggregate gate exists, run the documented checks in strict order:
    • typecheck — must exit 0
    • tests — ALL must pass (no skips, no flakes tolerated)
    • build — must produce a clean artifact
    • lint / size gate — if configured
  3. If any gate is red: stop immediately, name the gate that failed, and report the error. Do not continue.
  4. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.