internal-linking-optimizer
aaron-he-zhu/seo-geo-claude-skills
Map internal link structure, find orphan pages, and deliver a prioritized source/target/anchor plan.
What is internal-linking-optimizer?
Analyzes internal link architecture, authority flow, anchor text distribution, and crawl depth to identify orphan pages and linking opportunities. Use this when optimizing site structure, fixing under-linked important pages, or creating topic cluster strategies.
- Captures domain structure, page count, link distribution, and identifies orphan pages with no inbound links
- Scores current link architecture (0–100) and flags crawl-depth and authority-flow problems
- Analyzes anchor text patterns for over-optimization, generic anchors, and CORE-EEAT alignment
- Maps pillar/cluster link strategies and topic-relevant contextual opportunities
- Recommends navigation, footer, and breadcrumb link additions or removals
- Generates phased implementation plan with priority actions and tracking metrics
How to install internal-linking-optimizer
npx skills add https://github.com/aaron-he-zhu/seo-geo-claude-skills --skill internal-linking-optimizer- Sitemap or page list (XML sitemap, CSV, or manual URL list)
- Key page URLs and content categories (optional; skill can infer from crawl)
- For live analysis: access to domain or ability to provide crawl data
How to use internal-linking-optimizer
- 1.Provide a domain URL or sitemap to analyze
- 2.Specify the scope: full site, specific section, or new article to link
- 3.Skill will analyze current link structure, identify orphans, and score architecture
- 4.Review the prioritized linking plan with source/target/anchor recommendations
- 5.Implement high-priority links and track changes using the provided tracking plan
- 6.Save results to memory/audits/ for future reference and audits
Use cases
- Fix orphan pages by identifying high-value pages with no inbound links and recommending source/target/anchor additions
- Optimize anchor text distribution across the site to improve topical relevance and avoid over-optimization
- Create internal linking strategy for a new article or content cluster to maximize authority flow
- Audit site architecture for under-linked important pages and pages deeper than optimal crawl depth
- Improve navigation structure by reviewing and recommending changes to main, footer, sidebar, and breadcrumb links
- SEO specialists and content strategists optimizing site structure
- Content managers adding new articles and needing contextual linking guidance
- Site architects reviewing and improving information architecture
- Developers implementing internal linking recommendations
internal-linking-optimizer FAQ
Internal Linking Optimizer focuses on internal links within your site (site architecture, orphan pages, authority flow). Backlink Analyzer handles external backlinks pointing to your site from other domains.
No. The skill works with a sitemap or page list you provide. If you have crawler or analytics data, it will use that for more accurate metrics; otherwise, it labels inferred metrics as 'Estimated' and proceeds.
The structure score (0–100) starts at 100 and deducts points for orphan pages (−10 each), important pages deeper than 3 clicks (−5 each), pages with no inbound contextual links (−5 each), and link distribution outside target ranges (−10). It indicates overall link architecture health.
For orphans with unknown traffic/ranking value, the skill stops and asks you to decide: (1) keep and add links, (2) noindex, or (3) 301-redirect. Low-value orphans are handled silently with a default recommendation.
Implement the prioritized links, then use the on-page-seo-auditor skill to verify that revised internal links support page-level goals and CORE-EEAT alignment.
Full instructions (SKILL.md)
Source of truth, from aaron-he-zhu/seo-geo-claude-skills.
name: internal-linking-optimizer description: 'Use when the user asks to "fix internal linking" or "find orphan pages"; maps link architecture, authority flow, anchor text, and crawl depth, then delivers a prioritized source/target/anchor plan. Not for external backlinks — use backlink-analyzer. 内链优化/站内架构' version: "9.9.12" license: Apache-2.0 compatibility: "Claude Code and compatible agent-skill hosts" homepage: "https://github.com/aaron-he-zhu/seo-geo-claude-skills" when_to_use: "Use when improving internal link structure, anchor text distribution, orphan pages, or site architecture." argument-hint: "<URL or sitemap>" metadata: author: aaron-he-zhu version: "9.9.12" geo-relevance: "low"
Internal Linking Optimizer
Analyzes internal link structure, authority flow, orphan pages, anchor text, and topic clusters, then delivers a prioritized linking plan with source/target/anchor recommendations.
Quick Start
Start with one of these prompts, then finish with the standard handoff summary from Skill Contract.
Analyze internal linking structure for [domain/sitemap]
Find internal linking opportunities for [URL]
Create internal linking plan for topic cluster about [topic]
Suggest internal links for this new article: [content/URL]
Find orphan pages on [domain]
Optimize anchor text across the site
Skill Contract
Expected output: a scored diagnosis, prioritized repair plan, and a short handoff summary ready for memory/audits/.
- Reads: sitemap or page list, key page URLs, content categories, and article/URL to link from.
- Writes: a user-facing linking plan plus a reusable summary that can be stored under
memory/audits/. - Promotes: blocking defects, repeated weaknesses, fix priorities, and pending decisions to
memory/open-loops.md. - Done when: orphan pages are listed with a disposition; anchor distribution is checked against thresholds; a prioritized source/target/anchor plan and handoff summary are produced.
- Primary next skill: use the
Next Best Skillbelow when the repair path is clear.
Handoff Summary
Emit the standard shape from skill-contract.md §Handoff Summary Format.
Data Sources
Uses ~~web crawler and ~~analytics when connected; otherwise asks user for sitemap, key page URLs, and content categories. See CONNECTORS.md and SECURITY.md §Scraping Boundaries.
Zero-dependency local helper (no tool needed): python3 "${CLAUDE_PLUGIN_ROOT}/scripts/connectors/crawl.py" <url> | python3 "${CLAUDE_PLUGIN_ROOT}/scripts/connectors/linkgraph.py" - computes orphans, click-depth, and internal PageRank from a live crawl. See scripts/connectors/README.md.
Instructions
Label every metric Measured (tool/export), User-provided, or Estimated (model inference); never present an estimate as measured; if a required metric is unavailable, mark it N/A — do not invent it.
When a user requests internal linking optimization:
- Analyze Current Structure — Capture domain, pages analyzed, total internal links, average links/page, link distribution, top linked pages, under-linked important pages, and a structure score /100 (start at 100; −10 per orphan page, −5 per important page deeper than 3 clicks, −5 per page with 0 inbound contextual links, −10 if avg links/page is outside the architecture model's target range in Link Architecture Patterns; floor 0). Flag crawl-depth and authority-flow problems.
- Identify Orphan Pages — List pages with no inbound internal links. Prioritize high-value orphans with traffic/rankings, medium-potential pages that need category/tag links, and low-value pages to delete, noindex, or redirect.
- Analyze Anchor Text Distribution — Check current anchor patterns, distribution by page, over-optimization, generic anchors, and CORE-EEAT R08 alignment. Anchor Score /10 and thresholds are defined in the Step 3 template.
Reference: references/linking-templates.md contains the Step 3 output template.
- Create Topic Cluster Link Strategy — Map pillar/cluster links, recommend structure, and list specific links to add.
Reference: references/linking-templates.md contains the Step 4 template.
- Find Contextual Link Opportunities — For each page, identify topic-relevant source/target/anchor opportunities and prioritize high-impact additions.
Reference: references/linking-templates.md contains the Step 5 template.
- Optimize Navigation and Footer Links — Review main/footer/sidebar/breadcrumb navigation; recommend pages to add, demote, or remove.
Reference: references/linking-templates.md contains the Step 6 template.
- Generate Implementation Plan — Include executive summary, current-state metrics, phased priority actions, implementation guide, and tracking plan.
Reference: references/linking-templates.md contains the Step 7 template.
Decision Gates
Stop and ask the user when:
- A high-value orphan must be deleted, noindexed, or redirected and its traffic/ranking value is unknown — state what you see and ask: (1) keep and add links, (2) noindex, (3) 301-redirect to the nearest relevant page.
Continue silently (never stop for):
- Which architecture model to apply — infer it from site type and page count using Link Architecture Patterns, state the choice, and proceed.
- No crawler/analytics data — work from the provided sitemap or page list, label inferred metrics Estimated, and proceed.
- A low-value orphan with no traffic — recommend the default disposition (noindex or redirect) without stopping.
Example
User: "Find internal linking opportunities for my blog post on 'email marketing best practices'"
Output: 5 high-value links with source paragraph, destination URL, recommended anchor text, and priority. Example targets might include list-building, subject-line, segmentation, automation, and tools pages.
Reference: See references/linking-example.md for the full worked example.
Save Results
Ask to save results; if yes, write a dated summary to memory/audits/internal-linking-optimizer/YYYY-MM-DD-<topic>.md. Hand off veto-level risks to the auditor gate before any hot-cache marker.
Reference Materials
- Link Architecture Patterns — Architecture models, selection thresholds, migration safeguards, and measurement targets
- Linking Templates — Detailed output templates for steps 3-7
- Linking Example — Full worked example for internal linking opportunities
Next Best Skill
Primary: on-page-seo-auditor — verify that revised internal links support page-level goals.
Related skills
More from aaron-he-zhu/seo-geo-claude-skills and the wider catalog.
backlink-analyzer
Analyze backlink profiles, identify toxic links, and find link-building opportunities.
seo-content-writer
Draft SEO-optimized articles, blog posts, and landing pages with natural keyword placement and proper sourcing.
keyword-research
Discover, score, and cluster keywords by volume, difficulty, and intent for SEO planning.
competitor-analysis
Benchmark competitor SEO strategy, keywords, content, and backlinks to find strengths to learn and weaknesses to exploit.
technical-seo-checker
Comprehensive technical SEO audits covering crawlability, indexing, Core Web Vitals, robots.txt, sitemaps, and migrations.
on-page-seo-auditor
Score on-page SEO signals (title, meta, headers, keywords, links, images) with prioritized fixes for single pages.