learn

learn is a skill for Claude Code, Codex from Luohaothu/everything-codex. It costs 18 tokens per session (348 once invoked), scanned A, original, MIT.

A command that extracts reusable patterns from the current coding session and saves them as skills for future work.

In plain words
What is it for?
Use it after solving a non-trivial problem to record the error, cause, fix, context, and when the pattern should be reused.
Why use it?
It helps preserve useful solutions, debugging methods, workarounds, and project-specific conventions instead of losing them when the session ends.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads ~/.codex paths; mentions Codex.

Good fit Use it after solving a non-trivial problem to record the error, cause, fix, context, and when the pattern should be reused.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luohaothu/everything-codex/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 Luohaothu/everything-codex --skill learn
Clone the repo
git clone --depth 1 https://github.com/Luohaothu/everything-codex

Made for: Claude Code, Codex.

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/luohaothu/everything-codex/learn/github.svg)](https://agentmods.dev/skills/luohaothu/everything-codex/learn)
Your own site
<a href="https://agentmods.dev/skills/luohaothu/everything-codex/learn"><img src="https://agentmods.dev/badge/skills/luohaothu/everything-codex/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/luohaothu/everything-codex/learn"><img src="https://agentmods.dev/badge/skills/luohaothu/everything-codex/learn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 348 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 23
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00018 $0.00348
Opus 5.5 $0.00007 $0.00139
Sonnet 5.5 $0.00004 $0.00070
Haiku 4.5 $0.00002 $0.00035

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

Security

Grade A, and why

learn scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/learn/SKILL.md · 63 lines

What it actually says

Learn Skill

Analyze the current session and extract patterns worth saving as reusable skills.

When to Use

Run /learn when you've solved a non-trivial problem during a session.

What to Extract

  1. Error Resolution Patterns — What error, root cause, and fix?
  2. Debugging Techniques — Non-obvious steps, tool combinations
  3. Workarounds — Library quirks, API limitations, version-specific fixes
  4. Project-Specific Patterns — Codebase conventions, architecture decisions

Output Format

Create a skill file at ~/.codex/skills/learned/<pattern-name>/SKILL.md:

---
name: <pattern-name>
description: <what this pattern solves>
---

# <Descriptive Pattern Name>

**Extracted:** <Date>
**Context:** <When this applies>

## Problem
<What problem this solves>

## Solution
<The pattern/technique/workaround>

## Example
<Code example if applicable>

## When to Use
<Trigger conditions>

Process

  1. Review the session for extractable patterns
  2. Identify the most valuable/reusable insight
  3. Draft the skill file
  4. Ask user to confirm before saving
  5. Save to ~/.codex/skills/learned/

Guidelines

  • Don't extract trivial fixes (typos, simple syntax errors)
  • Don't extract one-time issues (specific API outages)
  • Focus on patterns that save time in future sessions
  • Keep skills focused — one pattern per skill
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. 1mo ago First seen · 63 lines · 18 tokens per session scan A 2c16d6aba66f

Subscribe to this mod's changes

learn is a skill published in the GitHub repository Luohaothu/everything-codex (25 stars, last pushed 2mo ago), licensed MIT. It adds 18 tokens to every session and 348 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

self-improve-with-tinyfish

Enables Hermes to create new reusable skills for itself by researching live web sources with TinyFish Search and Fetch, analyzing source coverage, writing SKILL.md files, and installing them into Hermes memory. Use when the user asks Hermes to learn, teach itself, upgrade itself, or save a reusable capability.

tinyfish-io/tinyfish-cookbook · 68 tokens

flashcards

Spaced repetition flashcard system for learning. SM-2 algorithm, supports text and cloze deletion cards.

fuyuxiang/echo-agent · 25 tokens

flow-next-audit

Audit .flow/memory/ entries against current code and keep, update, consolidate, replace, delete, or harden each. Use when asked to audit memory or graduate a recurring lesson into a gate.

gmickel/flow-next · 46 tokens

learn-from-fix

Capture Elixir/Ecto/LiveView lessons and Hex API rules. Use after corrections or when asked to document learning, record a lesson, prevent a fixed mistake, or remember package guidance with --library.

oliver-kriska/claude-elixir-phoenix · 46 tokens

mindos

MindOS: local knowledge assistant & shared KB. Keeps decisions, notes, SOPs, debugging lessons, research findings, preferences across sessions/agents. Core: save notes, search KB, organize files, run workflows, review, append CSV, hand off context, distill lessons. NOT for app source or paths outside KB. Triggers…

GeminiLight/MindOS · 136 tokens

curate

Adds developer-authored annotations to the gauntlet knowledge base. Use when capturing tribal knowledge or rationale not visible in code.

athola/claude-night-market · 28 tokens