How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-setup:compoundThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Principle:** First-time problem solving (30 min) becomes future lookup (minutes).
Principle: First-time problem solving (30 min) becomes future lookup (minutes).
/session-end)Prompt "Document what you learned?" when ANY of these apply:
Bug fix commits detected
Significant investigation work
New pattern introduced
User explicitly requests
/compound directlyReview to identify:
Sources to examine:
- Recent commits (git log --oneline -10)
- PROGRESS.md last entry
- Conversation history in this session
- Modified files (git diff --stat)
Extract:
Identify and document:
## Symptoms
- [Error message 1]
- [Unexpected behavior]
- [When/where it occurred]
Look for:
Document the journey:
## Investigation
### What I tried
1. [First attempt] — Result: [didn't work because...]
2. [Second attempt] — Result: [partially worked]
3. [Final approach] — Result: [success]
### Root Cause
[The actual underlying issue]
Include failures — they're valuable for future searchers.
Capture the working fix:
## Solution
\`\`\`[language]
// Working code
\`\`\`
**Steps:**
1. [Step 1]
2. [Step 2]
Determine the best category:
| Category | Use When |
|---|---|
build-errors/ | TypeScript, compilation, bundler issues |
test-failures/ | Test suite problems |
runtime-errors/ | Runtime exceptions, crashes |
performance-issues/ | Speed, memory optimizations |
integration-issues/ | API, database, external services |
patterns/ | Reusable architectural patterns |
Ask or determine:
Project-local (solutions/):
Global (~/.claude/solutions/[tech]/):
Create solution document with:
# [Brief Problem Description]
> **Category:** [category]
> **Created:** [YYYY-MM-DD]
> **Project:** [project-name or "universal"]
> **Keywords:** [searchable, comma, separated]
## Symptoms
[From Step 2]
## Investigation
[From Step 3]
## Solution
[From Step 4]
## Prevention
- [ ] Add test case
- [ ] Update CLAUDE.md
- [ ] Create lint rule (if applicable)
## Related
- [Links to docs, issues, etc.]
Save to appropriate location:
# Project-local
solutions/[category]/[slug].md
# Global
~/.claude/solutions/[tech]/[slug].md
Filename format: [topic]-[specific-issue].md
Session: Fixed TypeScript path alias issue that broke imports
Step 1: Analyze
- Commits: "fix: resolve path alias in tsconfig"
- Modified: tsconfig.json, vite.config.ts
Step 2: Extract Problem
- Error: "Cannot find module '@/components/Button'"
- Symptom: Imports worked in IDE but failed at build
Step 3: Extract Investigation
- Tried: Adding paths to tsconfig (didn't fix build)
- Tried: vite-tsconfig-paths plugin (worked!)
- Root cause: Vite doesn't read tsconfig paths by default
Step 4: Extract Solution
- Install vite-tsconfig-paths
- Add to vite.config.ts plugins
Step 5: Categorize
- Category: build-errors
Step 6: Scope
- Global (applies to any Vite + TypeScript project)
Step 7: Generate
- Create document with all sections
Step 8: Write
- Save to: ~/.claude/solutions/typescript/vite-path-aliases.md
/session-endAfter verification steps, check for compound triggers:
/session-end
|-- Verify code state
|-- Archive old sessions
|-- Update PROGRESS.md
|-- [Check compound triggers]
| +-- If triggered -> "Document what you learned? (y/n)"
| +-- If yes -> Run compound capture
+-- Create commit
/session-startSearch solutions library before beginning work:
/session-start
|-- Check environment
|-- [Search solutions for current task keywords]
| +-- If matches found -> "Relevant prior solutions: [list]"
|-- Read recent progress
+-- Find current task
When running interactively, use AskUserQuestion:
Q1: "Capture this learning?"
Q2 (if yes): "Which category?"
Before saving, verify:
Protocol version: 1.0 | Created: 2026-02-01
npx claudepluginhub matthewod11-stack/claude-setup --plugin claude-setupCaptures verified solutions to bugs and issues as searchable Markdown docs in .claude/solutions/. Triggers after fixes, 'that worked', or /phx:review; searches duplicates first.
Capture knowledge — solutions, context docs, learnings, and principles. Use after fixing non-trivial bugs, creating context for AI, or discovering patterns worth preserving. Triggers: compound, document solution, capture fix, save solution, knowledge compound, document this, save this fix, context, create context, update context, build context, learn, save learning, remember this.
Coordinates subagents to document recently solved problems into searchable YAML-frontmatter Markdown files in docs/solutions/ while context is fresh.