From intent-layer
Interactive review of pending mistake reports from the learning loop. Walk through each report with the user, accepting/rejecting/discarding as appropriate.
npx claudepluginhub orban/intent-layer --plugin intent-layerThis skill uses the workspace's default tool permissions.
Interactively review pending mistake reports from the Intent Layer learning loop.
Creates new Angular apps using Angular CLI with flags for routing, SSR, SCSS, prefixes, and AI config. Follows best practices for modern TypeScript/Angular development. Use when starting Angular projects.
Generates Angular code and provides architectural guidance for projects, components, services, reactivity with signals, forms, dependency injection, routing, SSR, ARIA accessibility, animations, Tailwind styling, testing, and CLI tooling.
Executes ctx7 CLI to fetch up-to-date library documentation, manage AI coding skills (install/search/generate/remove/suggest), and configure Context7 MCP. Useful for current API refs, skill handling, or agent setup.
Interactively review pending mistake reports from the Intent Layer learning loop.
When agents make mistakes during development, skeleton reports are auto-captured in .intent-layer/mistakes/pending/. This skill helps you and the user review these reports conversationally, deciding which should become pitfalls in the Intent Layer.
Check for pending reports:
ls -la ${CLAUDE_PROJECT_DIR:-.}/.intent-layer/mistakes/pending/
find "${CLAUDE_PROJECT_DIR:-.}/.intent-layer/mistakes/pending" \
\( -name "MISTAKE-*.md" -o -name "SKELETON-*.md" \) \
-type f 2>/dev/null | sort
If no reports, inform the user there's nothing to review.
Read the report and present a summary:
---
**Report**: SKELETON-2026-01-23-1234.md
**Directory**: src/auth/
**Operation**: Edit on login.ts
**What happened**: Tool Edit failed - old_string not found
**Covering node**: src/auth/AGENTS.md
**Analysis**: [Your assessment - is this a real mistake or exploratory?]
---
Present options clearly:
What would you like to do with this report?
- Accept - This is a real gotcha, add as pitfall to AGENTS.md
- Reject - Not useful (I'll ask for a reason)
- Discard - Exploratory failure, not a real mistake
- Enrich - Add more context before deciding
- Skip - Review later
Run the integration script:
${CLAUDE_PLUGIN_ROOT}/lib/integrate_pitfall.sh "${CLAUDE_PROJECT_DIR:-.}/.intent-layer/mistakes/pending/<filename>"
This will:
integrated/Ask for rejection reason, then:
# Create rejected directory if needed
mkdir -p "${CLAUDE_PROJECT_DIR:-.}/.intent-layer/mistakes/rejected"
# Add rejection reason to file
echo -e "\n### Rejection\n**Reason**: <reason>\n**Date**: $(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> "<file>"
# Move to rejected
mv "<file>" "${CLAUDE_PROJECT_DIR:-.}/.intent-layer/mistakes/rejected/"
Simply delete the skeleton:
rm "<file>"
Confirm to user: "Discarded - this was an exploratory failure, not a real mistake."
Open the file for editing or help the user add:
Then return to Step 3.
Move to the next report. Track skipped files to mention at the end.
After reviewing all reports (or when user wants to stop):
## Review Summary
- **Accepted**: 2 (pitfalls added to AGENTS.md)
- **Rejected**: 1
- **Discarded**: 3 (exploratory failures)
- **Skipped**: 1 (still pending)
Remaining pending: 1 report(s)
Auto-created by PostToolUseFailure hook. Contains:
Common skeleton dispositions:
Created manually via capture_mistake.sh. Contains:
Common full report dispositions:
Agent: "I found 3 pending mistake reports. Would you like to review them now?"
User: "yes"
Agent:
Report: SKELETON-2026-01-23-4521.md
Directory: src/api/ Operation: Edit on routes.ts What happened: Edit failed - old_string not found Covering node: src/api/AGENTS.md
Analysis: This looks like the Edit tool couldn't find the exact string to replace. This could be:
- A typo in the old_string (exploratory)
- The file had been modified and the string changed (possible gotcha)
What would you like to do? (1) Accept (2) Reject (3) Discard (4) Enrich (5) Skip
User: "3 - it was just a typo"
Agent: "Discarded. Moving to next report..."
| Script | Purpose |
|---|---|
lib/integrate_pitfall.sh | Auto-add pitfall to covering AGENTS.md |
scripts/capture_mistake.sh | Manual capture (if needed) |
All paths: ${CLAUDE_PLUGIN_ROOT}/