[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CM43ZVYR9DA7GPWQHSP1HT":3,"skill-same:01M7CM43ZVYR9DA7GPWQHSP1HT":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":38,"updatedAt":39,"install":40,"resources":52},"01M7CM43ZVYR9DA7GPWQHSP1HT","seo-cluster",null,"SERP-based semantic topic clustering for content architecture planning. Groups keywords by actual Google SERP overlap (not text similarity), designs hub-and-spoke content clusters with internal link matrices, and generates interactive visualizations. Optionally executes content creation if Codex-blog is installed. Use when user says \"topic cluster\", \"content cluster\", \"semantic clustering\", \"pillar page\", \"hub and spoke\", \"content architecture\", \"keyword grouping\", or \"cluster plan\".","peterish8\u002Fprats-skill-atlas","peterish8","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F181628466?v=4","01M7CHQAPN6X8D29E2Q8DW4BYF","Prathick Dhanes R","01M7CHQAQ7T42E6D8HH3CZH342",1,"MIT","https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fresearch-data\u002Fresearch-seo-and-content\u002Fseo-cluster\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: seo-cluster\ndescription: >\n  SERP-based semantic topic clustering for content architecture planning. Groups\n  keywords by actual Google SERP overlap (not text similarity), designs hub-and-spoke\n  content clusters with internal link matrices, and generates interactive\n  visualizations. Optionally executes content creation if Codex-blog is installed.\n  Use when user says \"topic cluster\", \"content cluster\", \"semantic clustering\",\n  \"pillar page\", \"hub and spoke\", \"content architecture\", \"keyword grouping\",\n  or \"cluster plan\".\nuser-invocable: true\nargument-hint: \"\u003Cseed-keyword or url>\"\nlicense: MIT\nmetadata:\n  author: AgriciDaniel\n  original_author: \"Lutfiya Miller (Pro Hub Challenge Winner)\"\n  version: \"2.2.4\"\n  category: seo\n---\n\n# Semantic Topic Clustering\n\nSERP-overlap-driven keyword clustering for content architecture. Groups keywords\nby how Google actually ranks them (shared top-10 results), not by text similarity.\nDesigns hub-and-spoke content clusters with internal link matrices and generates\ninteractive cluster map visualizations.\n\n**Scripts:** Located at the plugin root `scripts\u002F` directory.\n\n---\n\n## Quick Reference\n\n| Command | What it does |\n|---------|-------------|\n| `\u002Fseo cluster plan \u003Cseed-keyword>` | Full planning workflow: expand, cluster, architect, visualize |\n| `\u002Fseo cluster plan --from strategy` | Import from existing `\u002Fseo plan` output |\n| `\u002Fseo cluster execute` | Execute plan: create content via Codex-blog or output briefs |\n| `\u002Fseo cluster map` | Regenerate the interactive cluster visualization |\n\n---\n\n## Planning Workflow\n\n### Step 1: Seed Keyword Expansion\n\nExpand the seed keyword into 30-50 variants using WebSearch:\n\n1. **Related searches**: Search the seed, extract \"related searches\" and \"people also search for\"\n2. **People Also Ask (PAA)**: Extract all PAA questions from SERP results\n3. **Long-tail modifiers**: Append common modifiers: \"best\", \"how to\", \"vs\", \"for beginners\", \"tools\", \"examples\", \"guide\", \"template\", \"mistakes\", \"checklist\"\n4. **Question mining**: Generate who\u002Fwhat\u002Fwhen\u002Fwhere\u002Fwhy\u002Fhow variants\n5. **Intent modifiers**: Add commercial modifiers: \"pricing\", \"review\", \"alternative\", \"comparison\", \"free\", \"top\"\n\n**Deduplication:** Normalize variants (lowercase, strip articles), remove exact duplicates.\nTarget: 30-50 unique keyword variants. If under 30, run a second expansion pass\nwith the top PAA questions as seeds.\n\n### Step 2: SERP Overlap Clustering\n\nThis is the core differentiator. Load `references\u002Fserp-overlap-methodology.md` for\nthe full algorithm.\n\n**Process:**\n1. Group keywords by initial intent guess (reduces pairwise comparisons)\n2. For each candidate pair within a group, WebSearch both keywords\n3. Count shared URLs in the top 10 organic results (ignore ads, featured snippets, PAA)\n4. Apply thresholds:\n\n| Shared Results | Relationship | Action |\n|---------------|-------------|--------|\n| 7-10 | Same post | Merge into single target page |\n| 4-6 | Same cluster | Group under same spoke cluster |\n| 2-3 | Interlink | Place in adjacent clusters, add cross-links |\n| 0-1 | Separate | Assign to different clusters or exclude |\n\n**Optimization:** With 40 keywords, full pairwise = 780 comparisons. Instead:\n- Pre-group by intent (4 groups of ~10 = 4 x 45 = 180 comparisons)\n- Only cross-check group boundary keywords\n- Skip pairs where both are long-tail variants of the same head term (assume same cluster)\n\n**DataForSEO integration:** If DataForSEO MCP is available, use `serp_organic_live_advanced`\ninstead of WebSearch for SERP data. Run `\"$HOME\u002F.Codex\u002Fskills\u002Fseo\u002Fbin\u002FCodex-seo\" run dataforseo_costs.py check serp_organic_live_advanced --count N`\nbefore each batch. If `\"status\": \"needs_approval\"`, show cost estimate and ask user.\nIf `\"status\": \"blocked\"`, fall back to WebSearch.\n\n### Step 3: Intent Classification\n\nClassify each keyword into one of four intent categories:\n\n| Intent | Signals | Include in Clusters? |\n|--------|---------|---------------------|\n| Informational | how, what, why, guide, tutorial, learn | Yes |\n| Commercial | best, top, review, comparison, vs, alternative | Yes |\n| Transactional | buy, price, discount, coupon, order, sign up | Yes |\n| Navigational | brand names, specific product names, login | No (exclude) |\n\nRemove navigational keywords from clustering. Flag borderline cases for\nmanual review. Keywords can have mixed intent (e.g., \"best CRM software\" is\nboth commercial and informational) -- classify by dominant intent.\n\n### Step 4: Hub-and-Spoke Architecture\n\nLoad `references\u002Fhub-spoke-architecture.md` for full specifications.\n\n**Design the cluster structure:**\n\n1. **Select the pillar keyword**: Highest volume, broadest intent, most SERP overlap with other keywords\n2. **Group spokes into clusters**: Each cluster is a subtopic area (2-5 clusters per pillar)\n3. **Assign posts to clusters**: Each cluster gets 2-4 spoke posts\n4. **Select templates per post**: Based on intent classification:\n\n| Intent Pattern | Template Options |\n|---------------|-----------------|\n| Informational (broad) | ultimate-guide |\n| Informational (how) | how-to |\n| Informational (list) | listicle |\n| Informational (concept) | explainer |\n| Commercial (compare) | comparison |\n| Commercial (evaluate) | review |\n| Commercial (rank) | best-of |\n| Transactional | landing-page |\n\n5. **Set word count targets:**\n   - Pillar page: 2500-4000 words\n   - Spoke posts: 1200-1800 words\n\n6. **Cannibalization check**: No two posts share the same primary keyword. If SERP\n   overlap is 7+, merge those keywords into a single post targeting both.\n\n### Step 5: Internal Link Matrix\n\nDesign the bidirectional linking structure:\n\n| Link Type | Direction | Requirement |\n|-----------|-----------|-------------|\n| Spoke to pillar | spoke -> pillar | Mandatory (every spoke) |\n| Pillar to spoke | pillar -> spoke | Mandatory (every spoke) |\n| Spoke to spoke (within cluster) | spoke \u003C-> spoke | 2-3 links per post |\n| Cross-cluster | spoke -> spoke (other cluster) | 0-1 links per post |\n\n**Rules:**\n- Every post must have minimum 3 incoming internal links\n- No orphan pages (every post reachable from pillar in 2 clicks)\n- Anchor text must use target keyword or close variant (no \"click here\")\n- Link placement: within body content, not just navigation\u002Fsidebar\n\nGenerate the link matrix as a JSON adjacency list:\n```json\n{\n  \"links\": [\n    { \"from\": \"pillar\", \"to\": \"cluster-0-post-0\", \"type\": \"mandatory\", \"anchor\": \"keyword\" },\n    { \"from\": \"cluster-0-post-0\", \"to\": \"pillar\", \"type\": \"mandatory\", \"anchor\": \"keyword\" }\n  ]\n}\n```\n\n### Step 6: Interactive Cluster Map\n\nGenerate `cluster-map.html` using the template at `templates\u002Fcluster-map.html`.\n\n1. Read the template file\n2. Build the `CLUSTER_DATA` JSON object from the cluster plan:\n   ```javascript\n   {\n     pillar: { title, keyword, volume, template, wordCount, url },\n     clusters: [{ name, color, posts: [{ title, keyword, volume, template, wordCount, url, status }] }],\n     links: [{ from, to, type }],\n     meta: { totalPosts, totalClusters, totalLinks, estimatedWords }\n   }\n   ```\n3. Replace the `CLUSTER_DATA` placeholder in the template with the actual JSON\n4. Write the completed HTML file to the output directory\n5. Inform user: \"Open `cluster-map.html` in a browser to explore the interactive cluster map.\"\n\n---\n\n## Strategy Import\n\nWhen invoked with `--from strategy`:\n\n1. Look for the most recent `\u002Fseo plan` output in the current directory (search for\n   files matching `*SEO*Plan*`, `*strategy*`, `*content-strategy*`)\n2. Parse markdown tables for: keywords, page types, content pillars, URL structures\n3. Validate extracted data: check for duplicates, missing keywords, incomplete entries\n4. Enrich with SERP data: run SERP overlap analysis on extracted keywords\n5. Build cluster plan using the imported keywords as the starting set (skip Step 1)\n\nIf no strategy file is found, prompt the user: \"No existing SEO plan found in the\ncurrent directory. Run `\u002Fseo plan` first, or provide a seed keyword for fresh clustering.\"\n\n---\n\n## Execution Workflow\n\nWhen `\u002Fseo cluster execute` is invoked:\n\n### Check for Codex-blog\n\n```\nTest: Does ~\u002F.Codex\u002Fskills\u002Fblog\u002FSKILL.md exist?\n```\n\n**If Codex-blog IS installed:**\n\n1. Load `references\u002Fexecution-workflow.md` for the full algorithm\n2. Read `cluster-plan.json` from the current directory\n3. Check for resume state: scan output directory for already-written posts\n4. Execute in priority order: pillar first, then spokes by volume (highest first)\n5. For each post, invoke the `blog-write` skill with cluster context:\n   - Cluster role (pillar or spoke)\n   - Position in cluster (cluster index, post index)\n   - Target keyword and secondary keywords\n   - Template type and word count target\n   - Internal links to include (with anchors)\n   - Links to receive from future posts (placeholder markers)\n6. After each post is written, scan previous posts for backward link placeholders\n   and inject the new post's URL\n7. After all posts are written, generate the cluster scorecard\n\n**If Codex-blog is NOT installed:**\n\n1. Generate detailed content briefs for each post in the cluster plan\n2. Each brief includes:\n   - Title and meta description\n   - Primary keyword and secondary keywords\n   - Template type and suggested structure (H2\u002FH3 outline)\n   - Word count target\n   - Internal links to include (with anchor text)\n   - Key points to cover\n   - Competing pages to differentiate from\n3. Write briefs to `cluster-briefs\u002F` directory as individual markdown files\n4. Inform user: \"Install [Codex-blog](https:\u002F\u002Fgithub.com\u002FAgriciDaniel\u002FCodex-blog)\n   to auto-create content. Briefs saved to `cluster-briefs\u002F`.\"\n\n---\n\n## Cluster Scorecard\n\nPost-execution quality report. Run automatically after `\u002Fseo cluster execute` or\non demand via analysis of the output directory.\n\n| Metric | Target | How Measured |\n|--------|--------|-------------|\n| Coverage | 100% | Posts written \u002F posts planned |\n| Link Density | 3+ per post | Count internal links per post |\n| Orphan Pages | 0 | Posts with \u003C 1 incoming link |\n| Cannibalization | 0 conflicts | Check for duplicate primary keywords |\n| Image Count | 1+ per post | Posts with at least one image |\n| Pillar Links | 100% | All spokes link to pillar and vice versa |\n| Cross-Links | 80%+ | Recommended spoke-to-spoke links implemented |\n| Content Gaps | 0 | Planned posts that were skipped or incomplete |\n\n---\n\n## Map Regeneration\n\nWhen `\u002Fseo cluster map` is invoked:\n\n1. Read `cluster-plan.json` from the current directory\n2. Scan output directory and update post statuses (planned vs written)\n3. Regenerate `cluster-map.html` with updated statuses\n4. Report: posts written vs planned, link completion percentage\n\n---\n\n## Output Files\n\nAll outputs are written to the current working directory:\n\n| File | Description |\n|------|-------------|\n| `cluster-plan.json` | Machine-readable cluster plan (full data) |\n| `cluster-plan.md` | Human-readable cluster plan summary |\n| `cluster-map.html` | Interactive SVG visualization |\n| `cluster-briefs\u002F` | Content briefs (if no Codex-blog) |\n| `cluster-scorecard.md` | Post-execution quality report |\n\n---\n\n## Cross-Skill Integration\n\n| Skill | Relationship |\n|-------|-------------|\n| `seo-plan` | Import source: strategy import reads seo-plan output |\n| `seo-content` | Quality check: E-E-A-T validation of generated content |\n| `seo-schema` | Schema markup: Article, BreadcrumbList, ItemList for cluster pages |\n| `seo-dataforseo` | Data source: SERP data when DataForSEO MCP is available |\n| `seo-google` | Reporting: generate PDF report of cluster plan and scorecard |\n\nAfter cluster planning or execution completes, offer:\n\"Generate a PDF report? Use `\u002Fseo google report`\"\n\n---\n\n## Error Handling\n\n| Error | Cause | Resolution |\n|-------|-------|------------|\n| \"No seed keyword provided\" | Missing argument | Prompt user for seed keyword or URL |\n| \"Insufficient keyword variants\" | Expansion yielded \u003C 15 keywords | Run second expansion pass with PAA questions |\n| \"SERP data unavailable\" | WebSearch and DataForSEO both failing | Retry after 30s; if persistent, use intent-only clustering with warning |\n| \"No strategy file found\" | `--from strategy` but no plan exists | Prompt user to run `\u002Fseo plan` first |\n| \"cluster-plan.json not found\" | Execute without planning | Prompt user to run `\u002Fseo cluster plan` first |\n| \"Codex-blog not installed\" | Execute attempted without blog skill | Generate content briefs instead; suggest installation |\n| \"DataForSEO budget exceeded\" | Cost check returned \"blocked\" | Fall back to WebSearch; inform user |\n| \"Duplicate primary keywords\" | Cannibalization detected | Merge affected posts or reassign keywords |\n| \"Orphan page detected\" | Post missing incoming links | Add links from nearest cluster siblings |\n| \"Resume state corrupted\" | Mismatch between plan and output | Rebuild state from output directory scan |\n\n---\n\n## Security\n\n- All URLs fetched via `\"$HOME\u002F.Codex\u002Fskills\u002Fseo\u002Fbin\u002FCodex-seo\" run render_page.py \u003Curl> --mode auto` (SPA-aware SSRF protection via `url_safety`)\n- No credentials stored or transmitted\n- Output files contain no PII or API keys\n- DataForSEO cost checks run before every API call\n\n## FLOW Framework Integration\n\nFor prompt-guided keyword research and gap analysis, use `\u002Fseo flow find [url|topic]`: FLOW's 5 find-stage prompts complement the SERP-overlap clustering methodology with structured discovery prompts.\n","# Semantic Topic Clustering\n\nSERP-overlap-driven keyword clustering for content architecture. Groups keywords\nby how Google actually ranks them (shared top-10 results), not by text similarity.\nDesigns hub-and-spoke content clusters with internal link matrices and generates\ninteractive cluster map visualizations.\n\n**Scripts:** Located at the plugin root `scripts\u002F` directory.\n\n---\n\n## Quick Reference\n\n| Command | What it does |\n|---------|-------------|\n| `\u002Fseo cluster plan \u003Cseed-keyword>` | Full planning workflow: expand, cluster, architect, visualize |\n| `\u002Fseo cluster plan --from strategy` | Import from existing `\u002Fseo plan` output |\n| `\u002Fseo cluster execute` | Execute plan: create content via Codex-blog or output briefs |\n| `\u002Fseo cluster map` | Regenerate the interactive cluster visualization |\n\n---\n\n## Planning Workflow\n\n### Step 1: Seed Keyword Expansion\n\nExpand the seed keyword into 30-50 variants using WebSearch:\n\n1. **Related searches**: Search the seed, extract \"related searches\" and \"people also search for\"\n2. **People Also Ask (PAA)**: Extract all PAA questions from SERP results\n3. **Long-tail modifiers**: Append common modifiers: \"best\", \"how to\", \"vs\", \"for beginners\", \"tools\", \"examples\", \"guide\", \"template\", \"mistakes\", \"checklist\"\n4. **Question mining**: Generate who\u002Fwhat\u002Fwhen\u002Fwhere\u002Fwhy\u002Fhow variants\n5. **Intent modifiers**: Add commercial modifiers: \"pricing\", \"review\", \"alternative\", \"comparison\", \"free\", \"top\"\n\n**Deduplication:** Normalize variants (lowercase, strip articles), remove exact duplicates.\nTarget: 30-50 unique keyword variants. If under 30, run a second expansion pass\nwith the top PAA questions as seeds.\n\n### Step 2: SERP Overlap Clustering\n\nThis is the core differentiator. Load `references\u002Fserp-overlap-methodology.md` for\nthe full algorithm.\n\n**Process:**\n1. Group keywords by initial intent guess (reduces pairwise comparisons)\n2. For each candidate pair within a group, WebSearch both keywords\n3. Count shared URLs in the top 10 organic results (ignore ads, featured snippets, PAA)\n4. Apply thresholds:\n\n| Shared Results | Relationship | Action |\n|---------------|-------------|--------|\n| 7-10 | Same post | Merge into single target page |\n| 4-6 | Same cluster | Group under same spoke cluster |\n| 2-3 | Interlink | Place in adjacent clusters, add cross-links |\n| 0-1 | Separate | Assign to different clusters or exclude |\n\n**Optimization:** With 40 keywords, full pairwise = 780 comparisons. Instead:\n- Pre-group by intent (4 groups of ~10 = 4 x 45 = 180 comparisons)\n- Only cross-check group boundary keywords\n- Skip pairs where both are long-tail variants of the same head term (assume same cluster)\n\n**DataForSEO integration:** If DataForSEO MCP is available, use `serp_organic_live_advanced`\ninstead of WebSearch for SERP data. Run `\"$HOME\u002F.Codex\u002Fskills\u002Fseo\u002Fbin\u002FCodex-seo\" run dataforseo_costs.py check serp_organic_live_advanced --count N`\nbefore each batch. If `\"status\": \"needs_approval\"`, show cost estimate and ask user.\nIf `\"status\": \"blocked\"`, fall back to WebSearch.\n\n### Step 3: Intent Classification\n\nClassify each keyword into one of four intent categories:\n\n| Intent | Signals | Include in Clusters? |\n|--------|---------|---------------------|\n| Informational | how, what, why, guide, tutorial, learn | Yes |\n| Commercial | best, top, review, comparison, vs, alternative | Yes |\n| Transactional | buy, price, discount, coupon, order, sign up | Yes |\n| Navigational | brand names, specific product names, login | No (exclude) |\n\nRemove navigational keywords from clustering. Flag borderline cases for\nmanual review. Keywords can have mixed intent (e.g., \"best CRM software\" is\nboth commercial and informational) -- classify by dominant intent.\n\n### Step 4: Hub-and-Spoke Architecture\n\nLoad `references\u002Fhub-spoke-architecture.md` for full specifications.\n\n**Design the cluster structure:**\n\n1. **Select the pillar keyword**: Highest volume, broadest intent, most SERP overlap with other keywords\n2. **Group spokes into clusters**: Each cluster is a subtopic area (2-5 clusters per pillar)\n3. **Assign posts to clusters**: Each cluster gets 2-4 spoke posts\n4. **Select templates per post**: Based on intent classification:\n\n| Intent Pattern | Template Options |\n|---------------|-----------------|\n| Informational (broad) | ultimate-guide |\n| Informational (how) | how-to |\n| Informational (list) | listicle |\n| Informational (concept) | explainer |\n| Commercial (compare) | comparison |\n| Commercial (evaluate) | review |\n| Commercial (rank) | best-of |\n| Transactional | landing-page |\n\n5. **Set word count targets:**\n   - Pillar page: 2500-4000 words\n   - Spoke posts: 1200-1800 words\n\n6. **Cannibalization check**: No two posts share the same primary keyword. If SERP\n   overlap is 7+, merge those keywords into a single post targeting both.\n\n### Step 5: Internal Link Matrix\n\nDesign the bidirectional linking structure:\n\n| Link Type | Direction | Requirement |\n|-----------|-----------|-------------|\n| Spoke to pillar | spoke -> pillar | Mandatory (every spoke) |\n| Pillar to spoke | pillar -> spoke | Mandatory (every spoke) |\n| Spoke to spoke (within cluster) | spoke \u003C-> spoke | 2-3 links per post |\n| Cross-cluster | spoke -> spoke (other cluster) | 0-1 links per post |\n\n**Rules:**\n- Every post must have minimum 3 incoming internal links\n- No orphan pages (every post reachable from pillar in 2 clicks)\n- Anchor text must use target keyword or close variant (no \"click here\")\n- Link placement: within body content, not just navigation\u002Fsidebar\n\nGenerate the link matrix as a JSON adjacency list:\n```json\n{\n  \"links\": [\n    { \"from\": \"pillar\", \"to\": \"cluster-0-post-0\", \"type\": \"mandatory\", \"anchor\": \"keyword\" },\n    { \"from\": \"cluster-0-post-0\", \"to\": \"pillar\", \"type\": \"mandatory\", \"anchor\": \"keyword\" }\n  ]\n}\n```\n\n### Step 6: Interactive Cluster Map\n\nGenerate `cluster-map.html` using the template at `templates\u002Fcluster-map.html`.\n\n1. Read the template file\n2. Build the `CLUSTER_DATA` JSON object from the cluster plan:\n   ```javascript\n   {\n     pillar: { title, keyword, volume, template, wordCount, url },\n     clusters: [{ name, color, posts: [{ title, keyword, volume, template, wordCount, url, status }] }],\n     links: [{ from, to, type }],\n     meta: { totalPosts, totalClusters, totalLinks, estimatedWords }\n   }\n   ```\n3. Replace the `CLUSTER_DATA` placeholder in the template with the actual JSON\n4. Write the completed HTML file to the output directory\n5. Inform user: \"Open `cluster-map.html` in a browser to explore the interactive cluster map.\"\n\n---\n\n## Strategy Import\n\nWhen invoked with `--from strategy`:\n\n1. Look for the most recent `\u002Fseo plan` output in the current directory (search for\n   files matching `*SEO*Plan*`, `*strategy*`, `*content-strategy*`)\n2. Parse markdown tables for: keywords, page types, content pillars, URL structures\n3. Validate extracted data: check for duplicates, missing keywords, incomplete entries\n4. Enrich with SERP data: run SERP overlap analysis on extracted keywords\n5. Build cluster plan using the imported keywords as the starting set (skip Step 1)\n\nIf no strategy file is found, prompt the user: \"No existing SEO plan found in the\ncurrent directory. Run `\u002Fseo plan` first, or provide a seed keyword for fresh clustering.\"\n\n---\n\n## Execution Workflow\n\nWhen `\u002Fseo cluster execute` is invoked:\n\n### Check for Codex-blog\n\n```\nTest: Does ~\u002F.Codex\u002Fskills\u002Fblog\u002FSKILL.md exist?\n```\n\n**If Codex-blog IS installed:**\n\n1. Load `references\u002Fexecution-workflow.md` for the full algorithm\n2. Read `cluster-plan.json` from the current directory\n3. Check for resume state: scan output directory for already-written posts\n4. Execute in priority order: pillar first, then spokes by volume (highest first)\n5. For each post, invoke the `blog-write` skill with cluster context:\n   - Cluster role (pillar or spoke)\n   - Position in cluster (cluster index, post index)\n   - Target keyword and secondary keywords\n   - Template type and word count target\n   - Internal links to include (with anchors)\n   - Links to receive from future posts (placeholder markers)\n6. After each post is written, scan previous posts for backward link placeholders\n   and inject the new post's URL\n7. After all posts are written, generate the cluster scorecard\n\n**If Codex-blog is NOT installed:**\n\n1. Generate detailed content briefs for each post in the cluster plan\n2. Each brief includes:\n   - Title and meta description\n   - Primary keyword and secondary keywords\n   - Template type and suggested structure (H2\u002FH3 outline)\n   - Word count target\n   - Internal links to include (with anchor text)\n   - Key points to cover\n   - Competing pages to differentiate from\n3. Write briefs to `cluster-briefs\u002F` directory as individual markdown files\n4. Inform user: \"Install [Codex-blog](https:\u002F\u002Fgithub.com\u002FAgriciDaniel\u002FCodex-blog)\n   to auto-create content. Briefs saved to `cluster-briefs\u002F`.\"\n\n---\n\n## Cluster Scorecard\n\nPost-execution quality report. Run automatically after `\u002Fseo cluster execute` or\non demand via analysis of the output directory.\n\n| Metric | Target | How Measured |\n|--------|--------|-------------|\n| Coverage | 100% | Posts written \u002F posts planned |\n| Link Density | 3+ per post | Count internal links per post |\n| Orphan Pages | 0 | Posts with \u003C 1 incoming link |\n| Cannibalization | 0 conflicts | Check for duplicate primary keywords |\n| Image Count | 1+ per post | Posts with at least one image |\n| Pillar Links | 100% | All spokes link to pillar and vice versa |\n| Cross-Links | 80%+ | Recommended spoke-to-spoke links implemented |\n| Content Gaps | 0 | Planned posts that were skipped or incomplete |\n\n---\n\n## Map Regeneration\n\nWhen `\u002Fseo cluster map` is invoked:\n\n1. Read `cluster-plan.json` from the current directory\n2. Scan output directory and update post statuses (planned vs written)\n3. Regenerate `cluster-map.html` with updated statuses\n4. Report: posts written vs planned, link completion percentage\n\n---\n\n## Output Files\n\nAll outputs are written to the current working directory:\n\n| File | Description |\n|------|-------------|\n| `cluster-plan.json` | Machine-readable cluster plan (full data) |\n| `cluster-plan.md` | Human-readable cluster plan summary |\n| `cluster-map.html` | Interactive SVG visualization |\n| `cluster-briefs\u002F` | Content briefs (if no Codex-blog) |\n| `cluster-scorecard.md` | Post-execution quality report |\n\n---\n\n## Cross-Skill Integration\n\n| Skill | Relationship |\n|-------|-------------|\n| `seo-plan` | Import source: strategy import reads seo-plan output |\n| `seo-content` | Quality check: E-E-A-T validation of generated content |\n| `seo-schema` | Schema markup: Article, BreadcrumbList, ItemList for cluster pages |\n| `seo-dataforseo` | Data source: SERP data when DataForSEO MCP is available |\n| `seo-google` | Reporting: generate PDF report of cluster plan and scorecard |\n\nAfter cluster planning or execution completes, offer:\n\"Generate a PDF report? Use `\u002Fseo google report`\"\n\n---\n\n## Error Handling\n\n| Error | Cause | Resolution |\n|-------|-------|------------|\n| \"No seed keyword provided\" | Missing argument | Prompt user for seed keyword or URL |\n| \"Insufficient keyword variants\" | Expansion yielded \u003C 15 keywords | Run second expansion pass with PAA questions |\n| \"SERP data unavailable\" | WebSearch and DataForSEO both failing | Retry after 30s; if persistent, use intent-only clustering with warning |\n| \"No strategy file found\" | `--from strategy` but no plan exists | Prompt user to run `\u002Fseo plan` first |\n| \"cluster-plan.json not found\" | Execute without planning | Prompt user to run `\u002Fseo cluster plan` first |\n| \"Codex-blog not installed\" | Execute attempted without blog skill | Generate content briefs instead; suggest installation |\n| \"DataForSEO budget exceeded\" | Cost check returned \"blocked\" | Fall back to WebSearch; inform user |\n| \"Duplicate primary keywords\" | Cannibalization detected | Merge affected posts or reassign keywords |\n| \"Orphan page detected\" | Post missing incoming links | Add links from nearest cluster siblings |\n| \"Resume state corrupted\" | Mismatch between plan and output | Rebuild state from output directory scan |\n\n---\n\n## Security\n\n- All URLs fetched via `\"$HOME\u002F.Codex\u002Fskills\u002Fseo\u002Fbin\u002FCodex-seo\" run render_page.py \u003Curl> --mode auto` (SPA-aware SSRF protection via `url_safety`)\n- No credentials stored or transmitted\n- Output files contain no PII or API keys\n- DataForSEO cost checks run before every API call\n\n## FLOW Framework Integration\n\nFor prompt-guided keyword research and gap analysis, use `\u002Fseo flow find [url|topic]`: FLOW's 5 find-stage prompts complement the SERP-overlap clustering methodology with structured discovery prompts.\n",{"name":5,"license":15,"metadata":24,"description":29,"argument-hint":30,"user-invocable":31},{"author":25,"version":26,"category":27,"original_author":28},"AgriciDaniel","2.2.4","seo","Lutfiya Miller (Pro Hub Challenge Winner)","SERP-based semantic topic clustering for content architecture planning. Groups keywords by actual Google SERP overlap (not text similarity), designs hub-and-spoke content clusters with internal link matrices, and generates interactive visualizations. Optionally executes content creation if Codex-blog is installed. Use when user says \"topic cluster\", \"content cluster\", \"semantic clustering\", \"pillar page\", \"hub and spoke\", \"content architecture\", \"keyword grouping\", or \"cluster plan\".\n","\u003Cseed-keyword or url>",true,"main","f1bcf88a052c2ccbb297666b33fb820cfd94ac71",".agents\u002Fskills\u002Fresearch-data\u002Fresearch-seo-and-content\u002Fseo-cluster",0,"https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas","https:\u002F\u002Fgithub.com\u002Fpeterish8","Building real-world products with clean UI, smart architecture, and privacy in mind. Frontend-focused, full-stack curious.","2026-10-15 19:02:31",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":31},[42,45,48],{"tool":43,"command":44},"npx","npx skills add peterish8\u002Fprats-skill-atlas --skill seo-cluster",{"tool":46,"command":47},"bunx","bunx skills add peterish8\u002Fprats-skill-atlas --skill seo-cluster",{"tool":49,"command":50},"pnpm","pnpm dlx skills add peterish8\u002Fprats-skill-atlas --skill seo-cluster","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fresearch-data\u002Fresearch-seo-and-content\u002Fseo-cluster\u002FSKILL.md",[53,59,63,67],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fexecution-workflow.md","REFERENCE","参考文档",6455,"https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fresearch-data\u002Fresearch-seo-and-content\u002Fseo-cluster\u002Freferences\u002Fexecution-workflow.md",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fhub-spoke-architecture.md",6291,"https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fresearch-data\u002Fresearch-seo-and-content\u002Fseo-cluster\u002Freferences\u002Fhub-spoke-architecture.md",{"path":64,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fserp-overlap-methodology.md",4514,"https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fresearch-data\u002Fresearch-seo-and-content\u002Fseo-cluster\u002Freferences\u002Fserp-overlap-methodology.md",{"path":68,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":69,"sourceHtmlUrl":70},"templates\u002Fcluster-map.html",18882,"https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fresearch-data\u002Fresearch-seo-and-content\u002Fseo-cluster\u002Ftemplates\u002Fcluster-map.html",[72,81,89,97,104,112],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":77,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7CTAZW9MHV3RWH2ZEKDQXG9","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftools-utilities\u002Fgeneral-purpose\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftools-utilities\u002Fgeneral-purpose\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CT8MG7NB1JR67XYZ9EWW3B","seo-audit","Full website SEO audit with parallel subagent delegation. Crawls up to 500 pages, detects business type, delegates to up to 15 specialists (8 always + 7 conditional), generates health score. Use when user says audit, full SEO check, analyze my site, or website health check.","https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftesting\u002Fqa-and-verification\u002Fseo-audit\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftesting\u002Fqa-and-verification\u002Fseo-audit\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7CT87F6GQ0WAD393PKPAGGX","playwright","Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via `playwright-cli` or the bundled wrapper script.","https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftesting\u002Fqa-and-verification\u002Fplaywright\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftesting\u002Fqa-and-verification\u002Fplaywright\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7CT809RF90MG98MYEA97D8Z","gsap-performance","Official GSAP skill for performance — prefer transforms, avoid layout thrashing, will-change, batching. Use when optimizing GSAP animations, reducing jank, or when the user asks about animation performance, FPS, or smooth 60fps.","https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftesting\u002Fqa-and-verification\u002Fgsap-performance\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":108,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M7CT7Q4VD995JHZMQQFBZZV9","firecrawl-seo-audit","Audit a website's SEO with Firecrawl. Use when the user asks for an SEO audit, metadata and heading review, sitemap\u002Fsite-structure analysis, keyword opportunities, competitor SERP comparison, or prioritized search optimization recommendations.","ISC","https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftesting\u002Fqa-and-verification\u002Ffirecrawl-seo-audit\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":108,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":19},"01M7CT7JRJFC5RAKJBAP0VS1CV","firecrawl-qa","QA test a live website with Firecrawl browser and scrape evidence. Use when the user wants exploratory QA, form testing, navigation\u002Flink checks, responsive checks, performance observations, bug reports, or a pre-launch quality review.","https:\u002F\u002Fgithub.com\u002Fpeterish8\u002Fprats-skill-atlas\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftesting\u002Fqa-and-verification\u002Ffirecrawl-qa\u002FSKILL.md",[],[]]