← ClaudeAtlas

article-interlinklisted

Use when the user invokes /interlink or /interlink <slug>. Scans article HTML pages, builds and maintains a persistent link-map.json, and adds Wikipedia-style internal cross-links to article bodies. Triggers on "/interlink", "interlink articles", "add internal links", or "cross-link articles".
Kevinnnnn-ai/astronology.dev · ★ 0 · Web & Frontend · score 60
Install: claude install-skill Kevinnnnn-ai/astronology.dev
# Article Interlink Add Wikipedia-style internal cross-links across article pages. Spec: [docs/superpowers/specs/2026-05-30-article-interlink-design.md](../../../docs/superpowers/specs/2026-05-30-article-interlink-design.md) --- ## On Invoke Parse the trigger to determine the target scope: - `/interlink` → target is **all** `src/articles/*.html` files - `/interlink <slug>` → target is **only** `src/articles/<slug>.html` Announce: > "Using article-interlink to cross-link articles[: <slug>]." Read the following before doing anything else: - `src/articles/link-map.json` — current keyword registry - `src/js/config.js` — article registry (`SITE_CONFIG.articles`), specifically each entry's `title`, `link`, and slug (derived from `link` by stripping `"articles/"` and `".html"`) - All target article HTML files --- ## Phase 1 — Scan & Build Map **Goal:** Identify keywords in each target article that are the subject of another article, and update `link-map.json`. ### Steps 1. Load the existing `link-map.json` array into memory. If the file is empty (`[]`), start with an empty array. 2. Build an **article registry** from `SITE_CONFIG.articles`: - For each entry, extract: - `title` — the article's full title - `url` — the value of `link` (e.g., `"articles/sample-article.html"`), or `"#"` if `link` is `"#"` or absent - `articleSlug` — derived from `link`: strip `"articles/"` prefix and `".html"` suffix (e.g., `"articles/sample-article.html"` → `"sample-art