kb-capture

kb-capture is a skill for Claude Code from kelp/agent-plugins. It costs 103 tokens per session (2,213 once invoked), scanned A, original, MIT.

A command for saving a conversation, source, or researched summary as a structured note in a personal knowledge base. It adds the note's date, chooses a suitable category, records source links, and refreshes the index.

In plain words
What is it for?
Use it to save the current discussion, a document, a web source, or a topic summary as a searchable knowledge-base note.
Why use it?
It removes the repeated work of formatting notes and deciding where they belong, while avoiding guesses when the note type is unclear.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: names the AskUserQuestion tool.

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 knowledge-forge plugin — 3 skills shipped together

Good fit Use it to save the current discussion, a document, a web source, or a topic summary as a searchable knowledge-base note.

Compare 6 skills from other repositories ↓
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 kelp/agent-plugins
Claude Code
/plugin install knowledge-forge

Made for: Claude Code.

Or install knowledge-forge, the plugin that ships this one along with the rest of its 3 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kelp/agent-plugins/kb-capture"><img src="https://agentmods.dev/badge/skills/kelp/agent-plugins/kb-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,213 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.00103 $0.02213
Opus 5.5 $0.00041 $0.00885
Sonnet 5.5 $0.00021 $0.00443
Haiku 4.5 $0.00010 $0.00221

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

Security

Grade A, and why

kb-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 3mo 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.

plugins/knowledge-forge/skills/kb-capture/SKILL.md · 298 lines

How it starts

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

/kb-capture

Capture content into the personal knowledge base as a well-formed wiki note. The command is safe to run from any working directory.

Input

Scope: $ARGUMENTS

  • Empty → capture the current conversation as a report.
  • Named file or URL → capture that source.
  • Topic or title → use it as the note title; synthesize the body from the conversation.

Step 1: Resolve the KB path

Run ${CLAUDE_PLUGIN_ROOT}/scripts/resolve-kb-path.sh and capture its stdout as kb_path. Every subsequent command uses "$kb_path" (double-quoted).

kb_path=$(bash "${CLAUDE_PLUGIN_ROOT}/scripts/resolve-kb-path.sh")

If the script exits non-zero, relay its stderr message to the user verbatim and stop — do not guess a fallback path.


Step 2: Classify the note

Pick the note type. When ambiguous, use AskUserQuestion once to clarify — do not guess.

Type When to use Destination
source Summary of one external artifact (article, doc, paper) wiki/sources/external/<category>/<slug>.md
concept Synthesized topic page citing multiple sources wiki/concepts/<slug>.md
report Deliverable, deep dive, or research output wiki/reports/<slug>.md
question Unresolved inquiry wiki/questions/<slug>.md

Default when $ARGUMENTS is empty: report. Captured conversations are deliverables.

Source notes require raw_path (a file that already exists under <kb>/raw/) and url. Do not classify as source if you are not capturing a specific artifact with a known raw file.

To capture an external URL as a proper source note (with a raw_path that exists on disk), run /kb-ingest first; capturing a URL directly here without an ingested raw file produces a report, not a source.

The projects/, playbooks/, and dependencies/ wiki buckets are out of scope for /kb-capture — file notes in those buckets manually. This does not affect playbook-type concept notes: those are still captured as concept (see Step 9's index/playbooks.md entry), since "playbook" is a tag on a concept note, not a separate capture target.

Read the full file on GitHub · 298 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. 3mo ago First seen · 298 lines · 103 tokens per session scan A 7e882b68ee3e

Subscribe to this mod's changes

kb-capture is a skill published in the GitHub repository kelp/agent-plugins (2 stars, last pushed 13d ago), licensed MIT. It adds 103 tokens to every session and 2,213 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-08-31.

Related

kb-capture compared with skills from other repositories

kb-capture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kb-capturekelp/agent-pluginsSkill213d agoMITA103Claude Code
memoryboshu2/agentopsSkill4652d agoApache-2.0A31Claude Code
cdb-scanAvijit07x/claude-dbSkill2372d agoApache-2.0A72Claude Code, Codex
handoffAvijit07x/claude-dbSkill2372d agoApache-2.0A87Claude Code, Codex
ctx-upgrademksglu/context-modeSkill35kyesterdaynoneA12Claude Code
catchupAvijit07x/claude-dbSkill2372d agoApache-2.0B71Claude Code, Codex
meta-synthesisstefanoskarakasis/Product-Marketing-SkillsSkill22todayMITA83Claude Code