Check Links

Validates the portfolio's internal links before publishing. Walks every generated page and reports any link whose target is missing.

crystian 78cfb43 2 files · 1.0 KB Updated

File contents

check-links

The last gate before the site goes out. Link targets resolve per the WHATWG URL standard.

Authored for Claude Code under .claude/skills/, but OpenCode reads it too (Claude-compat), so under the opencode lens it classifies as opencode/skill.

Steps

  1. List every HTML file under public/.
  2. For each page, collect its internal links (every href to / or to a .html file).
  3. Check the target exists under public/ (treat / as public/index.html).
  4. Report any link whose target is missing; if none, report "0 broken links".

crystian/skill-map/tree/main/fixtures/opencode/.claude/skills/check-links commit 78cfb438f8

Frequently asked questions

npx skillmds@latest add crystian/check-links-2