internal-link-audit

internal-link-audit is a skill for Claude Code, Codex from JakeLabate/Claude-SEO-Skills. It costs 73 tokens per session (1,317 once invoked), scanned A, original, MIT.

A website audit that examines links between pages on the same site for search-engine optimization (SEO), which helps search engines understand site structure.

In plain words
What is it for?
Use it to crawl a live site, sitemap, or local HTML folder and review internal links, crawl depth, anchor text, and how links are distributed.
Why use it?
It finds navigation and structure problems such as broken links, redirect chains, orphan pages, weak link text, and pages buried too deeply.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to crawl a live site, sitemap, or local HTML folder and review internal links, crawl depth, anchor text, and how links are distributed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jakelabate/claude-seo-skills/internal-link-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add JakeLabate/Claude-SEO-Skills --skill internal-link-audit
Clone the repo
git clone --depth 1 https://github.com/JakeLabate/Claude-SEO-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for internal-link-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/jakelabate/claude-seo-skills/internal-link-audit/github.svg)](https://agentmods.dev/skills/jakelabate/claude-seo-skills/internal-link-audit)
Your own site
<a href="https://agentmods.dev/skills/jakelabate/claude-seo-skills/internal-link-audit"><img src="https://agentmods.dev/badge/skills/jakelabate/claude-seo-skills/internal-link-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for internal-link-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/jakelabate/claude-seo-skills/internal-link-audit"><img src="https://agentmods.dev/badge/skills/jakelabate/claude-seo-skills/internal-link-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,317 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.01317
Opus 5 $0.00036 $0.00659
Sonnet 5 $0.00015 $0.00263
Haiku 4.5 $0.00007 $0.00132

Measured 11d ago against content hash 1eb7b340667e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

internal-link-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/analyze_graph.py, scripts/crawl_links.py, scripts/findings_to_csv.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/internal-link-audit/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Audit the internal linking structure of a website and produce an actionable SEO report.

When to use this skill

Use this skill when the user asks to:

  • Audit or analyze internal links on a website
  • Find broken internal links or redirect chains
  • Identify orphan pages (pages with no internal links pointing to them)
  • Review anchor text quality for internal links
  • Improve crawl depth, site architecture, or internal link equity distribution

Inputs to collect

Before starting, confirm with the user:

  1. Site URL or local files — a live site root URL (e.g., https://example.com), a sitemap URL, or a local folder of HTML files.
  2. Scope — full site, a specific section (e.g., /blog/), or a list of URLs.
  3. Crawl limits — max pages (default 500) and max depth (default 5) for live crawls.

Workflow

Step 1: Gather the page set

  • If a sitemap is available (/sitemap.xml), fetch it to get the canonical page list.
  • Otherwise, crawl from the homepage following only same-host links.
  • For local HTML folders, enumerate all .html files.

Use scripts/crawl_links.py to crawl a live site and extract all internal links into a JSON link graph:

python3 scripts/crawl_links.py https://example.com --max-pages 500 --max-depth 5 --output link_graph.json

Step 2: Build the link graph

For every page, record:

  • Outgoing internal links: target URL, anchor text, rel attributes (nofollow), whether the link is in <nav>/<footer> or in main content
  • HTTP status of each target (200, 3xx, 4xx, 5xx)
  • Page metadata: title, canonical URL, meta robots (noindex, nofollow)

Step 3: Run the audit checks

Use scripts/analyze_graph.py to analyze the link graph:

python3 scripts/analyze_graph.py link_graph.json --output audit_report.json

Evaluate each check defined in references/audit-checks.md. The core checks are:

Check Severity
Broken internal links (4xx/5xx targets) High
Orphan pages (in sitemap but zero inbound internal links) High
Redirect chains and redirected internal links (3xx targets) Medium
Deep pages (click depth > 3 from homepage) Medium
Generic anchor text ("click here", "read more", bare URLs) Medium
Pages with excessive outgoing links (> 150) Low
Nofollow on internal links Low
Links to non-canonical or noindexed URLs Medium
Low inbound link count on important pages Medium

Read the full file on GitHub · 119 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 119 lines · 73 tokens per session scan A 1eb7b340667e

Subscribe to this mod's changes

internal-link-audit is a skill published in the GitHub repository JakeLabate/Claude-SEO-Skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 73 tokens to every session and 1,317 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.