mik2win/foureyes/preflight

Claude Code and agent skill by mik2win/foureyes

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Release-readiness gate — one orchestrated pass before code ships: full test suite + lint/typecheck, dependency & security quick pass, docs drift, config/migration/flag check, changelog draft from commits, and a GO / GO-WITH-RISKS / NO-GO verdict with a suggested deploy command (never executed). TRIGGER when: the user is about to ship/release/deploy/tag ("are we ready to ship", "preflight", "release check", "can this go out"). TRIGGER ALSO on the same ask phrased as plain work, with this skill unnamed — "anything blocking release", "run the pre-release checks", "is main safe to deploy" — an ask for a ship/no-ship judgment IS this skill. DO NOT TRIGGER when: the user wants a review of one diff (use /code-review), a security-only sweep (use /audit-security), or to settle an epic's plans and archives (use /close-epic — run it before this when an epic is involved).

Install

npx vskill@latest install mik2win/foureyes/preflight

SKILL.md

The same SKILL.md was published earlier as mik2win/foureyes/preflight.

Preflight: $ARGUMENTS

The last gate before code leaves the machine. /close-epic settles the plans; this settles the release: everything between "the code is done" and "the code is out" that is checkable, checked once, in one report. Propose-only — the deploy command is suggested, never run (the kit's code-publish policy stands: the user ships).

$ARGUMENTS optionally names the release scope (a tag/ref like v1.4.0..HEAD, a branch, or free text); empty = resolve in Phase 1.


Phase 0 — Load profile

  1. Read .claude/PROJECT.md — Commands (test, lint, typecheck), Deploy mapping,

Integrations, Plans location. If missing or TEMPLATE, fall back to the root CLAUDE.md (always in context) when it carries those commands — note you're running without a kit profile; STOP: run /bootstrap only if neither has them.

  1. Read .claude/rules/_generic/code.md and any release/CI conventions in the profile.
  2. If CONTEXT.md exists, read it — the changelog speaks the project's language.

Phase 1 — Resolve the release scope

Determine what is shipping, in order of preference:

  1. $ARGUMENTS as a ref/range → git log --oneline <range> + git diff <range> --stat.
  2. Last release tag → git describe --tags --abbrev=0 then <tag>..HEAD.
  3. No tags → merge-base with the default branch, or ask via AskUserQuestion.

List the commits and changed files that constitute the release. If the working tree is dirty, flag it first — shipping with uncommitted changes is a NO-GO finding unless the user says those files are out of scope.

Phase 2 — Run the gates

Each gate produces a row: PASS / WARN / FAIL + evidence. Run cheap ones first; don't stop on failure — the report shows the whole picture. Skip a gate only when it's inapplicable, and say so.

  1. Tests — the full test command (PROJECT.md → Commands). FAIL on any failure; record

the failing names verbatim.

  1. Lint / typecheck — the profile's commands. FAIL on errors, WARN on warnings.
  2. Dependencies — chain `/deps` (via Skill) in its quick mode, or if unavailable run

the stack's audit command from the profile. FAIL on known-exploitable vulns in shipped deps; WARN otherwise.

  1. Security — spawn the `security-reviewer` agent scoped to the release diff.

FAIL on CRITICAL findings, WARN on HIGH.

  1. Docs drift — same mechanic as /close-epic: does the release change a user-facing

surface (commands, routes, config, API) that README/usage docs still describe the old way? Grep the docs for the changed surface names. WARN with the stale path:lines. Run the dead-reference gate too — python3 tools/lint-refs.py (or the project's own equivalent from PROJECT.md → Commands) checks that every repo path CLAUDE.md and the files under .claude/ cite still exists. It is the half a grep cannot do: a rename breaks an instruction that names a file, and nothing else in the build fails. WARN on its findings and quote them; --baseline-mode is the user's call, never this skill's.

  1. Config & migrations — grep the release diff for: new env keys / settings (are they

documented and present in deploy config?), pending schema migrations (is the migration step in the deploy plan?), feature flags introduced (correct default?). FAIL on a migration or required key with no deploy step; WARN otherwise.

  1. Behavior spot-check — if a run command exists and the release touches a runtime

surface, drive the main affected flow once (the /implement Behavior Check discipline, applied to the release build). WARN if it can't be driven; record what was observed.

Phase 3 — Changelog draft

From the Phase 1 commit list, draft a changelog section grouped by user-visible effect (Added / Changed / Fixed / Security — or the project's existing changelog format if one exists; follow it). One line per meaningful change, in the project's vocabulary — not a raw commit dump. If the project keeps a CHANGELOG.md, show the draft for the user to paste or approve — apply it only on confirmation.

Phase 4 — Verdict & report

Write the report to <plans>/<YYYY-MM-DD>-preflight-<scope>.md and print it:

markdown
# Preflight — <scope>
| Gate | Status | Evidence |
|------|--------|----------|
| Tests | PASS/WARN/FAIL | <counts / failing names> |
| Lint/typecheck | | |
| Dependencies | | |
| Security | | |
| Docs drift | | `path:line`s |
| Config & migrations | | |
| Behavior spot-check | | drove <flow> → observed <result> |
## Verdict: GO | GO-WITH-RISKS | NO-GO
-NO-GO: any FAIL — list the blockers, each with its fix route
(/diagnose, /test, /deps, security fix …).
-GO-WITH-RISKS: WARNs only — each risk named with owner ("ship and fix forward" needs
the user to say so).
-GO: all PASS.
## Changelog draft
<the Phase 3 section>
## Deploy (suggested — run it yourself)
<command(s) from PROJECT.md → Deploy mapping + verification step, e.g. tail logs>

Hard rules

  • Never deploy, tag, commit, or push. Output the commands; the user runs them.
  • Report the whole board. Run every applicable gate even after a FAIL — a NO-GO with one

known blocker beats three consecutive surprise NO-GOs.

  • Failures verbatim. Failing test names and vuln IDs are quoted, not summarized away.
  • A skipped gate is a stated gate. "Skipped — <reason>" in the row; never silently absent.
  • Facts from PROJECT.md. Commands, deploy mapping, docs locations — never hardcoded.

Cross-reference

  • Before this: /close-epic (epic bookkeeping), /code-review + /test (per-change

quality). Components it orchestrates: /deps, security-reviewer agent.

  • On NO-GO: /diagnose (failures), /test (coverage), /audit-security (deep security).
  • After ship: /retro — feed what preflight caught back into the kit's rules.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mik2win/foureyes/preflight/badge)](https://verified-skill.com/skills/mik2win/foureyes/preflight)

Something wrong with this skill or its page? Tell us.