🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub✦ BytesAgain

Deadlink

by @bytesagain3

Scan websites and files for broken links with HTTP status details. Use when auditing links, finding broken URLs, validating references.

Versionv3.0.0
Downloads562
Installs1
TERMINAL
clawhub install deadlink

πŸ“– About This Skill


name: DeadLink description: "Scan websites and files for broken links with HTTP status details. Use when auditing links, finding broken URLs, validating references." version: "3.0.0" author: "BytesAgain" homepage: https://bytesagain.com source: https://github.com/bytesagain/ai-skills tags: ["link","checker","broken","dead","404","website","seo","validation","html"] categories: ["Developer Tools", "Utility"]

DeadLink β€” Dead Link Checker

Check URLs for broken links. Scan individual URLs, files containing links, or crawl websites. Generates reports with HTTP status codes.

Commands

| Command | Description | |---------|-------------| | check | Check a single URL β€” shows HTTP status, redirect target if applicable | | scan | Extract and check all URLs found in a text file | | site [depth] | Crawl a webpage, extract all href/src links, and check each one | | report | Generate a timestamped report file from all URLs in a text file |

Examples

# Check a single URL
deadlink check https://example.com/page

β†’ 200 OK

Scan a markdown file for broken links

deadlink scan README.md

β†’ Extracts all http/https URLs and checks each one

Crawl a website

deadlink site https://example.com 1

β†’ Fetches the page, extracts all links, checks each

Generate a report file

deadlink report bookmarks.html

β†’ Creates deadlink-report-20240101-120000.txt

Status Codes

  • 2xx β€” OK (alive)
  • 3xx β€” Redirect (alive, shows final URL)
  • 4xx β€” Client error (dead β€” 404 Not Found, 403 Forbidden, etc.)
  • 5xx β€” Server error (dead)
  • 000 β€” Connection failed (DNS error, timeout, unreachable)
  • Requirements

  • curl β€” must be installed and in PATH
  • Network access to check URLs
  • Notes

  • Timeout: 10 seconds per URL (5s connect timeout)
  • URLs are extracted using regex pattern matching for http:// and https:// links
  • The site command does basic HTML link extraction (href and src attributes)
  • Reports are saved as plain text files in the current directory
  • πŸ’‘ Examples

    # Check a single URL
    deadlink check https://example.com/page
    

    β†’ 200 OK

    Scan a markdown file for broken links

    deadlink scan README.md

    β†’ Extracts all http/https URLs and checks each one

    Crawl a website

    deadlink site https://example.com 1

    β†’ Fetches the page, extracts all links, checks each

    Generate a report file

    deadlink report bookmarks.html

    β†’ Creates deadlink-report-20240101-120000.txt

    πŸ“‹ Tips & Best Practices

  • Timeout: 10 seconds per URL (5s connect timeout)
  • URLs are extracted using regex pattern matching for http:// and https:// links
  • The site command does basic HTML link extraction (href and src attributes)
  • Reports are saved as plain text files in the current directory