
Learn Rule
This captures mistakes and corrections as structured rules that persist across sessions. When you say "remember this" or "don't do that again" after catching an error, it prompts you to formalize the lesson with a category, what went wrong, and how to fix it. The format is deliberately terse: one line rules like "Confirm full path when multiple files share a name" instead of vague reminders. You can scope rules to specific wikis to avoid cross-project pollution. Categories cover navigation, editing, testing, git, and architecture mistakes. It always waits for your approval before saving. Honestly, the value depends entirely on whether you'll actually reference these rules later, but the structure makes that more likely than freeform notes.
- skills.sh installs
- 194
- GitHub stars
- 2.9K
- last updated
- Jun 8, 2026
Install
$ npx -y skills add rohitg00/pro-workflow --skill learn-rule --agent claude-codeInstalls into .claude/skills of the current project.
Files
Learn Rule
Capture a lesson from the current session into permanent memory.
Trigger
Use when the user says "remember this", "add to rules", "don't do that again", or after a mistake is identified.
Workflow
- Identify the lesson — what mistake was made? What should happen instead?
- Format the rule with full context.
- Propose the addition and wait for user approval.
- After approval, persist to LEARNED section or project memory.
Format
[LEARN] Category: One-line rule
Mistake: What went wrong
Correction: How it was fixed
Wiki-scoped rules
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.
Categories
Sponsors
Details
- Repository
- github.com/rohitg00/pro-workflow
- Categories
- Documentation, Automation & Workflows
- First seen
- Jun 11, 2026
More from rohitg00/pro-workflow
All 35- Session Handoff191
- Smart Commit190
- Compact Guard189
- Insights186
- Replay Learnings184
- Parallel Worktrees180
- Llm Council175
- Cost Tracker172
- Context Engineering171
- Mcp Audit169
- Orchestrate167
- Thoroughness Scoring166
- Auto Setup165
- File Watcher165
- Safe Mode164
- Plan Interrogate163
- Batch Orchestration162
- Bug Capture162
- Agent Teams161
- Permission Tuner161
- Sprint Status159
- Llm Gate158
- Wiki Query157
- Wiki Builder156