skills/capture-learning/SKILL.md
Capture comprehensive problem-solving narratives from work sessions, documenting the journey of discovery
npx skillsauth add skinnyandbald/fish-skills capture-learningInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Capture comprehensive problem-solving narratives from our work sessions, documenting not just the solution but the entire journey of discovery.
This command captures the full narrative of problem-solving: what we thought was true, what we discovered was actually true, the troubleshooting journey, and the lessons learned. This narrative format makes it easy to harvest insights for updating documentation, commands, or pipelines.
# Interactive mode - guides you through the narrative
bun ~/.claude/skills/capture-learning/scripts/capture-learning.ts
# Direct mode with full narrative (all 6 arguments)
bun ~/.claude/skills/capture-learning/scripts/capture-learning.ts "problem" "initial assumption" "actual reality" "troubleshooting steps" "solution" "key takeaway"
When you say any of these, I'll capture our learning:
The command captures a complete story with these elements:
~/.claude/learnings/global-patterns.md for cross-project knowledgeThis narrative approach helps us:
Files are saved to: <project-root>/.claude/learnings/YYYY-MM-DD-problem-description.md
If not inside a git repository, falls back to ~/.claude/learnings/.
Each file contains:
Claude Code doesn't automatically read the learnings directory. Add this to your project's CLAUDE.md so Claude checks them each session:
## Learnings
Before starting work, check `.claude/learnings/` for relevant past
problem-solving narratives. Apply those lessons instead of repeating
mistakes.
**IMPORTANT:** After solving any non-trivial debugging session or
discovering something that contradicts an initial assumption, invoke
`/capture-learning` before moving on. Do not skip this step.
The TypeScript implementation is in scripts/capture-learning.ts.
The command:
<project>/.claude/learnings/development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
tools
Verify worktree plugin patches are intact after plugin updates. Checks compound-engineering and superpowers skills for Claude Code launch instructions.
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
Reviews the feature you just built and adds missing test coverage. Focuses on behavior that matters — not coverage metrics. Use after completing a feature to identify untested code paths, edge cases, and risk areas.