← 返回 Skills 市场
xueyetianya

Link Checker

作者 bytesagain4 · GitHub ↗ · v2.1.0 · MIT-0
cross-platform ✓ 安全检测通过
973
总下载
0
收藏
12
当前安装
11
版本数
在 OpenClaw 中安装
/install link-checker
功能描述
Crawl web pages and detect broken links, redirects, and HTTP errors. Use when auditing site links, finding 404 errors, validating URLs before launch.
使用说明 (SKILL.md)

Link Checker

Check URLs for HTTP status codes, find broken links in documents, and track link health over time. Feed it a single URL, a file full of links, or a batch of addresses — it hits each one with curl, records the status code, and tells you what's alive and what's dead. Results are stored in ~/.link-checker/ so you can review history, pull stats, and export reports.

Commands

check

Check a single URL. Sends an HTTP HEAD request and returns the status code.

link-checker check \x3Curl>

Output includes status code, a human-readable label (OK, REDIRECT, CLIENT_ERROR, etc.), and an icon.

scan

Extract all URLs from a file (markdown, HTML, plain text — anything with http:// or https:// links) and check each one.

link-checker scan \x3Cfile>

Uses grep to pull URLs, deduplicates them, then checks each. Prints a summary at the end with pass/fail counts.

batch

Check multiple URLs in one go. Pass them as arguments.

link-checker batch \x3Curl1> \x3Curl2> \x3Curl3> ...

report

Generate a report from the current session's results. Supports three formats.

link-checker report [txt|csv|json]

Default format is txt. Reports are saved to ~/.link-checker/report.\x3Cformat>.

history

Display the last 50 check results from the history log.

link-checker history

Shows timestamp, status code, status label, and URL for each entry.

broken

Filter results to show only failed links — status codes 4xx, 5xx, timeouts, and connection errors.

link-checker broken

stats

Show statistics across all checks: total count, breakdown by status category (2xx, 3xx, 4xx, 5xx, timeout, error), success rate percentage, and the most common status codes.

link-checker stats

export

Export the full history log to a file. Supports csv, json, and txt.

link-checker export \x3Cformat>

Exported files are timestamped and saved to ~/.link-checker/.

config

View current configuration or change settings.

link-checker config
link-checker config set \x3Ckey> \x3Cvalue>

Available keys: timeout (seconds per request), retries (retry count on failure), user_agent.

help

Show usage information and available commands.

link-checker help

version

Print the current version.

link-checker version

Examples

# Check if a URL is reachable
link-checker check https://example.com

# Scan a markdown file for broken links
link-checker scan ./README.md

# Batch check several URLs
link-checker batch https://example.com https://httpstat.us/404 https://httpstat.us/500

# See only the broken ones
link-checker broken

# Get a stats overview
link-checker stats

# Generate a JSON report
link-checker report json

# Export full history as CSV
link-checker export csv

# Set request timeout to 15 seconds
link-checker config set timeout 15

# Set retry count to 3
link-checker config set retries 3

Configuration

Settings are stored in ~/.link-checker/config as key-value pairs.

Key Default Description
timeout 10 Connection timeout in seconds per request
retries 2 Number of retry attempts on timeout/error
user_agent LinkChecker/1.0.0 User-Agent header sent with requests

Change any setting with link-checker config set \x3Ckey> \x3Cvalue>.

Data Storage

All data lives in ~/.link-checker/:

File Purpose
results.log Current session results (pipe-delimited)
history.log Cumulative log of all checks ever run
config Configuration key-value file
report.* Generated reports (txt/csv/json)
export_*.* Timestamped exports

Log format: timestamp|url|status_code|status_label

Status Categories

Icon Category Codes
OK 2xx
🔄 Redirect 3xx
Client Error 4xx
⚠️ Server Error 5xx
⏱️ Timeout Connection timed out
🚫 Error DNS failure, connection refused

Requirements

  • bash (4.0+)
  • curl
  • grep, sort, awk (standard Unix tools)

Powered by BytesAgain | bytesagain.com | [email protected]

安全使用建议
This skill appears to implement a straightforward link checker. Before installing: (1) review the included script (scripts/script.sh) yourself — it is plain Bash and readable; (2) ensure the host has the required CLI tools (bash, curl, grep, sort, awk) because the registry metadata did not declare them; (3) be careful what URLs or files you pass: the tool will issue HTTP requests to any URL you provide (including internal/private IPs or intranet hosts), so avoid scanning sensitive internal endpoints; (4) note the tool stores logs and reports in ~/.link-checker — don't put secrets or credentials into files you scan, and consider where you want history stored; (5) if you allow autonomous agent invocation, remember the agent could use this skill to initiate network requests on your behalf — restrict that capability if you are concerned about internal network scanning.
功能分析
Type: OpenClaw Skill Name: link-checker Version: 2.1.0 The link-checker skill is a standard utility for auditing URLs and local files for broken links. It uses curl for HTTP requests and stores logs/configs in a local directory (~/.link-checker/). No evidence of data exfiltration, malicious execution, or unauthorized access was found in scripts/script.sh or SKILL.md.
能力评估
Purpose & Capability
The name/description match the code and instructions: the script crawls/requests URLs, classifies responses, and stores logs in ~/.link-checker. However, the registry metadata lists no required binaries while the SKILL.md and script explicitly require bash, curl, grep, sort, and awk — this mismatch is a minor coherence issue (the declared requirements are incomplete).
Instruction Scope
SKILL.md and the script stay within the stated purpose: they extract URLs from a provided file or accept URLs as arguments, issue HTTP requests with curl, and record results. The script only reads the provided file(s) and its own config/history files in the user's home directory; it does not access unrelated system credentials or external control endpoints.
Install Mechanism
There is no install specification (instruction-only with an included script), so nothing is downloaded or installed from external URLs. The included scripts are plain Bash with no obfuscation. This is a low-risk install model.
Credentials
The skill requests no environment variables or external credentials. It does use $HOME to create ~/.link-checker for logs/config, which is reasonable for its purpose. Be aware the SKILL.md/script require standard CLI tools (bash, curl, grep, sort, awk) even though registry 'required binaries' is empty — this should be reconciled before installation.
Persistence & Privilege
The skill does not request 'always: true' or any elevated privileges; it persists only under the user's home directory (~/.link-checker). It does not modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install link-checker
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /link-checker 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.1.0
v2.1.0: Real link checker with curl-based HTTP validation, batch scanning, broken link detection.
v2.0.1
update
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v2.3.4
old template -> domain-specific v2.0.0
v2.3.3
old template -> domain-specific v2.0.0
v2.3.2
Quality upgrade
v2.3.1
De-template, unique content, script cleanup
v2.3.0
Quality fixes: aligned docs with implementation
v2.2.0
Enhanced descriptions for better AI triggering
v0.0.1
c
v1.0.0
Initial release of link-checker. - Crawls web pages to find and check all links for errors, redirects, and timeouts. - Generates detailed reports with status codes, response times, and link locations. - Supports recursive crawling with depth control, domain filtering, and multiple output formats (text, JSON, CSV, HTML). - Command-line interface with single-page, batch, and summary modes. - No external dependencies required; uses Python3 urllib.
元数据
Slug link-checker
版本 2.1.0
许可证 MIT-0
累计安装 12
当前安装数 12
历史版本数 11
常见问题

Link Checker 是什么?

Crawl web pages and detect broken links, redirects, and HTTP errors. Use when auditing site links, finding 404 errors, validating URLs before launch. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 973 次。

如何安装 Link Checker?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install link-checker」即可一键安装,无需额外配置。

Link Checker 是免费的吗?

是的,Link Checker 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Link Checker 支持哪些平台?

Link Checker 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Link Checker?

由 bytesagain4(@xueyetianya)开发并维护,当前版本 v2.1.0。

💬 留言讨论