learn

learn is a skill for Claude Code, Codex from rijuvashisht/Magneto. It costs 0 tokens per session (434 once invoked), scanned A, original, MIT.

A persistent memory manager for storing and finding knowledge about a codebase across sessions, such as coding patterns, rejected approaches, design decisions, past bugs, and user preferences.

In plain words
What is it for?
Use it to search, save, remove, export, or import shared project learnings.
Why use it?
It prevents useful lessons from being lost between tasks and makes earlier decisions or bug fixes easier to find.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to search, save, remove, export, or import shared project learnings.

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

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/rijuvashisht/magneto/learn/github.svg)](https://agentmods.dev/skills/rijuvashisht/magneto/learn)
Your own site
<a href="https://agentmods.dev/skills/rijuvashisht/magneto/learn"><img src="https://agentmods.dev/badge/skills/rijuvashisht/magneto/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/rijuvashisht/magneto/learn"><img src="https://agentmods.dev/badge/skills/rijuvashisht/magneto/learn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 434 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 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.00000 $0.00434
Opus 5 $0.00000 $0.00217
Sonnet 5 $0.00000 $0.00087
Haiku 4.5 $0.00000 $0.00043

Measured 9d ago against content hash 1104aec6f684, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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.

src/templates/magneto-skills/skills/learn/SKILL.md · 68 lines

What it actually says

/learn — Manage Persistent Magneto Memory

Role: Memory Manager Inputs: optional query, tags, or new learning Outputs: .magneto/memory/ updates Audit actions: learn.recorded, learn.pruned, learn.exported


What /learn Does

Magneto's memory store is a cross-session knowledge base of:

  • Patterns — coding conventions established in the codebase
  • Anti-patterns — things that were explicitly rejected
  • Decisions — architectural choices with rationale
  • Bugs — past bug + fix pairs for regression memory
  • Personas — user-specific preferences

This skill manages that store.

Subcommands

View

magneto learn list              # recent learnings
magneto learn search <query>    # semantic/keyword search
magneto learn show --tag patterns

Record

magneto learn save --tags pattern "When error Result<T>, the error branch must include a requestId"
magneto learn save --tags anti-pattern "Don't inline configuration; load via src/config/*"

Manage

magneto learn prune --older-than 90d --importance-below 3
magneto learn export > learnings.json
magneto learn import learnings.json

When to Record

  • After /retro identifies a pattern or anti-pattern
  • After /review catches a repeated mistake
  • After /investigate resolves a novel bug
  • After user explicitly says "remember this"

When NOT to Record

  • One-off decisions that don't generalize
  • Things the graph already captures (module structure)
  • Private data (never record credentials or PII)

Trigger Phrases

  • "remember this"
  • "save this learning"
  • "what do you know about"
  • "show me memory"

Contract Reminder

  • Never save credentials or PII
  • Always tag new learnings for later retrieval
  • Prefer updating existing memory over creating duplicates
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. 9d ago First seen · 68 lines · 0 tokens per session scan A 1104aec6f684

Subscribe to this mod's changes

learn is a skill published in the GitHub repository rijuvashisht/Magneto (6 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 434 tokens. 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-08-31.