wiki-lint

wiki-lint is a skill for Claude Code from zhaixin244-wq/fnw. It costs 84 tokens per session (4,127 once invoked), scanned A, original, MIT.

A health checker for an Obsidian wiki, a folder of linked Markdown notes. It looks for broken links, isolated pages, outdated claims, missing metadata, and other structural problems.

In plain words
What is it for?
Use it to review wiki quality, create or update Dataview dashboards, generate canvas maps, and produce maintenance reports.
Why use it?
It helps you find wiki issues that are easy to miss when maintaining many connected notes.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is if [ -x ./scripts/allocate-address.sh ] && [ -f ./.vault-meta/address-counter.txt ]; then.

Good fit Use it to review wiki quality, create or update Dataview dashboards, generate canvas maps, and produce maintenance reports.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/zhaixin244-wq/fnw
agentmods
npx agentmods add skills/zhaixin244-wq/fnw/wiki-lint

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhaixin244-wq/fnw/wiki-lint/github.svg)](https://agentmods.dev/skills/zhaixin244-wq/fnw/wiki-lint)
Your own site
<a href="https://agentmods.dev/skills/zhaixin244-wq/fnw/wiki-lint"><img src="https://agentmods.dev/badge/skills/zhaixin244-wq/fnw/wiki-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 wiki-lint

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhaixin244-wq/fnw/wiki-lint"><img src="https://agentmods.dev/badge/skills/zhaixin244-wq/fnw/wiki-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,127 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.00084 $0.04127
Opus 5 $0.00042 $0.02063
Sonnet 5 $0.00017 $0.00825
Haiku 4.5 $0.00008 $0.00413

Measured 9d ago against content hash 2f9775e50a4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

wiki-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 9d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • wiki-lint — 98% identical, 60 lines differ
.claude/skills/wiki-lint/SKILL.md · 364 lines

How it starts

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

wiki-lint: Wiki Health Check

Run lint after every 10-15 ingests, or weekly. Ask before auto-fixing anything. Output a lint report to wiki/meta/lint-report-YYYY-MM-DD.md.


Lint Checks

Work through these in order:

  1. Orphan pages. Wiki pages with no inbound wikilinks. They exist but nothing points to them.
  2. Dead links. Wikilinks that reference a page that does not exist.
  3. Stale claims. Assertions on older pages that newer sources have contradicted or updated.
  4. Missing pages. Concepts or entities mentioned in multiple pages but lacking their own page.
  5. Missing cross-references. Entities mentioned in a page but not linked.
  6. Frontmatter gaps. Pages missing required fields (type, status, created, updated, tags).
  7. Empty sections. Headings with no content underneath.
  8. Stale index entries. Items in wiki/index.md pointing to renamed or deleted pages.
  9. Address validity (DragonScale Mechanism 2). For every page that has an address: frontmatter field, validate the format. See the Address Validation section below.
  10. Semantic tiling (DragonScale Mechanism 3, opt-in). Flag candidate duplicate pages (across all scanned types, not just concepts) via embedding cosine similarity. See the Semantic Tiling section below.

Lint Report Format

Create at wiki/meta/lint-report-YYYY-MM-DD.md:

---
type: meta
title: "Lint Report YYYY-MM-DD"
created: YYYY-MM-DD
updated: YYYY-MM-DD
tags: [meta, lint]
status: developing
---

# Lint Report: YYYY-MM-DD

## Summary
- Pages scanned: N
- Issues found: N
- Auto-fixed: N
- Needs review: N

## Orphan Pages
- [[Page Name]]: no inbound links. Suggest: link from [[Related Page]] or delete.

## Dead Links
- [[Missing Page]]: referenced in [[Source Page]] but does not exist. Suggest: create stub or remove link.

## Missing Pages
- "concept name": mentioned in [[Page A]], [[Page B]], [[Page C]]. Suggest: create a concept page.

## Frontmatter Gaps
- [[Page Name]]: missing fields: status, tags

## Stale Claims
- [[Page Name]]: claim "X" may conflict with newer source [[Newer Source]].

## Cross-Reference Gaps
- [[Entity Name]] mentioned in [[Page A]] without a wikilink.

Read the full file on GitHub · 364 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. 9d ago First seen · 364 lines · 84 tokens per session scan A 2f9775e50a4e

Subscribe to this mod's changes

wiki-lint is a skill published in the GitHub repository zhaixin244-wq/fnw (29 stars, last pushed 3mo ago), licensed MIT. It adds 84 tokens to every session and 4,127 once invoked, about $0.0004 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-09-03.