phrazzld

codify-learning

2
1
# Install this skill:
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)

  1. Code β€” Reusable function, hook, utility
  2. Test β€” Regression test capturing the bug pattern
  3. Skill β€” Knowledge Claude applies automatically
  4. Command β€” Workflow automation
  5. Agent β€” Specialized reviewer with enforcement rules
  6. Documentation β€” ADR, runbook, or inline comment

What This Does

  1. Reflect β€” What did we learn? What pattern emerged?
  2. Classify β€” Which artifact type best captures this?
  3. Create β€” Write the artifact
  4. 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

  1. Review session: What problems did we solve?
  2. Identify repeatable pattern or insight
  3. Delegate artifact creation to Codex
  4. Review and refine Codex's output
  5. 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.