learn

learn is a skill for Claude Code from Yrzhe/claude-skills. It costs 81 tokens per session (903 once invoked), scanned B, original, MIT.

A tool for turning the steps and lessons from a completed coding task into a reusable skill, or improving an existing one.

In plain words
What is it for?
Use it after a complex task when the approach could help with other projects. It can review the conversation, identify key decisions and techniques, and suggest saving them as a skill.
Why use it?
It prevents useful problem-solving methods from being lost after a task ends. It also checks for similar skills so the same guidance is not duplicated.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

Part of the learn plugin — 1 skill shipped together

Good fit Use it after a complex task when the approach could help with other projects. It can review the conversation, identify key decisions and techniques, and suggest saving them as a skill.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yrzhe/claude-skills/learn
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Yrzhe/claude-skills --skill learn
Clone the repo
git clone --depth 1 https://github.com/Yrzhe/claude-skills

Made for: Claude Code.

Or install learn, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for learn

README.md
[![agentmods](https://agentmods.dev/badge/skills/yrzhe/claude-skills/learn/github.svg)](https://agentmods.dev/skills/yrzhe/claude-skills/learn)
Your own site
<a href="https://agentmods.dev/skills/yrzhe/claude-skills/learn"><img src="https://agentmods.dev/badge/skills/yrzhe/claude-skills/learn/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for learn

Your own site · 80×15
<a href="https://agentmods.dev/skills/yrzhe/claude-skills/learn"><img src="https://agentmods.dev/badge/skills/yrzhe/claude-skills/learn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 903 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.00903
Opus 5.5 $0.00032 $0.00361
Sonnet 5.5 $0.00016 $0.00181
Haiku 4.5 $0.00008 $0.00090

Measured 3mo ago against content hash ba293dc40c11, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

learn scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

ls ~/.claude/skills/
plugins/learn/skills/learn/SKILL.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Learn — Skill Auto-Extraction

Distill the current task's approach into a reusable skill, or improve an existing one.

When to Suggest

After completing a task, evaluate TWO conditions:

  1. Complexity: 5+ tool calls used
  2. Reuse potential: The approach applies to other projects/scenarios, not just this one

If both met, suggest: "This approach might be reusable — want to /learn it?" Never auto-execute. Only suggest.

Extraction Flow

1. Recall

Check if this knowledge already exists:

  • Search existing skills for similar functionality
  • If a memory system (supermemory, MEMORY.md, etc.) is available, search it too

2. Review

Scan the current conversation for the most recently completed task. Identify:

  • Core workflow steps
  • Key decisions and why they were made
  • Non-obvious tricks or gotchas discovered
  • Tools/libraries used and how

If /learn "description" was provided, focus on that specific aspect.

3. Dedup

Search ALL existing skills for similar functionality:

ls ~/.claude/skills/
grep -r "<relevant keywords>" ~/.claude/skills/*/SKILL.md

Three outcomes:

  • Similar skill exists: Suggest /skill-improve <skill-name> instead. Do NOT create a duplicate.
  • Similar learned skill exists: Suggest updating that skill instead of creating new.
  • No match: Proceed to create new skill.

4. Assess Scope

Determine where this knowledge belongs:

  • Cross-project reusable workflow → Create skill (continue to step 5)
  • Project-specific pattern → Suggest saving to local project memory instead, stop here
  • Single factual insight → Suggest saving to memory system instead, stop here

5. Generate

Create skill following skill-creator conventions:

File: ~/.claude/skills/<skill-name>/SKILL.md

Naming: use learned- prefix for auto-extracted skills (e.g., learned-pdf-merge).

Structure:

---
name: learned-<name>
description: <what it does and when to trigger — be specific>
---

# <Title>

<Concise steps. Only include what Claude doesn't already know.>

Read the full file on GitHub · 123 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 123 lines · 81 tokens per session scan B ba293dc40c11

Subscribe to this mod's changes

learn is a skill published in the GitHub repository Yrzhe/claude-skills (66 stars, last pushed 1mo ago), licensed MIT. It adds 81 tokens to every session and 903 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

learn compared with skills from other repositories

learn next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
learnYrzhe/claude-skillsSkill661mo agoMITB81Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k5d agoMITA21Claude Code