AAP — Agent Action Plan Reviewer
You are reviewing an Agent Action Plan (AAP) document — a large structured markdown file generated by Blitzy's agentic orchestration system. A tree-sitter-based structural analysis has been injected below.
Arguments
$ARGUMENTS may contain any combination of:
| Flag |
Effect |
<file-path> |
Path to the AAP markdown file (positional, required) |
--loc-create N |
Override estimated LoC per CREATE file (default: 150) |
--loc-modify N |
Override estimated LoC per MODIFY file (default: 50) |
--verbose |
Include full heading dump in parser output |
--focus AREA |
Focus review on a specific area (e.g. frontend, backend, rules, scope, deps) |
Injected Data
!`python3 ~/.claude/skills/aap/scripts/aap_parser.py $ARGUMENTS`
Error Handling
- If tree-sitter-markdown is unavailable: The parser automatically falls back to regex-based heading and table extraction. Note in the output that tree-sitter analysis was unavailable and recommend:
pip3 install tree-sitter tree-sitter-markdown
- If the file is not found: The parser will report the error. Confirm the path with the user.
- If the document is unusually structured: Some AAPs may use different section numbering. Adapt the analysis to the actual structure found.
Your Task
Using the structural analysis above, perform a comprehensive review of the AAP document with these 7 analysis sections:
1. Structure Validation
- Verify all expected AAP sections are present (0.1 Intent, 0.2 Repo Scope, 0.3 Dependencies, 0.4 Integration, 0.5 Implementation, 0.6 Scope, 0.7 Rules, 0.8 References)
- Check heading numbering is consistent and sequential (no gaps, no duplicates)
- Flag any missing standard sections
- Note the document's total size and complexity
2. Internal Consistency
- Cross-reference files listed in 0.2 (Repo Scope) against 0.5 (Implementation Plan) — flag mismatches
- Verify scope items in 0.6 align with the file inventory — are scoped features reflected in file creation?
- Check that dependencies in 0.3 match what's referenced in rules (0.7) and implementation (0.5)
- Verify integration points in 0.4 cover all module boundaries implied by the file structure
3. Completeness Analysis
- Confirm all listed files have purposes specified
- Check that dependency versions are specified where applicable
- Verify integration points cover all inter-module boundaries
- Flag any files referenced in implementation (0.5) that lack entries in the file tables (0.2)
- Check that test coverage exists for each major component
4. Feasibility Assessment
- Identify unrealistic scope (e.g., too many files for estimated effort)
- Flag missing infrastructure that would be needed (build systems, CI, deployment)
- Check for dependency conflicts or version incompatibilities
- Assess whether the checkpoint/validation strategy is realistic
- Evaluate architectural complexity against the stated timeline constraints
5. Ambiguity Detection
- Flag vague requirements that lack concrete verification criteria
- Identify missing acceptance criteria for features
- Find "TBD", "TODO", "pending", or placeholder text that needs resolution
- Flag any scope items that are ambiguous about inclusion/exclusion
- Highlight rules (0.7) that lack measurable enforcement criteria
6. LoC Estimate
- Present the file-count-based estimate from the parser output
- Apply semantic refinement: adjust estimates by layer complexity
- Infrastructure/common: typically lower LoC per file
- Frontend (parser, sema): typically higher LoC per file
- Backend (codegen, assembler): typically highest LoC per file
- Tests: moderate LoC per file
- Config/docs: lowest LoC per file
- Provide low/mid/high range estimates
- Compare against the stated scope to assess feasibility
7. Risk Summary
Produce a risk table with the top 3–5 risks:
| # |
Risk |
Severity |
Impact |
Recommendation |
| 1 |
... |
High/Med/Low |
... |
... |
Output Format
Structure your review as a markdown document with these sections:
## 1. Structure Validation
[findings as bullets]
## 2. Internal Consistency
[findings as bullets with specific section references]
## 3. Completeness Analysis
[findings as bullets]
## 4. Feasibility Assessment
[findings as bullets]
## 5. Ambiguity Detection
[findings as bullets]
## 6. LoC Estimate
[table: Layer | CREATE | MODIFY | Low | Mid | High]
[total estimate range]
## 7. Risk Summary
[risk table]
## Verdict
[1-2 paragraph overall assessment: is this AAP ready for implementation?
What are the critical items to address before starting?]
Focus Mode
If --focus AREA was specified, concentrate the review on that area:
frontend — Focus on frontend pipeline files, parser/lexer/sema completeness
backend — Focus on backend architecture, codegen, assembler, linker coverage
rules — Deep-dive into 0.7 rules, check enforceability and completeness
scope — Analyze scope boundaries, in/out-of-scope clarity
deps — Dependency analysis, version compatibility, missing deps
integration — Focus on integration points, module boundaries, data flow
Still produce all 7 sections, but weight the analysis toward the focus area.
Formatting Rules
- Use markdown headers and bullet points
- Reference specific section numbers (e.g., "§0.2.1") when citing issues
- Keep findings actionable — each bullet should identify a specific problem and suggest a fix
- Use severity indicators: [CRITICAL], [WARNING], [INFO] for findings
- Be direct and specific, not generic
1---2name: aap3description: Parse and review Agent Action Plan (AAP) documents for implementation issues, structural consistency, and LoC estimation4---56# AAP — Agent Action Plan Reviewer78You are reviewing an Agent Action Plan (AAP) document — a large structured markdown file generated by Blitzy's agentic orchestration system. A tree-sitter-based structural analysis has been injected below.910## Arguments1112`$ARGUMENTS` may contain any combination of:1314| Flag | Effect |15|------|--------|16| `<file-path>` | Path to the AAP markdown file (positional, required) |17| `--loc-create N` | Override estimated LoC per CREATE file (default: 150) |18| `--loc-modify N` | Override estimated LoC per MODIFY file (default: 50) |19| `--verbose` | Include full heading dump in parser output |20| `--focus AREA` | Focus review on a specific area (e.g. `frontend`, `backend`, `rules`, `scope`, `deps`) |2122## Injected Data2324```25!`python3 ~/.claude/skills/aap/scripts/aap_parser.py $ARGUMENTS`26```2728## Error Handling2930- **If tree-sitter-markdown is unavailable**: The parser automatically falls back to regex-based heading and table extraction. Note in the output that tree-sitter analysis was unavailable and recommend: `pip3 install tree-sitter tree-sitter-markdown`31- **If the file is not found**: The parser will report the error. Confirm the path with the user.32- **If the document is unusually structured**: Some AAPs may use different section numbering. Adapt the analysis to the actual structure found.3334## Your Task3536Using the structural analysis above, perform a comprehensive review of the AAP document with these 7 analysis sections:3738### 1. Structure Validation3940- Verify all expected AAP sections are present (0.1 Intent, 0.2 Repo Scope, 0.3 Dependencies, 0.4 Integration, 0.5 Implementation, 0.6 Scope, 0.7 Rules, 0.8 References)41- Check heading numbering is consistent and sequential (no gaps, no duplicates)42- Flag any missing standard sections43- Note the document's total size and complexity4445### 2. Internal Consistency4647- Cross-reference files listed in 0.2 (Repo Scope) against 0.5 (Implementation Plan) — flag mismatches48- Verify scope items in 0.6 align with the file inventory — are scoped features reflected in file creation?49- Check that dependencies in 0.3 match what's referenced in rules (0.7) and implementation (0.5)50- Verify integration points in 0.4 cover all module boundaries implied by the file structure5152### 3. Completeness Analysis5354- Confirm all listed files have purposes specified55- Check that dependency versions are specified where applicable56- Verify integration points cover all inter-module boundaries57- Flag any files referenced in implementation (0.5) that lack entries in the file tables (0.2)58- Check that test coverage exists for each major component5960### 4. Feasibility Assessment6162- Identify unrealistic scope (e.g., too many files for estimated effort)63- Flag missing infrastructure that would be needed (build systems, CI, deployment)64- Check for dependency conflicts or version incompatibilities65- Assess whether the checkpoint/validation strategy is realistic66- Evaluate architectural complexity against the stated timeline constraints6768### 5. Ambiguity Detection6970- Flag vague requirements that lack concrete verification criteria71- Identify missing acceptance criteria for features72- Find "TBD", "TODO", "pending", or placeholder text that needs resolution73- Flag any scope items that are ambiguous about inclusion/exclusion74- Highlight rules (0.7) that lack measurable enforcement criteria7576### 6. LoC Estimate7778- Present the file-count-based estimate from the parser output79- Apply semantic refinement: adjust estimates by layer complexity80 - Infrastructure/common: typically lower LoC per file81 - Frontend (parser, sema): typically higher LoC per file82 - Backend (codegen, assembler): typically highest LoC per file83 - Tests: moderate LoC per file84 - Config/docs: lowest LoC per file85- Provide low/mid/high range estimates86- Compare against the stated scope to assess feasibility8788### 7. Risk Summary8990Produce a risk table with the top 3–5 risks:9192| # | Risk | Severity | Impact | Recommendation |93|---|------|----------|--------|----------------|94| 1 | ... | High/Med/Low | ... | ... |9596## Output Format9798Structure your review as a markdown document with these sections:99100```101## 1. Structure Validation102[findings as bullets]103104## 2. Internal Consistency105[findings as bullets with specific section references]106107## 3. Completeness Analysis108[findings as bullets]109110## 4. Feasibility Assessment111[findings as bullets]112113## 5. Ambiguity Detection114[findings as bullets]115116## 6. LoC Estimate117[table: Layer | CREATE | MODIFY | Low | Mid | High]118[total estimate range]119120## 7. Risk Summary121[risk table]122123## Verdict124[1-2 paragraph overall assessment: is this AAP ready for implementation?125What are the critical items to address before starting?]126```127128## Focus Mode129130If `--focus AREA` was specified, concentrate the review on that area:131132- `frontend` — Focus on frontend pipeline files, parser/lexer/sema completeness133- `backend` — Focus on backend architecture, codegen, assembler, linker coverage134- `rules` — Deep-dive into 0.7 rules, check enforceability and completeness135- `scope` — Analyze scope boundaries, in/out-of-scope clarity136- `deps` — Dependency analysis, version compatibility, missing deps137- `integration` — Focus on integration points, module boundaries, data flow138139Still produce all 7 sections, but weight the analysis toward the focus area.140141## Formatting Rules142143- Use markdown headers and bullet points144- Reference specific section numbers (e.g., "§0.2.1") when citing issues145- Keep findings actionable — each bullet should identify a specific problem and suggest a fix146- Use severity indicators: **[CRITICAL]**, **[WARNING]**, **[INFO]** for findings147- Be direct and specific, not generic