Marketing Skill

Site Architecture

A site architecture skill for planning a website's page hierarchy, navigation, URL structure, and internal linking, plus where to build it and how to migrate without losing traffic. Your agent uses it when you're mapping a new site, deciding what pages you need, adding a section to an existing site, or restructuring one that grew without a plan.

Maintained by Corey Hainesv2.1.3Updated 2026-11-094 references
npx skills add coreyhaines31/marketingskills

Installs the full library — Site Architecture included

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.

How the Site Architecture skill works

  1. 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. 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. 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. 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. 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. 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

Your agent reaches for this skill when you ask for things like:

“sitemap”“site map”“visual sitemap”“site structure”“page hierarchy”“information architecture”“IA”“navigation design”“URL structure”“breadcrumbs”

What's inside

The playbook covers

Before PlanningSite Types and Starting PointsPage Hierarchy DesignNavigation DesignURL StructureVisual Sitemap Output (Mermaid)Internal Linking StrategyOutput FormatTask-Specific Questions

See it in action

You ask

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.

The skill delivers
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

Real requests the skill is tested against:

  • 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

Use it in your agent

Site Architecture is a plain SKILL.md folder, so the same skill loads in any agent that reads the skills format. Setup guides:

Build a tool for this workflow?

Marketers run this skill mid-task — the exact moment your tool matters. Partner tiers put your tool inside the skill their agent runs.

See partner tiers