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.