Claude Cursor Skill

site-architecture

Use when planning or restructuring what pages a site has and how they connect: hierarchy, navigation, URL patterns, breadcrumbs, and internal linking. Not for XML sitemaps, which are in seo-audit.

LLM Mart · 0 points · 5 views 0 listing impressions 0 install-command copies
Virus-scanned Reviewed automatically before listing.

Full trust report

Download fcakyon-claude-codex-settings-plugins_seo-skills_skills_site-architecture-4632eb3.zip · 4 KB
Part of fcakyon/claude-codex-settings — 83 skills

Install

skills CLI npx skills add https://github.com/fcakyon/claude-codex-settings/tree/main/plugins/seo-skills/skills/site-architecture
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install fcakyon-claude-codex-settings@llmmart
Git git clone https://github.com/fcakyon/claude-codex-settings.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole fcakyon/claude-codex-settings collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Site architecture

Architecture is one decision repeated: how does someone get from the homepage to the page that answers their question, and how does a crawler follow the same path. Depth, navigation, URLs, and internal links are four views of that one structure, so change them together or they drift.

Depth

Aim to put any page that matters within three clicks of the homepage. It isn't a law, but a critical page four or more levels down is a symptom worth chasing.

Shape Fits Costs
Flat, 2 levels Small sites, portfolios Stops scaling once a nav item has 20 children
Moderate, 3 levels Most SaaS and content sites Usually the right answer
Deep, 4 or more Large catalogs, big docs Scales, but buries things without strong linking

Go as flat as the navigation tolerates. When a dropdown passes roughly 20 items, that's the signal to add a level rather than keep the list flat.

Levels: L0 is the homepage, L1 is a primary section (/features, /blog), L2 is a page within it (/features/analytics), L3 and beyond are detail pages (/docs/api/authentication).

Site types as starting points

Type Depth Sections URL shape
SaaS marketing 2 to 3 Home, Features, Pricing, Blog, Docs /features/{name}, /blog/{slug}
Content site 2 to 3 Home, Blog, Categories, About /blog/{slug}, /blog/category/{slug}
Ecommerce 3 to 4 Home, Categories, Products /{category}/{subcategory}/{product}
Documentation 3 to 4 Home, Guides, Reference /docs/{section}/{page}
SaaS plus content 3 to 4 Home, Product, Blog, Resources, Docs /product/{feature}, /blog/{slug}
Small business 1 to 2 Home, Services, About, Contact /services/{name}

URLs

Readable, lowercase, hyphenated, mirroring the hierarchy, with one trailing-slash policy enforced everywhere. Short but still descriptive: /blog/landing-page-conversions beats /blog/how-to-improve-your-landing-page-conversion-rates.

The mistakes that cost the most:

  • Dates in blog URLs. /blog/2026/07/25/title adds nothing and ages the post visibly.
  • IDs or query strings carrying content. /product/12345 and /blog?id=123 should be slugs.
  • Over-nesting past what the hierarchy needs.
  • Mixing parents for the same kind of page, like /features/analytics alongside /product/automation.
  • Changing a URL without a 301. Every old URL needs one, or the links pointing at it stop counting and anyone who bookmarked it gets a 404. This is the single most common cause of traffic loss after a redesign.

references/patterns.md has the URL pattern per page type, navigation layouts, and the diagram formats to hand back.

Navigation

Primary navigation holds 4 to 7 items, ordered by importance, with the logo linking home and the call to action rightmost. Past 7, people stop reading the list and start hunting.

Footers group into columns: product, resources, company, legal. Sidebars carry within-section navigation for docs and long content. Breadcrumbs mirror the URL path exactly, with every segment linked except the current page, and they pair with BreadcrumbList schema.

Breadcrumbs are the cheapest structural win available: they add internal links on every page, they make hierarchy legible to a crawler, and they can earn a richer result.

Internal linking

  • No orphans. Every page needs at least one internal link pointing at it, and the sitemap is not a link.
  • Anchor text describes the destination. Never "click here" or "read more".
  • How many contextual links a single page carries is a decision for whoever owns that page's format, so recommend the connections worth making rather than a density target.
  • Link the pages that matter more often. Inbound internal links are how you tell a crawler what's important.
  • Hub and spoke for content clusters: one comprehensive hub, spokes covering sub-topics, each spoke linking back to the hub, the hub linking to all spokes, and spokes cross-linking where a reader would actually want it.

Hub and spoke is what makes a set of posts add up to more than its pages, because it concentrates the signal on the hub rather than spreading it across a dozen equal posts competing with each other.

What to hand back

An ASCII tree of the hierarchy with the URL at each node, a URL map table (page, URL, parent, where it appears in navigation, priority), the redirect list when anything moves, and a Mermaid diagram when the structure is worth seeing rather than reading. references/patterns.md has the formats.

Sources

Files (claude-codex-settings)
  • references
    • patterns.md 5.4 KB
      # Architecture patterns and output formats
      
      ## URL pattern per page type
      
      | Page type | Pattern | Example |
      | --- | --- | --- |
      | Homepage | `/` | `example.com` |
      | Feature | `/features/{name}` | `/features/analytics` |
      | Pricing | `/pricing` | `/pricing` |
      | Blog post | `/blog/{slug}` | `/blog/seo-guide` |
      | Blog category | `/blog/category/{slug}` | `/blog/category/seo` |
      | Case study | `/customers/{slug}` | `/customers/acme` |
      | Documentation | `/docs/{section}/{page}` | `/docs/api/authentication` |
      | Comparison | `/compare/{competitor}` | `/compare/competitor-name` |
      | Integration | `/integrations/{name}` | `/integrations/slack` |
      | Template | `/templates/{slug}` | `/templates/marketing-plan` |
      | Landing page | `/{slug}` or `/lp/{slug}` | `/free-trial` |
      | Legal | `/{page}` | `/privacy`, `/terms` |
      
      Pick one parent per page class and keep it. Half the site under `/features/` and half under `/product/` is the most common inconsistency, and it splits the internal linking that should have accumulated on one section.
      
      ## Navigation layouts
      
      Header, 4 to 7 items, ordered by importance:
      
      ```text
      [Logo]   Product   Solutions   Pricing   Resources   Docs        [Sign in] [Start free]
      ```
      
      Mega menu, at most 3 to 4 columns, each with a heading so the group is scannable:
      
      ```text
      Product ▾
        Platform            Use cases           Resources
        Analytics           For marketing       Docs
        Automation          For sales           Changelog
        Integrations        For support         Status
      ```
      
      Footer, grouped:
      
      ```text
      Product          Resources        Company          Legal
      Features         Blog             About            Privacy
      Pricing          Case studies     Careers          Terms
      Integrations     Templates        Contact          Security
      Changelog        Docs             Press
      ```
      
      Breadcrumbs mirror the URL, current page unlinked:
      
      ```text
      Home > Features > Analytics
      Home > Blog > SEO > Internal linking that actually works
      Home > Docs > API > Authentication
      ```
      
      | URL | Breadcrumb |
      | --- | --- |
      | `/features/analytics` | Home > Features > Analytics |
      | `/blog/seo-guide` | Home > Blog > SEO Guide |
      | `/docs/api/auth` | Home > Docs > API > Authentication |
      
      ## ASCII tree
      
      The default for handing back a hierarchy. Put the URL beside every node so it doubles as the URL map.
      
      ```text
      Homepage (/)
      ├── Features (/features)
      │   ├── Analytics (/features/analytics)
      │   ├── Automation (/features/automation)
      │   └── Integrations (/features/integrations)
      ├── Pricing (/pricing)
      ├── Blog (/blog)
      │   ├── SEO (/blog/category/seo)
      │   └── Growth (/blog/category/growth)
      ├── Resources (/resources)
      │   ├── Case studies (/customers)
      │   └── Templates (/templates)
      ├── Docs (/docs)
      │   ├── Getting started (/docs/getting-started)
      │   └── API reference (/docs/api)
      ├── About (/about)
      │   └── Careers (/about/careers)
      └── Contact (/contact)
      ```
      
      Use ASCII for a quick draft or anywhere the output is text. Use Mermaid when the point is the shape rather than the list, or when navigation zones and cross-links matter.
      
      ## Mermaid diagrams
      
      Hierarchy:
      
      ```mermaid
      graph TD
          HOME[Homepage] --> FEAT[Features]
          HOME --> PRICE[Pricing]
          HOME --> BLOG[Blog]
          HOME --> DOCS[Docs]
          FEAT --> F1[Analytics]
          FEAT --> F2[Automation]
          FEAT --> F3[Integrations]
          BLOG --> B1[SEO category]
          BLOG --> B2[Growth category]
      ```
      
      Navigation zones, to show what's reachable from where:
      
      ```mermaid
      graph TD
          subgraph Header
              HOME[Homepage]
              FEAT[Features]
              PRICE[Pricing]
              CTA[Start free]
          end
          subgraph Footer
              ABOUT[About]
              CAREERS[Careers]
              PRIVACY[Privacy]
          end
          HOME --> FEAT
          HOME --> PRICE
          HOME --> ABOUT
          FEAT --> F1[Analytics]
      ```
      
      Hub and spoke, to show a content cluster's linking:
      
      ```mermaid
      graph TD
          HUB[Hub: complete guide to X] --> S1[Spoke: sub-topic one]
          HUB --> S2[Spoke: sub-topic two]
          HUB --> S3[Spoke: sub-topic three]
          S1 --> HUB
          S2 --> HUB
          S3 --> HUB
          S1 <--> S2
      ```
      
      ## URL map table
      
      The deliverable a developer or a CMS owner can work from directly.
      
      | Page | URL | Parent | Navigation | Priority |
      | --- | --- | --- | --- | --- |
      | Homepage | `/` | none | Header | High |
      | Features | `/features` | Homepage | Header | High |
      | Analytics | `/features/analytics` | Features | Header dropdown | High |
      | Pricing | `/pricing` | Homepage | Header | High |
      | Blog | `/blog` | Homepage | Header | Medium |
      | About | `/about` | Homepage | Footer | Low |
      
      ## Redirect list
      
      Required output whenever a URL moves. Without it, the links pointing at the old URL stop counting.
      
      | Old URL | New URL | Type |
      | --- | --- | --- |
      | `/product/analytics` | `/features/analytics` | 301 |
      | `/blog/2026/07/post-title` | `/blog/post-title` | 301 |
      
      Redirect to the final destination rather than through a chain, and check that no redirect target is itself redirected.
      
      ## Link audit checks
      
      - Every page has at least one inbound internal link.
      - No internal link returns a 404 or lands on a redirect.
      - Anchor text describes the destination.
      - The pages that matter most have the most inbound internal links.
      - Breadcrumbs exist site-wide and carry `BreadcrumbList` schema.
      - Posts have related-content links, and clusters link back to their hub.
      - Cross-section links exist where a reader would want one: features to case studies, blog to product.
      
  • SKILL.md 5.2 KB
    ---
    name: site-architecture
    description: "Use when planning or restructuring what pages a site has and how they connect: hierarchy, navigation, URL patterns, breadcrumbs, and internal linking. Not for XML sitemaps, which are in seo-audit."
    license: MIT
    ---
    
    # Site architecture
    
    Architecture is one decision repeated: how does someone get from the homepage to the page that answers their question, and how does a crawler follow the same path. Depth, navigation, URLs, and internal links are four views of that one structure, so change them together or they drift.
    
    ## Depth
    
    Aim to put any page that matters within three clicks of the homepage. It isn't a law, but a critical page four or more levels down is a symptom worth chasing.
    
    | Shape | Fits | Costs |
    | --- | --- | --- |
    | Flat, 2 levels | Small sites, portfolios | Stops scaling once a nav item has 20 children |
    | Moderate, 3 levels | Most SaaS and content sites | Usually the right answer |
    | Deep, 4 or more | Large catalogs, big docs | Scales, but buries things without strong linking |
    
    Go as flat as the navigation tolerates. When a dropdown passes roughly 20 items, that's the signal to add a level rather than keep the list flat.
    
    Levels: L0 is the homepage, L1 is a primary section (`/features`, `/blog`), L2 is a page within it (`/features/analytics`), L3 and beyond are detail pages (`/docs/api/authentication`).
    
    ## Site types as starting points
    
    | Type | Depth | Sections | URL shape |
    | --- | --- | --- | --- |
    | SaaS marketing | 2 to 3 | Home, Features, Pricing, Blog, Docs | `/features/{name}`, `/blog/{slug}` |
    | Content site | 2 to 3 | Home, Blog, Categories, About | `/blog/{slug}`, `/blog/category/{slug}` |
    | Ecommerce | 3 to 4 | Home, Categories, Products | `/{category}/{subcategory}/{product}` |
    | Documentation | 3 to 4 | Home, Guides, Reference | `/docs/{section}/{page}` |
    | SaaS plus content | 3 to 4 | Home, Product, Blog, Resources, Docs | `/product/{feature}`, `/blog/{slug}` |
    | Small business | 1 to 2 | Home, Services, About, Contact | `/services/{name}` |
    
    ## URLs
    
    Readable, lowercase, hyphenated, mirroring the hierarchy, with one trailing-slash policy enforced everywhere. Short but still descriptive: `/blog/landing-page-conversions` beats `/blog/how-to-improve-your-landing-page-conversion-rates`.
    
    The mistakes that cost the most:
    
    - Dates in blog URLs. `/blog/2026/07/25/title` adds nothing and ages the post visibly.
    - IDs or query strings carrying content. `/product/12345` and `/blog?id=123` should be slugs.
    - Over-nesting past what the hierarchy needs.
    - Mixing parents for the same kind of page, like `/features/analytics` alongside `/product/automation`.
    - Changing a URL without a 301. Every old URL needs one, or the links pointing at it stop counting and anyone who bookmarked it gets a 404. This is the single most common cause of traffic loss after a redesign.
    
    `references/patterns.md` has the URL pattern per page type, navigation layouts, and the diagram formats to hand back.
    
    ## Navigation
    
    Primary navigation holds 4 to 7 items, ordered by importance, with the logo linking home and the call to action rightmost. Past 7, people stop reading the list and start hunting.
    
    Footers group into columns: product, resources, company, legal. Sidebars carry within-section navigation for docs and long content. Breadcrumbs mirror the URL path exactly, with every segment linked except the current page, and they pair with `BreadcrumbList` schema.
    
    Breadcrumbs are the cheapest structural win available: they add internal links on every page, they make hierarchy legible to a crawler, and they can earn a richer result.
    
    ## Internal linking
    
    - No orphans. Every page needs at least one internal link pointing at it, and the sitemap is not a link.
    - Anchor text describes the destination. Never "click here" or "read more".
    - How many contextual links a single page carries is a decision for whoever owns that page's format, so recommend the connections worth making rather than a density target.
    - Link the pages that matter more often. Inbound internal links are how you tell a crawler what's important.
    - Hub and spoke for content clusters: one comprehensive hub, spokes covering sub-topics, each spoke linking back to the hub, the hub linking to all spokes, and spokes cross-linking where a reader would actually want it.
    
    Hub and spoke is what makes a set of posts add up to more than its pages, because it concentrates the signal on the hub rather than spreading it across a dozen equal posts competing with each other.
    
    ## What to hand back
    
    An ASCII tree of the hierarchy with the URL at each node, a URL map table (page, URL, parent, where it appears in navigation, priority), the redirect list when anything moves, and a Mermaid diagram when the structure is worth seeing rather than reading. `references/patterns.md` has the formats.
    
    ## Sources
    
    - Google Search Central, URL structure best practices: https://developers.google.com/search/docs/crawling-indexing/url-structure
    - Google Search Central, Redirects and Google Search: https://developers.google.com/search/docs/crawling-indexing/301-redirects
    - Google Search Central, Breadcrumb structured data: https://developers.google.com/search/docs/appearance/structured-data/breadcrumb
    - Nielsen Norman Group, Flat vs deep website hierarchies: https://www.nngroup.com/articles/flat-vs-deep-hierarchy/
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.

Related