Seo-geo-claude-skills internal-linking-optimizer
Optimize internal links: site architecture, authority distribution, orphan pages, crawl depth analysis. 内链优化/站内架构
git clone https://github.com/aaron-he-zhu/seo-geo-claude-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/aaron-he-zhu/seo-geo-claude-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/optimize/internal-linking-optimizer" ~/.claude/skills/aaron-he-zhu-seo-geo-claude-skills-internal-linking-optimizer && rm -rf "$T"
optimize/internal-linking-optimizer/SKILL.mdInternal Linking Optimizer
SEO & GEO Skills Library · 20 skills for SEO + GEO · ClawHub · skills.sh System Mode: This optimization skill follows the shared Skill Contract and State Model.
This skill analyzes your site's internal link structure and provides recommendations to improve SEO through strategic internal linking. It helps distribute authority, establish topical relevance, and improve crawlability.
System role: Optimization layer skill. It turns weak pages, structures, and technical issues into prioritized repair work.
When This Must Trigger
Use this when the conversation involves a diagnosis or repair plan that should feed directly into remediation work — even if the user doesn't use SEO terminology:
- Improving site architecture for SEO
- Distributing authority to important pages
- Fixing orphan pages with no internal links
- Creating topic cluster internal link strategies
- Optimizing anchor text for SEO
- Recovering pages that have lost rankings
- Planning internal links for new content
What This Skill Does
- Link Structure Analysis: Maps current internal linking patterns
- Authority Flow Mapping: Shows how PageRank flows through site
- Orphan Page Detection: Finds pages with no internal links
- Anchor Text Optimization: Improves anchor text diversity
- Topic Cluster Linking: Creates pillar-cluster link strategies
- Link Opportunity Finding: Identifies where to add links
- Navigation Optimization: Improves site-wide link elements
Quick Start
Start with one of these prompts. Finish with a short handoff summary using the repository format in Skill Contract.
Analyze Current Structure
Analyze internal linking structure for [domain/sitemap]
Find internal linking opportunities for [URL]
Create Linking Strategy
Create internal linking plan for topic cluster about [topic]
Suggest internal links for this new article: [content/URL]
Fix Issues
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: the current page or site state, symptoms, prior audits, and current priorities from CLAUDE.md and the shared State Model when available.
- Writes: a user-facing audit or optimization plan plus a reusable summary that can be stored under
.memory/audits/ - Promotes: blocking defects, repeated weaknesses, and fix priorities to
andmemory/open-loops.md
.memory/decisions.md - Next handoff: use the
below when the repair path is clear.Next Best Skill
Handoff Summary
Emit this shape when finishing the skill (see skill-contract.md §Handoff Summary Format for the authoritative format):
- Status: DONE / DONE_WITH_CONCERNS / BLOCKED / NEEDS_INPUT
- Objective: what was analyzed, created, or fixed
- Key Findings / Output: the highest-signal result
- Evidence: URLs, data points, or sections reviewed
- Open Loops: blockers, missing inputs, or unresolved risks
- Recommended Next Skill: one primary next move
Data Sources
Note: All integrations are optional. This skill works without any API keys — users provide data manually when no tools are connected.
See CONNECTORS.md for tool category placeholders.
Scraping legality: Before crawling any domain that is not your own or not under written authorization, verify
robots.txt disallows, respect Crawl-delay, and confirm target TOS permits automated access. See SECURITY.md §Scraping Boundaries.
With ~~web crawler + ~~analytics connected: Claude can automatically perform a full site crawl via ~~web crawler to map the complete link graph, fetch page performance metrics from ~~analytics to identify high-value pages, and analyze link flow throughout the site. This enables data-driven internal linking strategies.
With manual data only: Ask the user to provide:
- Sitemap URL or list of important pages
- Key page URLs that need more internal links
- Content categories or topic clusters
- Any existing link structure documentation
Proceed with the analysis using provided data. Note in the output which findings are from automated crawl vs. manual review.
Instructions
When a user requests internal linking optimization:
-
Analyze Current Internal Link Structure
## Internal Link Structure Analysis ### Overview **Domain**: [domain] **Total Pages Analyzed**: [X] **Total Internal Links**: [X] **Average Links per Page**: [X] ### Link Distribution | Links per Page | Page Count | Percentage | |----------------|------------|------------| | 0 (Orphan) | [X] | [X]% | | 1-5 | [X] | [X]% | | 6-10 | [X] | [X]% | | 11-20 | [X] | [X]% | | 20+ | [X] | [X]% | ### Top Linked Pages | Page | Internal Links | Authority | Notes | |------|----------------|-----------|-------| | [URL 1] | [X] | High | [notes] | | [URL 2] | [X] | High | [notes] | | [URL 3] | [X] | Medium | [notes] | ### Under-Linked Important Pages | Page | Current Links | Traffic | Recommended Links | |------|---------------|---------|-------------------| | [URL 1] | [X] | [X]/mo | [X]+ | | [URL 2] | [X] | [X]/mo | [X]+ | **Structure Score**: [X]/10 -
Identify Orphan Pages
## Orphan Page Analysis ### Definition Orphan pages have no internal links pointing to them, making them hard for users and search engines to discover. ### Orphan Pages Found: [X] | Page | Traffic | Priority | Recommended Action | |------|---------|----------|-------------------| | [URL 1] | [X]/mo | High | Link from [pages] | | [URL 2] | [X]/mo | Medium | Add to navigation | | [URL 3] | 0 | Low | Consider deleting/redirecting | ### Fix Strategy **High Priority Orphans** (have traffic/rankings): 1. [URL] - Add links from: [relevant pages] 2. [URL] - Add links from: [relevant pages] **Medium Priority Orphans** (potentially valuable): 1. [URL] - Add to category/tag page 2. [URL] - Link from related content **Low Priority Orphans** (consider removing): 1. [URL] - Redirect to [better page] 2. [URL] - Delete or noindex -
Analyze Anchor Text Distribution — Current anchor patterns, distribution-by-page breakdown, over-optimization/generic flag, per-page recommendations (CORE-EEAT R08)
Reference: See references/linking-templates.md for the anchor text analysis template (Step 3) including the CORE-EEAT R08 alignment note.
-
Create Topic Cluster Link Strategy — Map current pillar/cluster links, recommend link structure, list specific links to add
Reference: See references/linking-templates.md for the topic cluster link strategy template (Step 4).
-
Find Contextual Link Opportunities — Analyze each page for topic-relevant link opportunities, prioritize high-impact additions
Reference: See references/linking-templates.md for the contextual link opportunities template (Step 5).
-
Optimize Navigation and Footer Links — Analyze main/footer/sidebar/breadcrumb navigation, recommend pages to add or remove
Reference: See references/linking-templates.md for the navigation optimization template (Step 6).
-
Generate Link Implementation Plan — Executive summary, current state metrics, phased priority actions (weeks 1-4+), implementation guide, tracking plan
Reference: See references/linking-templates.md for the full implementation plan template (Step 7).
Validation Checkpoints
Input Validation
- Site structure or sitemap provided (URL or file)
- Target pages or topic clusters clearly defined
- If optimizing specific page, page URL or content provided
Output Validation
- Every recommendation cites specific data points (not generic advice)
- All link suggestions include source page, target page, and recommended anchor text
- Orphan page lists include URLs and recommended actions
- Source of each data point clearly stated (~~web crawler data, ~~analytics, user-provided, or manual analysis)
Example
User: "Find internal linking opportunities for my blog post on 'email marketing best practices'"
Output (abbreviated): 5 high-value links identified —
/blog/grow-email-list/ for "building your email list" (para 2), /blog/email-subject-lines/ for "subject lines" (para 5), /blog/email-segmentation-guide/ for "audience segments", /services/email-automation/ for CTA section, /blog/best-email-tools/ for conclusion — each with paragraph location and recommended anchor text.
Reference: See references/linking-example.md for the full worked example (email marketing best practices internal linking opportunities).
Tips for Success
- Quality over quantity - Add relevant links, not random ones
- User-first thinking - Links should help users navigate
- Vary anchor text - Avoid over-optimization
- Link to important pages - Distribute authority strategically
- Regular audits - Internal links need maintenance as content grows
Save Results
After delivering audit or optimization findings to the user, ask:
"Save these results for future sessions?"
If yes, write a dated summary to
memory/audits/internal-linking-optimizer/YYYY-MM-DD-<topic>.md containing:
- One-line verdict or headline finding
- Top 3-5 actionable items
- Open loops or blockers
- Source data references
If any veto-level issue was found (CORE-EEAT T04, C01, R10 or CITE T03, T05, T09), also append a one-liner to
memory/hot-cache.md without asking.
Reference Materials
- Link Architecture Patterns — Architecture models (hub-and-spoke, silo, flat, pyramid, mesh), anchor text diversity framework, link equity flow model, and internal link audit checklist
- Linking Templates — Detailed output templates for steps 3-7 (anchor text analysis, topic cluster strategy, contextual opportunities, navigation optimization, implementation plan)
- Linking Example — Full worked example for internal linking opportunities
Next Best Skill
- Primary: on-page-seo-auditor — verify that revised internal links support the page-level goals.