learning-capture

learning-capture is a skill for Claude Code from app-vitals/shipwright. It costs 96 tokens per session (2,388 once invoked), scanned A, original, MIT.

A memory-capture workflow that records a user's reusable correction or preference in CLAUDE.md or the relevant skill. CLAUDE.md is a project instruction file that an AI coding agent reads in later work.

In plain words
What is it for?
Use it when someone says to always or never do something, states a lasting preference, teaches a general rule, or asks the agent to remember something.
Why use it?
It keeps durable guidance from being lost or stored in a temporary queue. It also avoids recording advice that applies only to one change or is already enforced by code, tests, types, or linting.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Part of the shipwright plugin — 27 skills, 32 commands, 5 agents shipped together

Good fit Use it when someone says to always or never do something, states a lasting preference, teaches a general rule, or asks the agent to remember something.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/app-vitals/shipwright/learning-capture
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 app-vitals/shipwright --skill learning-capture
Clone the repo
git clone --depth 1 https://github.com/app-vitals/shipwright

Made for: Claude Code.

Or install shipwright, the plugin that ships this one along with the rest of its 27 skills, 32 commands, 5 agents.

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 learning-capture

README.md
[![agentmods](https://agentmods.dev/badge/skills/app-vitals/shipwright/learning-capture/github.svg)](https://agentmods.dev/skills/app-vitals/shipwright/learning-capture)
Your own site
<a href="https://agentmods.dev/skills/app-vitals/shipwright/learning-capture"><img src="https://agentmods.dev/badge/skills/app-vitals/shipwright/learning-capture/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 learning-capture

Your own site · 80×15
<a href="https://agentmods.dev/skills/app-vitals/shipwright/learning-capture"><img src="https://agentmods.dev/badge/skills/app-vitals/shipwright/learning-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,388 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.00096 $0.02388
Opus 5.5 $0.00038 $0.00955
Sonnet 5.5 $0.00019 $0.00478
Haiku 4.5 $0.00010 $0.00239

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

Security

Grade A, and why

learning-capture 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 today.

The scan reads SKILL.md. This mod also ships 2 executable files (SKILL.content.test.ts, SKILL.unit.test.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/shipwright/skills/learning-capture/SKILL.md · 189 lines

How it starts

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

Learning Capture

When the user teaches you something durable, put it in its permanent home now — edit CLAUDE.md or the relevant skill in the same turn. Git is the audit trail. There is no staging file and no separate promotion step.

This skill replaces the old capture → stage → promote flow. That flow added three interruptions and trusted the model less than it deserves. The model is trusted to make the edit; the user reviews it the same way they review any other change — in the diff.

The one rule: pass the gate first

Before editing anything, run the generalization gate. Capture a learning only if both are true:

  1. It generalizes. It will apply to future, different work — not just the change you both just made. A correction scoped to "this function", "this file", "this PR", or "in this case" is not a learning. It is just doing the task.

  2. It is not already captured by the code. If the change you just committed already embodies the rule — the code does it the right way now, a test enforces it, a type makes the wrong version impossible, a lint rule will catch it — then the code is the memory. A CLAUDE.md line that restates what the diff already shows is noise and will rot. Skip it.

If you are unsure whether something generalizes, it probably does not. See references/generalization-gate.md for the full criteria, signal patterns, and worked examples. When in doubt, do not capture. A missed learning costs nothing; a noisy CLAUDE.md costs every future session.

What passes the gate (capture these)

  • A correction the user frames as a standing rule: "always", "never", "from now on", "in general", "as a rule", "going forward".
  • A preference that will shape unrelated future work: tooling, style, workflow.
  • A non-obvious discovery that took real effort and will recur — a misleading error, an undocumented behavior, a workaround — and that the code itself does not now make self-evident.
  • Anything the user explicitly says to remember.

Read the full file on GitHub · 189 lines

Files

What ships with it

3 files 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. today Changed · +2 lines 3ec0afa06408
  2. 13d ago First seen · 187 lines · 96 tokens per session scan A 202c3d7e847a

Subscribe to this mod's changes

learning-capture is a skill published in the GitHub repository app-vitals/shipwright (16 stars, last pushed today), licensed MIT. It adds 96 tokens to every session and 2,388 once invoked, about $0.0004 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-11-17.

Related

learning-capture compared with skills from other repositories

learning-capture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
learning-captureapp-vitals/shipwrightSkill16todayMITA96Claude Code
pstack-recalldmae97/omkSkill154todayMITA79Claude Code
omk-tencent-memorydmae97/omkSkill154todayMITA47Claude Code, Codex
handoffHmbown/CodeWhaleSkill41kyesterdayMITA70Claude Code, Codex
forgetHmbown/CodewhaleSkill41k1mo agoMITA26Claude Code, Codex
buncode-yeongyu/senpiSkill530todayMITA237Claude Code, Codex
memory-indexdimetron/pi-goSkill2326d agoMITA0Claude Code, Codex