Skip to content

Commit 2ee12dd

Browse files
committed
feat(scripts): check:skill-links walks every relative link and anchor in the published skills
A new gate in the check:skill-* family, wired as one more step in the lint lane that already runs the family. Fragments are judged under GitHub's own slug rule (em-dashes and punctuation deleted, spaces to hyphens with no collapsing, -N for repeats), so the catalog's many double-hyphen anchors read as the links they are. Ships with a battery-floored --self-test that reproduces the three moved-verbatim links the 2026-11-02 review found by hand. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jU4PLtyyimMz72z285
1 parent 3a0aa91 commit 2ee12dd

3 files changed

Lines changed: 477 additions & 0 deletions

File tree

‎.github/workflows/lint.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5385,6 +5385,14 @@ jobs:
53855385
continue-on-error: true
53865386
run: pnpm check:skill-top-level-keys
53875387

5388+
# Rationale: `scripts/check-skill-links.mjs` header (#31115). Same job, no
5389+
# paths filter: a section moved between skill files breaks the links INTO
5390+
# it from files the move never touched.
5391+
- name: Check every relative link and anchor in the published skills resolves
5392+
id: check-every-relative-link-and-anchor-in
5393+
continue-on-error: true
5394+
run: pnpm check:skill-links
5395+
53885396
# Rationale: `scripts/check-agent-model-declared.mjs` header (#6803, #6686).
53895397
- name: Check every agent definition declares a model
53905398
id: check-every-agent-definition-declares

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"check:skill-frame-freshness": "node scripts/check-skill-frame-freshness.mjs --self-test && node scripts/check-skill-frame-freshness.mjs",
6969
"check:skill-compatibility": "node scripts/check-skill-compatibility-version.mjs --self-test && node scripts/check-skill-compatibility-version.mjs",
7070
"check:skill-top-level-keys": "node scripts/check-skill-top-level-keys.mjs --self-test && node scripts/check-skill-top-level-keys.mjs",
71+
"check:skill-links": "node scripts/check-skill-links.mjs --self-test && node scripts/check-skill-links.mjs",
7172
"check:agent-model-declared": "node scripts/check-agent-model-declared.mjs --self-test && node scripts/check-agent-model-declared.mjs",
7273
"check:agent-test-spelling": "node scripts/check-agent-test-spelling.mjs --self-test && node scripts/check-agent-test-spelling.mjs",
7374
"check:ratchet-remedy-authority": "node scripts/check-ratchet-remedy-authority.mjs --self-test && node scripts/check-ratchet-remedy-authority.mjs",

0 commit comments

Comments
 (0)