learn

Extracts lessons from agent session transcripts into instruction files and skill proposals.

2|Updated May 13, 2026
One-click install
npx skills add https://github.com/curtisgalloway/public-skills --skill learn-curtisgalloway
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: learn
Source: https://github.com/curtisgalloway/public-skills/tree/main/plugins/agent-workflow/skills/learn
Command: npx skills add https://github.com/curtisgalloway/public-skills --skill learn-curtisgalloway

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Agent sessions repeatedly hit the same failed commands, wrong tool arguments, and user corrections, but those lessons disappear when the session ends. This Skill reviews session transcripts and history to convert mistakes into durable, reviewed instructions and new skills that future sessions will actually load. ## Core Features & Use Cases - Quick mode: Scans the current session transcript for failed-then-fixed commands, user corrections, and environment surprises, then proposes additions to AGENTS.md or CLAUDE.md with citations. - Full mode (/learn --full): Analyzes 30 days of session data, clusters recurring task patterns, proposes new skills for your skills repo, and flags friction in existing skills. - Review-first workflow: Every change is presented as a diff or a PROPOSED_SKILLS.md document and applied only after explicit user approval; nothing is written silently. - Use Case: After a session where the agent repeatedly fumbled shell quoting on macOS, run /learn to get a proposed global instruction entry covering BSD vs GNU flag differences, cited to the exact transcript moment. ## Quick Start Ask the agent to run /learn to review this session and propose instruction file additions for anything that went wrong.

Frequently Asked Questions about learn

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

FAQPage Schema
How do I extract learnings from a Claude Code session?▼

Invoke /learn to run a quick scan of the current session transcript. The skill delegates analysis to a sub-agent, which identifies failed commands, corrections, and environment surprises, then proposes cited additions to your instruction files for approval.

What is the difference between /learn and /learn --full?▼

Quick mode reviews only the current session and proposes instruction-file edits. Full mode adds a 30-day analysis of session history, clusters recurring task patterns into new-skill proposals, and flags friction in existing skills.

Does the learn skill write to AGENTS.md or CLAUDE.md automatically?▼

No. The skill never writes silently. It presents every proposed change as a diff grouped by target file with transcript citations, and applies only the items the user explicitly approves.

How does the learn skill work with Claude Code auto-memory?▼

Auto-memory captures corrections privately per user and project, while /learn is the promotion path into versioned, shared instruction files. Lessons relevant only to one machine stay in memory; lessons any teammate or agent needs get proposed for AGENTS.md or CLAUDE.md.

When does full mode propose creating a new skill?▼

A new skill is proposed only when a task pattern appears three or more times in the 30-day window, follows a repeatable procedure no existing skill covers, and would save meaningful setup time. One-off tasks are explicitly excluded.