kb-lint

kb-lint is a skill for Claude Code, Codex from ernestolee13/para-knowledge-base. It costs 39 tokens per session (2,579 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 CodeCodex

Part of the para-knowledge-base plugin — 5 skills, 3 hooks 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/ernestolee13/para-knowledge-base/kb-lint
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, Codex.

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.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.svg" alt="Measured on agentmods" 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,579 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.1 $0.00039 $0.02579
Opus 5 $0.00019 $0.01290
Sonnet 5 $0.00008 $0.00516
Haiku 4.5 $0.00004 $0.00258

Measured 5d ago against content hash 7691f40581ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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 · 227 lines

How it starts

The opening of the file, as written. The whole thing — 227 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 · 227 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. 5d 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 today), licensed MIT. It adds 39 tokens to every session and 2,579 once invoked, about $0.0002 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

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

compile-wiki

Merge source summaries into durable concept pages with backlinks, index entries, and explicit open questions.

arnaudgelas/K-Ops · 22 tokens

refresh-context

Re-snapshot Core Context.md from the 9 mothership system files and key essays when the mothership changes or the snapshot is older than 30 days; also responds to /refresh-context and 코어 컨텍스트 갱신.

johnfkoo951/cmds-llm-wiki · 51 tokens

qa-agent

Answer questions from the vault, then file durable insights back into the knowledge base.

arnaudgelas/K-Ops · 19 tokens

llm-wiki

The foundational knowledge distillation pattern for building and maintaining an AI-powered Obsidian wiki. Based on Andrej Karpathy's LLM Wiki architecture. Use this skill whenever the user wants to understand the wiki pattern, set up a new knowledge base, or needs guidance on the three-layer architecture (raw sources…

Ar9av/obsidian-wiki · 113 tokens

wiki-export

Export the Obsidian wiki's knowledge graph to structured formats for use in external tools. Use this skill when the user says "export wiki", "export graph", "export to JSON", "export to Gephi", "export to Neo4j", "export to Postgres", "export to SQL", "graphml", "visualize wiki", "knowledge graph export", "export to…

Ar9av/obsidian-wiki · 172 tokens