Agent skill

Fixing Broken Links

by spencerpauly in spencerpauly/awesome-cursor-skills

Crawl all links in a file or project, test each for a valid HTTP response, report broken ones, and fix or remove them.

CC0-1.0Auto-check passed

Install Fixing Broken Links

skills CLI
$ npx skills add spencerpauly/awesome-cursor-skills --skill fixing-broken-links -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install spencerpauly/awesome-cursor-skills fixing-broken-links --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/spencerpauly/awesome-cursor-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/resources/fixing-broken-links .claude/skills/fixing-broken-links && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
fixing-broken-links
GitHub stars
844
Token cost
~577 tokens
SKILL.md length
283 words
Files
1
Skills in repo
60
Repo updated
First seen
Licence
CC0-1.0

At a glance

Crawl all links in a file or project, test each for a valid HTTP response, report broken ones, and fix or remove them.

  • Works in 4 steps: Extract All Links → Test Each Link → Fix Broken Links → …
  • SKILL.md covers Workflow and Tips
  • Calls curl

What it does

Fixing Broken Links is an agent skill from spencerpauly/awesome-cursor-skills. Crawl all links in a file or project, test each for a valid HTTP response, report broken ones, and fix or remove them.

Its SKILL.md is about 580 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: A curated list of awesome skills for Cursor. The licence is CC0-1.0.

Example prompts

  • “/fixing-broken-links”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Extract All Links
  2. Test Each Link
  3. Fix Broken Links
  4. Report

What it can do on your machine

Read from SKILL.md and the folder at commit 99cd265. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Fixing Broken Links loads about 577 tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 283 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~577

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from spencerpauly/awesome-cursor-skills at commit 99cd265, republished under its CC0-1.0 licence (© spencerpauly). 283 words, ~577 tokens.

Download SKILL.mdSave it as .claude/skills/fixing-broken-links/SKILL.md (or your agent's skills folder).
name
fixing-broken-links
description
Crawl all links in a file or project, test each for a valid HTTP response, report broken ones, and fix or remove them.
user-invocable
true

Scan a file (or set of files) for URLs, test every link, and fix any that are broken.

Workflow

Read the target file(s) and collect every URL:

  • Markdown links: [text](url)
  • Bare URLs: https://...
  • HTML href and src attributes
  • Reference-style link definitions: [id]: url
  • Local relative paths: ./path/to/file, resources/foo/SKILL.md

For external URLs:

  • Use curl -sL -o /dev/null -w "%{http_code}" --max-time 10 "<url>" to get the HTTP status code
  • Batch independent checks for speed (run multiple curl commands in parallel or in quick succession)
  • Classify results:
    • 200–299 → OK
    • 301/302 → OK but note the redirect target
    • 403 → Might be valid (some sites block curl); try with a browser user-agent header
    • 404 → Broken
    • 429 → Rate limited; retry once after a short pause
    • 000 or timeout → Retry once; if still failing, mark as unreachable

For local file paths:

  • Check if the file exists on disk with [ -f "path" ]
  • If it's a relative path, resolve it from the file's directory

For each broken link:

  1. Search the web for the correct/current URL (the resource may have moved)
  2. If found, replace the old URL with the new one
  3. If the resource no longer exists, note it and either:
    • Remove the link and leave the text
    • Comment it out with a note
    • Replace with an archived version (web.archive.org)
4. Report

Produce a summary table:

| URL | Status | Action |
|-----|--------|--------|
| https://example.com/page | 200 | OK |
| https://old.example.com/moved | 404 → 301 | Updated to https://new.example.com/page |
| ./docs/missing.md | MISSING | Removed link |

Tips

  • For large files with many links, batch curl calls to avoid slowdowns
  • Some sites (GitHub, npm) rate-limit aggressively — space out requests
  • Always re-read the file after making changes to confirm replacements didn't break formatting
  • For Markdown files, verify link syntax is preserved: [text](url) not [text]( url ) (no extra spaces)

© spencerpauly, CC0-1.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in resources/fixing-broken-links of spencerpauly/awesome-cursor-skills.

Open the folder on GitHubat commit 99cd265

Compare with similar skills

Fixing Broken Links next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Fixing Broken Links compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Fixing Broken Links this skillspencerpauly/awesome-cursor-skills844—~577Automated safety check: PassCC0-1.0
Broken Linksthedaviddias/Front-End-Checklist74k—~412Automated safety check: PassMIT
Broken External Linksthedaviddias/Front-End-Checklist74k—~401Automated safety check: PassMIT
Broken Link Buildinghashgraph-online/awesome-codex-plugins1.3k—~713Automated safety check: PassMIT
Fixalirezarezvani/claude-skills28k1 repos~765Automated safety check: PassMIT
Empty Linksthedaviddias/Front-End-Checklist74k—~508Automated safety check: PassMIT

Similar skills

  • Broken Links

    thedaviddias/Front-End-Checklist

    A skill your agent uses when auditing metadata, crawlability, structured data, or indexability related to Resolve internal broken links.

    74k GitHub stars~412 tokensUpdated 4 days ago
    Marketing & SEOAuto-check passed
  • Broken External Links

    thedaviddias/Front-End-Checklist

    A skill your agent uses when auditing metadata, crawlability, structured data, or indexability related to Fix or remove broken external links.

    74k GitHub stars~401 tokensUpdated 4 days ago
    Marketing & SEOAuto-check passed
  • Broken Link Building

    hashgraph-online/awesome-codex-plugins

    Run broken link building and link equity salvage workflows by finding relevant resource pages, checking outbound link status, verifying dead URLs, qualifying dead backlinks, preparing replacement…

    1.3k GitHub stars~713 tokensUpdated yesterday
    Marketing & SEOAuto-check passed
  • Fix

    alirezarezvani/claude-skills

    Fix failing or flaky Playwright tests. An agent skill from alirezarezvani/claude-skills.

    28k GitHub starsUsed in 1 repo~765 tokens
    Testing & QAAuto-check passed
  • Empty Links

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Fix empty and broken links.

    74k GitHub stars~508 tokensUpdated 4 days ago
    Frontend & DesignAuto-check passed
  • Fix Broken Links

    spronta/crawlie

    Find and fix broken links, dead pages, and redirect chains on a website with crawlie.

    114 GitHub stars~769 tokensUpdated 2 mo ago
    Marketing & SEOAuto-check passed

More from spencerpauly/awesome-cursor-skills

All 60 skills in this repo
  • Generating Images

    spencerpauly/awesome-cursor-skills

    Generate or edit images using the OpenAI Image API (gpt-image-2).

    844 GitHub stars~3.7k tokensUpdated 2 mo ago
    Auto-check: notes
  • Babysitting PR

    spencerpauly/awesome-cursor-skills

    Monitor a pull request for CI failures, review comments, and merge conflicts — then fix them automatically.

    844 GitHub stars~930 tokensUpdated 2 mo ago
    Auto-check passed
  • Best Of N Solving

    spencerpauly/awesome-cursor-skills

    Solve a hard problem by trying multiple approaches in parallel using isolated git worktrees.

    844 GitHub stars~698 tokensUpdated 2 mo ago
    Auto-check passed
  • Grinding Until Pass

    spencerpauly/awesome-cursor-skills

    Keep iterating on code changes until the tests pass, the build succeeds, or linting is clean.

    844 GitHub stars~796 tokensUpdated 2 mo ago
    Auto-check passed
  • Parallel CI Triage

    spencerpauly/awesome-cursor-skills

    When GitHub Actions fails, fetch failing job logs and assign each failing job to a separate subagent that fixes its slice of the problem in parallel.

    844 GitHub stars~793 tokensUpdated 2 mo ago
    Auto-check passed
  • Parallel Exploring

    spencerpauly/awesome-cursor-skills

    Explore a large codebase in parallel by launching multiple explore subagents that each investigate a different area simultaneously.

    844 GitHub stars~787 tokensUpdated 2 mo ago
    Auto-check: notes

Questions about Fixing Broken Links

What does Fixing Broken Links do?

Crawl all links in a file or project, test each for a valid HTTP response, report broken ones, and fix or remove them. Fixing Broken Links is an agent skill from spencerpauly/awesome-cursor-skills. Crawl all links in a file or project, test each for a valid HTTP response, report broken ones, and fix or remove them.

How do I install Fixing Broken Links in Claude Code?

Run `npx skills add spencerpauly/awesome-cursor-skills --skill fixing-broken-links -a claude-code`. Or copy the skill folder (resources/fixing-broken-links in spencerpauly/awesome-cursor-skills) into .claude/skills/fixing-broken-links in your project. Claude Code loads it when a task matches its description.

How do I install Fixing Broken Links in Codex?

Run `npx skills add spencerpauly/awesome-cursor-skills --skill fixing-broken-links -a codex`. Or copy the skill folder (resources/fixing-broken-links in spencerpauly/awesome-cursor-skills) into .agents/skills/fixing-broken-links in your project. Codex loads it when a task matches its description.

Can I use Fixing Broken Links in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add spencerpauly/awesome-cursor-skills --skill fixing-broken-links -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fixing-broken-links, .gemini/skills/fixing-broken-links, .github/skills/fixing-broken-links and .opencode/skills/fixing-broken-links in your project.

What does Fixing Broken Links need to run?

Going by SKILL.md and its folder, Fixing Broken Links needs the command-line tools its instructions call (curl).

Does Fixing Broken Links access the network?

SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Fixing Broken Links safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Fixing Broken Links use?

Fixing Broken Links is published under the CC0-1.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Fixing Broken Links use?

About 577 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Fixing Broken Links?

Skills that share tags, products or a category with Fixing Broken Links: Broken Links (thedaviddias/Front-End-Checklist, 74k stars), Broken External Links (thedaviddias/Front-End-Checklist, 74k stars), Broken Link Building (hashgraph-online/awesome-codex-plugins, 1.3k stars) and Fix (alirezarezvani/claude-skills, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Fixing Broken Links?

spencerpauly (a GitHub user) maintains it in spencerpauly/awesome-cursor-skills, which has 844 GitHub stars. The repository holds 60 skills in this directory. The repository was last updated on August 2, 2026.

Source: spencerpauly/awesome-cursor-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.