learn

Extract reusable skills from current sessions and save them to ~/.codex/skills/learned/ with SKILL.md frontmatter.

24|5|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/Luohaothu/everything-codex --skill learn-luohaothu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: learn
Source: https://github.com/Luohaothu/everything-codex/tree/main/skills/learn
Command: npx skills add https://github.com/Luohaothu/everything-codex --skill learn-luohaothu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyze sessions to identify recurring patterns and convert them into reusable skills for future use, reducing repetitive work.

Core Features & Use Cases

  • Analyze ongoing sessions to surface patterns worth encapsulating as skills.
  • Save identified patterns under ~/.codex/skills/learned/ with a clear, versioned naming scheme.
  • Use cases include improving debugging efficiency, configuration best practices, and workflow optimization.

Quick Start

Run /learn after solving a non-trivial problem to extract patterns and save them as learned skills.

Frequently Asked Questions about learn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract reusable patterns from a debugging session?

To extract reusable patterns from a debugging session, run /learn to analyze the current context and save identified solutions as formal skills. It surfaces recurring workflows and stores them as structured artifacts for future knowledge reuse.

What is the best way to automate workflow optimization from recurring tasks?

Automating workflow optimization from recurring tasks is done by capturing session patterns. This skill analyzes your current work, identifies valuable automation patterns, and converts them into reusable skills to reduce repetitive configuration and debugging efforts.

How do I save extracted session patterns as structured skill files?

Extracted session patterns are saved as structured skill files under the ~/.codex/skills/learned/ directory. The generated artifacts automatically meet specific storage location, versioned naming scheme, and SKILL.md frontmatter requirements.

Does session analysis work for configuration best practices and workflow automation?

Session analysis works for configuration best practices and workflow automation by identifying recurring problems in these contexts. It formalizes the applied solutions into learned skills, ensuring the extracted knowledge is reusable across similar future scenarios.

When should I not use pattern extraction for knowledge reuse?

You should not use pattern extraction for trivial or one-off problems that are unlikely to recur. The extraction is designed for non-trivial debugging, configuration, and workflow automation scenarios where capturing reusable patterns provides ongoing value.