agentleFS
sitetillersitetiller/ai-visibility-skills/skills/topic-clusters/SKILL.md

topic-clusters

Skill0 starsChanged 2 days agoMITView on GitHub

Group Search Console queries into topics, map each topic to the pages that serve it, and decide the hub and spoke structure: which pages to create, which to merge, which to leave. Uses a Search Console query+page export, a deterministic grouping helper, and the cannibal and links commands. Use when the user says 'topic clusters', 'content cluster', 'pillar page', 'hub and spoke', 'what pages should I write next', 'group my keywords', 'content map', 'site structure for SEO'.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Search Console query+page rows for 90 days or more (gsc --dims query,page --out qp.csv, see gsc-bing), or a user export with columns Query, …

    line 14
  2. Distinctive:

    Keep to what the data supports: a hub needs at least a few real spoke queries, not a list of invented subtopics.

    line 39
  3. Distinctive:

    Check the current link state:

    line 40
  4. Distinctive:

    Do not present clusters as a ranking factor.

    line 58
  5. Distinctive:

    Do not create pages for queries that have no impressions and no user evidence.

    line 59
  6. Distinctive:

    Do not mass-generate spoke pages from a keyword list.

    line 60
  7. Very specific:

    Do not merge or redirect pages without the cannibalization checks and the user's agreement.

    line 61
  8. Distinctive:

    Only restructure pages the user owns.

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Topic clusters from the site's own queries

Goal: a content map built from queries the site already receives, with a decision per topic: write, extend, merge or leave. Google documents no "topic cluster" ranking feature. The structure is a way to organise pages and internal links for readers and crawlers, and the skill presents it that way.

Inputs

  • Search Console query+page rows for 90 days or more (gsc --dims query,page --out qp.csv, see gsc-bing), or a user export with columns Query, Page, Clicks, Impressions, CTR, Position.
  • The site's sitemap (for links).

Steps

  1. Export:
    npx sitetiller gsc example.com --start 2026-08-12 --end 2026-11-09 --dims query,page --out qp.csv
    The API returns at most 50K rows per day per search type and may drop rows when grouping by query and page, so small queries can be missing. Say so in the report.
  2. Draft the groups with the helper (offline, reads the CSV as data, no shell, no network):
    node skills/topic-clusters/references/cluster-queries.mjs qp.csv --min-imp 10 --json
    Each cluster has label, queries, impressions, clicks, avgPosition, pages (which URLs got impressions for the cluster) and topQueries. The helper joins queries that share two words (or one word when both are short). It does not understand meaning. Read each cluster and split or merge by hand; record the final names.
  3. For each cluster, classify:
    Pattern in the dataReadingDecision
    One page holds most impressions, positions 1-3topic is servedleave; link supporting pages to it
    One page, positions 4-20, many queriespage is relevant but not strongextend that page, add internal links (internal-links)
    Several pages share the cluster's queriesoverlaprun cannibalization before creating anything
    Queries with real impressions, no page contains the wordsgapcreate a spoke page from a brief (content-brief)
    Many tiny queries across many weak pages on one subtopicfragmentationmerge into one stronger page, redirect the rest (cannibalization)
  4. Choose the structure per large topic:
    • Hub: one page that covers the topic broadly, answers the main query, and links to each spoke with descriptive anchors.
    • Spokes: pages for specific sub-questions with their own query set, each linking back to the hub and to one or two sibling spokes where a reader would go next.
    • Keep to what the data supports: a hub needs at least a few real spoke queries, not a list of invented subtopics.
  5. Check the current link state:
    npx sitetiller links https://example.com --pages 100 --json
    Fields: orphans, weak (each with url, linkedFrom, anchors). Orphans and weak pages in a cluster go first. Details in internal-links.
  6. Produce the content map (below) and queue the work: briefs for gaps, merges for fragments, link edits for weak pages.

Content map format

TopicQueries / impressionsCurrent pagesHubSpokes to createMergeLinks to add
Fill each cell from the data. "Spokes to create" lists real query strings from the export, never invented ones.

Output to the user

  1. The content map and the top five actions by impressions affected.
  2. What the data cannot show (queries dropped by export limits, topics with no impressions yet). For topics with no data, say a brief needs the live results page from the user.
  3. How each action will be measured (measure-rollback).

Guardrails

  • Do not present clusters as a ranking factor. Google documents none; the benefit claimed is organisation, links and coverage.
  • Do not create pages for queries that have no impressions and no user evidence.
  • Do not mass-generate spoke pages from a keyword list. Google's spam policies name scaled content abuse: many pages made mainly to rank, with unoriginal content.
  • Do not merge or redirect pages without the cannibalization checks and the user's agreement.
  • Only restructure pages the user owns.

References

  • references/cluster-queries.mjs (offline helper)
  • references/sources.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.