agentleFS
markoblogomarkoblogo/abvx-agent-skills/skills/delivery-preflight-gate/SKILL.md

delivery-preflight-gate

Skill16 starsChanged 5 months agoMITView on GitHub

Run a baseline preflight before long implementation, autonomous execution, or publishing a PR. Use when a task has multiple phases, mandatory commands, high risk of thrashing against an already-broken repo state, or should be checked in an isolated push gate before reaching the real remote. Deduplicate the minimum useful checks, surface red baseline conditions early, and require an explicit user decision before proceeding past known breakage.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 13 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

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

    Run the smallest useful baseline check before committing the agent to a long implementation loop or before letting a risky branch leave the …

    line 12
  2. Very specific:

    If repeated preflight failures reveal a reusable lesson, use agent-learning-layer-triage to decide whether the fix belongs in a …

    line 24
  3. Distinctive:

    Prefer the narrowest commands that still represent the real baseline.

    line 29
  4. Distinctive:

    Verify before planning a large execution loop, not after failure number three.

    line 30
  5. Distinctive:

    If the baseline is red, stop and present options instead of silently proceeding.

    line 32
  6. Distinctive:

    Run the commands once before starting the long task or before publishing the branch.

    line 39
  7. Distinctive:

    Use this mode when the risk is not only broken code, but publishing a noisy or unsafe PR branch.

    line 53
  8. Distinctive:

    Create or use an isolated disposable worktree when available.

    line 56
  9. Distinctive:

    Run a focused review pass for accidental broad diffs, generated clutter, secrets, debug prints, and stale docs.

    line 58
  10. Distinctive:

    Do not run a giant CI matrix when one local command answers the question.

    line 76
  11. Distinctive:

    Do not hide a broken baseline inside a long plan.

    line 77
  12. Distinctive:

    Do not call a repo "verified" if the necessary commands were skipped.

    line 78
  13. Distinctive:

    Do not let auto-fixes from a push gate silently expand the PR scope.

    line 79
  14. Distinctive:

    Do not replace human approval with a gate when the change touches secrets, auth, billing, destructive actions, or broad behavior.

    line 80

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

Delivery Preflight Gate

Run the smallest useful baseline check before committing the agent to a long implementation loop or before letting a risky branch leave the local workspace.

Use When

  • the task is expected to take multiple implementation steps or phases;
  • the repo already has build, test, typecheck, lint, or app-run expectations;
  • a broken baseline would waste retries or mislead later verification;
  • the user is about to ask for an autonomous or low-supervision run;
  • a branch should pass a disposable push gate before opening or updating a PR.

For security-sensitive work, run authorized-security-router first when authorization, target boundary, or allowed action level is not already explicit.

If repeated preflight failures reveal a reusable lesson, use agent-learning-layer-triage to decide whether the fix belongs in a memory/context note, durable repo doc, checklist, SKILL.md, script/tool, eval, or golden fixture.

Core Rules

  • Deduplicate checks. Do not run the same command under different names.
  • Prefer the narrowest commands that still represent the real baseline.
  • Verify before planning a large execution loop, not after failure number three.
  • Distinguish baseline already broken from task introduced a regression.
  • If the baseline is red, stop and present options instead of silently proceeding.
  • For push-gate workflows, isolate review and repair work from the main working tree when the tooling supports it.

Workflow

  1. Identify the mandatory verification surface for this repo.
  2. Select the minimum command set that represents that surface.
  3. Run the commands once before starting the long task or before publishing the branch.
  4. Classify the result:
    • PREFLIGHT_GREEN: baseline acceptable for execution.
    • PREFLIGHT_RED: baseline broken, flaky, or unverifiable.
    • PUSH_GATE_GREEN: branch is clean enough to push or open/update a PR.
    • PUSH_GATE_RED: branch needs a fix, explicit override, or smaller PR slice before publishing.
  5. If red, report:
    • which commands failed;
    • whether the failure appears pre-existing or task-related;
    • whether it blocks the planned work or is exactly what phase 1 must fix.
  6. Require an explicit proceed-or-fix decision before treating the task as safe for autonomous execution or remote publication.

Optional Push Gate Mode

Use this mode when the risk is not only broken code, but publishing a noisy or unsafe PR branch.

  1. Confirm the intended remote and target branch.
  2. Create or use an isolated disposable worktree when available.
  3. Re-run only the minimum repo checks that matter for the PR.
  4. Run a focused review pass for accidental broad diffs, generated clutter, secrets, debug prints, and stale docs.
  5. Apply only safe, reviewable auto-fixes; require approval for behavior changes or broad cleanup.
  6. Push only after the branch is green, explicitly overridden, or deliberately narrowed.

This mode is compatible with tools such as no-mistakes, but does not require any specific gate implementation. Treat external tools as adapters around the same decision record.

Output Shape

Produce a compact preflight record with:

  • selected commands;
  • pass/fail summary;
  • blockers;
  • proceed recommendation;
  • push-gate decision when remote publication is in scope.

Anti-Patterns

  • Do not run a giant CI matrix when one local command answers the question.
  • Do not hide a broken baseline inside a long plan.
  • Do not call a repo "verified" if the necessary commands were skipped.
  • Do not let auto-fixes from a push gate silently expand the PR scope.
  • Do not replace human approval with a gate when the change touches secrets, auth, billing, destructive actions, or broad behavior.

Final Report

State whether the execution loop started from green baseline, red baseline with explicit override, unverifiable baseline, or push-gate pass/fail before publication.

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.