Runs scripts to scan your current session for repeatable patterns and turn them into new rules or skills.

Install

mkdir -p .claude/skills/learn-jubakitiashvili && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14695" && unzip -o skill.zip -d .claude/skills/learn-jubakitiashvili && rm skill.zip

Installs to .claude/skills/learn-jubakitiashvili

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Manual skill generation — runs continuous-learning-v2 scripts to extract patterns from session
94 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Scan recent tool calls and file changes
  • Identify patterns like repeated fixes or style corrections
  • Compare identified patterns against existing rules and skills
  • Generate candidates for new skills or rule amendments
  • Validate new content for valid frontmatter and conflicts

How it works

This skill runs a script to analyze the current coding session, extracting reusable patterns from tool calls and file changes, then generates candidates for new skills or rule amendments.

Inputs & outputs

You give it
Current coding session with tool calls and file changes
You get back
List of potential learnings for new skills or rule amendments

When to use learn

  • Generate a skill from repetitive tasks
  • Extract coding patterns into rules
  • Validate new skill content

About this skill

/learn — Generate Skills from Session

You are executing the /learn command. This is script-driven — it runs the continuous-learning-v2 pipeline directly.

What This Does

Analyzes the current coding session to extract reusable patterns and save them as skills or rule amendments for future sessions. This is the manual trigger for what PostToolUse hooks do automatically.

Process

  1. Run the extraction script:
node .claude/hooks/scripts/extract-session-patterns.js

This script:

  • Scans recent tool calls and file changes
  • Identifies patterns (repeated fixes, style corrections, common architectures)
  • Compares against existing rules and skills
  • Generates candidates for new content
  1. Review candidates: The script outputs a list of potential learnings:
[PATTERN] Zustand store always uses immer middleware → Suggest rule amendment
[PATTERN] All screens use SafeAreaView wrapper → Suggest coding-style rule
[PATTERN] API calls always retry 3 times → Suggest pattern rule
[SKILL] Complex form validation flow → Suggest skill creation
  1. Approve or reject each candidate: For each candidate, decide:
  • Approve → Script writes to .claude/rules/ or .claude/skills/
  • Reject → Skip this pattern
  • Edit → Modify before saving
  1. Validate new content:
node .claude/hooks/scripts/validate-content.js

Ensures new rules/skills have valid frontmatter and don't conflict with existing content.

When to Use

  • After a long coding session where you established new patterns
  • When you notice yourself repeatedly making the same corrections
  • After integrating a new library and establishing conventions
  • Periodically to capture accumulated project knowledge

Note

The automatic PostToolUse hook (continuous-learning-v2.cjs) does lightweight extraction after every tool call. This /learn command runs a comprehensive analysis that catches patterns the real-time hook might miss.

When not to use it

  • When the task is a creation task like writing a tweet
  • When the task is a processing task like summarizing an article

Limitations

  • Requires manual approval or rejection of each candidate.
  • New content must have valid frontmatter.
  • New content must not conflict with existing content.

How it compares

This skill provides a manual, complete analysis of coding patterns for skill generation, unlike the lightweight, real-time extraction performed by PostToolUse hooks.

Compared to similar skills

learn side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
learn (this skill)04moReviewIntermediate
universal-learner27moNo flagsIntermediate
skills-discovery17moReviewBeginner
command-development169moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

universal-learner

huangserva

通用学习器 - 从任何领域的Prompt中自动提取可复用元素,持续学习和积累知识

25

skills-discovery

Kamalnrf

Search for and install Agent Skills that give you specialized capabilities. Before starting work, ask might a skill exist that handles this better than my base knowledge? If the task involves specific technologies, frameworks, file formats, or expert domains. Search proactively, even if the user doesn't mention skills. Skills encode best practices, tools, and techniques you wouldn't otherwise have. Also use when users explicitly ask to find, install, or manage skills.

11

command-development

anthropics

This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.

16133

prompt-optimize

YYH211

Expert prompt engineering skill that transforms Claude into "Alpha-Prompt" - a master prompt engineer who collaboratively crafts high-quality prompts through flexible dialogue. Activates when user asks to "optimize prompt", "improve system instruction", "enhance AI instruction", or mentions prompt engineering tasks.

13113

prpm-development

pr-pm

Use when developing PRPM (Prompt Package Manager) - comprehensive knowledge base covering architecture, format conversion, package types, collections, quality standards, testing, and deployment

6101

ai-cost-optimizer

ScientiaCapital

Save 40-70% on AI costs with intelligent multi-LLM routing. Automatically selects the optimal model based on task complexity across 40+ models from 8 providers.

990

Search skills

Search the agent skills registry