# /wiki-lint: Find broken links and gaps in an Obsidian wiki

Source: https://trendhub.net/skills/agricidaniel-claude-obsidian/wiki-lint
Skill folder: https://github.com/AgriciDaniel/claude-obsidian/tree/main/skills/wiki-lint
Pack: claude-obsidian (https://trendhub.net/skills/agricidaniel-claude-obsidian)
Works with: Claude Code, Codex, OpenCode, Gemini, ZCode, Cursor and Windsurf

wiki-lint runs the plugin's deterministic lint engine over the vault and explains the results without changing anything. It understands wikilinks, embeds, aliases, heading and block fragments and code fences, and reports only what the engine found. Repairs are a separate step: you choose the findings, and the agent builds and previews one repair transaction.

## When to use it

- Your vault has grown and you suspect dead links or orphaned pages.
- You want a health check before sharing or syncing a vault.
- You need a non-zero exit code on findings for an automated check.

## How it works

1. **Run the engine**: The agent runs the bundled lint command against the selected vault, optionally as Markdown, with exclusions for scratch folders or strict mode for automation.
2. **Explain by impact**: Findings are grouped from broken navigation and ambiguous links to metadata and maintainability, keeping the engine's paths, lines and counts.
3. **Separate fact from advice**: It notes that an orphan may be intentional and keeps suggested fixes apart from what the engine actually reported.
4. **Repair only on request**: For findings you pick, it records current hashes, drafts one repair bundle, previews it, applies after review and re-runs lint.

## What it steers the agent away from

- Auto-fixing lint results.
- Claiming checks the engine did not perform, such as prose contradiction analysis.
- Writing the lint report into the vault.

## What it can touch

It runs the bundled Python lint command read-only and returns the report in chat; any repair is a separate approved transaction.

## Pairs well with

- `/wiki-fold`
- `/wiki-ingest`

## Questions

### Does it skip hidden folders?

Yes. Dot-prefixed directories are skipped by default, the same way Obsidian's own indexer works, and gitignored files are dropped from ambiguous link matches.

### Can I exclude a folder?

Yes. A repeatable exclude flag with a glob scopes paths such as a scratchpad out of every check.
