/marketing-skills:site-architecturefrom marketing-skills
Audits and designs website information architecture including URL hierarchy, internal linking, navigation, silo structure, and crawl equity. Handles sitemap audits, new site planning, and URL migration redirect maps.
Ships in marketing-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Production-grade website architecture framework covering URL hierarchy design, internal linking strategy, navigation optimization, silo structure, and crawl equity management. Handles architecture audits, new site planning, and restructuring existing sites.
Before generating the architecture, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Existing site needs structural assessment. Analyze depth distribution, orphan pages, link equity flow, and navigation effectiveness.
Building from scratch or full redesign. Map business goals to site sections, design URL hierarchy, plan navigation, and define content silos.
Structure is fine but link equity flow needs improvement. Identify hub pages, map spoke content, fix orphans, and optimize anchor text.
Changing URLs on an existing site. Plan the new structure, build redirect maps, and manage the migration.
| Depth | Example | Use When | SEO Impact |
|---|---|---|---|
| 1 level (flat) | /cold-email-tips | Blog posts, standalone pages | Best crawl equity per page |
| 2 levels | /email-marketing/cold-email-tips | Category is a rankable page itself | Good, category page accumulates authority |
| 3 levels | /solutions/marketing/email-automation | Product families, nested services | Acceptable if each level has content |
| 4+ levels | /a/b/c/d/page | Never | Diluted equity, poor UX, crawl issues |
Decision rule: If the intermediate directory URL (/email-marketing/) will NOT be a real page with its own content and ranking target, do not create the directory. Flat is better than empty hierarchy.
| Rule | Good | Bad | Why |
|---|---|---|---|
| Use hyphens | /seo-audit | /seo_audit | Underscores are not word separators for Google |
| Be descriptive | /pricing | /pricing-page | Redundant suffixes add nothing |
| Keep short | /guides/technical-seo | /guides/technical-seo-audit-checklist-complete-guide | Readability matters |
| Include keyword | /guides/seo-audit | /guides/article?id=4827 | Descriptive URLs rank better |
| Be consistent with trailing slashes | Pick one: /about or /about/ | Mix of both | Inconsistency creates duplicate content |
| Use lowercase | /about-us | /About-Us | Case sensitivity varies by server |
| Site Type | Pattern | Example |
|---|---|---|
| SaaS | /features/[feature], /solutions/[use-case], /integrations/[partner] | /features/analytics, /solutions/marketing, /integrations/slack |
| E-commerce | /[category]/[subcategory]/[product] | /mens/shoes/running-shoes-pro |
| Blog/Content | /blog/[slug] or /blog/[category]/[slug] | /blog/seo-audit-guide |
| Local business | /[service]/[location] | /plumbing/austin-tx |
| Documentation | /docs/[section]/[page] | /docs/api/authentication |
| Marketplace | /[category]/[listing] | /designers/john-smith |
Every site has 6 navigation zones. Each serves a different purpose and carries different SEO weight.
| Zone | Items | SEO Weight | Design Rule |
|---|---|---|---|
| Primary nav | 5-8 items max | High (sitewide equity) | Only pages you want to rank for. Never "Resources" without a landing page. |
| Secondary nav | 3-7 per section | Medium | Sub-navigation within a section/silo |
| Breadcrumbs | Dynamic | High (upward equity) | Every non-homepage page. Each segment must be a real link. |
| Footer nav | 8-15 items max | Low-Medium | Key pages only. Not a dumping ground for every page. |
| Contextual (in-content) | 3-5 per page | Highest | Most powerful signal. Natural editorial links within body content. |
| Sidebar | 5-10 items | Low-Medium | Related content, category listing |
Rules:
Add breadcrumbs to every non-homepage page. They serve three functions:
Format: Home > Category > Subcategory > Current Page
Rules:
A silo is a self-contained cluster of content about one topic, where all pages link to each other and to a central hub page.
┌──────────────────┐
│ HUB PAGE │
│ /seo/ │
│ (Pillar content)│
└────────┬─────────┘
┌────────────────┼────────────────┐
┌────┴────┐ ┌───┴────┐ ┌────┴────┐
│ SPOKE 1 │ │ SPOKE 2│ │ SPOKE 3 │
│technical│ │on-page │ │ link │
│ seo │ │ seo │ │building │
└────┬────┘ └───┬────┘ └────┬────┘
│ │ │
Cross-links Cross-links Cross-links
between between between
related related related
spokes spokes spokes
Step 1: Identify 3-7 core topics for your site (these become your silos)
Step 2: For each topic, create one pillar page (the hub) that covers the topic broadly
Step 3: Create spoke content for each major sub-question or sub-topic
Step 4: Implement linking:
Step 5: Build the content before building the links. Links to non-existent content are useless.
| Silo Size | Recommended Depth | Structure |
|---|---|---|
| 3-5 spokes | Flat | Hub + spokes, all at same level |
| 6-15 spokes | Shallow nested | Hub > Sub-hubs > Spokes |
| 16-50 spokes | Two-level | Hub > Category sub-hubs > Individual spokes |
| 50+ spokes | Paginated | Hub > Category sub-hubs > Paginated spoke listings |
Not all internal links carry equal weight. From most to least powerful:
| Rank | Link Type | Weight | When to Use |
|---|---|---|---|
| 1 | In-content contextual link | Highest | Natural editorial links within body copy |
| 2 | Hub page link | High | Pillar page linking to all its spokes |
| 3 | Navigation link | Medium | Sitewide, consistent, but diluted by ubiquity |
| 4 | Breadcrumb link | Medium | Upward equity flow, consistent |
| 5 | Footer link | Low | Sitewide, Google discounts these |
| 6 | Sidebar link | Low | Often not in main content flow |
| Type | Example | Usage | Signal Strength |
|---|---|---|---|
| Partial match | "effective cold email strategies" | Primary approach (60-70% of links) | Strong |
| Exact match | "cold email templates" | Use sparingly (10-15% of links) | Strong but risky if overused |
| Branded | "our email guide" | Natural variation (10-15%) | Moderate |
| Descriptive | "this comprehensive guide" | Natural variation (5-10%) | Weak but natural |
| Generic | "click here", "learn more" | Avoid (< 5%) | None -- wasted signal |
| Naked URL | https://example.com/guide | Never for internal links | None |
An orphan page is indexed in Google but has zero inbound internal links. It is invisible to the site's link graph.
Detection method:
Resolution actions:
| Orphan Type | Action |
|---|---|
| Valuable content, belongs in a silo | Add contextual links from 3+ related pages |
| Old content, still relevant | Link from hub page and 1-2 spokes |
| Outdated content, no value | Redirect to relevant page or noindex |
| Utility page (shouldn't be indexed) | Add noindex |
| Check | Pass Criteria |
|---|---|
| Every content page has 3-5 outbound internal links | No page links only to itself or navigation |
| Every target page has 3+ inbound internal links | No orphans in the indexed set |
| Hub pages link to all their spokes | Complete coverage |
| Anchor text is descriptive and varied | No > 30% exact match for any keyword |
| No broken internal links | 0 broken links |
| Link depth from homepage < 4 clicks | 95%+ of pages within 3 clicks |
The homepage is your highest-equity page. Use it wisely.
| Homepage Link Target | Priority |
|---|---|
| Hub/pillar pages (top of each silo) | Highest -- link from homepage content area |
| Key product/service pages | High -- link from homepage or primary nav |
| Top-performing content | Medium -- link if contextually relevant |
| Utility pages (contact, about) | Low -- footer links only |
| Blog index | Medium -- primary or secondary nav |
Google publishes no split of crawl budget by page type. The table below is an internal heuristic for deciding where to spend internal links, not a measured allocation.
| Page Category | Priority (heuristic) | Optimization |
|---|---|---|
| Money pages (product, pricing, features) | Highest | Internal link from homepage + nav |
| Pillar content (hub pages) | Highest | Extensive internal linking |
| Spoke content (blog, guides) | High | Linked from hubs + contextual |
| Utility pages (about, contact, legal) | Low | Footer links only, minimal crawl |
| Tag/archive/pagination | Lowest | Noindex if thin, limit crawling |
--------------|-------------------|--------------| | Money pages (product, pricing, features) | 20-30% | Internal link from homepage + nav | | Pillar content (hub pages) | 20-30% | Extensive internal linking | | Spoke content (blog, guides) | 30-40% | Linked from hubs + contextual | | Utility pages (about, contact, legal) | 5-10% | Footer links only, minimal crawl | | Tag/archive/pagination | < 5% | Noindex if thin, limit crawling |
Weights are internal heuristics for prioritising fixes, not published or measured values; adjust them to your site.
| Dimension | Weight | Check |
|---|---|---|
| Crawl depth | 20% | 95%+ pages within 3 clicks of homepage |
| Orphan pages | 20% | 0 orphan pages in indexed set |
| URL cleanliness | 15% | Clean, descriptive, consistent URLs |
| Navigation completeness | 15% | All key pages accessible via primary/secondary nav |
| Internal link coverage | 15% | Every page has 3+ inbound internal links |
| Silo coherence | 10% | Topic clusters are well-defined with clear hub-spoke relationships |
| Breadcrumb implementation | 5% | Present on all non-homepage pages with schema |
| Signal | Severity | Action |
|---|---|---|
| Pages > 3 clicks from homepage | High | Create shortcuts via nav or hub page links |
| Hub page has no content (just links) | High | Add pillar content to all hub pages |
| Generic anchor text dominant (> 30%) | Medium | Rewrite anchor text to be descriptive |
| No breadcrumbs on deep pages | Medium | Implement breadcrumbs with BreadcrumbList schema |
| Sitemap includes noindex pages | Medium | Filter sitemap to only indexable pages |
| Primary nav links to utility pages | Low | Move Contact/Privacy to footer |
| Footer contains 50+ links | Low | Reduce to 8-15 key pages |
| Signal | Restructure? | Alternative |
|---|---|---|
| Complete URL overhaul needed | Yes | -- |
| Adding 3 new sections | Partial -- new sections only | -- |
| Fixing orphan pages | No | Add internal links, no URL changes needed |
| Improving nav | No | Update navigation, keep URLs |
| Moving to new CMS | Yes (usually) | Keep URL structure if CMS supports it |
/ Homepage
├── /features/ Features hub
│ ├── /features/analytics Analytics feature
│ └── /features/reporting Reporting feature
├── /solutions/ Solutions hub (by use case)
│ ├── /solutions/marketing Marketing use case
│ └── /solutions/sales Sales use case
├── /integrations/ Integrations hub
│ ├── /integrations/slack Slack integration
│ └── /integrations/salesforce Salesforce integration
├── /pricing Pricing page
├── /blog/ Blog index
│ ├── /blog/seo-guide Blog post
│ └── /blog/growth-tips Blog post
├── /docs/ Documentation
└── /about About page
/ Homepage
├── /[category]/ Category page (with content)
│ ├── /[category]/[subcategory]/ Subcategory (with content)
│ │ └── /[category]/[subcategory]/[product] Product page
│ └── /[category]/[product] Product (if no subcategory)
├── /brands/ Brand hub
│ └── /brands/[brand] Brand page
├── /blog/ Content hub
└── /sale/ Promotions hub
/ Homepage
├── /[topic]/ Topic hub (pillar content)
│ ├── /[topic]/[subtopic] Subtopic article
│ └── /[topic]/[guide] In-depth guide
├── /authors/ Author hub
│ └── /authors/[name] Author page
├── /tools/ Free tools hub
│ └── /tools/[tool] Individual tool
└── /newsletter Newsletter signup
| Mistake | Why It Hurts | Fix |
|---|---|---|
| Orphan pages | No equity flows in, Google deprioritizes | Add contextual internal links from related content |
| URL changes without redirects | Lost link equity and broken backlinks | Always 301 redirect old URLs |
| Deep nesting (4+ levels) | Diluted crawl equity, confusing UX | Flatten structure |
| Empty category pages | Thin pages do not rank | Add pillar content to all category/hub pages |
| Homepage linking to nothing | Wastes highest-equity page | Link from home to all hub pages |
| Footer with 100+ links | Dilutes equity across too many targets | Limit footer to 8-15 key pages |
| Navigation not matching user mental model | Users leave, engagement drops | Run card-sort testing with real users |
| Dynamic parameter URLs | Creates duplicate content | Canonicalize or block with robots.txt |
| Sitewide sidebar links to every post | Diluted equity, adds noise | Remove or limit to "popular" posts |
| Artifact | Format | Description |
|---|---|---|
| Architecture Audit Scorecard | Weighted score table | Per-dimension scores with red flag indicators |
| Site Tree Diagram | Text-based hierarchy | Visual URL structure with annotations |
| URL Specification Table | Table | URL pattern, title template, parent page, schema type per section |
| Internal Linking Plan | Hub-spoke map | Topic cluster map with anchor text guidelines and orphan fix list |
| Redirect Map | Before/after URL table | 1:1 mapping for URL restructuring with 301 implementation |
| Navigation Spec | Zone-by-zone design | Primary, secondary, breadcrumb, footer, and contextual nav plans |
| Problem | Likely Cause | Fix |
|---|---|---|
| Orphan pages appearing in Google index | Pages exist in sitemap or have external links but no internal links pointing to them | Add contextual internal links from 3+ related pages; update hub pages to include them |
| Crawl depth exceeds 4+ clicks for key pages | Flat navigation missing or hub pages not linking to spokes | Create shortcut links via primary nav, hub page content blocks, or featured sections |
| Category/hub pages ranking poorly | Hub pages have no substantive content — just link lists | Add 800+ words of pillar content to every hub page; they must rank on their own merit |
| Redirect chains after site migration | Old redirects not updated to point to final destination; chains accumulate over multiple migrations | Audit all existing redirects; collapse chains so every redirect points directly to the final URL |
| Internal links using generic anchor text | "Click here" and "learn more" anchor text dominating internal links | Rewrite anchors to be descriptive with partial-match keywords; aim for 60-70% partial match |
| New sections not getting crawled | No internal links from existing high-authority pages to new section | Add contextual links from homepage and related hub pages; submit new section sitemap |
In scope:
Out of scope:
Known limitations:
Three standard-library tools, no network by default. Each reads your file, quotes the offending URLs, and gives a concrete fix per finding.
# URL depth, hygiene (case, underscores, params, trailing slash, hosts, scheme) and duplicates
python3 scripts/sitemap_analyzer.py sitemap.xml [--format json] [--depth-report]
# Sections, hub pages and the hub -> spoke linking plan (flags sections with no hub)
python3 scripts/link_mapper.py sitemap.xml [--hub-analysis] [--min-section 3] [--format json]
# Per-URL hygiene for a migration list (offline); --live also follows redirects (network)
python3 scripts/redirect_checker.py urls.txt [--live] [--format json]
Input is an XML sitemap or a text file with one URL per line (# comments allowed). --json is kept as an alias for --format json. Samples: assets/sample_sitemap.xml, assets/flawed_sitemap.xml, assets/sample_urls.txt, assets/flawed_urls.txt.
Real output (python3 scripts/sitemap_analyzer.py assets/flawed_sitemap.xml, trimmed):
Read 12 URLs from assets/flawed_sitemap.xml
URL depth (path segments; approximates, not click depth):
depth 0: 1 (8.3%)
depth 1: 4 (33.3%)
depth 2: 5 (41.7%)
depth 5: 1 (8.3%)
depth 6: 1 (8.3%)
[High] deep-url: 2 of 12 URLs (16.7%) are 4+ path levels deep (SKILL.md heuristic: 3 max)
https://example.com/blog/a/b/c/d/deep-page
Fix: Flatten, e.g. /blog/a/b/c/d/deep-page -> /blog/deep-page (301 the old URL); keep a middle directory only if it is a real ranking page
[Medium] uppercase: 1 URLs contain uppercase path characters
https://example.com/Blog/Post_One
Fix: Lowercase and 301: https://example.com/Blog/Post_One -> https://example.com/blog/post-one
FIX 8 issues
| Code | Meaning |
|---|---|
| 0 | No findings (PASS) |
| 1 | Findings to act on (FIX n issues) |
| 2 | Unusable input: missing, empty, unreadable, malformed XML, a sitemap index, or no valid URLs (BLOCKED: <reason>) |
assets/contract.json (opens in a new tab)assets/flawed_sitemap.xml (opens in a new tab)assets/flawed_urls.txt (opens in a new tab)assets/malformed_sitemap.xml (opens in a new tab)assets/malformed_urls.txt (opens in a new tab)assets/sample_sitemap.xml (opens in a new tab)assets/sample_urls.txt (opens in a new tab)scripts/link_mapper.py (opens in a new tab)scripts/redirect_checker.py (opens in a new tab)scripts/sitemap_analyzer.py (opens in a new tab)scripts/urlsource.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub borghei/claude-skills --plugin marketing-skills46 skills in this plugin
/ab-test-setupCalculates A/B test sample size and duration, writes a reviewable test plan, and analyzes conversion results (z-test, confidence interval, sample ratio check, ship/revert/inconclusive verdict). Use when setting up an A/B test, sizing an experiment, checking whether a test ran long enough, or deciding whether to ship a variant from visitor and conversion counts.
/ad-creativeDesign ad creative across Google, Meta, LinkedIn, Twitter/X, and TikTok with platform format specs, headline formulas, and A/B testing. Use when writing ad copy, generating headline variations, creating ad sets, or validating creative.
/aeoAnswer Engine Optimization (AEO): checks a page for the structures LLM answers quote (definition first, tables, numbered steps, sourced numbers, question headings, visible date), generates FAQ/HowTo JSON-LD from the page's own Q&A, and tallies brand mentions and cited URLs in saved LLM answers. Use when auditing a page for LLM citability, adding Q&A schema, or measuring whether ChatGPT, Claude, Perplexity or Gemini name your brand.
/ai-content-disclosureCheck AI-generated marketing content and reviews for required disclosures under the EU AI Act, FTC rules and platform AI-label policies. Use when you have a list of AI-made ads, deepfakes, chatbots, influencer posts or testimonials to clear before publishing, or a set of customer reviews to vet for fakes.
/ai-seoOptimize content to rank in AI search engines (AI Overviews, Perplexity, ChatGPT) via generative engine optimization (GEO), citability audits, and schema markup. Use when optimizing for AI search, generative search, or LLM visibility, when auditing a page for AI citability, when checking which passage answers a query, or when classifying keywords by intent for AI answers.
/analytics-trackingAnalytics implementation for web and SaaS (GA4, Google Tag Manager, event taxonomy, conversion tracking, UTM strategy) with three checkers: UTM links, event names/params/PII, and funnel drop-off. Use when building a tracking plan, validating a UTM sheet or event list before launch, finding where a funnel leaks, debugging missing events, or auditing existing analytics.
Other plugins' skills for the same job