correction-capture

correction-capture is a skill for Claude Code from moberghr/mtk-agent-toolkit. It costs 39 tokens per session (2,238 once invoked), scanned B, original, MIT.

A skill that records reusable lessons when an engineer corrects the agent’s approach. It is intended for corrections that could prevent the same mistake in future work.

In plain words
What is it for?
For responding to feedback such as “no,” “stop,” or “not like that,” when the correction applies beyond the current task.
Why use it?
Repeated corrections are easy to lose between tasks or sessions. Capturing them helps preserve guidance for later work.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the mtk plugin — 45 skills, 6 agents, 7 hooks, 1 MCP server shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add moberghr/mtk-agent-toolkit
Claude Code
/plugin install mtk

Made for: Claude Code.

Or install mtk, the plugin that ships this one along with the rest of its 45 skills, 6 agents, 7 hooks, 1 MCP server.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/moberghr/mtk-agent-toolkit/correction-capture.svg)](https://agentmods.dev/skills/moberghr/mtk-agent-toolkit/correction-capture)
Your own site
<a href="https://agentmods.dev/skills/moberghr/mtk-agent-toolkit/correction-capture"><img src="https://agentmods.dev/badge/skills/moberghr/mtk-agent-toolkit/correction-capture.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,238 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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.00039 $0.02238
Opus 5 $0.00019 $0.01119
Sonnet 5 $0.00008 $0.00448
Haiku 4.5 $0.00004 $0.00224

Measured 6d ago against content hash 0ffbc278223b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

correction-capture 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 6d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

grep -i "<keyword>" .claude/lessons/personal.md tasks/lessons.md 2>/dev/null
.claude/skills/correction-capture/SKILL.md · 156 lines

How it starts

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

Correction Capture

Overview

When an engineer corrects your approach, that correction contains knowledge that should compound across sessions. Capture it immediately, process it into a reusable lesson, and ensure it loads in future sessions. The goal: the engineer should never need to give the same correction twice.

This skill is specifically for engineer-driven corrections. When you resolve your own repeated failure through trial and error — same signature failing 2+ times, then a materially different fix, with no human redirect — that is self-driven, not a correction: use golden-path-capture instead. (And lesson-mining is the after-the-fact transcript sweep for what neither live skill captured.)

When To Use

  • The engineer says "no", "not like that", "stop doing X", "I told you before"
  • The engineer redirects your approach mid-task
  • The engineer overrides a decision you made
  • A review finding reveals a repeated mistake
  • A pattern that worked elsewhere fails in this codebase

When NOT To Use

  • One-off task-specific feedback that wouldn't apply to future work
  • Feedback about conversation style rather than technical approach
  • Corrections that are already documented in CLAUDE.md or references

Workflow

  1. Recognize the correction. Look for:

    • Direct negation: "no", "don't", "stop", "wrong"
    • Redirection: "instead do X", "use Y not Z", "the pattern here is..."
    • Frustration signal: "I already said", "again", "like I mentioned"
  2. Acknowledge without performing. State what you understand changed:

    • "Understood — I'll use X instead of Y because [reason]."
    • Do not say "You're absolutely right!" or "Great point!" — just state the correction and act on it.
  3. Decide where it belongs — personal or team. Two destinations:

    • .claude/lessons/personal.md (gitignored) — default. Personal preferences, individual workflow tweaks, "I prefer X here".
    • tasks/lessons.md (committed) — team-wide rules. Architectural patterns, repeated team-wide mistakes, conventions every contributor should follow.

Read the full file on GitHub · 156 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. 6d ago First seen · 156 lines · 39 tokens per session scan B 0ffbc278223b

Subscribe to this mod's changes

correction-capture is a skill published in the GitHub repository moberghr/mtk-agent-toolkit (7 stars, last pushed yesterday), licensed MIT. It adds 39 tokens to every session and 2,238 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

agent-memory

../../../engineering/agent-memory/skills/agent-memory/SKILL.md.

alirezarezvani/claude-skills · 0 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens