Skip to main content
Run any Skill in Manus
with one click

frontmatter-ref-fix

Stars0
Forks1
UpdatedMay 10, 2026 at 07:15

Normalize relative-path `*.md` references inside KOS page frontmatter (`related:`, `source_refs:`, etc.) into canonical slug form. v1-wiki legacy left ~220 refs in `../X/Y.md` shape across the brain; gbrain's link-extraction DIR_PATTERN doesn't accept `sources/` (plural) so frontmatter refs to source pages all silently fail to resolve. v2 adds: (1) EXTERNAL_POINTER_KEYS allowlist for fields that legitimately point at brain-external paths (e.g. `raw_path:`); (2) bare-slug fuzzy resolve via basename index; (3) optional deletion of brain-external refs (`../../X.md`) and dead links (`X/Y.md` with missing target).

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
2 files
SKILL.md
readonly