AIPM
Theme

AIPM package

Broken Link Checker

@squirrelscan/broken-link-checker@1.0.0

Find broken internal and external links, broken anchors, redirect chains, orphan pages, broken images, and dead sitemap URLs with squirrelscan audit rules vi…

Scanned · flagged · Nov 27, 2026

GitHub stars: ★ 110

LinkedInPost

Install Skill

Pins this version in aipm.package.json and aipm-lock.json.

aipm add @squirrelscan/broken-link-checker@1.0.0

Without project tracking

Writes the skill files only. Add --no-init to skip aipm.package.json and the lockfile.

aipm add @squirrelscan/broken-link-checker@1.0.0 --no-init

How to use

Install the skill above, then run this in your AI tool:

/broken-link-checker <your description>

About

Find dead internal and external links, broken anchors, redirect chains, orphan pages and broken images and sitemap URLs, and decide what to do with each one.

Source

What gets added to your project

Preview every file this package writes on install before you run the command above.

Summary

Find broken internal and external links, broken anchors, redirect chains, orphan pages, broken images, and dead sitemap URLs with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copi...

Skill instructions

Broken Link Checker

Find dead internal and external links, broken anchors, redirect chains, orphan pages and broken images and sitemap URLs, and decide what to do with each one.

Broken links are usually a decision, not a mechanical fix: the right answer is to correct a typo, point at the new URL, remove the link, or leave it. This skill gives each finding a decision.

Before the first audit

Run squirrel --version. If it fails, install the CLI from squirrelscan.com/download (the squirrelscan skill has references/install.md). Then run squirrel auth status:

  • Signed out, or --offline: the audit runs on this machine, is free, and nothing is published.
  • Signed in: the audit is billed in credits (50 plus 2 per audited page, plus 1 per distinct external link the cloud verifies), adds the site to the user's dashboard, can turn on recurring audits and publishes an unlisted report. Tell the user the cost (squirrel credits) and get a yes. Offer --offline or --no-publish. For a site the user does not own, add --ephemeral: nothing is added to the dashboard, scheduled or published.

Every flag below is checked against the squirrel CLI docs (https://docs.squirrelscan.com/cli/audit). Rule docs: https://docs.squirrelscan.com/rules/{category}/{rule_id}.

Run it

bash
squirrel audit https://example.com --level surface \
  --rule-include links,images/broken-images,reliability/broken-resources,crawl/sitemap-4xx \
  --format json -o links.json
  • Internal link targets the crawl did not fetch are status-checked with one request each, at every level (free). External links are checked too; --no-external-links skips them and --no-internal-links skips the internal check. --offline never requests another site.
  • Cost: signed in, the cloud charges 1 credit per distinct external link it verifies, up to one per page of the page budget, and nothing for a link it cannot verify. Say so before a signed-in surface or full run, and offer --no-external-links or --offline when the user only wants internal links. A link that sits behind a bot wall comes back as unverified, not broken.
  • Use --level full for sign-off: surface samples one page per URL pattern, so a bad link in the 40th blog post may not be seen.
  • The llm format lists at most 5 pages per rule. Use --format json (or squirrel report <audit-id> --format json --category links) for every broken link and every page it appears on.

Decide per finding

FindingDecision
links/broken-links, links/dead-links (internal 404)Typo or moved page: fix the link. Page removed on purpose: remove the link or add a redirect from the old URL
links/broken-external-linksCheck the URL in a browser first. Moved: update. Gone: remove the link or link an archived copy. Blocked by a bot wall: keep, it is not broken
links/redirect-chains, crawl/redirect-chainUpdate the link to the final URL; collapse chains into one hop
links/https-downgradeChange http:// to https://
links/broken-anchors, links/anchor-target-conflictFix the #id or add the target id
links/orphan-pages, links/no-contextual-inbound, links/dead-end-pagesNeeds an editorial choice: link to it from a relevant page, or remove or noindex it
links/invalid-links, links/tel-mailtoFix the malformed href
images/broken-images, reliability/broken-resources, crawl/sitemap-4xxFix the asset path, or remove the dead URL from the sitemap

Never delete a link without telling the user which pages lose it. When a whole section is broken, list the pages and ask.

Where the fix usually lives

StackRedirects and links
Next.jsredirects() in next.config.*, links in MDX or a CMS, navigation components
WordPresspost content and menus (Appearance, Menus), a redirect manager plugin (for example the one in Yoast SEO Premium, or a dedicated redirect plugin), search-and-replace for a changed domain
ShopifyOnline Store, Navigation (menus), and URL Redirects for removed products or pages
WebflowSite settings, Hosting tab, 301 redirects; CMS item links
CloudflareRedirect Rules or Bulk Redirects
Vercel / Netlifyvercel.json redirects; _redirects or netlify.toml

Prefer fixing the source link over adding a redirect: a redirect hides the broken link and adds a hop.

Stop condition

Stop when a --level full re-audit (with --refresh) shows no broken internal links, every broken external link is fixed, removed or listed for the user with a reason, and redirect chains are collapsed. A link the tool could not verify is reported as "not checked", never "fine".

Hand off

Page content and metadata: seo-audit. The wider fix loop: audit-website. Fail a build on new broken links: website-ci-gate.

Loading package files…

Share this package

Add an Install with AIPM badge

Add this badge to a GitHub README so readers can open the package page and install the same version.

Install with AIPM
[![Install with AIPM](https://www.aipm-registry.com/install-with-aipm.svg)](https://www.aipm-registry.com/skills/squirrelscan/broken-link-checker/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)

Publisher

squirrelscan

This imported publisher has not claimed its AIPM account. A connected account confirms account control, but it does not guarantee that a package is safe.

AI assistant context

What this skill is for

@squirrelscan/broken-link-checker@1.0.0 is an AIPM skill package for All tools. Use it when a project needs the reusable AI behavior described as: Find broken internal and external links, broken anchors, redirect chains, orphan pages, broken images, and dead sitemap URLs with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copi...

Install
aipm add @squirrelscan/broken-link-checker@1.0.0
Use after install
/broken-link-checker <your description>

Tool targets

Install command by target

Add --no-init to any of these when you want the skill files without aipm.package.json or aipm-lock.json.

cursor

Run this variant when you want to install the package into cursor.

aipm add @squirrelscan/broken-link-checker@1.0.0 --target cursor --ci

claude

Run this variant when you want to install the package into claude.

aipm add @squirrelscan/broken-link-checker@1.0.0 --target claude --ci

Discussion

Comments (0)

Loading comments…

Keep exploring

squirrelscan/performance-audit

Diagnose slow page loads with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, checking the largest image, render-blocking resources,...

Published by squirrelscan

skillScanned · flagged★ 110Imported · UnverifiedAll toolsNov 27, 2026, 12:21 AM8.03 KBMIT

squirrelscan/agent-experience-audit

Evaluate your site's agent experience with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, checking robots.txt bot access, content pr...

Published by squirrelscan

skillScanned · flagged★ 110Imported · UnverifiedAll toolsNov 27, 2026, 12:21 AM8.00 KBMIT

squirrelscan/website-ci-gate

Add a squirrelscan CI check using the squirrel CLI in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents for GitHub Actions, GitLab, and preview deploys. It picks thresholds from a baseline run of squirrelscan audit rule...

Published by squirrelscan

skillScanned · flagged★ 110Imported · UnverifiedAll toolsNov 27, 2026, 12:21 AM8.26 KBMIT

Package FAQ

Install and compatibility

How to install
Run aipm add @squirrelscan/broken-link-checker@1.0.0 in a project that has AIPM initialized.
Supported tools
@squirrelscan/broken-link-checker@1.0.0 supports All tools.

Before installing

AIPM skills can add files to your project. Review the package name, target, description, license, and publisher before installing. Use a clean branch when trying a new skill.