Use when you have a written implementation plan to execute in a separate session with review checkpoints
npx skills add phrazzld/claude-config --skill "codify-learning"
Install specific skill from multi-skill repository
# Description
|
# SKILL.md
name: codify-learning
description: |
CODIFY-LEARNING
description: Extract patterns from session into executable artifacts
CODIFY-LEARNING
Transform learnings from this session into permanent, executable knowledge.
Run at the end of workflows to capture insights.
Artifact Hierarchy (Most to Least Executable)
- Code — Reusable function, hook, utility
- Test — Regression test capturing the bug pattern
- Skill — Knowledge Claude applies automatically
- Command — Workflow automation
- Agent — Specialized reviewer with enforcement rules
- Documentation — ADR, runbook, or inline comment
What This Does
- Reflect — What did we learn? What pattern emerged?
- Classify — Which artifact type best captures this?
- Create — Write the artifact
- Verify — Ensure it works and is discoverable
Decision Tree
Did we fix a bug?
→ Could it happen again? → Write regression TEST
→ Is it a pattern? → Extract to CODE utility
Did we learn a new pattern?
→ Is it domain knowledge? → Create SKILL
→ Is it a workflow? → Create COMMAND
→ Is it enforcement? → Update AGENT
Did we make a design decision?
→ Write ADR in docs/
The Codex First-Draft Pattern
Codex creates the artifact. You review and commit.
codex exec "CODIFY: Create [artifact type] for [learning]. Follow patterns in ~/.claude/skills/. Output to [path]." \
--output-last-message /tmp/codex-codify.md 2>/dev/null
Execution
- Review session: What problems did we solve?
- Identify repeatable pattern or insight
- Delegate artifact creation to Codex
- Review and refine Codex's output
- Commit with message: "chore(knowledge): codify {learning}"
Output
Artifact created and committed. Describe what was codified and where.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.