kmd-ingest

kmd-ingest is a skill for Claude Code from yasik/kmd. It costs 135 tokens per session (2,377 once invoked), scanned A, original, MIT.

A writing protocol for an Obsidian-compatible markdown knowledge base, which stores linked notes and source material as files. It defines how to add, update, and cross-reference knowledge-base pages.

In plain words
What is it for?
Use it whenever adding scraped material, reports, lessons, insights, answers, or corrections to a shared or personal markdown knowledge base.
Why use it?
It keeps raw evidence separate from summaries and ensures each change records its source and relationships. This prevents the knowledge base from becoming inconsistent or difficult to trust.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the kmd plugin — 2 skills, 3 agents, 2 hooks shipped together

Good fit Use it whenever adding scraped material, reports, lessons, insights, answers, or corrections to a shared or personal markdown knowledge base.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yasik/kmd/kmd-ingest
View source ↗ yasik/kmd
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 yasik/kmd --skill kmd-ingest
Clone the repo
git clone --depth 1 https://github.com/yasik/kmd

Made for: Claude Code.

Or install kmd, the plugin that ships this one along with the rest of its 2 skills, 3 agents, 2 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 kmd-ingest

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yasik/kmd/kmd-ingest"><img src="https://agentmods.dev/badge/skills/yasik/kmd/kmd-ingest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,377 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.00135 $0.02377
Opus 5 $0.00068 $0.01189
Sonnet 5 $0.00027 $0.00475
Haiku 4.5 $0.00014 $0.00238

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

Security

Grade A, and why

kmd-ingest 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 8d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/detect_transport.py, scripts/kb_common.py, scripts/kb_log.py, …), 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.

skills/kmd-ingest/SKILL.md · 200 lines

How it starts

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

kmd-ingest — the KB write protocol

The knowledge base compounds in value only if every write follows the same discipline: condensed pages, declared provenance, cross-references swept, one log entry per operation. A single undisciplined write is cheap; a thousand of them make the KB untrustworthy at query time. This skill is that discipline — the same whether the KB belongs to one person or an organization of agents. Permissions are open — any author may create or edit any page. The manner is not: every write, down to a one-line correction, is an ingest.

The two layers (get this right and the rest follows)

  • sources/ — append-only evidence. Raw external material: scraped pages, whitepapers, transcripts. You may add files here (when new raw material is involved in your work); you never edit or delete existing ones.
  • Everything else in the KB — living synthesis. Pages you write and maintain (entities/, concepts/, projects/, …) plus derived artifacts in assets/ (charts, decks — embedded from pages, never pages themselves).

Your own outputs — reports, analyses, lessons — are never filed into sources/, no matter how polished or reference-like they feel. Synthesis recycled as evidence is how hallucinations launder themselves into ground truth. A finished report becomes a page citing the raw material it was built from.

Before you write

  1. Locate the KB root — in order: a path you were given; $KMD_ROOT; a .kmd.json at the workspace root ({"root": "<dir>"}); a directory containing schema.md/log.md; the default kb/ under the workspace. The bundled scripts implement exactly this resolution (--kb flag).
  2. Pick the transport — read .kmd.json's transport key; if missing, run python3 scripts/detect_transport.py --kb <kb-root> once. When it says obsidian-cli, read and write pages through the Obsidian CLI per references/obsidian-cli-transport.md; otherwise (or whenever a CLI call fails) use plain filesystem tools.
  3. Read schema.md at the KB root — the single source of truth for taxonomy, writing style, and conventions; its Extensions section may add page types and hierarchies beyond the defaults, and it overrides anything here that conflicts. If the KB has no schema.md yet, bootstrap it from references/schema-template.md — stripping the <!-- kmd:template-note --> block, and the org-extension block unless this is an org installation.
  4. Check for the org extension — if .kmd.json declares an "org" key or the workspace has a charter with an ORG.md, read references/org-extension.md first (it adds ownership routing and org-specific provenance origins). Otherwise ignore.

Read the full file on GitHub · 200 lines

Files

What ships with it

8 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. 8d ago First seen · 200 lines · 135 tokens per session scan A bceb11f4a420

Subscribe to this mod's changes

kmd-ingest is a skill published in the GitHub repository yasik/kmd (2 stars, last pushed 1mo ago), licensed MIT. It adds 135 tokens to every session and 2,377 once invoked, about $0.0007 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

karpathy-llm-wiki

Use when building or maintaining a personal LLM-powered knowledge base. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki quality, 'add to wiki', 'what do I know about', or any mention of 'LLM wiki' or 'Karpathy wiki'.

Astro-Han/karpathy-llm-wiki · 67 tokens

wiki

Operate on the user's personal Obsidian LLM-Wiki vault (repository root). Use when the user invokes /wiki, asks a question that should be answered using their knowledge base, asks to ingest a new source into the wiki, asks to lint or health-check the wiki, or asks to generate a document (analysis, comparison, summary…

liyading1818/obsidian-llm-wiki · 98 tokens

link-memory

Use after important user-approved decisions, when durable context should be proposed or reviewed, and for explicit Link memory lifecycle work: remember, recall, review, update, archive, restore, forget, or explain local memories through the CLI without requiring MCP.

gowtham0992/link · 0 tokens

link-retrieve

Use before answering work that may depend on user memory, project history, source-backed notes, or prior decisions; retrieve compact Link context through the CLI without loading the whole wiki or requiring MCP.

gowtham0992/link · 42 tokens

link-ingest

Use when raw files are present, source pages look stale, or a user asks to ingest notes into Link; refresh source-backed wiki pages, propose memories, and validate updates through the CLI without MCP.

gowtham0992/link · 44 tokens

lean-ctx

Local context tooling for AI agents. Use it to select, shape, reuse, recover, and inspect context before inference when reading files, running shell commands, searching code, or exploring directories.

yvgude/lean-ctx · 42 tokens