kb-lint

kb-lint is a skill for Claude Code, Codex from yinqd3/workbuddy-skills. It costs 64 tokens per session (798 once invoked), scanned A, original, MIT.

A health-check tool for an Obsidian knowledge base, which is a collection of linked notes. It checks broken links, orphan pages, outdated status, incomplete concept pages, and inconsistent statuses.

In plain words
What is it for?
Running full or focused checks on an Obsidian vault and printing a report without changing the knowledge-base files.
Why use it?
It finds maintenance problems that can make a note system difficult to navigate or trust.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Running full or focused checks on an Obsidian vault and printing a report without changing the knowledge-base files.

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

Made for: Claude Code, Codex.

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/yinqd3/workbuddy-skills/kb-lint/github.svg)](https://agentmods.dev/skills/yinqd3/workbuddy-skills/kb-lint)
Your own site
<a href="https://agentmods.dev/skills/yinqd3/workbuddy-skills/kb-lint"><img src="https://agentmods.dev/badge/skills/yinqd3/workbuddy-skills/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/yinqd3/workbuddy-skills/kb-lint"><img src="https://agentmods.dev/badge/skills/yinqd3/workbuddy-skills/kb-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 798 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.00064 $0.00798
Opus 5 $0.00032 $0.00399
Sonnet 5 $0.00013 $0.00160
Haiku 4.5 $0.00006 $0.00080

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

kb-lint/SKILL.md · 73 lines

How it starts

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

Knowledge Base Lint (kb-lint)

Run health checks on an Obsidian knowledge base using the lint_kb.py script. Configure your vault path in the script or pass it as an argument.

When to Use

  • User says "检查知识库", "跑一下 lint", "健康检查", "看看有没有断裂链接"
  • After any significant ingest session (adding multiple new papers/projects)
  • Before weekly or monthly maintenance
  • When troubleshooting [[wikilink]] issues

Available Script

<your-vault-path>/工具脚本/lint_kb.py — the comprehensive lint tool. Update VAULT_PATH in the script to point to your Obsidian vault.

Running Checks

⚠️ lint 报告仅输出到终端,不会写知识库文件。

Full check (all 5 categories)

cd "<your-vault-path>" && python "工具脚本/lint_kb.py"

Single category check

cd "<your-vault-path>" && python "工具脚本/lint_kb.py" --check broken-links
cd "<your-vault-path>" && python "工具脚本/lint_kb.py" --check orphans
cd "<your-vault-path>" && python "工具脚本/lint_kb.py" --check stale
cd "<your-vault-path>" && python "工具脚本/lint_kb.py" --check concept
cd "<your-vault-path>" && python "工具脚本/lint_kb.py" --check consistency

Verbose mode (show detailed progress)

cd "<your-vault-path>" && python "工具脚本/lint_kb.py" --verbose

Understanding Results

5 Check Categories

Check What it detects Typical fixes
Broken wikilinks [[目标]] pointing to non-existent files Fix filename in link, or create missing card
Orphan pages Pages with zero inbound [[wikilink]] Add cross-references from related cards
Stale status Cards with old status (e.g., "投稿中" unmodified >90 days) Update status field in frontmatter
Concept completeness Concept pages missing linked papers, or papers with matching tags not linked from concept page Add related_papers to concept page frontmatter
Status consistency Projects past end_date still "进行中", students past graduation without update Update status or date in frontmatter

Common Fix Patterns

Read the full file on GitHub · 73 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. 11d ago First seen · 73 lines · 0 tokens per session scan A c56154578847

Subscribe to this mod's changes

kb-lint is a skill published in the GitHub repository yinqd3/workbuddy-skills (6 stars, last pushed 3mo ago), licensed MIT. It adds 64 tokens to every session and 798 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

wiki-retrieve

Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta…

AgriciDaniel/claude-obsidian · 81 tokens

obsidian-bases

Explain, draft, and validate Obsidian Bases .base files with filters, formulas, properties, summaries, and table, card, or list views. Use for Obsidian Bases, database-like vault views, dynamic tables, reading lists, task trackers, filters, formulas, summaries, and .base file edits.

AgriciDaniel/claude-obsidian · 69 tokens

wiki-import

Import a wiki knowledge graph into the current vault — either from a graph.json export file (stubs) or from an OKF (Open Knowledge Format) markdown bundle (full page bodies). Use this skill when the user says "import wiki", "import from export", "load graph.json", "import vault", "import OKF bundle", "import OKF"…

Ar9av/obsidian-wiki · 108 tokens

openclaw-history-ingest

Ingest OpenClaw agent history into the Obsidian wiki. Use this skill when the user wants to mine their past OpenClaw sessions for knowledge, import their /.openclaw folder, extract insights from previous OpenClaw conversations, or says things like "process my OpenClaw history", "add my OpenClaw sessions to the wiki"…

Ar9av/obsidian-wiki · 125 tokens

wiki-digest

Generate a periodic knowledge digest — a human-readable newsletter-style summary of what was learned, updated, and connected in your wiki over a specified period (day/week/month). Use when the user says "what did I learn this week", "give me a digest", "weekly summary", "knowledge report", "what's new in my wiki"…

Ar9av/obsidian-wiki · 121 tokens

hermes-history-ingest

Ingest Hermes agent history into the Obsidian wiki. Use this skill when the user wants to mine their past Hermes sessions for knowledge, import their /.hermes folder, extract insights from previous Hermes conversations, or says things like "process my Hermes history", "add my Hermes memories to the wiki", "ingest…

Ar9av/obsidian-wiki · 108 tokens