返回 Skill 列表
extension
分类: 开发与工程无需 API Key

check-links

检查本地Hugo站点上的所有内部链接是否有损坏的链接。在推送前使用以验证站点完整性。

person作者: jakexiaohubgithub

Link Checker

Validates all internal links on the local Hugo development server.

Usage

Run the link checker script:

python .claude/skills/check-links/scripts/check_links.py

What it checks

  • Crawls all pages starting from http://localhost:1313/
  • Follows internal links only (same host)
  • Reports broken links (404s, connection errors)
  • Shows which page contains each broken link

Prerequisites

The Hugo development server must be running:

cd hugo && hugo server

Output

  • Lists any broken links found with their source pages
  • Exits with code 0 if all links valid, 1 if broken links found