step1-preflight-check

step1-preflight-check is a command for GitHub Copilot from srnichols/plan-forge. It costs 33 tokens per session (1,108 once invoked), scanned A, original, MIT.

A checklist command that checks a planned feature's repository state, roadmap entry, plan file, guardrails, and instruction files before plan work continues.

In plain words
What is it for?
Use it as the first step before hardening a plan, after replacing the placeholder with the plan name.
Why use it?
It catches missing files, unresolved project links, and uncommitted changes early, and stops the next planning step when a check fails.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt. Also seen: mentions AGENTS.md.

Good fit Use it as the first step before hardening a plan, after replacing the placeholder with the plan name.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/srnichols/plan-forge/step1-preflight-check
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/srnichols/plan-forge

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for step1-preflight-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/srnichols/plan-forge/step1-preflight-check.svg)](https://agentmods.dev/commands/srnichols/plan-forge/step1-preflight-check)
Your own site
<a href="https://agentmods.dev/commands/srnichols/plan-forge/step1-preflight-check"><img src="https://agentmods.dev/badge/commands/srnichols/plan-forge/step1-preflight-check.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,108 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.01108
Opus 5 $0.00016 $0.00554
Sonnet 5 $0.00007 $0.00222
Haiku 4.5 $0.00003 $0.00111

Measured today against content hash bf1fe1be6b25, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

step1-preflight-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/prompts/step1-preflight-check.prompt.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Step 1: Pre-flight Check

Pipeline: Step 1 of 5 (Session 1 — Plan Hardening)
When: Before hardening any *-PLAN.md
Model suggestion: Any model / Copilot Auto (10% token savings) — checklist verification works well on all models
Next Step: step2-harden-plan.prompt.md

Replace <YOUR-PLAN> with your plan filename (without path or .md extension).


Act as a PRE-FLIGHT CHECK AGENT for plan hardening.

Pre-flight context check:

  • Check OpenBrain (if configured): search_thoughts("<plan topic> blockers", project: "<YOUR PROJECT NAME>") — load prior preflight failures and known blockers
  • Check LiveGuard memories: Read .forge/liveguard-memories.jsonl if present — recent incidents or drift violations may indicate unresolved issues

Run these checks and report results. If any check fails, report the failure and do not proceed to Step 2.

  1. GIT STATE — Run git pull origin main and git status. Report: clean / dirty (list uncommitted files if dirty).

  2. ROADMAP LINK — Read docs/plans/DEPLOYMENT-ROADMAP.md. Confirm the phase for exists with a one-line goal. Report: ✅ found (quote the goal) / ❌ missing.

  3. PLAN FILE — Confirm docs/plans/.md exists and is non-empty. Report: ✅ exists (N lines) / ❌ not found.

  4. CORE GUARDRAILS — Confirm these files exist and are non-empty:

    • .github/copilot-instructions.md
    • .github/instructions/architecture-principles.instructions.md
    • AGENTS.md Report: ✅ all present / ❌ missing (list which).

4b. AGENTIC FILES — Check if prompt templates, agent definitions, and skills exist:

  • .github/prompts/ — list *.prompt.md files found (0 is OK for non-preset repos)
  • .github/agents/ — list *.agent.md files found
  • .github/skills/ — list */SKILL.md files found Report: ✅ N prompts, N agents, N skills found / ⚠️ none found (optional — won't block)
  1. DOMAIN GUARDRAILS — Scan .md for keywords to identify relevant domains. For each domain detected, confirm the matching guardrail file exists:
    • UI/Component/Frontend/Razor/React/Vue → .github/instructions/frontend.instructions.md (or blazor/react specific)
    • Database/SQL/Repository/ORM/migration → .github/instructions/database.instructions.md
    • API/Route/Controller/REST → .github/instructions/api-patterns.instructions.md
    • Auth/OAuth/JWT/OIDC/session → .github/instructions/auth.instructions.md
    • GraphQL/Schema/Resolver → .github/instructions/graphql.instructions.md
    • Security/CORS/Secrets/Validation → .github/instructions/security.instructions.md
    • Docker/K8s/deploy/CI → .github/instructions/deploy.instructions.md
    • Test/spec/coverage → .github/instructions/testing.instructions.md Report: domains detected + guardrail status for each.

Output a summary table:

Check Result Details
Git state ✅/❌ ...
Roadmap link ✅/❌ ...
Plan file ✅/❌ ...
Core guardrails ✅/❌ ...
Agentic files ✅/⚠️ ...
Domain guardrails ✅/❌ ...

If ALL pass: "Pre-flight complete ✅ — proceed to Step 2 (Harden the Plan)" If ANY fail: "Pre-flight FAILED ❌" + list exactly what to fix.

Tip: For deeper diagnostics (environment tools, VS Code config, version currency, common problems), suggest running pforge smith.


Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 81 lines · 33 tokens per session scan A bf1fe1be6b25

Subscribe to this mod's changes

step1-preflight-check is a command published in the GitHub repository srnichols/plan-forge (5 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 1,108 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-08.