internal-links

internal-links is a skill for Claude Code, Codex from dalroot/agentic-seo. It costs 62 tokens per session (751 once invoked), scanned A, original, MIT.

When the user wants to optimize internal linking, fix orphan pages, or improve link structure. Also use when the user mentions "internal links," "internal linking," "anchor text," "link equity," "internal linking strategy," or "orphan pages." For IA, use website-structure.

Skill for Claude CodeCodex

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

Install with agentmods
npx agentmods add skills/dalroot/agentic-seo/internal-links
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 dalroot/agentic-seo --skill internal-links
Clone the repo
git clone --depth 1 https://github.com/dalroot/agentic-seo

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dalroot/agentic-seo/internal-links"><img src="https://agentmods.dev/badge/skills/dalroot/agentic-seo/internal-links.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 751 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 unknown 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.00062 $0.00751
Opus 5.5 $0.00025 $0.00300
Sonnet 5.5 $0.00012 $0.00150
Haiku 4.5 $0.00006 $0.00075

Measured today against content hash 8168f94b65d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 today.

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/on-page/internal-links/SKILL.md · 80 lines

How it starts

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

Guides internal linking strategy for SEO: crawlability, link equity distribution, and user navigation.

When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.

Scope (On-Page SEO)

  • Internal links: Contextual links; descriptive anchor text; related posts; hub pages
  • Breadcrumbs: Implement for large sites (e.g. ecommerce); see breadcrumb-generator

Initial Assessment

Check for project context first: If .claude/project-context.md or .cursor/project-context.md exists, read it for site structure and key pages.

Identify:

  1. Site structure: Hub pages, pillar content, supporting pages
  2. Orphan pages: Pages with no or few internal links
  3. Priority pages: Pages that need more link equity

Best Practices

Link Structure

Principle Guideline
Depth Important pages within 3 clicks from homepage
Orphan pages Avoid; ensure every page has at least one internal link; see site-crawlability for technical detection and crawl issues
Hub-to-spoke Link from hub/pillar pages to cluster articles; topic cluster structure
Contextual Place links in relevant body content, not just footers

Anchor Text

Principle Guideline
Descriptive Use anchor text that describes the target page
Variation Avoid over-optimization; use natural variation
Keyword Include target keyword when natural

Placement

Location Use
First paragraph Primary link to related content
Body Contextual links throughout
Related/Recommended End-of-article links
Navigation Key site sections

Common Issues

Issue Fix
Orphan pages Add internal links from hub pages or navigation; site-crawlability for technical audit
Too many links Focus on most important; avoid link stuffing
Generic anchors Use descriptive "learn more about X" instead of "click here"
Broken links Audit and fix 404s; see site-crawlability for technical audit

Read the full file on GitHub · 80 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. today First seen · 80 lines · 62 tokens per session scan A 8168f94b65d5

Subscribe to this mod's changes

internal-links is a skill published in the GitHub repository dalroot/agentic-seo (25 stars, last pushed 6d ago), licensed MIT. It adds 62 tokens to every session and 751 once invoked, about $0.0002 per session on Opus 5.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-10-26.

Related

Other skills, from other repositories

seo

Deterministic LLM-first SEO audits for websites, blog posts, and GitHub repositories. Use this when the user asks to "perform SEO analysis", "run SEO audit", "analyze SEO", "check technical SEO", "review schema", "Core Web Vitals", "E-E-A-T", "hreflang", "GEO", "AEO", or GitHub repository SEO optimization. For…

T4wroot/agentic-seo · 105 tokens

github

When the user wants to use GitHub for SEO, parasite SEO, GEO, open source marketing, README optimization, or curated Awesome lists. Also use when the user mentions "GitHub," "GitHub SEO," "GitHub parasite SEO," "GitHub GEO," "awesome list," "GitHub README," "profile README," "pinned repositories," "Trending,"…

T4wroot/agentic-seo · 165 tokens

schema-markup

When the user wants to add or optimize structured data (Schema.org, JSON-LD). Also use when the user mentions "schema," "structured data," "JSON-LD," "rich results," "rich snippets," "Google rich snippets," "featured snippet schema," "add schema to page," "missing structured data," "schema validation error," "Schema…

T4wroot/agentic-seo · 181 tokens

grokipedia-recommendations

When the user wants to add recommendations, links, or content to Grokipedia. Also use when the user mentions "Grokipedia," "GEO wiki," "AI encyclopedia," "suggest Grokipedia article," "Grokipedia citation," "Grokipedia listing," "AI search citation," "GEO visibility," or "Grokipedia optimization." For multi-platform…

T4wroot/agentic-seo · 110 tokens

google-search-console

When the user wants to analyze Google Search Console data, use the GSC API, or interpret search performance. Also use when the user mentions "GSC," "Search Console," "indexing report," "Core Web Vitals," "Enhancements," "Insights report," "search performance," "search queries," "search performance report," "URL…

T4wroot/agentic-seo · 137 tokens

brand-visual-generator

When the user wants to define, audit, or apply visual identity (typography, colors, spacing, design tokens, frontend aesthetics). Also use when the user mentions "brand style guide," "visual identity," "design system," "typography," "color palette," "brand guidelines," "AI brand aesthetics," "brand colors," "font…

T4wroot/agentic-seo · 124 tokens