General
codify-learning - Claude MCP Skill
Transform session learnings into permanent, executable improvements. Invoke at end of any session that involved debugging, fixing, or learning something. Default: Codify everything. Exception: Justify not codifying.
SEO Guide: Enhance your AI agent with the codify-learning tool. This Model Context Protocol (MCP) server allows Claude Desktop and other LLMs to transform session learnings into permanent, executable improvements. invoke at end of any session th... Download and configure this skill to unlock new capabilities for your AI workflow.
Documentation
SKILL.md# /codify-learning
Transform ephemeral learnings into durable system improvements.
## Philosophy
**Default codify, justify exceptions.** Every correction, feedback, or "I should have known" moment represents a gap in the system. Codification closes that gap.
The "3+ occurrences" threshold is a myth - we have no cross-session memory. If you learned something, codify it.
## Process
### 1. Identify Learnings
Scan the session for:
- Errors encountered and how they were fixed
- PR feedback received
- Debugging insights ("the real problem was...")
- Workflow improvements discovered
- Patterns that should be enforced
### 2. Brainstorm Codification Targets
For each learning, consider:
- **Hook** - Should this be guaranteed/blocked? (most deterministic)
- **Lint rule** - Can a lint rule catch this at edit time? ā invoke `/guardrail`
- **Agent** - Should a reviewer catch this pattern?
- **Skill** - Is this a reusable workflow?
- **CLAUDE.md** - Is this philosophy/convention?
Choose the target that provides the most leverage. Hooks > Lint rules > Agents > Skills > CLAUDE.md for enforcement. Skills > CLAUDE.md for workflows.
Lint rules are ideal for: import boundaries, naming conventions, deprecated API usage, auth enforcement, architectural layering violations. If the pattern can be expressed as "this code shape should never/always appear," it's a lint rule.
### 3. Implement
For each codification:
1. Read the target file
2. Add the learning in appropriate format
3. Wire up if needed (hooks need settings.json entry)
4. Verify no duplication
### 4. Report
```
CODIFIED:
- [learning] ā [file]: [summary of change]
NOT CODIFIED:
- [learning]: [justification - must be specific]
```
## Anti-Patterns
ā "No patterns detected" - One occurrence is enough
ā "First time seeing this" - No cross-session memory exists
ā "Seems too minor" - Minor issues compound into major friction
ā "Not sure where to put it" - Brainstorm, ask, don't skip
ā "Already obvious" - If it wasn't codified, the system didn't know it
See CLAUDE.md "Continuous Learning Philosophy" for valid exceptions and the full codification philosophy.
## See Also
`/done` ā Full session retrospective (subsumes codification as one step in a broader process: went-well, friction, bugs, codify, report).Signals
Information
- Repository
- phrazzld/claude-config
- Author
- phrazzld
- Last Sync
- 3/2/2026
- Repo Updated
- 3/1/2026
- Created
- 1/24/2026
Reviews (0)
No reviews yet. Be the first to review this skill!
Related Skills
upgrade-nodejs
Upgrading Bun's Self-Reported Node.js Version
cursorrules
CrewAI Development Rules
cn-check
Install and run the Continue CLI (`cn`) to execute AI agent checks on local code changes. Use when asked to "run checks", "lint with AI", "review my changes with cn", or set up Continue CI locally.
CLAUDE
CLAUDE.md
Related Guides
Bear Notes Claude Skill: Your AI-Powered Note-Taking Assistant
Learn how to use the bear-notes Claude skill. Complete guide with installation instructions and examples.
Mastering tmux with Claude: A Complete Guide to the tmux Claude Skill
Learn how to use the tmux Claude skill. Complete guide with installation instructions and examples.
OpenAI Whisper API Claude Skill: Complete Guide to AI-Powered Audio Transcription
Learn how to use the openai-whisper-api Claude skill. Complete guide with installation instructions and examples.