wiki-lint · agricidaniel — скилл для Claude Code: проверка здоровья Obsidian-вики
Прогоняет детерминированную проверку Obsidian-вики: битые ссылки, страницы-сироты, пробелы во frontmatter. Ничего не правит — только показывает.
npx skills add AgriciDaniel/claude-obsidian --skill wiki-lint -a claude-codeЧто делает wiki-lint
Скилл запускает портируемый движок линта из установленного продукта. Он читает состояние хранилища и выдаёт отчёт: мёртвые и неоднозначные ссылки, страницы-сироты, пропущенный обязательный frontmatter (включая title), пустые секции, устаревшие записи индекса, нарушения контракта реестра источников и утверждений. Семантику и противоречия в тексте он не анализирует — не приписывайте ему этого.
Парсер понимает wikilinks и вставки Obsidian, ссылки Markdown, алиасы, фрагменты заголовков и блоков, экранированные алиасы и блоки кода. Каталоги с точкой в начале пропускаются, как в индексаторе Obsidian. Разрешение ссылок учитывает .gitignore внутри хранилища без вызова git: если ссылка неоднозначна между страницей и игнорируемым файлом вроде артефакта сборки, кандидат отбрасывается. Флаг --exclude GLOB повторяемый и выводит путь из сканирования страниц, ссылок, сирот, frontmatter, пустых секций и индекса.
Перед запуском нужен Python 3 и путь к установленному продукту: движок лежит в scripts/claude-obsidian.py и вызывается как python3 "$CORE" lint --vault "$VAULT". Флаг --strict даёт ненулевой код возврата при находках — это для автоматизации, команда всё равно остаётся read-only. Починка — отдельная операция: сначала перечитайте цели и запишите их SHA-256, соберите один пакет правок с новым operation ID, покажите изменённые пути и применяйте только после отдельного просмотра. Автофикс линта не делает и Git не коммитит.
Какие задачи решает
- найти битые ссылки в хранилище Obsidian
- вычислить страницы-сироты без входящих ссылок
- проверить обязательные поля frontmatter, включая
title - отловить пустые секции и устаревшие записи индекса
- проверить контракт реестра источников и утверждений
Примеры запросов агенту
- прогони wiki-lint по моему хранилищу Obsidian
- проверь здоровье вики и покажи сирот и мёртвые ссылки
- запусти lint с
--exclude "wiki/scratchpad/*"
Как установить wiki-lint
1Через Skills CLI (Vercel)
npx skills add AgriciDaniel/claude-obsidian --skill wiki-lint -a claude-code2Вручную: положить файлы
~/.claude/skills/wiki-lint/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/wiki-lint/
1Через Skills CLI (Vercel)
npx skills add AgriciDaniel/claude-obsidian --skill wiki-lint -a codex2Вручную: положить файлы
.agents/skills/wiki-lint/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add AgriciDaniel/claude-obsidian --skill wiki-lint -a cursor2Вручную: положить файлы
.cursor/skills/wiki-lint/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install AgriciDaniel/claude-obsidian wiki-lint2Вручную: положить файлы
.github/skills/wiki-lint/SKILL.md1Через Skills CLI (Vercel)
npx skills add AgriciDaniel/claude-obsidian --skill wiki-lint -a gemini-cli2Командой платформы
gemini skills install https://github.com/AgriciDaniel/claude-obsidian --path skills/wiki-lintВручную: положить файлы
.devin/skills/wiki-lint/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add AgriciDaniel/claude-obsidian --skill wiki-lint -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о wiki-lint
Как установить wiki-lint в Claude?
Выполните npx skills add AgriciDaniel/claude-obsidian --skill wiki-lint -a claude-code. Скилл встанет в ~/.claude/skills/wiki-lint/SKILL.md.
Что делает wiki-lint?
Запускает read-only проверку Obsidian-вики и сообщает о битых и неоднозначных ссылках, сиротах, пробелах во frontmatter, пустых секциях, устаревшем индексе и нарушениях реестра. Файлы не меняет.
wiki-lint сам исправляет найденное?
Нет. Починка идёт отдельной операцией: перечитать цели, записать их SHA-256, собрать пакет правок с новым operation ID и применить после отдельного просмотра. Линт не коммитит Git.
Исходный текст
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
Похожие скиллы
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Сначала — wiki-lint от других авторов.