seo-internal-links

seo-internal-links is a skill for Claude Code from lionkiii/claude-seo-skills. It costs 95 tokens per session (1,273 once invoked), scanned A, original, MIT.

A website audit tool that examines links between pages on the same domain. An internal link is a link from one page of a website to another page on that website.

In plain words
What is it for?
It crawls a domain, builds a map of its internal links, reports orphaned, underlinked, and broken pages, and suggests link text for some underlinked pages.
Why use it?
It finds pages that receive no or too few links and links that lead nowhere, problems that can make content harder to discover.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/fetch_page.py <domain>.

Part of the claude-seo-skills plugin — 51 skills, 6 agents shipped together

Good fit It crawls a domain, builds a map of its internal links, reports orphaned, underlinked, and broken pages, and suggests link text for some underlinked pages.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/lionkiii/claude-seo-skills
agentmods
npx agentmods add skills/lionkiii/claude-seo-skills/seo-internal-links

Made for: Claude Code.

Or install claude-seo-skills, the plugin that ships this one along with the rest of its 51 skills, 6 agents.

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 seo-internal-links

README.md
[![agentmods](https://agentmods.dev/badge/skills/lionkiii/claude-seo-skills/seo-internal-links/github.svg)](https://agentmods.dev/skills/lionkiii/claude-seo-skills/seo-internal-links)
Your own site
<a href="https://agentmods.dev/skills/lionkiii/claude-seo-skills/seo-internal-links"><img src="https://agentmods.dev/badge/skills/lionkiii/claude-seo-skills/seo-internal-links/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 seo-internal-links

Your own site · 80×15
<a href="https://agentmods.dev/skills/lionkiii/claude-seo-skills/seo-internal-links"><img src="https://agentmods.dev/badge/skills/lionkiii/claude-seo-skills/seo-internal-links.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,273 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.00095 $0.01273
Opus 5 $0.00048 $0.00636
Sonnet 5 $0.00019 $0.00255
Haiku 4.5 $0.00010 $0.00127

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

Security

Grade A, and why

seo-internal-links 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 12d ago.

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/seo-internal-links/SKILL.md · 151 lines

How it starts

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

Crawls a domain to build an internal link graph. Identifies orphan pages, underlinked pages, and broken internal links. Suggests anchor text improvements.

Inputs

  • domain: Target domain URL (e.g., https://example.com). Include protocol.
  • max_pages (optional): Max pages to crawl. Default: 100. Maximum: 200.

Execution

Step 1: Crawl Site

Use scripts/fetch_page.py and scripts/parse_html.py to crawl the site:

# Fetch homepage
python3 scripts/fetch_page.py <domain>
# Parse HTML to extract links
python3 scripts/parse_html.py <html_content>

Follow internal links only (same domain hostname). Normalize URLs:

  • Remove trailing slashes (treat /about and /about/ as same)
  • Remove URL fragments (#section)
  • Preserve query strings only if they appear to be content (not tracking: strip utm_*, ref=, source=)

Respect robots.txt: fetch <domain>/robots.txt first, skip disallowed paths. Cap crawl at max_pages. Track crawl queue (BFS order from homepage).

Step 2: Build Link Graph

For each crawled page, record:

  • Source URL
  • Target URL (all internal links found)
  • Anchor text for each link

Build adjacency structure:

  • outbound[url] = list of (target, anchor_text)
  • inbound[url] = list of (source, anchor_text)

Step 3: Calculate Per-Page Metrics

For each crawled page:

  • Inbound internal links count (links from other crawled pages pointing here)
  • Outbound internal links count (links from this page to other pages)
  • Link depth from homepage (BFS level at which this page was first discovered)

Step 4: Identify Issues

  • Orphan pages (hard finding): Pages discovered via sitemap (<domain>/sitemap.xml) or linked from other pages but with zero inbound internal links. Fetch sitemap first to identify all known URLs.
  • Underlinked pages (heuristic flag): Pages with fewer inbound internal links than a configurable threshold (default: 3). This threshold is a heuristic for prioritizing internal-linking work — Google defines no numeric minimum, so it is not a Google requirement.
  • Excessive outbound: Pages with > 100 outbound internal links (PageRank dilution).
  • Broken internal links: For top 20 most-linked pages, verify HTTP status. Flag 4xx/5xx.

Read the full file on GitHub · 151 lines

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. 12d ago First seen · 151 lines · 95 tokens per session scan A 1ff14a5865af

Subscribe to this mod's changes

seo-internal-links is a skill published in the GitHub repository lionkiii/claude-seo-skills (20 stars, last pushed 3mo ago), licensed MIT. It adds 95 tokens to every session and 1,273 once invoked, about $0.0005 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-30.

Related

Other skills, from other repositories

seo-images

Image SEO audit for a URL or domain. Pulls raw image inventory via Firecrawl, then audits alt-text quality, modern-format coverage (WebP / AVIF), responsive sizing (srcset / sizes), lazy-loading and LCP signals (loading, fetchpriority, decoding), CLS-safe dimensions, descriptive file names, and ImageObject JSON-LD.…

amirjahfar1/automate-seo-with-claude · 225 tokens

seo-technical-audit

Focused one-shot technical SEO audit for a domain. Crawlability, indexability, security, mobile, structured data, JS rendering — single-pass deliverable, not a diff. Distinct from seo-drift (which tracks changes over time) and from seo-page (which audits keywords/traffic for one URL, not technical health). Use when…

amirjahfar1/automate-seo-with-claude · 109 tokens

seo-api

DataForSEO API integration architect for developers. Covers the entire DataForSEO surface — DataForSEO Labs (ranked keywords, keyword ideas/suggestions/related, domain rank overview, competitors, domain/page intersection, subdomains, relevant pages, bulk keyword difficulty, bulk traffic estimation, search intent…

amirjahfar1/automate-seo-with-claude · 411 tokens

seo-ads

Paid-search competitive landscape for a domain or keyword. Reconstructs the paid footprint keyword-by-keyword from live SERP ad blocks — advertisers, ad copy patterns, who else bids on the same keywords, CPC/competition signals, SERP shopping/ad-pack visibility — and produces a competitive ads brief plus a recommended…

amirjahfar1/automate-seo-with-claude · 113 tokens

seo-backlinks-profile

Full backlink profile for a domain — referring domains, anchor text distribution, authority distribution, IP and subnet diversity, growth/decay trend, toxic-candidate flagging. Distinct from seo-backlink-gap (which is gap-vs-competitor only). Produces a profile health score and reviewable disavow candidate list (never…

amirjahfar1/automate-seo-with-claude · 116 tokens

seo-content-audit

E-E-A-T + CITE quality audit for an EXISTING piece of content. Scores Experience, Expertise, Authoritativeness, Trustworthiness, and citation-readiness for AI search; surfaces veto items that block publication; produces a publish / publish-with-fixes / no-publish verdict. Distinct from seo-content-brief (produces a…

amirjahfar1/automate-seo-with-claude · 138 tokens