kb-lint

kb-lint is a command for Claude Code from thomascasali/claude-kb-workflow. It costs 0 tokens per session (498 once invoked), scanned A, original, MIT.

A quality check for an LLM Wiki, including its index, project pages, concepts, decisions, lessons, and internal links.

In plain words
What is it for?
Use it to produce critical issues, warnings, information, freshness checks, link checks, and suggestions for improving the wiki.
Why use it?
It finds missing pages, broken references, stale documentation, and other problems that make the knowledge base less reliable.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to produce critical issues, warnings, information, freshness checks, link checks, and suggestions for improving the wiki.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/thomascasali/claude-kb-workflow/kb-lint
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.

Clone the repo
git clone --depth 1 https://github.com/thomascasali/claude-kb-workflow

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/thomascasali/claude-kb-workflow/kb-lint"><img src="https://agentmods.dev/badge/commands/thomascasali/claude-kb-workflow/kb-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 498 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.00000 $0.00498
Opus 5 $0.00000 $0.00249
Sonnet 5 $0.00000 $0.00100
Haiku 4.5 $0.00000 $0.00050

Measured 8d ago against content hash 3172cf00d150, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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.

commands/kb-lint.md · 54 lines

What it actually says

/kb-lint — Health-check della LLM Wiki

Esegui un controllo qualità completo della LLM Wiki in $LLM_WIKI_PATH.

Steps

  1. Leggi schema $LLM_WIKI_PATH/schema.md
  2. Leggi index $LLM_WIKI_PATH/wiki/index.md
  3. Scansiona tutte le pagine in wiki/projects/, wiki/concepts/, wiki/decisions/, wiki/lessons/

Checks da eseguire

🔴 CRITICO

  • Pagine wiki/projects/ senza data aggiornamento
  • Link interni che puntano a file inesistenti
  • File in wiki/ non referenziati in index.md

🟡 WARN

  • Pagine wiki/projects/ non aggiornate da >30 giorni (confronta con wiki/log.md)
  • Concetti in wiki/concepts/ non linkati da nessun progetto
  • Decisioni in wiki/decisions/ con stato "open" da >14 giorni
  • Progetti nello schema.md senza pagina wiki corrispondente

🟢 INFO

  • Pattern in wiki/concepts/ candidati a promozione nella KB stabile (criteri: appare in ≥2 progetti, stabile da ≥2 sessioni, verificato in prod)
  • Pagine wiki/lessons/ non ancora linkate a pattern KB
  • Suggerimenti di merge per pagine simili

Output

Produci un report strutturato:

## 🔴 CRITICO (N problemi)
- [file] → [problema] → [azione suggerita]

## 🟡 WARN (N avvisi)
- [file] → [avviso] → [azione suggerita]

## 🟢 INFO (N suggerimenti)
- [concetto] → candidato promozione a KB/patterns/

## Statistiche
- Pagine totali: N
- Progetti tracciati: N/N
- Ultimo ingest: [data da log.md]
- Prossimo lint consigliato: [data + 7gg]

Appendi a wiki/log.md:

| YYYY-MM-DD | LINT | — | [N critico, N warn, N info] |
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 · 54 lines · 0 tokens per session scan A 3172cf00d150

Subscribe to this mod's changes

kb-lint is a command published in the GitHub repository thomascasali/claude-kb-workflow (2 stars, last pushed 13d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 498 tokens. 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 commands, from other repositories

get-to-work

Autonomous ops work. Args: [mode] [repeat]. Modes: tasks | opps | full | escalating (default). Repeat: cycle (keep going, default) | once (single pass). Run this before stepping away from an ops repo.

OdinMB/ops-workflow · 66 tokens

tidy

Consistency check for non-code repos with INDEX.md hierarchy. Verifies INDEX.md accuracy, MEMORY.md references, orphaned files, stale dates, and WAITING markers.

OdinMB/ops-workflow · 33 tokens

recap

Summarize what happened in the project since a given date. Produces a short lead on what's different now, backed by tables and lists covering completed work, state changes, backlog movement, and key decisions. Use when the user wants to catch up on project activity, review recent progress, or generate a status update…

OdinMB/ops-workflow · 105 tokens

whats-next

Generate an executive overview of the project. Synthesizes state, backlogs, and recent plans into a ranked action plan answering "What should we do next?".

OdinMB/ops-workflow · 32 tokens

batch-execute

Execute a batch of ops plans continuously without user input, storing any issues and user questions in a .md file to be processed with the user afterwards. Do NOT invoke this yourself! Should only be invoked by the user.

OdinMB/ops-workflow · 44 tokens

batch-plan

Create a batch of ops plans continuously without user input, storing any user questions in a .md file to be processed with the user afterwards. Do NOT invoke this yourself! Should only be invoked by the user.

OdinMB/ops-workflow · 42 tokens