capture-knowledge

capture-knowledge is a skill for Claude Code from adamayoung/TMDb. It costs 97 tokens per session (2,371 once invoked), scanned B, original, Apache-2.0.

A guide for recording durable, project-specific knowledge in a committed knowledge/ folder, including gotchas, API behavior, and architecture decisions. An ADR is a short record of an important technical decision and its reasoning.

In plain words
What is it for?
Use it to update gotchas, API notes, architecture decision records, and deferred breaking-change notes before opening a pull request.
Why use it?
It prevents future contributors from having to rediscover non-obvious facts, failed approaches, or decisions made during the work.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md.

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.

agentmods
npx agentmods add skills/adamayoung/tmdb/capture-knowledge
Any agent
npx skills add adamayoung/TMDb --skill capture-knowledge
Clone the repo
git clone --depth 1 https://github.com/adamayoung/TMDb

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/adamayoung/tmdb/capture-knowledge.svg)](https://agentmods.dev/skills/adamayoung/tmdb/capture-knowledge)
Your own site
<a href="https://agentmods.dev/skills/adamayoung/tmdb/capture-knowledge"><img src="https://agentmods.dev/badge/skills/adamayoung/tmdb/capture-knowledge.svg" alt="Measured on agentmods" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,371 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.00097 $0.02371
Opus 5 $0.00048 $0.01185
Sonnet 5 $0.00019 $0.00474
Haiku 4.5 $0.00010 $0.00237

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

Security

Grade B, and why

capture-knowledge 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.

`knowledge/` entry heading, also grep `.claude/` and `CLAUDE.md` for
.claude/skills/capture-knowledge/SKILL.md · 158 lines

How it starts

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

Capture Knowledge

Fold what you just learned into the committed knowledge base at knowledge/, so a future session (or contributor) doesn't have to re-learn or re-discover it. Run this before a PR — in /deliver it runs automatically pre-PR, so the notes land in the same PR as the change.

What to capture (be selective)

Record only durable, project-specific, non-obvious facts — the test is "would a future me waste time without this?":

  • Gotchas / quirksknowledge/gotchas.md — a trap you hit, a tooling surprise, anything that needed a web search or doc lookup to resolve.
  • Live-API behavioursknowledge/tmdb-api-notes.md — a nullable/absent field, an undocumented response shape, an enum value the docs omit.
  • Design decisions → a new ADR in knowledge/decisions/ (next number — take it from decisions/README.md's index, not a directory listing), using decisions/0000-template.md. Any non-obvious choice and its rationale — why this approach over the alternatives. Add the new row to that index.
  • Deferred breaking changesknowledge/next-major.md — any fix rejected or deferred because it is breaking. The skill-improvement log remembers the "no"; this file is what makes the deferred "yes" resurface at the next major. Reconcile its status line whenever you add an entry: it states which major window is open, and an entry filed against a window that already shipped is invisible at exactly the moment it should fire. A window is open until the version is tagged — an unreleased CHANGELOG section is not a release (git tag --list | sort -V | tail -1).

What NOT to capture

Mirror the discipline of a good memory — don't record:

  • Anything already in the code, CLAUDE.md, the topic docs under .claude/docs/, the DocC docs, or git history.
  • Facts that only mattered to this one task and won't recur.
  • Restatements of the obvious. If asked to record something obvious, capture the non-obvious part (what surprised you) or skip it.

Read the full file on GitHub · 158 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 · 158 lines · 97 tokens per session scan B fa75bc1c4f38

Subscribe to this mod's changes

capture-knowledge is a skill published in the GitHub repository adamayoung/TMDb (177 stars, last pushed 5d ago), licensed Apache-2.0. It adds 97 tokens to every session and 2,371 once invoked, about $0.0005 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-30.