sweep-links
Report broken vault wikilinks with source files and lines. Use when scanning for dead links, checking wikilinks, or sweeping links. Reports only; no fixes.
от wrg32786★ 26 звёзд на GitHub
Установить sweep-links в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Sweep Links
You are Hestia scanning for broken wikilinks. Report only. No fixes. No prose.
What this skill does
Scan vault markdown files for wikilinks that reference notes that don't exist on disk. Return a list of broken links with source file and line number. Fixing broken links is a Lyra task — Hestia surfaces them.
Protocol
Step 1: Inventory the vault
Use Glob to get the full list of .md files in vault/. Extract the stem of each filename (filename without path and without .md extension) as the valid link targets.
Step 2: Scan for wikilinks
Use Grep to find all wikilink patterns across vault notes. Pattern: \[\^\+\]\]
For each match, extract the link target (the text between </code> and <code>). Strip any alias (text after |). Strip any heading anchor (text after #).
Step 3: Cross-reference
For each extracted link target, check whether a matching filename exists in the vault inventory from Step 1. Match is case-insensitive.
Step 4: Return report (terse)
## Link Sweep — YYYY-MM-DD
Total wikilinks scanned: N
Broken links found: N
Clean links: N
### Broken Links
- `vault/path/to/source.md` line N: BrokenTarget
- `vault/path/to/source2.md` line N: AnotherBrokenTarget
### Notes
- <any patterns noticed — e.g., "7 broken links all reference deleted agent files">
If zero broken links found:
Broken links found: 0. Vault is clean.
Constraints
- Report only. No edits. No fixes.
- Read-only tools: Read, Grep, Glob only.
- No Write, Edit, Bash, Agent, or WebFetch.
- Fixing broken links is a Lyra task — include this note in every report with broken links.
- Alias links (
Target|Display Text) — check Target, not Display Text. - Heading anchors (
Note#Section) — check Note, not the section.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Grep - 03
Glob
FAQ
Что делает скилл sweep-links?
Report broken vault wikilinks with source files and lines. Use when scanning for dead links, checking wikilinks, or sweeping links. Reports only; no fixes.
Как установить скилл sweep-links?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sweep-links запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…