learn

learn is a skill for Claude Code, Codex from automagik-si/genie. It costs 23 tokens per session (669 once invoked), scanned A, a copy of learn, Apache-2.0.

A guided workflow for turning a user's correction into one small, lasting change to an agent's rules or memory. It checks what caused the mistake, asks for approval, then records the learning for future sessions.

In plain words
What is it for?
Use it to investigate repeated behavioral errors, update a project instruction or memory, and preserve the correction across sessions.
Why use it?
It helps prevent the same agent mistake from happening repeatedly without making broad, unexplained changes. The diagnosis and approval steps reduce the risk of fixing the wrong setting.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to investigate repeated behavioral errors, update a project instruction or memory, and preserve the correction across sessions.

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

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/automagik-si/genie/learn/github.svg)](https://agentmods.dev/skills/automagik-si/genie/learn)
Your own site
<a href="https://agentmods.dev/skills/automagik-si/genie/learn"><img src="https://agentmods.dev/badge/skills/automagik-si/genie/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/automagik-si/genie/learn"><img src="https://agentmods.dev/badge/skills/automagik-si/genie/learn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 669 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.
Origin 100% copy Near-identical to another mod 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.00023 $0.00669
Opus 5.5 $0.00009 $0.00268
Sonnet 5.5 $0.00005 $0.00134
Haiku 4.5 $0.00002 $0.00067

Measured 15d ago against content hash 09c159e27b92, 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 15d 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.

Origin

This is a copy

100% identical to learn — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.genie/attic/skills/learn/SKILL.md · 62 lines

How it starts

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

/learn — Behavioral Correction

When the user corrects a mistake, diagnose which behavioral surface caused it and apply one minimal, targeted fix. Interactive — runs in the foreground with the user.

When to Use

  • User corrects behavior ("no, don't do that", "you should always...") or a mistake must never recur
  • A pattern of repeated errors suggests a missing rule

Flow

  1. Diagnose before changing anything. Read the conversation, recent changes, and relevant config to establish what went wrong and why — missing rule, stale convention, or wrong default. Name the responsible surface. If the diagnosis is ambiguous, report what you verified and ask — never guess a surface.
  2. Propose the minimal fix in plan mode: exactly which file changes, the content, and the rationale. One learning = one surface = one change; never batch.
  3. Apply after approval, then confirm what was learned.
  4. Persist to memory: write a feedback memory (format below) and add it to the .claude/memory/MEMORY.md index so the learning survives across sessions.

Writable Surfaces

Surface Path Controls
Project conventions CLAUDE.md Commands, gotchas, coding rules
Agent identity AGENTS.md Role, preferences, team behavior
Personality SOUL.md / IDENTITY.md Tone, communication style
Global rules ~/.claude/rules/*.md Cross-project behavior
Native memory .claude/memory/ Feedback, user prefs, project context
Project memory memory/ Project-scoped knowledge
Hooks .claude/settings.json Event-driven automation, gates

Never Touch

  • Framework files — the installed genie plugin's skills/ and agents/
  • Other projects' files — scope is the current project only
  • Source code — learn changes behavior configuration, never implementation

Memory Format

.claude/memory/<name>.md:

---
name: <concise-name>
description: <one line for relevance matching>
type: feedback
---

<The rule itself>
**Why:** <the incident or reason the user gave>
**How to apply:** <when/where this guidance kicks in>

Read the full file on GitHub · 62 lines

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. 15d ago First seen · 62 lines · 23 tokens per session scan A 09c159e27b92

Subscribe to this mod's changes

learn is a skill published in the GitHub repository automagik-si/genie (353 stars, last pushed today), licensed Apache-2.0. It adds 23 tokens to every session and 669 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to learn, differing in 0 lines, and is treated as a copy.

Related

learn compared with skills from other repositories

learn next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
learnautomagik-si/genieSkill353todayApache-2.0A23Claude Code, Codex
learnautomagik-dev/genieSkill35315d agoApache-2.0A23Claude Code, Codex
briefFergana-Labs/stashSkill34716d agoMITA23Claude Code
resurfaceFergana-Labs/stashSkill34716d agoMITA18Claude Code
ce-compoundelleryfamilia/loadoutSkill332d agoMITA32Claude Code
loadout-rememberelleryfamilia/loadoutSkill332d agoMITA93Claude Code
agent-contextcote-star/agent-chorusSkill1511d agoMITA57Claude Code, Codex