Skip to main content
skill CX Codex

wiki-lint · agricidaniel — Claude Code skill: Obsidian wiki health check

Runs a deterministic read-only check on an Obsidian vault: dead links, orphan pages, frontmatter gaps. It reports, it does not repair.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add AgriciDaniel/claude-obsidian --skill wiki-lint -a claude-code
Open on GitHub

What wiki-lint does

The skill drives a portable lint engine that ships with the installed product. It reads vault state and returns findings: dead or ambiguous links, orphan pages, missing required frontmatter (including title), empty sections, stale index entries, and source/claim ledger contract violations. It does not do semantic or prose-level contradiction analysis, so do not claim that it did.

The parser handles Obsidian wikilinks and embeds, Markdown links, aliases, heading and block fragments, escaped aliases, and code fences. Dot-prefixed directories are skipped, mirroring Obsidian's own indexer. Link resolution honors .gitignore files inside the vault without spawning git: when a link is ambiguous between a page and a gitignored file such as a build artifact, the gitignored candidate is dropped. The repeatable --exclude GLOB flag scopes a path out of page, link, orphan, frontmatter, empty-section, and stale-index scanning.

You need Python 3 and the path to the installed product: the engine sits at scripts/claude-obsidian.py and runs as python3 "$CORE" lint --vault "$VAULT". Add --strict only when a nonzero exit for findings helps your automation; the command stays read-only either way. Repair is a separate operation. Re-read each target and record its expected SHA-256, draft only the selected changes, build one repair bundle with a new operation ID, inspect it, then apply after that review. Lint never auto-fixes and never commits Git.

What it helps with

  • find dead links across an Obsidian vault
  • list orphan pages with no inbound links
  • catch missing required frontmatter fields such as title
  • spot empty sections and stale index entries
  • check source and claim ledger contract violations

Example prompts for the agent

  • run wiki-lint on my Obsidian vault
  • check vault health and show orphans and dead links
  • run lint with --exclude "wiki/scratchpad/*"

How to install wiki-lint

1Skills CLI (Vercel)

npx skills add AgriciDaniel/claude-obsidian --skill wiki-lint -a claude-code

2Manually: put the files in place

~/.claude/skills/wiki-lint/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/wiki-lint/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about wiki-lint

How do I install wiki-lint in Claude?

Run npx skills add AgriciDaniel/claude-obsidian --skill wiki-lint -a claude-code. The skill lands at ~/.claude/skills/wiki-lint/SKILL.md.

What does wiki-lint do?

It runs a read-only check on an Obsidian vault and reports dead or ambiguous links, orphans, frontmatter gaps, empty sections, stale index entries, and ledger contract violations. It does not modify files.

Does wiki-lint fix what it finds?

No. Repair is a separate operation: re-read targets, record their SHA-256, build a repair bundle with a new operation ID, and apply only after a separate review. Lint never commits Git.

Source text

SKILL.md · MIT
---
name: wiki-lint
description: "Run a deterministic, read-only health check on an Obsidian wiki. Use for lint, vault health check, audit wiki health, find orphans, find dead links, frontmatter audit, provenance audit, or wiki audit. Reports graph, link, frontmatter, provenance-ledger, empty-section, and stale-index findings; it does not reason broadly or repair files."
---

# Lint the wiki

Use the portable lint engine as the source of truth. Lint observes vault state;
it does not create reports, dashboards, canvases, stubs, or fixes.

Resolve the installed product root from this skill's own location, not from the
vault or current working directory:

```bash
PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian
CORE="$PRODUCT_ROOT/scripts/claude-obsidian.py"
test -f "$CORE"
```

Every `../wiki/references/` link in this file resolves the same way, relative
to this skill's own directory under `$PRODUCT_ROOT`, never relative to the
selected vault's `wiki/` directory.

## Run

Resolve the user vault, then run one of:

```bash
python3 "$CORE" lint --vault "$VAULT"
python3 "$CORE" lint --vault "$VAULT" --format markdown
python3 "$CORE" lint --vault "$VAULT" --exclude "wiki/scratchpad/*"
```

The repeatable `--exclude GLOB` flag scopes a path (for example a scratchpad
folder) out of page, link-resolution, orphan, frontmatter, empty-section, and
stale-index scanning.

Use `--strict` only when a nonzero exit for findings is useful in automation.
The command remains read-only either way.

The deterministic parser understands Obsidian wikilinks and embeds, Markdown
links, aliases, heading and block fragments, escaped aliases, and code fences.
It skips dot-prefixed directories by default, mirroring Obsidian's own
indexer. Link resolution honors `.gitignore` files inside the vault (no `git`
subprocess): when a link is ambiguous between a page and a gitignored file
such as a build artifact, the gitignored candidate is dropped.
It reports such categories as dead or ambiguous links, orphan pages, required
frontmatter gaps (including `title`), empty sections, stale index entries, and
source/claim ledger contract violations. Report only the
checks and counts present in its output; do not claim that it performed
semantic, stylistic, or prose-level contradiction analysis when it did
not.

## Explain findings

1. Preserve the engine's paths, line numbers, targets, categories, and counts.
2. Group findings by likely impact: broken navigation, ambiguous resolution,
   metadata quality, then maintainability.
3. Explain that an orphan may be intentional and an ambiguous basename needs a
   path-qualified link; do not infer intent from the finding alone.
4. Treat allowlisted findings as policy, not as proof that the target exists.
5. Separate deterministic facts from suggested remediation.

Do not write the Markdown rendering into the vault. Return it in chat or stdout.

## Repair is a separate operation

Never auto-fix a lint result. After the user chooses specific findings to
repair:

1. Re-read each target and record its expected SHA-256.
2. Draft only the selected changes; do not delete or merge pages without
   explicit consent.
3. Build one repair bundle with a new operation ID.
4. Inspect the bundle and show exact changed paths.
5. Apply only after that separate review.
6. Re-run lint read-only and compare the relevant findings.

Follow the [operation transaction contract](../wiki/references/operation-transactions.md).
Lint itself never applies that transaction and never commits Git.

## Checkpoint

Observe the deterministic report, think about root causes rather than finding
count, verify proposed repairs against current hashes, and grow by improving the
workflow that produced repeated findings.

© AgriciDaniel · MIT · AgriciDaniel/claude-obsidian

Similar skills

All skills for Agent setup: memory, context, orchestration →

wiki-lint by other authors comes first.

From the same set11

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor