seranking/seo-subdomain
Subdomain ownership map for a domain. Lists subdomains, queries overview/keywords/competitors/backlinks per subdomain, surfaces which subdomains own which topic clusters, where there's fragmentation, and whether consolidation is warranted. Use when the user asks "subdomain analysis", "subdomain ownership", "subdomain SEO", "blog vs main domain", "support vs docs subdomain", or "should I consolidate subdomains".
npx skills add https://github.com/seranking/seo-skills --skill seo-subdomain
> Example output: examples/seo-subdomain-notion-so-20260514/SUBDOMAINS.md
Map a domain's subdomain ecosystem. Which subdomains exist, what each ranks for, where they overlap, and whether the structure is healthy or fragmented. Output: an ownership map (which topic is owned by which subdomain), a fragmentation report, and recommendations for consolidate / split / leave alone.
example.com). The skill discovers subdomains automatically.--limit N to cap the number of subdomains analysed (default: top 10 by ranked keyword count).www.).DATA_getCreditBalance — surface remaining credits. Subdomain analysis is N × ~5 calls; cost scales with subdomain count.DATA_getDomainSubdomains--limit (default top 10).DATA_getDomainOverviewWorldwideDATA_getDomainKeywordsseo-keyword-cluster, which now clusters by SERP overlap, not text similarity.)DATA_getDomainCompetitorscommon_keywords.DATA_getBacklinksSummary and DATA_getBacklinksRefDomains (top 20)DATA_getDistributionOfDomainAuthorityblog.example.com and example.com/blog/ both rank for the same topic cluster but neither dominates — pick one canonical home.10. Synthesise SUBDOMAINS.md
Create a folder seo-subdomain-{target-slug}-{YYYYMMDD}/ with:
seo-subdomain-{target-slug}-{YYYYMMDD}/
├── SUBDOMAINS.md (synthesised report + recommendations — primary deliverable)
├── 06-topic-ownership-map.md (cluster × subdomain matrix — load-bearing reference content teams brief from)
├── 07-fragmentation-flags.md (cannibalization detected — load-bearing reference for consolidation decisions)
└── evidence/
├── 01-subdomains-list.md (DATA_getDomainSubdomains — raw step output)
├── 02-overview-by-subdomain.md (per-subdomain overview rows)
├── 03-keywords-by-subdomain/
│ ├── blog-example-com.md
│ ├── docs-example-com.md
│ └── ... (one per subdomain)
├── 04-competitors-by-subdomain.md
└── 05-backlinks-by-subdomain.md
Top-level: SUBDOMAINS.md + 06-topic-ownership-map.md + 07-fragmentation-flags.md. Content teams brief from the ownership map; consolidation decisions cite the fragmentation flags directly. The 01–05 step files preserve raw API outputs in evidence/.
SUBDOMAINS.md follows this shape:
# Subdomain Analysis: {root domain}
> Snapshot dated {YYYY-MM-DD} · Subdomains analysed: {n} of {n discovered} (limit: top {limit} by keyword count)
## Subdomain inventory
| Subdomain | Keywords | Traffic est. | Backlinks | Domain authority | Top topics owned |
|---|---|---|---|---|---|
| {root} | {n} | {n}/mo | {n} | {DA} | {topics} |
| blog.{root} | {n} | {n}/mo | {n} | {DA} | {topics} |
| docs.{root} | {n} | {n}/mo | {n} | {DA} | {topics} |
| ... |
## Topic ownership map
| Topic cluster | Owned by | Also ranks (cannibalization?) |
|---|---|---|
| {topic 1} | blog.{root} (avg pos 3.2 across 47 keywords) | {root} (avg pos 12) — {⚠ cannibalization} |
| {topic 2} | docs.{root} | (none) |
| ... |
## Fragmentation flags
### {⚠ Cannibalization detected: topic = {topic X}}
- `blog.{root}` ranks {n} keywords for {topic X}, avg position {p}.
- `{root}` (root path) ranks {m} keywords for the same topic, avg position {p}.
- The two sets overlap on {k} exact keywords.
- **Recommendation:** consolidate to `blog.{root}` (the stronger ranker). 301 the root-path duplicates with intent preserved.
### ... (per fragmentation finding)
## Recommendations summary
- **Consolidate:** {n} subdomain pairs → see fragmentation flags above.
- **Split intentional and healthy:** {n} subdomains have distinct ownership; leave alone.
- **Investigate:** {n} edge cases flagged for human review.
## Risk notes
- Subdomain consolidation requires careful 301 redirect mapping; track via `seo-drift` after the migration.
- A subdomain with separate backlinks (per `evidence/05-backlinks-by-subdomain.md`) is harder to consolidate without losing link equity — plan accordingly.
## Raw data
- See per-subdomain files under `evidence/03-keywords-by-subdomain/`.
- Topic ownership matrix: `06-topic-ownership-map.md`.
--limit 10, that's ~50 calls; pace sequentially.DATA_getCreditBalance before running. Cost scales with subdomain count: ~20–60 credits typical for --limit 10; up to 150+ for unlimited.--limit is your friend. Sites with hundreds of subdomains (large platforms) don't need every subdomain analysed — top 10 by keyword count covers >90% of organic value usually.blog.example.com to example.com/blog/ retains most link equity but can lose 5–15% in transition. Track post-migration with seo-drift.blog.example.com is on a different CMS, the engineering cost of consolidation may exceed the SEO benefit. Surface this as a constraint, not a recommendation.seo-page to deep-dive into specific URLs flagged in cannibalization.seo-drift to baseline subdomains before major restructures.Take seranking/seo-subdomain from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.