跳到正文
TakoAPI
返回技能列表

broken-link-checker

由 wanng-ide 提供

Calendar & Scheduling
650下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

verify external URLs (http/https) for availability (200-399 status code).

描述

该技能的功能

Checks a list of external URLs and reports whether each one returns a successful HTTP status code (200-399). Accepts multiple URLs as command-line arguments and outputs structured JSON with the result for each.

Accepts multiple URLs in one command and returns machine-readable JSON, making it straightforward to pipe results into scripts or CI pipelines.

何时使用

  • Checking all links in a README before publishing
  • Auditing external references in project documentation
  • Finding dead links in a wiki or knowledge base
  • Validating API endpoint URLs listed in docs
  • Scanning a config file's external references before a release

示例工作流

输入

User asks: check these URLs for broken links: https://example.com and https://example.com/broken

智能体
  1. 1

    Accept one or more URLs as command-line arguments

  2. 2

    Send an HTTP GET request to each URL

  3. 3

    Record the returned status code

  4. 4

    Determine validity based on whether status is 200-399

  5. 5

    Return a JSON array with url, valid, and status for each result

输出

[{"url":"https://example.com","valid":true,"status":200},{"url":"https://example.com/broken","valid":false,"status":404}]

安装

clawhub install wanng-ide/broken-link-checker

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接