skill-capture

skill-capture is a skill for Claude Code from ao92265/claude-code-playbook. It costs 194 tokens per session (2,302 once invoked), scanned A, original, MIT.

A workflow for turning useful lessons from coding sessions into reusable agent skills or project preferences.

In plain words
What is it for?
Use it to capture corrections, extract a single recurring gotcha, document a repeatable workflow, or observe a task for patterns worth saving.
Why use it?
It preserves specific, hard-won solutions so the same issue does not need to be rediscovered later.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/aoreilly/Repos/Wraith.

Part of the playbook plugin — 48 skills, 4 hooks 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 ao92265/claude-code-playbook
Claude Code
/plugin install playbook

Made for: Claude Code.

Or install playbook, the plugin that ships this one along with the rest of its 48 skills, 4 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ao92265/claude-code-playbook/skill-capture.svg)](https://agentmods.dev/skills/ao92265/claude-code-playbook/skill-capture)
Your own site
<a href="https://agentmods.dev/skills/ao92265/claude-code-playbook/skill-capture"><img src="https://agentmods.dev/badge/skills/ao92265/claude-code-playbook/skill-capture.svg" alt="Measured on agentmods" height="20"></a>
Per session 194 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,302 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00194 $0.02302
Opus 5 $0.00097 $0.01151
Sonnet 5 $0.00039 $0.00460
Haiku 4.5 $0.00019 $0.00230

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

Security

Grade A, and why

skill-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 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.

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/skill-capture/SKILL.md · 199 lines

How it starts

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

Skill Capture

Merges four overlapping capture workflows into one skill with four modes. Pick the mode from how the user (or the situation) invoked this skill; if ambiguous, ask.

Trigger phrase Mode
"learn from this session", "autoskill", "what did you learn" corrections
"extract a skill", "learner" extract
"skillify", "turn this into a skill" workflow
"watch for skill opportunities", start of a multi-step task observe

Shared Quality Gate

Before capturing anything in corrections, extract, or workflow mode, all three must be true:

  1. Non-Googleable — could someone find this via a 5-minute search? If yes, discard (BAD: "use try/catch for error handling"; GOOD: "the aiohttp proxy in server.py:42 crashes on ClientDisconnectedError — wrap StreamResponse in try/except").
  2. Specific — is it tied to this codebase, project, or team, with actual file paths, error messages, or line numbers? Generic patterns, library usage, and boilerplate belong in documentation, not here.
  3. Hard-won — did it take real debugging, correction, or operational effort to surface, and does it apply beyond a single file or one-off task?

If any check fails, discard the candidate and move on.


Mode: corrections (was autoskill)

Analyze the current or recent session for correction signals — places where the user stated a team/project preference or corrected an approach — and turn qualifying ones into skill or CLAUDE.md updates.

  1. Resolve project context. Extract the project name from $CWD (e.g. /Users/aoreilly/Repos/Wraithwraith). Check whether .claude/skills/ exists in the project root.
  2. Subcommands (from $ARGUMENTS): review = steps 3-5 only, propose without applying; history = run git log --oneline --grep="autoskill:" and stop; apply = skip to step 5 using previously proposed learnings; global = restrict search/output to cross-project preferences; no argument = run steps 3-5 in full.
  3. Search for signals. Query mcp__historian__search_conversations for "no use instead|don't use|we always|we never|our convention|team prefers|standard practice" and separately for "Actually|Wrong|not like that|stop doing", filtered to the current project. No signals → report "No correction signals detected" and stop.
  4. Filter each signal against the Shared Quality Gate above, plus: team-relevant? (benefits the whole project, not one person's taste). Drop anything that fails.
  5. Map each surviving signal to a target file:

Read the full file on GitHub · 199 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 · 199 lines · 194 tokens per session scan A 83e919351d02

Subscribe to this mod's changes

skill-capture is a skill published in the GitHub repository ao92265/claude-code-playbook (10 stars, last pushed 20d ago), licensed MIT. It adds 194 tokens to every session and 2,302 once invoked, about $0.0010 per session on Opus 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-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens