internal-linking-optimizer

internal-linking-optimizer is a skill for Claude Code, Codex from Affitor/affiliate-skills. It costs 104 tokens per session (2,267 once invoked), scanned A, original, MIT.

A tool for reviewing how pages on a website link to one another and planning a clearer structure. A hub-and-spoke structure connects broad topic pages to more specific supporting pages.

In plain words
What is it for?
Use it to audit internal links, plan links between related pages, and improve the organization of a site.
Why use it?
It helps find orphan pages with no incoming links and weak points where important pages are not well connected for search engines or readers.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions Claude Code; built for openclaw; mentions Gemini CLI.

Good fit Use it to audit internal links, plan links between related pages, and improve the organization of a site.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/affitor/affiliate-skills/internal-linking-optimizer
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 Affitor/affiliate-skills --skill internal-linking-optimizer
Clone the repo
git clone --depth 1 https://github.com/Affitor/affiliate-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-linking-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/affitor/affiliate-skills/internal-linking-optimizer.svg)](https://agentmods.dev/skills/affitor/affiliate-skills/internal-linking-optimizer)
Your own site
<a href="https://agentmods.dev/skills/affitor/affiliate-skills/internal-linking-optimizer"><img src="https://agentmods.dev/badge/skills/affitor/affiliate-skills/internal-linking-optimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,267 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00104 $0.02267
Opus 5 $0.00052 $0.01133
Sonnet 5 $0.00021 $0.00453
Haiku 4.5 $0.00010 $0.00227

Measured 8d ago against content hash 7e50a88dc221, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

internal-linking-optimizer 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 8d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

skills/analytics/internal-linking-optimizer/SKILL.md · 242 lines

How it starts

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

Internal Linking Optimizer

Analyze your site's internal link structure and generate an optimized hub-and-spoke linking plan. Finds orphan pages (no internal links pointing to them), identifies link equity bottlenecks, and creates specific linking instructions to maximize SEO impact.

Stage

S6: Analytics & Optimization — This is analytics/audit work on existing content. Internal linking is the most underutilized SEO lever — it's 100% in your control and costs nothing.

When to Use

  • User wants to improve their site's SEO through better internal linking
  • User asks about "orphan pages", "link structure", "hub and spoke"
  • User says "internal linking", "link audit", "link equity"
  • After publishing new content — new pages need internal links within 48 hours
  • After keyword-cluster-architect — cluster structure defines the ideal link architecture
  • Monthly maintenance task alongside content-decay-detector

Input Schema

site_url: string              # REQUIRED — site to analyze
                              # e.g., "myblog.com"

pages: object[]               # OPTIONAL — known pages with their topics
  - url: string
    title: string
    topic_cluster: string     # Which topical cluster it belongs to
    is_hub: boolean           # Is this a hub page?

hub_pages: string[]           # OPTIONAL — URLs of your hub/pillar pages
                              # Default: auto-detected

new_pages: string[]           # OPTIONAL — recently published pages needing links
                              # Default: none

Chaining from S3 keyword-cluster-architect: Use keyword_clusters.hub and keyword_clusters.clusters to define ideal link architecture.

Workflow

Step 1: Discover Site Structure

  1. web_search: site:[site_url] — discover indexed pages
  2. Map pages to topic clusters (if not provided)
  3. Identify current hub pages (pages that link to many others)
  4. Note orphan pages (pages with few/no internal links pointing to them)

Step 2: Analyze Current Link Structure

Read the full file on GitHub · 242 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. 8d ago First seen · 242 lines · 104 tokens per session scan A 7e50a88dc221

Subscribe to this mod's changes

internal-linking-optimizer is a skill published in the GitHub repository Affitor/affiliate-skills (651 stars, last pushed 2d ago), licensed MIT. It adds 104 tokens to every session and 2,267 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

internal-linking-optimizer

Analyze site's internal link structure and optimize for hub-and-spoke SEO architecture. Triggers on: "optimize internal links", "internal linking", "link structure", "hub and spoke links", "orphan pages", "link equity", "internal link audit", "fix my internal links", "link architecture", "site structure optimization"…

gabrielmoreira/agent-skills-mirror · 104 tokens

internal-linking-optimizer

Analyze site's internal link structure and optimize for hub-and-spoke SEO architecture. Triggers on: "optimize internal links", "internal linking", "link structure", "hub and spoke links", "orphan pages", "link equity", "internal link audit", "fix my internal links", "link architecture", "site structure optimization"…

Gingg7260/affiliate-skills · 104 tokens

conversion-tracker

Set up affiliate conversion tracking with UTM parameters and link tagging. Triggers on: "set up tracking", "create UTM links", "track my affiliate links", "tracking pixels", "click attribution", "organize my links", "UTM parameters", "tag my links", "campaign tracking", "link tracking setup", "prepare for launch"…

jiaxiaojunQAQ/SkillJect · 84 tokens

performance-report

Generate affiliate performance reports with KPIs and recommendations. Triggers on: "show my affiliate report", "how are my programs doing", "performance review", "earnings report", "monthly affiliate report", "weekly report", "analyze my affiliate earnings", "which program is best", "EPC report", "conversion rate…

gabrielmoreira/agent-skills-mirror · 80 tokens

seo-audit

Audit affiliate blog posts and landing pages for SEO issues. Triggers on: "audit my blog post for SEO", "check my SEO", "SEO review", "improve my rankings", "SEO checklist", "on-page SEO audit", "keyword optimization check", "why isn't my page ranking", "SEO score", "content quality audit", "check my meta tags"…

gabrielmoreira/agent-skills-mirror · 89 tokens

ab-test-generator

Generate A/B test variants for affiliate content. Triggers on: "create A/B test", "test my headline", "optimize my CTA", "generate variants", "split test ideas", "improve click-through rate", "test my landing page copy", "headline alternatives", "CTA variations", "which version is better", "optimize conversions"…

gabrielmoreira/agent-skills-mirror · 87 tokens