kb-lint

kb-lint is a skill for Claude Code from ernestolee13/para-knowledge-base. It costs 39 tokens per session (2,931 once invoked), scanned A, original, MIT.

A health check for a PARA knowledge base, a note system organized into Projects, Areas, Resources, and Archive. It looks for missing index entries, broken links, unlinked documents, tag problems, and outdated content.

In plain words
What is it for?
Run it during regular maintenance or a weekly review to audit the whole vault or one category.
Why use it?
It shows structural problems that are easy to miss when maintaining many notes by hand. It can report issues without changing files or apply safe fixes when requested.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the para-knowledge-base plugin — 5 skills, 3 hooks shipped together

Good fit Run it during regular maintenance or a weekly review to audit the whole vault or one category.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ernestolee13/para-knowledge-base/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 ernestolee13/para-knowledge-base --skill kb-lint
Clone the repo
git clone --depth 1 https://github.com/ernestolee13/para-knowledge-base

Made for: Claude Code.

Or install para-knowledge-base, the plugin that ships this one along with the rest of its 5 skills, 3 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 kb-lint

README.md
[![agentmods](https://agentmods.dev/badge/skills/ernestolee13/para-knowledge-base/kb-lint/github.svg)](https://agentmods.dev/skills/ernestolee13/para-knowledge-base/kb-lint)
Your own site
<a href="https://agentmods.dev/skills/ernestolee13/para-knowledge-base/kb-lint"><img src="https://agentmods.dev/badge/skills/ernestolee13/para-knowledge-base/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/ernestolee13/para-knowledge-base/kb-lint"><img src="https://agentmods.dev/badge/skills/ernestolee13/para-knowledge-base/kb-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,931 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00039 $0.02931
Opus 5.5 $0.00016 $0.01172
Sonnet 5.5 $0.00008 $0.00586
Haiku 4.5 $0.00004 $0.00293

Measured 1mo ago against content hash edc385f67204, 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 1mo 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.

skills/kb-lint/SKILL.md · 232 lines

How it starts

The opening of the file, as written. The whole thing — 232 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 vault for structural issues, inconsistencies, and maintenance opportunities.

Token-efficient by design: prefer obsidian-cli calls (single command result) over reading full vault into context. CLI uses Obsidian's actual link resolution — much more accurate than naive grep matching.

When .para-kb/config.json exists, use its PARA roots, index names, telemetry paths, and exclusions. Remove .para-kb/, the Obsidian config directory, active/archive telemetry, runtime state, and generated reports from every document denominator before calculating orphan, frontmatter, stale-content, or index-drift metrics.

Usage

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

Checks

1. Index Drift

Compare _index.md contents against actual files on disk.

Issue Meaning
MISSING Listed in index but file not found
UNLISTED File exists but not in index
STALE_COUNT Count in top-level index doesn't match
STALE_INDEX updated date > 7 days old

CLI: obsidian files folder="1. Projects" for actual files; compare against _index.md lines. Auto-fix: Add unlisted files, remove missing entries, update counts and dates.

2. Orphan Documents

Files with no incoming wikilinks.

With CLI (preferred): obsidian orphans — uses Obsidian's actual link graph.

Without CLI: comm -13 <(grep wikilinks sorted) <(find files sorted).

Exclude (false positives):

  • 0. Common/daily/*, 0. Common/weekly/*, _index.md, CLAUDE.md, Dashboard.md
  • .para-kb/*, the configured Obsidian directory, active/archive telemetry, and generated report paths
  • 0. ... 프로젝트 개요.md — referenced by folder name in indexes, not by full filename
  • templates/*, _templates/* — Obsidian Templater templates
  • Any file with frontmatter tags containing project/topic tags (cross-folder reference is intentional)

Read the full file on GitHub · 232 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. 1mo ago Changed · +5 lines edc385f67204
  2. 1mo ago First seen · 227 lines · 39 tokens per session scan A 7691f40581ec

Subscribe to this mod's changes

kb-lint is a skill published in the GitHub repository ernestolee13/para-knowledge-base (21 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 2,931 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-08-30.

Related

Other skills, from other repositories

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

refresh-context

A context snapshot updater for Core Context.md, a summary file built from nine main system files and selected essays. It refreshes that summary when the underlying material changes or the snapshot is more than 30 days old.

johnfkoo951/cmds-llm-wiki · 51 tokens

llm-wiki

Explain and apply the foundational LLM Wiki architecture and knowledge-management strategy. Use for setup, architecture, schema, or organization decisions; operational ingest/query/lint work uses dedicated skills.

Ar9av/obsidian-wiki · 41 tokens

wiki-lint

Audit wiki health: broken links, orphans, contradictions, stale content, lifecycle and tag issues. Use for maintenance or health checks. Default is report-only; use wiki-dedup for page-identity merges.

Ar9av/obsidian-wiki · 47 tokens

wiki-export

Export the Obsidian wiki graph to JSON, GraphML, Neo4j Cypher, Postgres/SQL, HTML, or OKF bundles. Use when transferring or visualizing wiki data in external tools; wiki-import handles the reverse direction.

Ar9av/obsidian-wiki · 53 tokens

wiki-query

Search and synthesize answers from the compiled Obsidian wiki, including cited and multi-hop answers. Use for questions about existing wiki knowledge or fast index-only lookups, and for challenge requests ("challenge this", "argue against X", "poke holes in my plan") that look for the vault's own evidence against a…

Ar9av/obsidian-wiki · 89 tokens