From pro-workflow
Captures corrections and lessons as persistent learning rules with category, mistake, and correction. Activates after mistakes or when user says 'remember this', 'don't forget', or 'learn from this'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pro-workflow:learn-ruleThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Capture a lesson from the current session into permanent memory.
Capture a lesson from the current session into permanent memory.
Use when the user says "remember this", "add to rules", "don't do that again", or after a mistake is identified.
[LEARN] Category: One-line rule
Mistake: What went wrong
Correction: How it was fixed
Append Wiki: <slug> to bind the rule to a single pro-workflow wiki. The rule loads only when that wiki is in scope, avoiding cross-project pollution:
[LEARN] Editing: Cite a sources.md row before adding any wiki claim.
Wiki: agent-memory
The capture hook auto-detects Wiki: <slug> and links the learning to that wiki via learnings_wiki.
| Category | Examples |
|---|---|
| Navigation | File paths, finding code, wrong file edited |
| Editing | Code changes, patterns, wrong approach |
| Testing | Test approaches, coverage gaps, flaky tests |
| Git | Commits, branches, merge issues |
| Quality | Lint, types, style violations |
| Context | When to clarify, missing requirements |
| Architecture | Design decisions, wrong abstractions |
| Performance | Optimization, O(n^2) loops, memory |
Recent mistake: Edited wrong utils.ts file
[LEARN] Navigation: Confirm full path when multiple files share a name.
Add to LEARNED section? (y/n)
[LEARN] rule with categorynpx claudepluginhub rohitg00/pro-workflow --plugin pro-workflowCaptures lessons from code reviews and error corrections as persistent rules. Activates on /evolve or when user says 'we should remember this'.
Extracts reusable rules from developer corrections during a coding session and persists them to CLAUDE.md or memory for future sessions.
Captures agent mistakes, corrections, and discovered gotchas so they are not repeated. Use when: (1) a command or operation fails unexpectedly, (2) the user corrects the agent, (3) the agent discovers non-obvious behavior through debugging, (4) an API or tool behaves differently than expected, (5) a better approach is found for a recurring task. Also searches past learnings before starting tasks to avoid known pitfalls. Activate alongside the memory skill — they share sage-memory but serve different purposes (memory = codebase knowledge, self-learning = agent mistakes and gotchas). Also trigger on "sage review" or "review learnings" to curate and improve the learning database.