context-preflight
Skill5 starsChanged 8 days agoMITView on GitHub
On an app-dev-team project, use before changing the repository, as a ticket's first step, to confirm branch, worktree, ticket row, dependencies, source-of-truth docs and open obligations. Used by ICs, code-reviewer, devops-engineer, tech-manager and /app-preflight.
In this repository25 other files it gives its agents.
- accessibility-gateSkill
- agent-isolationSkill
- architecture-builderSkill
- board-doctorSkill
- brownfield-onboardingSkill
- business-modelSkill
- content-designSkill
- database-migrationSkill
- defect-huntingSkill
- dependency-policySkill
- design-systemSkill
- house-conventionsSkill
- ic-workflowSkill
- intent-traceSkill
- localisationSkill
- mutation-testingSkill
- parallel-orchestratorSkill
- performance-reviewSkill
- prd-builderSkill
- requirements-intakeSkill
- role-activationSkill
- runtime-gateSkill
- spec-criticSkill
- sprint-plannerSkill
- team-protocolSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use before implementation, review, migration, release, or any command that can change files.
- Distinctive: line 15
Read the reported branch, dirty-tree, active-worktree, ticket, and required-document findings.
- Distinctive: line 16
Read what your prompt names (the ticket, its spec excerpt, the answers on record) and any doc the ticket actually touches — not the whole …
- Very specific: line 18
If the result is CANNOT EVALUATE, stop.
- Distinctive: line 27
Read the latest decision and unresolved follow-up before reopening a settled thread.
- Very specific: line 33
Not a return value — return your prompt's contract (BLOCKED: if preflight cannot clear).
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 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.
Files
Context preflight
Use before implementation, review, migration, release, or any command that can change files. The purpose is not to create more ceremony; it is to prevent an agent from acting on stale context.
Procedure
- Run
node "${CLAUDE_PLUGIN_ROOT}/scripts/context-preflight.mjs" <project-root or slot> --ticket ID --role <role>.--roledecides the protected-branch check (writers only); a fresh slot's detached HEAD is fine. - Read the reported branch, dirty-tree, active-worktree, ticket, and required-document findings.
- Read what your prompt names (the ticket, its spec excerpt, the answers on record) and any doc the ticket actually touches — not the whole doc set.
- If the result is
CANNOT EVALUATE, stop. Do not convert missing context into an assumption. - Record assumptions and the next action in the ticket's daily evidence file.
Operating rules
- A dirty tree belongs to somebody until proven otherwise. Preserve it and ask before overlapping it.
- The current branch and worktree are facts, not suggestions. Never work on
mainwhen the task writes. - A ticket is not ready because it is assigned; its dependencies must be merged and its acceptance criteria must be discoverable.
- Read the latest decision and unresolved follow-up before reopening a settled thread.
- Report facts, assumptions, decisions, and unknowns separately. Never present reasoning as execution.
Output
A note in your daily fragment (a reviewer: its verdict): the PREFLIGHT: line and documents read.
Not a return value — return your prompt's contract (BLOCKED: if preflight cannot clear).
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.

