audit-plan
Skill0 starsChanged 10 months agoMITView on GitHub
Perform a high-level flow audit of an implementation plan, analyzing phase-to-phase dependencies, data flow consistency, ordering logic, stale artifacts, and risk assessment. Use when asked to 'audit the plan', 'check plan flow', 'review plan dependencies', 'find plan discrepancies', or 'assess plan coherence'. Do NOT use for per-phase template compliance (use /review-plan) or creating plans (use /create-plan).
2 other projects use a version of this.
Adopted by
Most recently taken up by
- skein-js/skein-jstheir own version, first seen Sep 28, 2026
- danielvm-git/bigpowerstheir own version, first seen Sep 1, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- danielvm-git/bigpowers★ 252same name
- skein-js/skein-js★ 16same name
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 repository19 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- builder-workflowSkill
- code-reviewSkill
- context7-mcpSkill
- create-planSkill
- customizeSkill
- devSkill
- hand-crafted-svgSkill
- implementSkill
- improve-promptSkill
- playwright-e2eSkill
- playwright-mcpSkill
- postgres-expertSkill
- react-form-builderSkill
- review-planSkill
- sequential-thinking-mcpSkill
- server-action-builderSkill
- service-builderSkill
- tavily-mcpSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 10 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Do NOT modify plan files, phase files, or codebase files — this skill only writes the audit report
- Distinctive: line 28
Read ALL phase files, not just a sample — the value of this audit is completeness
- Distinctive: line 30
When you claim a phase targets a file that doesn't exist, verify with Glob first
- Very specific: line 37
Before starting work, run TaskList to check if tasks already exist from a previous session or before a compact.
- Very specific: line 38
Read existing tasks with TaskGet for each task ID
- Distinctive: line 42
If no tasks exist, create them after reading the master plan (Step 1):
- Very specific: line 84
Create the reviews/planning/ directory if it doesn't exist.
- Very specific: line 92
Read {plan-folder}/plan.md completely.
- Very specific: line 103
Use Glob to find all phase files: {plan-folder}/phase-*.md
- Distinctive: line 121
Run the placeholder validator across all phase files to catch skeleton content early:
- Very specific: line 128
If the validator exits non-zero, flag any placeholder-containing phases as stale artifacts in the report (Step 6).
- Distinctive: line 196
Use Glob/Grep to verify the claim holds in the codebase
- Very specific: line 197
Check if {plan-folder}/reviews/code/phase-{NN}.md exists for each "Done" phase — a passing code review verdict is stronger evidence than …
- Very specific: line 216
Write the report to: {plan-folder}/reviews/planning/flow-audit.md
- Distinctive: line 308
After writing the report, return to the main agent:
- Distinctive: line 320
If you notice context was compacted or you're unsure of current progress:
- Very specific: line 322
Run TaskList to see all tasks and their status
- Very specific: line 324
Run TaskGet {id} on that task to read full details
- Distinctive: line 349
Fix: Read frontmatter + overview section only (first 60 lines) for initial pass.
- Distinctive: line 361
Fix: Don't assume the phase wasn't implemented — the file might have been refactored or renamed since.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
<!-- ultrathink: Enable extended thinking for holistic flow analysis -->Plan Flow Audit
YOUR ARGUMENTS: $ARGUMENTS
Arguments are provided above via $ARGUMENTS. Parse them to determine the plan folder path (e.g., plans/detector-refactor). Do NOT ask the user to re-provide the path.
This skill performs a holistic flow audit of a multi-phase implementation plan. It assesses whether phases connect coherently as a pipeline — NOT whether individual phases comply with templates (that's /review-plan's job).
Critical
- Do NOT modify plan files, phase files, or codebase files — this skill only writes the audit report
- Read ALL phase files, not just a sample — the value of this audit is completeness
- Ground findings in actual codebase files, not just plan documents
- When you claim a phase targets a file that doesn't exist, verify with Glob first
- Distinguish between intentional design choices and actual discrepancies
Task Tracking
Tasks survive context compacts — skipping this check causes lost progress and repeated work.
Before starting work, run TaskList to check if tasks already exist from a previous session or before a compact. If tasks exist:
- Read existing tasks with
TaskGetfor each task ID - Find the first task with status
pendingorin_progress - Resume from that task — do NOT recreate the task list
If no tasks exist, create them after reading the master plan (Step 1):
Example task list:
Task 1: Read the master plan
Task 2: Read all phase files and extract metadata
Task 3: Build dependency graph
Task 4: Assess data flow consistency
Task 5: Evaluate phase ordering
Task 6: Identify stale artifacts
Task 7: Cross-check "Done" phases against codebase
Task 8: Assess risk for pending phases
Task 9: Write audit report
Task 10: Return summaryMark each task in_progress when starting and completed when done.
Why This Audit Exists
/review-plan checks individual files. This audit checks the connections between them. Problems that only appear at the whole-plan level:
| Problem | How It Manifests | Cost If Missed |
| Circular dependencies | Phase A waits for B, B waits for A — deadlock | Implementation stalls, requires plan restructuring |
| Missing dependencies | Phase 5 uses a table from Phase 3 but doesn't declare it | Phase 5 fails at runtime, debugging time wasted |
| Wrong ordering | Consumer phase runs before its data producer | Code compiles but crashes, phase must be re-sequenced |
| Stale artifacts | plan.md says "Done" but phase file says "Pending" | /implement picks the wrong next phase |
| "Done" phase not actually done | Phase marked complete but deliverables missing from codebase | Downstream phases build on a false foundation |
The audit report feeds into /implement — it checks the plan review verdict before building. A flow audit catches structural problems that per-phase reviews cannot see.
Output Location
The flow audit report goes in the reviews/planning/ subfolder alongside per-phase reviews:
Write to: {plan-folder}/reviews/planning/flow-audit.md
Examples:
plans/250202-voice-assistant/reviews/planning/flow-audit.mdplans/250202-api-refactor/reviews/planning/flow-audit.md
Create the reviews/planning/ directory if it doesn't exist.
Note: Per-phase template/codebase reviews go in the same folder — see
/review-plan. Code/implementation reviews go inreviews/code/— see/code-review.
Step 1: Read the Master Plan
Read {plan-folder}/plan.md completely. Extract:
- Phase table — all phases with titles, status, and any noted issues
- ADRs / Decision Log — decisions that constrain phase design
- Critical Issues section — known problems already documented
- Architectural North Star — patterns all phases must follow
Note any phases marked as deprecated, renumbered, or amended.
Step 2: Read All Phase Files
Use Glob to find all phase files: {plan-folder}/phase-*.md
For EACH phase file, extract from the frontmatter and overview:
| Field | Where to Find |
| Phase number | Filename phase-NN-* |
| Title | Frontmatter title: |
| Status | Frontmatter status: |
| Dependencies | Frontmatter dependencies: |
| What it produces | Overview section |
| What it consumes | "How This Phase Fits" or "Prerequisites" sections |
| Key files it targets | Implementation steps (file paths mentioned) |
Build a mental model of the full dependency graph as you read.
Placeholder Check
Run the placeholder validator across all phase files to catch skeleton content early:
echo '{"cwd":"."}' | uv run $CLAUDE_PROJECT_DIR/.claude/hooks/validators/validate_no_placeholders.py \
--directory {plan-folder} --extension .mdIf the validator exits non-zero, flag any placeholder-containing phases as stale artifacts in the report (Step 6). Phases with [To be detailed], TBD, or other skeleton markers cannot be meaningfully audited for flow.
Step 3: Build Dependency Graph
From the data collected in Step 2, construct the full dependency graph.
For each phase, document:
- Declared dependencies (from frontmatter
dependencies:field) - Implicit dependencies (phase references data/files/services created by another phase but doesn't declare it)
- What downstream phases depend on it
Check for:
| Issue Type | How to Detect |
| Circular dependencies | Phase A depends on B, B depends on A (directly or transitively) |
| Missing dependencies | Phase X uses output from Phase Y but doesn't list Y in dependencies |
| Unnecessary dependencies | Phase X lists Phase Y but doesn't actually use any of Y's output |
| Orphaned phases | Phase exists but no other phase depends on it AND it doesn't depend on anything |
| Dependency on deprecated phase | A phase depends on a phase marked status: deprecated |
Step 4: Assess Data Flow Consistency
Trace how data flows through the plan pipeline. For plans involving data transformations (API -> storage -> consumption), check:
- Source consistency — Do all phases agree on where data comes from?
- Schema consistency — Do phases that share data structures use the same types/interfaces?
- Pattern consistency — Is there one architectural pattern or do different phases use contradictory approaches?
- Example: Some phases have components query the database directly while others expect data passed via context/props
- Table/entity naming — Do all phases reference the same table names consistently?
- File path consistency — Do phases reference files that actually exist at those paths?
Verify against codebase: For key files referenced by "Done" phases, use Glob to check they exist. For critical claims (e.g., "Phase 11 updated the orchestrator to load summary data"), read the actual file to confirm.
Step 5: Evaluate Phase Ordering
Assess whether the current phase sequence makes logical sense:
- Infrastructure before consumers — Are foundational phases (schemas, services, APIs) ordered before phases that use them?
- Producers before consumers — Does the phase that creates data run before phases that read it?
- Refactoring order — For refactoring plans, is the new system built before the old system is deprecated/removed?
- Test timing — Are testing phases positioned to test code that already exists?
- Cleanup last — Are deprecation, migration, and drop phases at the end?
Flag ordering issues like:
- A consumer phase runs before its data producer
- A centralized service is created AFTER the things that should use it
- Tests are written before the code they test exists
- Cleanup runs before all references are migrated
Step 6: Identify Stale Artifacts
Check for:
| Artifact | How to Find |
| Deprecated phase files | status: deprecated in frontmatter but file still exists |
| Duplicate phase numbers | Multiple files with same phase-NN- prefix |
| Broken inter-phase links | [[phase-XX]] or [Phase XX](./phase-XX-*) links that point to non-existent files |
| Renumbered but not updated | Phase file title says "Phase 17" but filename says phase-18-* |
| Phase table mismatches | plan.md phase table lists a phase title/file that doesn't match the actual file |
| Stale status | plan.md says "Done" but phase file says "Pending" (or vice versa) |
Step 7: Cross-Check "Done" Phases Against Codebase
For phases marked as "Done", spot-check 2-3 key claims against the actual codebase:
- Pick 2-3 "Done" phases that make testable claims (e.g., "created table X", "updated file Y", "added field Z to interface")
- Use Glob/Grep to verify the claim holds in the codebase
- Check if
{plan-folder}/reviews/code/phase-{NN}.mdexists for each "Done" phase — a passing code review verdict is stronger evidence than file existence alone - Flag any "Done" phases whose deliverables can't be found
This prevents the plan from proceeding on a false foundation.
Step 8: Assess Risk for Pending Phases
For each pending phase, evaluate risk based on:
| Risk Factor | High Risk | Low Risk |
| Dependencies | Depends on phases with known issues | Dependencies are clean and verified |
| File targets | References files that don't exist or are uncertain | Targets well-known, stable files |
| Scope | Touches many files across many directories | Focused on 1-2 files |
| Pattern clarity | Introduces new patterns not seen in codebase | Follows established patterns from "Done" phases |
| Blocking | Many downstream phases depend on it | Few or no downstream dependencies |
Step 9: Write Audit Report
Write the report to: {plan-folder}/reviews/planning/flow-audit.md
Create the reviews/planning/ directory if it doesn't exist.
If the report already exists (re-auditing after fixes), Read the existing file first — the Write tool silently fails on existing files without a prior Read. A re-audit should fully overwrite the previous report since the value is a fresh holistic view, not incremental updates.
Report Structure
# Flow Audit: {Plan Title}
**Audited:** {date}
**Phases reviewed:** {count} ({done count} Done, {pending count} Pending, {deprecated count} Deprecated)
**Overall Assessment:** {Coherent | Minor Issues | Significant Issues | Major Restructuring Needed}
---
## 1. Dependency Graph
{Visual or textual representation. Use indentation to show dependency chains.}
### Dependency Issues
| # | Issue | Phases Affected | Severity | Suggested Fix |
|---|-------|----------------|----------|---------------|
| 1 | ... | P05, P12 | High | ... |
---
## 2. Data Flow Analysis
### Architecture Pattern(s)
{Describe the data flow pattern(s) used across the plan}
### Inconsistencies
| # | Issue | Phases Affected | Details |
|---|-------|----------------|---------|
| 1 | ... | ... | ... |
---
## 3. Phase Ordering Assessment
### Current Order
{List phases in order with one-line description}
### Ordering Issues
| # | Issue | Current Order | Suggested Order | Rationale |
|---|-------|--------------|-----------------|-----------|
| 1 | ... | P12 after P11 | P12 before P11 | Loader should exist before orchestrator uses it |
---
## 4. Stale Artifacts
| # | Artifact | Type | Location | Action Needed |
|---|----------|------|----------|---------------|
| 1 | ... | Deprecated file | phase-17-unit-tests-update.md | Delete or archive |
---
## 5. "Done" Phase Verification
| Phase | Claim Checked | Verified? | Notes |
|-------|--------------|-----------|-------|
| P01 | Summary table created | Yes/No | ... |
| P11 | Orchestrator loads summaries | Yes/No | ... |
---
## 6. Risk Assessment (Pending Phases)
| Phase | Risk | Key Risk Factors | Recommendation |
|-------|------|-----------------|----------------|
| P12 | High | Depends on P11 which may have ordering issues | Review dependency direction |
| P14 | Medium | Modifies Edge Function with complex existing logic | Read function before implementing |
---
## 7. Recommendations (Priority Order)
1. **[Critical]** {Description} — Fix before continuing implementation
2. **[High]** {Description} — Fix before implementing affected phases
3. **[Medium]** {Description} — Fix for plan hygiene
4. **[Low]** {Description} — Nice to haveStep 10: Return Summary
After writing the report, return to the main agent:
- Report location — file path
- Overall assessment — one-line verdict
- Critical/High issues count — how many need attention before implementation continues
- Top 3 findings — the most impactful discoveries
- Recommendation — whether to proceed, fix first, or restructure
Resuming After Context Compact
If you notice context was compacted or you're unsure of current progress:
- Run
TaskListto see all tasks and their status - Find the
in_progresstask — that's where you were - Run
TaskGet {id}on that task to read full details - Continue from that task — don't restart from the beginning
Tasks persist across compacts. The task list is your source of truth for progress, not your memory.
Pattern for every work session:
TaskList → find in_progress or first pending → TaskGet → continue work → TaskUpdate (completed) → next taskConstraints
- Source files are read-only — do NOT modify plan files, phase files, or codebase files. The only file you write is the audit report at
{plan-folder}/reviews/planning/flow-audit.md - All phases — read every phase file, not just a sample
- Codebase grounding — verify at least 2-3 "Done" phase claims against actual code. Use file paths from the phases themselves (implementation steps list target files)
- No template checking — that's
/review-plan's job. Focus on flow, not format - Severity calibration — only mark issues as Critical if they would cause implementation failure. Use High for likely problems, Medium for hygiene issues, Low for suggestions
- Pipeline awareness —
/implementchecks the plan review verdict before building. Your audit report influences whether implementation proceeds or blocks
Troubleshooting
Too Many Phase Files
Symptom: Plan has 30+ phases and reading all of them is slow.
Fix: Read frontmatter + overview section only (first 60 lines) for initial pass. Deep-read only phases flagged as problematic during the dependency/flow analysis.
Plan Has No Dependency Metadata
Symptom: Phase files don't have dependencies: in frontmatter.
Fix: Infer dependencies from content — look for "requires Phase X", "uses table from Phase Y", "after Phase Z is complete" in the overview and prerequisites sections. Flag the missing metadata as a stale artifact.
"Done" Phase Can't Be Verified
Symptom: Phase claims to have modified a file but Glob/Grep can't confirm.
Fix: Don't assume the phase wasn't implemented — the file might have been refactored or renamed since. Check git history if available, or note as "Unverifiable" rather than "Not Done."
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.

