kmd-lint

kmd-lint is a skill for Claude Code from yasik/kmd. It costs 102 tokens per session (1,549 once invoked), scanned A, original, MIT.

A health check for an Obsidian-compatible markdown knowledge base, meaning a folder of linked notes used to store and retrieve information. It combines automatic checks with a review of issues that scripts cannot judge.

In plain words
What is it for?
Use it to locate a knowledge base, inspect its schema and organization settings, run mechanical checks, and review problems such as stale information, unresolved links, or missing source processing.
Why use it?
Knowledge bases can develop stale pages, broken links, duplicates, contradictions, and indexes that no longer match their contents. The audit finds this drift and routes the findings according to the knowledge base’s rules.

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 to locate a knowledge base, inspect its schema and organization settings, run mechanical checks, and review problems such as stale information, unresolved links, or missing source processing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yasik/kmd/kmd-lint
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-lint
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-lint

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yasik/kmd/kmd-lint"><img src="https://agentmods.dev/badge/skills/yasik/kmd/kmd-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,549 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.00102 $0.01549
Opus 5 $0.00051 $0.00775
Sonnet 5 $0.00020 $0.00310
Haiku 4.5 $0.00010 $0.00155

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

Security

Grade A, and why

kmd-lint 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 3 executable files (scripts/kb_common.py, scripts/kb_log.py, scripts/lint_mechanical.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-lint/SKILL.md · 123 lines

How it starts

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

kmd-lint — KB health check

A knowledge base rots by default: indexes drift from pages, claims go stale, duplicates accumulate, sources pile up un-ingested. Lint is the counter-force and it is not optional — every production implementation of the LLM-wiki pattern reports drift as the failure mode. Lint runs in two phases: deterministic checks (a script — free, exhaustive) and judgment passes (you — expensive, so spent only where scripts can't reach).

Before you start

Locate the KB root and transport the same way kmd-ingest does (its references/obsidian-cli-transport.md covers the Obsidian CLI, whose backlinks/orphans/unresolved commands can corroborate graph findings when available): a path you were given > $KMD_ROOT > .kmd.json at the workspace root > a directory containing schema.md/log.md > the default kb/. The script's --kb flag implements this resolution. Then check for the org extension: if .kmd.json declares an "org" key or the workspace has _charter/ORG.md, read references/org-extension.md — it changes how findings are routed in Phase 3. Otherwise the core protocol below applies as written.

Phase 1 — mechanical checks (run the script first)

python3 scripts/lint_mechanical.py --kb <kb-root> --report --agent <your-name-or-agent-id>

This checks: broken wikilinks, invalid/missing frontmatter (including the provenance rule), modified files under sources/ (append-only violation, via git — when the KB is not under git the script says so explicitly rather than implying coverage), unreferenced sources (un-ingested intake), orphan pages, page updates with no LOG entry, oversized pages, and a missing or stale index.md (fix: recompile_index.py from kmd-ingest). With --report it writes a report skeleton to <kb>/.lint/<date>-mechanical.md (or the report_dir configured in .kmd.json) with empty Judgment findings and Resolution sections for you to fill in. Use --format json to process findings programmatically.

Read the full file on GitHub · 123 lines

Files

What ships with it

4 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 · 123 lines · 102 tokens per session scan A 1bd01b646eb9

Subscribe to this mod's changes

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