Wiki Links
Use this as the standalone skill for wiki link maintenance. It owns the repository's deterministic link audit and repair workflow.
What It Covers
argument-notes->permanent-notesdeterministic link syncsupports/nextaudit and repair- permanent-note
Linksblock cleanup - reference-note
Links/Referencescleanup - broken
[[wikilink]]target detection acrosswiki/ - hidden-folder targets such as
archive/.cache/*being treated as broken for Obsidian browsing - structure / argument / permanent layer link-rule audit
- permanent-note reachability from
structure-notes - permanent-note and reference-note
Referencesformat audit
Modes
audit- Report repository issues without changing notes.
- Use this when you want to inspect link health, empty links, bad targets, or rule violations.
fix- Apply deterministic repairs after the argument logic is already correct.
- Use this when you want to sync
supports/next, prune disallowedLinksresidue, or normalize known-safe link structures.
Scope Boundary
- This skill is for link integrity and link-adjacent repository rules.
- It does not decide semantic merges, argument boundaries, or missing bridge-note content.
- For semantic open questions, fix the note logic first, then run this skill.
Workflow
- Decide whether the task is
auditorfix. - If argument order changed, update the argument note manually first.
- Run audit to see broken targets and rule violations.
- If the issue is deterministic, run the fix command.
- Re-run audit until the relevant issue class returns to zero.
Commands
Audit the whole wiki:
python3 skills/wiki-links/scripts/audit_argument_links.py
Audit selected argument notes:
python3 skills/wiki-links/scripts/audit_argument_links.py \
wiki/argument-notes/20260414-如何构建长期有效的学习系统.md
Sync argument-derived supports/next:
python3 skills/wiki-links/scripts/sync_argument_links.py --apply
Sync selected argument notes and prune disallowed residue:
python3 skills/wiki-links/scripts/sync_argument_links.py --apply --prune-disallowed \
wiki/argument-notes/20260414-如何构建长期有效的学习系统.md
Clean all permanent-note Links blocks without changing chain order:
python3 skills/wiki-links/scripts/clean_permanent_links.py --apply
Normalize permanent-note and reference-note structural residue:
python3 skills/wiki-links/scripts/normalize_permanent_references.py --apply
Hard Rules
- Treat
auditandfixas two separate modes, even when they use the same rule set. - Do not auto-fix semantic chain decisions.
- Broken
[[wikilink]]targets inwiki/are repository issues and must not be ignored. - Links that only resolve through hidden directories like
archive/.cache/are considered broken for Obsidian use. - Prefer filename-only wikilinks in permanent-note
Referenceswhen the source file is in the vault. structure-notes只允许指向argument-notes。argument-notes只允许与structure-notes和permanent-notes建立结构性关联。permanent-notes用supports指向argument-notes,用next指向同链路中的下一条permanent-note。reference-notes不使用supports/next,Links只用于相关permanent-notes,References统一使用from/references/url。