# Site Architecture — Marketing Skill for AI Agents

Plan site architecture as pages, hierarchy, URLs, and links before choosing a platform. Keep every important page within 3 clicks of the homepage, and keep the site as flat as possible: most SaaS and content sites need 2-3 levels, while e-commerce and large docs need 3-4. Give the header 4-7 items ordered by priority, with the CTA rightmost. Group the footer into Product, Resources, Company, and Legal. Make URLs mirror the hierarchy: lowercase, hyphenated, short, with no dates, IDs, or query parameters, and match breadcrumbs to the path. Link every page from at least one other page, use descriptive anchors, and organize content as hub-and-spoke, where spokes link to the hub and the hub links to every spoke. Any URL that changes gets a one-to-one 301.

> Maintained by Corey Haines · v2.1.3 · Updated 2026-11-09

Install: `npx skills add coreyhaines31/marketingskills`
Source: https://github.com/coreyhaines31/marketingskills/tree/main/skills/site-architecture

## How it works

1. **Gather business and site context** — The agent reads your product marketing context, then asks for your audiences and top 3 site goals. It checks whether this is a new site or a restructure, and if a restructure, what's broken and which URLs must be preserved. It also confirms the site type (SaaS, content, e-commerce, docs, hybrid, or small business), the platform, and how many pages exist or are planned.
2. **Design the page hierarchy** — Starting from the template for your site type, the agent builds an L0-L3 hierarchy and drafts it as an ASCII tree with a URL at every node. It applies the 3-click rule, adds a level only when a dropdown would pass 20 items, and places SEO sections like comparison and integration pages under their own hubs instead of the header.
3. **Specify navigation** — The agent writes the header (4-7 items, priority order, logo to home, CTA rightmost, mega menus capped at 3-4 columns), footer columns, section sidebars for docs or blog categories, and breadcrumbs that mirror the URL. It checks for anti-patterns: 8+ header items, dropdowns inside dropdowns, unlabeled icons, JavaScript-only nav, and a footer dumped as a 50-link sitemap.
4. **Define URL patterns** — Each page type gets one consistent pattern: /features/{name}, /blog/{slug}, /customers/{slug}, /docs/{section}/{page}, /compare/{competitor}, /integrations/{name}. The agent flags common mistakes: dates in blog URLs, over-nesting, IDs or query parameters instead of slugs, mixed parents like /features versus /product, and any URL change without a 301.
5. **Plan internal linking** — The agent maps hub pages to their spokes, cross-section links (features to case studies, blog to product pages), and the pages that should get the most inbound links. Guidelines include no orphan pages, descriptive anchor text instead of "click here," and roughly 5-10 internal links per 1,000 words. When restructuring, it adds an orphan page audit.
6. **Choose a platform and migrate** — If the platform is in question, the agent asks who edits the site, what it must do, page volume, integrations, lock-in tolerance, and cost at real size, then returns a shortlist of two or three that includes the current platform. For migrations it covers a crawl before launch, one-to-one 301s deployed with the switch, and daily Search Console checks for two weeks.

## When to use it

- "sitemap"
- "site map"
- "visual sitemap"
- "site structure"
- "page hierarchy"
- "information architecture"
- "IA"
- "navigation design"
- "URL structure"
- "breadcrumbs"

## What's inside

**The playbook covers:** Before Planning, Site Types and Starting Points, Page Hierarchy Design, Navigation Design, URL Structure, Visual Sitemap Output (Mermaid), Internal Linking Strategy, Output Format, Task-Specific Questions

### Reference library

- [Mermaid Diagram Templates](https://github.com/coreyhaines31/marketingskills/blob/main/skills/site-architecture/references/mermaid-templates.md) — Copy-paste-ready Mermaid diagrams for visual sitemaps. Customize node labels and connections for your site.
- [Navigation Patterns](https://github.com/coreyhaines31/marketingskills/blob/main/skills/site-architecture/references/navigation-patterns.md) — Detailed navigation patterns for different site types and contexts.
- [Platforms and Migration](https://github.com/coreyhaines31/marketingskills/blob/main/skills/site-architecture/references/platforms-and-migration.md) — Where the site gets built, how new pages join an existing site, and how to move platforms without losing search traffic. Load this when the user asks which builder or CMS to use, wants to add a section or landing pages to an existing site, or is planning a migration.
- [Site Type Templates](https://github.com/coreyhaines31/marketingskills/blob/main/skills/site-architecture/references/site-type-templates.md) — Full page hierarchy templates with ASCII trees, URL maps, and navigation recommendations for common site types.

## Example

**Prompt:** Help me plan the site architecture for our new SaaS marketing website. We have a homepage, product page, pricing page, about page, blog, and want to add competitor comparison pages and integration pages.

**Page hierarchy**

Homepage (/)
├── Product (/product)
├── Pricing (/pricing)
├── Integrations (/integrations)          ← hub
│   └── [Integration] (/integrations/slack)
├── Compare (/compare)                    ← hub
│   └── [Competitor] (/compare/competitor-name)
├── Blog (/blog)
│   ├── [Category] (/blog/category/seo)
│   └── [Post] (/blog/post-slug)
├── About (/about)
├── Privacy (/privacy)
└── Terms (/terms)

Three levels deep at most, so every page is within 3 clicks. Comparison and integration pages each get a hub instead of crowding the header.

**Navigation spec and URL map**

Header: Product | Integrations | Pricing | Blog | [Start Free Trial]
Footer
- Product: Product, Pricing, Integrations, Changelog
- Resources: Blog, Compare
- Company: About, Contact
- Legal: Privacy, Terms

| Page          | URL                 | Parent       | Nav             | Priority  |
| Pricing       | /pricing            | Homepage     | Header          | Critical  |
| Integrations  | /integrations       | Homepage     | Header          | Medium    |
| Integration   | /integrations/slack | Integrations | Hub             | Medium    |
| Compare       | /compare/{slug}     | Compare      | Footer          | High (SEO)|

Linking: each comparison page links to /pricing and to the integrations its buyers ask about. Each integration page links back to the hub and to /product.

## More things to ask

- Our website has grown organically and the navigation is a mess. We have 50+ pages and users can't find anything. Help us reorganize.
- what should our url structure look like? we keep debating between /blog/post-name vs /resources/blog/post-name and /product/feature vs /features/feature-name
- We're adding programmatic SEO pages — 200 integration pages and 50 comparison pages. How should these fit into our site architecture?
- Can you create a visual sitemap for our site? We want something we can share with our design team.
- Our XML sitemap hasn't been updated in 6 months and we have crawl errors in Search Console. Can you fix our technical SEO?

## FAQ

### What pages does a SaaS marketing website need?

The core set is a homepage, features or product pages, pricing, customers or case studies, a blog and other resources, integrations, docs, about and contact, comparison pages, and privacy and terms. A typical header runs 6 items plus a CTA: Features, Pricing, Customers, Resources, Integrations, Docs, and Get Started. Comparison pages usually sit in the footer and under a /compare hub, since they matter more for search than for primary navigation.

### What is the 3-click rule?

Users should be able to reach any important page within 3 clicks of the homepage. It's a guideline, not a law, but critical pages buried 4 or more levels deep signal a structural problem. Go as flat as possible while keeping navigation clean: 2 levels for small sites, 3 for most SaaS and content sites, 4 or more only for e-commerce and large documentation.

### How should I structure my URLs?

Make them human-readable and matched to the hierarchy: lowercase, hyphens rather than underscores, short but descriptive, with one trailing-slash policy enforced everywhere. Use /blog/post-title, not /blog/2024/01/15/post-title, and slugs rather than IDs or query parameters. Keep one parent per page type instead of mixing /features and /product, and 301-redirect every URL you change to its new equivalent.

### Should a blog live on a subdomain or a subfolder?

Google says it has no inherent ranking preference, so it's mostly an operational choice. A subfolder like example.com/blog keeps the section inside the main site's structure, sitemap, and internal links with less work. If a different tool is better for the section, a reverse proxy can serve it on a subpath. That only works if the proxied pages canonical to the main domain, assets are routed, and the origin hostname isn't indexed.

### How do I migrate a website without losing traffic?

Treat the migration as an SEO event. Before launch, crawl the site and save every URL, title, meta description, canonical, H1, and status code, and pull your top pages from Search Console. Keep URLs where you can. Otherwise map each old URL to its closest new one with a 301, never to the homepage. Deploy redirects at the same moment as the switch, then check Search Console for 404s daily for two weeks.

### Can an AI agent produce a visual sitemap?

Yes. The skill returns a Mermaid graph TD diagram alongside an ASCII page tree, using subgraphs to show which pages sit in header and footer navigation. Templates also cover hub-and-spoke content clusters, internal linking flow, and before-and-after restructuring views. ASCII suits quick drafts and text-only contexts, and Mermaid suits presentations and complex linking relationships. This skill doesn't cover XML sitemaps, which are technical SEO.

## Related skills

- **content-strategy** — For planning what content to create and topic clusters
- **programmatic-seo** — For building SEO pages at scale with templates and data
- **seo-audit** — For technical SEO, on-page optimization, and indexation issues
- **cro** — For optimizing individual pages for conversion
- **schema** — For implementing breadcrumb and site navigation structured data
- **competitors** — For comparison page frameworks and URL patterns
- **launch** — For site go-live QA after a build or migration

---
Canonical: https://marketing-skills.com/skills/site-architecture