kb-lint

kb-lint is a skill for Claude Code, Codex from stjbrown/agent-knowledge. It costs 22 tokens per session (1,418 once invoked), scanned A, original, MIT.

A health check for a knowledge bundle, meaning a collection of structured knowledge files. It checks formatting and looks for content drift, with optional fixes for safe problems.

In plain words
What is it for?
Use it to inspect bundle metadata and citations, report issues by severity, and automatically repair problems that are safe to fix.
Why use it?
It finds broken conventions and gradual changes that can make a growing knowledge base unreliable.

Skill for Claude CodeCodex

Part of the agent-knowledge plugin — 7 skills shipped together

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/stjbrown/agent-knowledge/kb-lint
Any agent
npx skills add stjbrown/agent-knowledge --skill kb-lint
Clone the repo
git clone --depth 1 https://github.com/stjbrown/agent-knowledge

Made for: Claude Code, Codex.

Or install agent-knowledge, the plugin that ships this one along with the rest of its 7 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-lint

README.md
[![agentmods](https://agentmods.dev/badge/skills/stjbrown/agent-knowledge/kb-lint.svg)](https://agentmods.dev/skills/stjbrown/agent-knowledge/kb-lint)
Your own site
<a href="https://agentmods.dev/skills/stjbrown/agent-knowledge/kb-lint"><img src="https://agentmods.dev/badge/skills/stjbrown/agent-knowledge/kb-lint.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,418 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 $0.00022 $0.01418
Opus 5 $0.00011 $0.00709
Sonnet 5 $0.00004 $0.00284
Haiku 4.5 $0.00002 $0.00142

Measured 4d ago against content hash 690a9e5fed33, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

kb-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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/conformance.mjs), 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/kb-lint/SKILL.md · 112 lines

How it starts

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

kb-lint — health-check the bundle

Keep a bundle trustworthy as it compounds by catching drift — the decay a growing knowledge base accumulates. Two passes: a deterministic conformance check (mechanical, scripted) and a drift audit (fuzzy, judgment). Run both; report findings by severity. With fix, repair what is safe.

1. Conformance (deterministic)

For a bundle-wide format or lifecycle migration, first inventory active metadata with the same frontmatter-aware checker:

node "<skill-dir>/scripts/conformance.mjs" <bundle-dir> --inventory --json

The inventory parses only each concept's leading YAML frontmatter and reports body # Citations separately. Its observations include counts and exact paths for every active top-level key and status value; legacy_citations counts citation sections, numbered items, separately defined footnote sources, total source records, and common citation shapes; structured_sources counts the postflight concepts, entries, and entries carrying resource. An absent observation means zero. Do not use repository-wide grep to classify active metadata because prose and fenced examples can contain inactive field names and lifecycle values. Resolve every reported frontmatter error before planning from the counts.

Run the bundled checker against the target bundle (default knowledge/). It is a zero-dependency Node script (node >=18); <skill-dir> is this skill's directory — ${CLAUDE_SKILL_DIR} under Claude Code, or whatever path your host exposes for the skill:

node "<skill-dir>/scripts/conformance.mjs" <bundle-dir>

It reports ERROR for a hard SPEC §11 failure and warn for producer-profile defects in optional v0.2 fields, broken links, non-ISO log dates, and stale dates. Optional-family warnings never make the bundle non-conformant. Broken links are explicitly tolerated by §6.1.

Completion criterion: the checker has run and every ERROR it reported is listed for the report (and fixed, if in fix mode).

Read the full file on GitHub · 112 lines

Files

What ships with it

1 file 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. 4d ago First seen · 112 lines · 22 tokens per session scan A 690a9e5fed33

Subscribe to this mod's changes

kb-lint is a skill published in the GitHub repository stjbrown/agent-knowledge (33 stars, last pushed 1mo ago), licensed MIT. It adds 22 tokens to every session and 1,418 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

okf-authoring

Author Open Knowledge Format (OKF) bundles — knowledge represented as a directory of markdown files with YAML frontmatter. Use when asked to create, write, generate, enrich, or validate an OKF bundle or OKF concept docs; to turn a data source (Glue database, API, database, catalog), documentation, or a research topic…

aws-samples/sample-okf-llm-wiki · 102 tokens

refresh-okf-mcp-token

Fetch or refresh an OAuth2 access token for the OKF Data wiki consumption MCP server. Use when the OKF MCP server returns 401/403/unauthorized/expired-token errors, when the user asks to refresh, renew, or get a new OKF MCP token, or when setting up authentication to call the okf-mcp / okfconsumption MCP runtime.

aws-samples/sample-okf-llm-wiki · 83 tokens

report-authoring

The report-authoring methodology: required structure, language, evidence discipline, and figure selection. Read BEFORE your first createreport of a conversation - the tool validates shape; this is everything it cannot check.

aws-samples/sample-okf-llm-wiki · 44 tokens

setup

Set up the OKF MCP plugin — outputs a guide for the user to create their /.okf/credentials file with their OAuth2 client id/secret. Use when first enabling the plugin, when headersHelper fails with "Missing credentials", or when the user says "setup okf".

aws-samples/sample-okf-llm-wiki · 60 tokens

wegent-knowledge

Knowledge base management and search tools for Wegent. Provides capabilities to list, create, update, and search knowledge bases and documents using RAG retrieval. Use this skill when the user wants to manage knowledge bases, documents, or search for information programmatically.

wecode-ai/Wegent · 51 tokens

llm-wiki

Build and maintain a persistent, interlinked Obsidian-compatible markdown wiki using Karpathy's LLM Wiki pattern. Extension-backed with auto-generated metadata, guardrails, and 14 custom tools (+3 opt-in agent-trajectory tools).

zosmaai/pi-llm-wiki · 52 tokens