preflight
Skill10 starsChanged 4 months agoMITView on GitHub
The pre-PR hostile pass for torque-loop. Runs scripts/preflight.js for the deterministic checks (tests, version alignment, dependency gate, leak scan, trace tags) then applies human judgment to the checks a script can't rule on (testless changes, prose-enforcement, diff minimality, parked-decision creep, scope, changelog). Use before any commit that will become a PR. Emits PASS/FAIL per check; never fixes silently.
47 other projects use a version of this.
Adopted by
Most recently taken up by
- sohaibt/product-modetheir own version, first seen Nov 8, 2026
- KadirHarmanc/nazar-skilltheir own version, first seen Nov 8, 2026
- zedarvates/frugal-skillstheir own version, first seen Nov 8, 2026
- codiume/skillstheir own version, first seen Nov 8, 2026
- me2resh/apexyardtheir own version, first seen Nov 1, 2026
- vzhukovs/podman-desktop-kittheir own version, first seen Nov 1, 2026
Used with
Projects with it also use adr, ship and 8 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.
asterkinSkilladr
Create Architecture Decision Records (ADRs) following project standards. Guides template usage, process, and best practices for documenting architecturally significant decisions.
Also in 3 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 5 projects that use this
MicrosoftSkillreport
Turn an exploration (threads, findings, charts) into a single Markdown report — note, blog post, executive summary, KPI dashboard, slide brief, or multi-section analytical report, with embedded charts.
Also in 3 projects that use this
Google CloudSkilltriage
Gather context on a change or bug and plan the implementation.
Also in 4 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 3 projects that use this
DockerSkillreview-pr
Review one or more incoming Docker documentation pull requests as a maintainer. Independently validate technical claims, assess editorial fit and information architecture, choose a verdict, and draft exact inline or PR-wide feedback behind a confirmation gate. Use for requests such as "review PR 123", "is this PR correct?", "does this information belong here?", "validate this PR", or "help review backlog PRs". Do not use to maintain or fix a PR you own; use maintain-pr for that.
Also in 3 projects that use this
Other versions47 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 47
- webiny/webiny-js★ 8ksame name
- CrowdDotDev/crowd.dev★ 3.4ksame name
- tphakala/birdnet-go★ 2.4ksame name
- openfootmanager/openfootmanager★ 1.2ksame name
- mohebifar/tooscut★ 716same name
- me2resh/apexyard★ 542same name
- linuxfoundation/insights★ 288same name
- sohaibt/product-mode★ 176same name
- unlearndev/skills★ 101same name
- ogulcancelik/agent-skills★ 81same name
37 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.
In this repository24 other files it gives its agents.
The file
Files
/preflight — embarrass the branch before the reviewer does
v0.7 shipped, got reviewed, and needed a same-day PATCH-THEN-KEEP hardening pass
(fog write bypassed on --json, probe invariants convention-only, gated reasons
unenforced). Every one was findable before the PR. This skill is that finding pass.
The mechanizable checks live in a script, not in prose — a discipline a model has to
remember to run is weak. scripts/preflight.js owns the deterministic verdicts; this
skill runs it, then does the judgment the script deliberately leaves open.
Step 1 — Run the mechanical pass
npm run preflight # or: node scripts/preflight.js [base-ref] (default base: main)It prints all 12 checks in a fixed shape and exits non-zero if any MECHANICAL check fails. Trust its verdict on these five — they need no judgment:
- 1 green world —
npm test+ratchet doctorboth exit 0. - 4 version alignment — five version fields + README examples all match.
- 7 dependency gate — no new
dependencies/devDependencies(or a Danny quote in[Unreleased]). - 9 leak scan — no private paths (
reference/PROBLEM-STATEMENT-*,*.private.md,.lucid/,.ratchet/,.sandbox-*) and no exact private-line quotes in the diff. - 10 trace tags — changed durable docs (
CLAUDE.md,reference/*, handoffs) carry aTraced by:tag; commits carry aCo-authored-byfooter.templates/is exempt.
A MECHANICAL FAIL is real; fix it before anything else. The script's SMALLEST PATCHES
block names each fix.
Step 2 — Rule on the checks the script only gathers evidence for
The script prints these as HUMAN: lines with the candidates it found. You make the call —
it cannot. Read the gathered evidence, then decide PASS/FAIL for each:
- 2 testless change (weak signal — distrust a clean line). The script's token-grep is
noisy: common identifiers match half the suite, so "has test hits" is near-meaningless.
For every
src/|bin/hunk, name the specific test that fails without it. No name → FAIL. - 3 weakened falsifier. The script flags removed asserts / newly-loose lines in
test/. Decide whether any assertion was genuinely loosened without a commit-body reason. If so → FAIL. - 5 prose enforcement. The script lists new
must/never/requireslines in SKILL.md/README. For each, point at the CLI line that enforces it + the test proving the refusal throws, OR confirm the CHANGELOG labels it prompt-level. Unlabeled invariant → FAIL. - 6 diff minimality. The script catches renames + whitespace-only files (the cheap
cases) and is blind to elegance-churn (the expensive one). Map every remaining hunk to the
locked target yourself. Any hunk that doesn't map → FAIL:
revert this hunk. - 8 parked-decision creep. The script lists parked loop ids and any the diff mentions. Decide whether a hunk actually implements a parked loop (a mention alone is fine). If so → FAIL.
- 11 scope + emptiness (weak signal). For any new score/read the script surfaced,
confirm it exposes a
scope:field and that new rendered sections state emptiness. - 12 changelog. The script shows whether
[Unreleased]was touched and whether a CLI-enforced/prompt-level label is present. Decide if behavior changed and the entry is adequate.
Output contract
Report the script's mechanical verdicts verbatim, then your judgment verdicts:
PREFLIGHT vs <base>
MECHANICAL (from script): 1,4,7 PASS · 9,10 <PASS|FAIL + detail>
JUDGMENT:
2 testless ....... PASS|FAIL <file:hunk → missing falsifier>
3 weakened ....... PASS|FAIL
5 prose .......... PASS|FAIL <claim → where enforcement should live>
6 minimality ..... PASS|FAIL <hunks to revert>
8 parked ......... PASS|FAIL <loop id>
11 scope .......... PASS|FAIL
12 changelog ...... PASS|FAIL
VERDICT: CLEAR TO COMMIT | BLOCKED — <count> failures
SMALLEST PATCHES: <one line per failure, in fix order>This skill only reports; apply patches in a follow-up step, then re-run. The next move
after CLEAR is /release-cut (if releasing) or the PR.
<!-- Traced by: claude-opus-4-8[1m] · 2026-07-07 (thinned to wrap scripts/preflight.js; drafted by claude-fable-5) -->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.

