ab-test-generator
Generate A/B test variants for affiliate content. Triggers on: "create A/B test", "test my headline", "optimize my CTA",…
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
Claude Code
$ npx -y skills add Affitor/affiliate-skills --skill internal-linking-optimizer --agent claude-code
Codex
$ npx skills add Affitor/affiliate-skills --skill internal-linking-optimizer -a codex -y
Cursor
$ npx skills add Affitor/affiliate-skills --skill internal-linking-optimizer -a cursor -y
Gemini CLI
$ npx skills add Affitor/affiliate-skills --skill internal-linking-optimizer -a gemini-cli -y
GitHub Copilot
$ npx skills add Affitor/affiliate-skills --skill internal-linking-optimizer -a github-copilot -y
OpenCode
$ npx skills add Affitor/affiliate-skills --skill internal-linking-optimizer -a opencode -y
Windsurf
$ npx skills add Affitor/affiliate-skills --skill internal-linking-optimizer -a windsurf -y
name: internal-linking-optimizer description: > 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", "internal linking strategy", "link flow", "improve site structure", "find orphan pages", "maximize link equity", "internal link map". license: MIT version: "1.0.0" tags: ["affiliate-marketing", "analytics", "optimization", "tracking", "internal-links", "site-structure"] compatibility: "Claude Code, ChatGPT, Gemini CLI, Cursor, Windsurf, OpenClaw, any AI agent" metadata: author: affitor version: "1.0" stage: S6-Analytics
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.
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.
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.
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)
Read `shared/references/seo-strategy.md` for internal linking rules.
For each page group:
Flag: 1. **Orphan pages** — no or few internal links pointing to them 2. **Hub pages with weak linking** — hub should link to ALL spokes in its cluster 3. **Missing spoke-to-spoke links** — related spokes should link to each other 4. **Broken contextual flow** — pages that should link to each other but don't 5. **Over-linked pages** — too many outlinks dilute link equity 6. **Missing reverse links** — spoke links to hub but hub doesn't link back
For each issue, provide specific instructions:
Page: [URL] Action: Add internal link to [target URL] Anchor text: "[suggested anchor]" Location: [where in the content to add it] Priority: [P0/P1/P2] Reason: [why this link matters]
output_schema_version: "1.0.0"
internal_links:
site: string
pages_analyzed: number
issues_found: number
links_to_add: number
orphan_pages: string[] # Pages with zero/few inlinks
hub_pages: string[] # Identified hub pages
link_actions:
- source_url: string # Page to add the link ON
target_url: string # Page to link TO
anchor_text: string # Suggested anchor text
location: string # Where in the content
priority: string # "P0" | "P1" | "P2"
reason: string
link_structure: # Current state summary
total_pages: number
avg_inlinks: number
avg_outlinks: number
max_depth: number
chain_metadata:
skill_slug: "internal-linking-optimizer"
stage: "analytics"
timestamp: string
suggested_next:
- "seo-audit"
- "content-decay-detector"
- "affiliate-blog-builder"## Internal Link Audit: [Site] ### Structure Overview - **Pages analyzed:** XX - **Orphan pages:** XX (need links urgently) - **Hub pages:** XX - **Links to add:** XX - **Average inlinks per page:** X.X ### Orphan Pages (P0 — fix immediately) These pages have no/few internal links and are invisible to Google: 1. [URL] — [title] — 0 inlinks 2. [URL] — [title] — 1 inlink ### Link Actions #### P0 — Critical | Source Page | → | Target Page | Anchor Text | Location | |---|---|---|---|---| | [source] | → | [target] | "[anchor]" | After paragraph about [topic] | #### P1 — High [same table] #### P2 — Maintenance [same table] ### Hub-and-Spoke Health | Hub Page | Expected Spokes | Linked Spokes | Missing Links | |---|---|---|---| | [hub] | XX | XX | [list missing] | ### Quick Wins 1. [Easies
Turn any AI into your affiliate marketing team. 52 AI-powered skills across 8 stages with a closed-loop flywheel.
Generate A/B test variants for affiliate content. Triggers on: "create A/B test", "test my headline", "optimize my CTA",…
Set up affiliate conversion tracking with UTM parameters and link tagging. Triggers on: "set up tracking", "create UTM links",…
Generate affiliate performance reports with KPIs and recommendations. Triggers on: "show my affiliate report", "how are my…
Audit affiliate blog posts and landing pages for SEO issues. Triggers on: "audit my blog post for SEO", "check my SEO", "SEO…
Repurpose one piece of affiliate content into multiple formats. Triggers on: "repurpose my content", "turn my blog into tweets",…
Build multi-sequence email automation flows with branching logic. Triggers on: "build email automation", "create email funnel",…
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use…
Comprehensive SEO analysis for any website or business type. Full site audits, single-page analysis, technical SEO (crawlability,…
Turn the current project website into a short, polished, shareable launch video using Hyperframes. Use when someone says "/brag",…
Full website GEO+SEO audit with parallel subagent delegation. Orchestrates a comprehensive Generative Engine Optimization audit…