Extract reusable knowledge from the current session into a persistent skill. Use when you discover something non-obvious, create a workaround, or develop a multi-step workflow that future sessions would benefit from.
Extract non-obvious discoveries into reusable skills that persist across sessions.
Invoke /learn when you encounter:
Before creating a skill, answer these questions:
Continue only if YES to at least one question.
Search for related skills to avoid duplication:
# Check project skills
ls .Codex/skills/ 2>/dev/null
# Search for keywords
grep -r -i "KEYWORD" .Codex/skills/ 2>/dev/null
Outcomes:
Create the skill file at .Codex/skills/[skill-name]/SKILL.md:
---