From intent-layer
End-of-cycle learning capture and triage. Run after completing a feature, fixing a bug, or finishing any significant work. Reviews pending learnings, analyzes conversation for undocumented insights, and integrates into the Intent Layer with appropriate scope (global workflow vs local code).
npx claudepluginhub orban/intent-layer --plugin intent-layerThis skill uses the workspace's default tool permissions.
> **TL;DR**: Capture and triage learnings at the end of a work session. Runs conversation analysis, surfaces candidates, and integrates with proper scope routing.
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.
TL;DR: Capture and triage learnings at the end of a work session. Runs conversation analysis, surfaces candidates, and integrates with proper scope routing.
Run /intent-layer-compound after:
Before prompting for manual capture, analyze the conversation for learning signals.
Scan for these patterns:
| Pattern | Example Phrases | Learning Type |
|---|---|---|
| User corrections | "actually...", "no, you should...", "that's wrong" | pitfall |
| Discoveries | "interesting...", "I didn't know...", "turns out..." | insight |
| Better approaches | "a better way is...", "instead, try..." | pattern |
| Unexpected behaviors | "but it returned...", "weird, it..." | pitfall |
| Missing checks | "should have verified...", "forgot to check..." | check |
For each candidate found:
Example output:
Found 3 potential learnings in this conversation:
1. [pitfall] User corrected assumption about API response format
Context: "Actually, the API returns a list when there are multiple results..."
Affected: src/api/
2. [insight] Discovery about caching behavior
Context: "Turns out the cache invalidates on every deploy..."
Affected: (workflow-level)
3. [check] Missing verification identified
Context: "Should have verified the schema before migration..."
Affected: src/db/
After AI-surfaced candidates are reviewed, prompt for additional learnings:
Prompt sequence:
For each "yes" response:
prompts/scan.md to extract detailscapture_mistake.sh with pre-filled fieldsAfter candidates are confirmed, integrate each one directly using learn.sh:
For each confirmed candidate:
${CLAUDE_PLUGIN_ROOT}/scripts/learn.sh \
--project [PROJECT_PATH] \
--path [AFFECTED_PATH] \
--type [pitfall|check|pattern|insight] \
--title "[TITLE]" \
--detail "[DETAIL]"
learn.sh handles deduplication automatically — if the learning already exists (≥60% word overlap), it exits with code 2 and reports "duplicate skipped".
Report outcomes to the user:
Show summary of what was integrated and where when all candidates are processed.
| Script | Purpose |
|---|---|
learn.sh | Direct-write learning to AGENTS.md (dedup-gated) |
capture_mistake.sh | Create learning report for pending queue (swarm use) |
| Prompt | Purpose |
|---|---|
prompts/scan.md | Conversation analysis for learning signals |
/intent-layer-compound
Or with explicit project path:
/intent-layer-compound /path/to/project
$ /intent-layer-compound
=== Intent Layer Compound Learning ===
[Layer 1: Conversation Scan]
Analyzing conversation for potential learnings...
Found 2 potential learnings:
1. [pitfall] API response format varies
"Actually, the API can return either a dict or a list..."
Path: src/api/
Is this worth documenting? [y/n/edit]: y
2. [insight] Deploy triggers cache invalidation
"Turns out the cache clears on every deploy..."
Path: (workflow-level)
Is this worth documenting? [y/n/edit]: y
[Layer 2: Additional Prompts]
Any other corrections you made to my assumptions? [y/n]: n
Any unexpected behaviors discovered? [y/n]: n
Any better approaches figured out? [y/n]: n
[Layer 3: Direct Integration]
Integrating 2 confirmed learnings...
1. ✓ pitfall added to ## Pitfalls in src/api/AGENTS.md
2. ✓ insight added to ## Context in CLAUDE.md
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Integrated: 2
Duplicates: 0
Errors: 0
Compound learning complete!
The compound skill routes learnings to the appropriate location:
Learning captured
│
└─── Is it workflow-level? (insight, cross-cutting)
│
┌────────┴────────┐
│ │
Yes No
│ │
▼ ▼
Root CLAUDE.md Covering AGENTS.md
(global scope) (local scope)
Use for:
Use for:
The compound skill works with the existing learning loop hooks:
Run /intent-layer-compound to process any auto-captured learnings alongside manual capture.