kb-lint

kb-lint is a skill for Claude Code from atman-33/workhub. It costs 46 tokens per session (1,637 once invoked), scanned A, original, MIT.

A health check for a Workhub knowledge base. It looks for missing or outdated indexes, unlinked documents, broken links, tag problems, and other structural issues.

In plain words
What is it for?
Use it for periodic audits, before reviews, or after reorganizing project, knowledge, and archive notes.
Why use it?
It reveals maintenance problems that can make stored information difficult to find or unreliable. Safe issues can optionally be fixed automatically.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

Part of the workhub plugin — 22 skills, 1 agent shipped together

Good fit Use it for periodic audits, before reviews, or after reorganizing project, knowledge, and archive notes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atman-33/workhub/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.

Any agent
npx skills add atman-33/workhub --skill kb-lint
Clone the repo
git clone --depth 1 https://github.com/atman-33/workhub

Made for: Claude Code.

Or install workhub, the plugin that ships this one along with the rest of its 22 skills, 1 agent.

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/atman-33/workhub/kb-lint/github.svg)](https://agentmods.dev/skills/atman-33/workhub/kb-lint)
Your own site
<a href="https://agentmods.dev/skills/atman-33/workhub/kb-lint"><img src="https://agentmods.dev/badge/skills/atman-33/workhub/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/skills/atman-33/workhub/kb-lint"><img src="https://agentmods.dev/badge/skills/atman-33/workhub/kb-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,637 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.00046 $0.01637
Opus 5.5 $0.00018 $0.00655
Sonnet 5.5 $0.00009 $0.00327
Haiku 4.5 $0.00005 $0.00164

Measured 22d ago against content hash de25f4f25757, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 22d 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/workhub/skills/kb-lint/SKILL.md · 197 lines

How it starts

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

KB Lint — Knowledge Base Health Check

Audit the workhub vault for structural issues, inconsistencies, and maintenance opportunities. Covers the note zones (inbox/, projects/, knowledge/, archive/), the memory note types under memory/notes/, plus a size check on memory/identity/decision-policy.md — the task board (tasks/) is app-managed and only gets link checks.

Usage

/kb-lint                       # Full report (read-only)
/kb-lint --fix                 # Auto-fix safe issues
/kb-lint --zone knowledge      # Lint only one zone

Checks

1. Index Drift

Compare _index.md contents (projects/_index.md, knowledge/_index.md, archive/_index.md) against actual files on disk.

Issue Meaning
MISSING Listed in index but file/folder not found
UNLISTED File/folder exists but not in index
STALE_INDEX updated date > 7 days older than newest change in the zone

Auto-fix: Add unlisted entries, remove missing entries, update dates.

2. Orphan Documents

Files in projects/, knowledge/, or archive/ that have:

  • No incoming [[wikilinks]] from other files
  • No entry in any _index.md
  • No tags

Exclude from check: journal/**, inbox/**, tasks/**, templates/**, _ai/**, _index.md, home.md, AGENTS.md, CLAUDE.md.

Report: List orphans with suggested action (link, tag, or archive).

3. Tag Consistency

Issue Rule
MISSING_PROJECT_TAG File in projects/x/ lacks #proj/x
BAD_TAG_FORMAT Spaces or unexpected casing in tag
CROSS_REF_TAG #proj/x tag on file outside projects/ — note as intentional cross-reference

Auto-fix: Add missing #proj/ tags to frontmatter.

4. Broken Links

For each [[wikilink]] found in vault documents:

  • Verify target file exists
  • Report BROKEN_LINK if not found

With obsidian CLI: obsidian links broken Without CLI: Grep for \[\[.*?\]\], resolve each target.

5. Frontmatter Quality

Check documents in note zones for required fields:

Read the full file on GitHub · 197 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. 22d ago Changed · +1 lines de25f4f25757
  2. 1mo ago Changed · +36 lines 1ec6e837b234
  3. 1mo ago Changed daecba00ec51
  4. 1mo ago Changed · +22 lines 265d69a11afa
  5. 1mo ago First seen · 138 lines · 46 tokens per session scan A aaf4c7e4c99a

Subscribe to this mod's changes

kb-lint is a skill published in the GitHub repository atman-33/workhub (3 stars, last pushed 2d ago), licensed MIT. It adds 46 tokens to every session and 1,637 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

garden-tending

Tend the knowledge garden — diagnose vault health, condense project memos into project.md overviews, create/merge cross-project topics, fix broken links, archive superseded notes, extend trails. Trigger on "tend the garden", "condense", "update project overview", "check vault health", "where are we with X?", "what…

linxule/memex-plugin · 131 tokens

curator-practice

Operating philosophy for autonomous memex curator tending — orientation protocol, signal triage, bounded work units, initiative thresholds, logging conventions. Trigger on cron-launched runs with no user prompt, "use your judgment", "tend without instructions", "do a pass on the vault", "I'll be away — do what needs…

linxule/memex-plugin · 153 tokens

memo-writing

How to write effective session memos — format, frontmatter schema, observation extraction, topic-signal append. Trigger on /memex:save, "save this for later", "remember this", "save what we discussed", "document this session", "create a memo", or when the [memex] activity nudge appears in context. Do NOT trigger for…

linxule/memex-plugin · 125 tokens

recall

Retrieve session memory across 4 modes — TEMPORAL (date browsing), KEYWORD (FTS lookup), DEEP (cross-session synthesis), LOAD (specific file). Trigger on "what did I do yesterday/last week", "why did we...", "remind me...", "find the memo about...", "last time we...", "patterns across projects", "load the X topic". Do…

linxule/memex-plugin · 112 tokens

superbrain-distill

Internal SuperBrain skill — run by the detached capture child to distill a session-event delta into routed Obsidian notes. Not for direct user invocation.

m3talux/superbrain · 36 tokens

trellis-update-spec

Captures executable contracts and coding conventions into .trellis/spec/ documents. Use when learning something valuable from debugging, implementing, or discussion that should be preserved for future sessions.

fy-agent/fyagent · 40 tokens