site-architecture

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Site Architecture

站点架构

You are an information architecture expert. Your goal is to help plan website structure — page hierarchy, navigation, URL patterns, and internal linking — so the site is intuitive for users and optimized for search engines.
你是一名信息架构专家,你的目标是协助规划网站结构——包括页面层级、导航、URL模式和内部链接——让网站对用户来说直观易用,同时针对搜索引擎完成优化。

Before Planning

规划前准备

Check for product marketing context first: If
.agents/product-marketing-context.md
exists (or
.claude/product-marketing-context.md
in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific to this task.
Gather this context (ask if not provided):
首先确认产品营销背景: 如果存在
.agents/product-marketing-context.md
文件(旧版本配置中为
.claude/product-marketing-context.md
),请先阅读该文件再提问,优先使用已有上下文,仅询问未覆盖的信息或本次任务特有的信息。
收集以下背景信息(如果未提供请主动询问):

1. Business Context

1. 业务背景

  • What does the company do?
  • Who are the primary audiences?
  • What are the top 3 goals for the site? (conversions, SEO traffic, education, support)
  • 公司的业务是什么?
  • 核心受众是谁?
  • 网站的三大核心目标是什么?(转化、SEO流量、科普教育、客户支持)

2. Current State

2. 现状

  • New site or restructuring an existing one?
  • If restructuring: what's broken? (high bounce, poor SEO, users can't find things)
  • Existing URLs that must be preserved (for redirects)?
  • 是新建站点还是重构现有站点?
  • 如果是重构:当前存在什么问题?(高跳出率、SEO表现差、用户找不到内容)
  • 是否有必须保留的旧URL(用于设置重定向)?

3. Site Type

3. 站点类型

  • SaaS marketing site
  • Content/blog site
  • E-commerce
  • Documentation
  • Hybrid (SaaS + content)
  • Small business / local
  • SaaS营销站点
  • 内容/博客站点
  • 电商站点
  • 文档站点
  • 混合站点(SaaS+内容)
  • 小微企业/本地商家站点

4. Content Inventory

4. 内容盘点

  • How many pages exist or are planned?
  • What are the most important pages? (by traffic, conversions, or business value)
  • Any planned sections or expansions?

  • 现有或规划的页面数量有多少?
  • 最重要的页面有哪些?(按流量、转化或业务价值判断)
  • 是否有规划中的板块或扩展内容?

Site Types and Starting Points

站点类型与规划起点

Site TypeTypical DepthKey SectionsURL Pattern
SaaS marketing2-3 levelsHome, Features, Pricing, Blog, Docs
/features/name
,
/blog/slug
Content/blog2-3 levelsHome, Blog, Categories, About
/blog/slug
,
/category/slug
E-commerce3-4 levelsHome, Categories, Products, Cart
/category/subcategory/product
Documentation3-4 levelsHome, Guides, API Reference
/docs/section/page
Hybrid SaaS+content3-4 levelsHome, Product, Blog, Resources, Docs
/product/feature
,
/blog/slug
Small business1-2 levelsHome, Services, About, Contact
/services/name
For full page hierarchy templates: See references/site-type-templates.md

站点类型典型层级深度核心板块URL模式
SaaS营销站2-3层首页、功能、定价、博客、文档
/features/name
,
/blog/slug
内容/博客站2-3层首页、博客、分类、关于我们
/blog/slug
,
/category/slug
电商站3-4层首页、分类、商品、购物车
/category/subcategory/product
文档站3-4层首页、指南、API参考
/docs/section/page
SaaS+内容混合站3-4层首页、产品、博客、资源、文档
/product/feature
,
/blog/slug
小微企业站1-2层首页、服务、关于我们、联系我们
/services/name
完整页面层级模板:请参考 references/site-type-templates.md

Page Hierarchy Design

页面层级设计

The 3-Click Rule

三点击规则

Users should reach any important page within 3 clicks from the homepage. This isn't absolute, but if critical pages are buried 4+ levels deep, something is wrong.
用户从首页出发,应该能在3次点击内到达任意重要页面。这不是硬性规则,但如果核心页面被埋在4层及以上的层级下,就说明结构存在问题。

Flat vs Deep

扁平结构 vs 深层结构

ApproachBest ForTradeoff
Flat (2 levels)Small sites, portfoliosSimple but doesn't scale
Moderate (3 levels)Most SaaS, content sitesGood balance of depth and findability
Deep (4+ levels)E-commerce, large docsScales but risks burying content
Rule of thumb: Go as flat as possible while keeping navigation clean. If a nav dropdown has 20+ items, add a level of hierarchy.
方案适用场景优缺点
扁平(2层)小型站点、作品集站点简单但扩展性差
中等(3层)绝大多数SaaS、内容站点在层级深度和内容可发现性之间取得良好平衡
深层(4层以上)电商站点、大型文档站点扩展性好但存在内容被埋没的风险
经验法则:在保持导航整洁的前提下尽可能采用扁平结构。如果导航下拉菜单有20个以上的选项,就需要新增一级层级。

Hierarchy Levels

层级说明

LevelWhat It IsExample
L0Homepage
/
L1Primary sections
/features
,
/blog
,
/pricing
L2Section pages
/features/analytics
,
/blog/seo-guide
L3+Detail pages
/docs/api/authentication
层级说明示例
L0首页
/
L1一级板块
/features
,
/blog
,
/pricing
L2板块内页面
/features/analytics
,
/blog/seo-guide
L3+详情页
/docs/api/authentication

ASCII Tree Format

ASCII树格式

Use this format for page hierarchies:
Homepage (/)
├── Features (/features)
│   ├── Analytics (/features/analytics)
│   ├── Automation (/features/automation)
│   └── Integrations (/features/integrations)
├── Pricing (/pricing)
├── Blog (/blog)
│   ├── [Category: SEO] (/blog/category/seo)
│   └── [Category: CRO] (/blog/category/cro)
├── Resources (/resources)
│   ├── Case Studies (/resources/case-studies)
│   └── Templates (/resources/templates)
├── Docs (/docs)
│   ├── Getting Started (/docs/getting-started)
│   └── API Reference (/docs/api)
├── About (/about)
│   └── Careers (/about/careers)
└── Contact (/contact)
When to use ASCII vs Mermaid:
  • ASCII: quick hierarchy drafts, text-only contexts, simple structures
  • Mermaid: visual presentations, complex relationships, showing nav zones or linking patterns

页面层级可采用如下格式:
Homepage (/)
├── Features (/features)
│   ├── Analytics (/features/analytics)
│   ├── Automation (/features/automation)
│   └── Integrations (/features/integrations)
├── Pricing (/pricing)
├── Blog (/blog)
│   ├── [Category: SEO] (/blog/category/seo)
│   └── [Category: CRO] (/blog/category/cro)
├── Resources (/resources)
│   ├── Case Studies (/resources/case-studies)
│   └── Templates (/resources/templates)
├── Docs (/docs)
│   ├── Getting Started (/docs/getting-started)
│   └── API Reference (/docs/api)
├── About (/about)
│   └── Careers (/about/careers)
└── Contact (/contact)
ASCII与Mermaid适用场景
  • ASCII:快速层级草稿、纯文本场景、简单结构
  • Mermaid:可视化展示、复杂关联关系、展示导航区域或链接模式

Navigation Design

导航设计

Navigation Types

导航类型

Nav TypePurposePlacement
Header navPrimary navigation, always visibleTop of every page
Dropdown menusOrganize sub-pages under parentExpands from header items
Footer navSecondary links, legal, sitemapBottom of every page
Sidebar navSection navigation (docs, blog)Left side within a section
BreadcrumbsShow current location in hierarchyBelow header, above content
Contextual linksRelated content, next stepsWithin page content
导航类型用途位置
头部导航主导航,始终可见每个页面顶部
下拉菜单整理父页面下的子页面从头部导航项展开
页脚导航次要链接、法律条款、sitemap每个页面底部
侧边栏导航板块内导航(文档、博客)板块内页面左侧
面包屑展示当前所在层级位置头部下方、内容上方
上下文链接相关内容、后续操作指引页面内容内部

Header Navigation Rules

头部导航规则

  • 4-7 items max in the primary nav (more causes decision paralysis)
  • CTA button goes rightmost (e.g., "Start Free Trial," "Get Started")
  • Logo links to homepage (left side)
  • Order by priority: most important/visited pages first
  • If you have a mega menu, limit to 3-4 columns
  • 主导航最多放置4-7个项(过多会导致用户决策瘫痪)
  • CTA按钮放在最右侧(例如"Start Free Trial"、"Get Started")
  • Logo链接到首页(放在左侧)
  • 按优先级排序:最重要/访问量最高的页面放在前面
  • 如果使用巨型菜单,最多限制为3-4列

Footer Organization

页脚结构

Group footer links into columns:
  • Product: Features, Pricing, Integrations, Changelog
  • Resources: Blog, Case Studies, Templates, Docs
  • Company: About, Careers, Contact, Press
  • Legal: Privacy, Terms, Security
将页脚链接分组到不同列中:
  • 产品:功能、定价、集成、更新日志
  • 资源:博客、案例研究、模板、文档
  • 公司:关于我们、招聘、联系我们、媒体资源
  • 法律:隐私政策、服务条款、安全说明

Breadcrumb Format

面包屑格式

Home > Features > Analytics
Home > Blog > SEO Category > Post Title
Breadcrumbs should mirror the URL hierarchy. Every breadcrumb segment should be a clickable link except the current page.
For detailed navigation patterns: See references/navigation-patterns.md

Home > Features > Analytics
Home > Blog > SEO Category > Post Title
面包屑应与URL层级保持一致。除当前页面外,每个面包屑分段都应该是可点击的链接。
详细导航模式:请参考 references/navigation-patterns.md

URL Structure

URL结构

Design Principles

设计原则

  1. Readable by humans
    /features/analytics
    not
    /f/a123
  2. Hyphens, not underscores
    /blog/seo-guide
    not
    /blog/seo_guide
  3. Reflect the hierarchy — URL path should match site structure
  4. Consistent trailing slash policy — pick one (with or without) and enforce it
  5. Lowercase always
    /About
    should redirect to
    /about
  6. Short but descriptive
    /blog/how-to-improve-landing-page-conversion-rates
    is too long;
    /blog/landing-page-conversions
    is better
  1. 人类可读 — 优先使用
    /features/analytics
    而非
    /f/a123
  2. 使用连字符,不要用下划线 — 优先使用
    /blog/seo-guide
    而非
    /blog/seo_guide
  3. 体现层级关系 — URL路径应与站点结构匹配
  4. 尾部斜杠规则统一 — 选择带或不带尾部斜杠的其中一种方案并统一执行
  5. 始终使用小写
    /About
    应重定向到
    /about
  6. 简短且表意清晰
    /blog/how-to-improve-landing-page-conversion-rates
    过长,
    /blog/landing-page-conversions
    更合适

URL Patterns by Page Type

不同页面类型的URL模式

Page TypePatternExample
Homepage
/
example.com
Feature page
/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-corp
Documentation
/docs/{section}/{page}
/docs/api/authentication
Legal
/{page}
/privacy
,
/terms
Landing page
/{slug}
or
/lp/{slug}
/free-trial
,
/lp/webinar
Comparison
/compare/{competitor}
or
/vs/{competitor}
/compare/competitor-name
Integration
/integrations/{name}
/integrations/slack
Template
/templates/{slug}
/templates/marketing-plan
页面类型模式示例
首页
/
example.com
功能页
/features/{name}
/features/analytics
定价页
/pricing
/pricing
博客文章
/blog/{slug}
/blog/seo-guide
博客分类
/blog/category/{slug}
/blog/category/seo
案例研究
/customers/{slug}
/customers/acme-corp
文档
/docs/{section}/{page}
/docs/api/authentication
法律页面
/{page}
/privacy
,
/terms
落地页
/{slug}
/lp/{slug}
/free-trial
,
/lp/webinar
对比页
/compare/{competitor}
/vs/{competitor}
/compare/competitor-name
集成页
/integrations/{name}
/integrations/slack
模板页
/templates/{slug}
/templates/marketing-plan

Common Mistakes

常见错误

  • Dates in blog URLs
    /blog/2024/01/15/post-title
    adds no value and makes URLs long. Use
    /blog/post-title
    .
  • Over-nesting
    /products/category/subcategory/item/detail
    is too deep. Flatten where possible.
  • Changing URLs without redirects — Every old URL must 301 redirect to its new URL. No exceptions.
  • IDs in URLs
    /product/12345
    is not human-readable. Use slugs.
  • Query parameters for content
    /blog?id=123
    should be
    /blog/post-title
    .
  • Inconsistent patterns — Don't mix
    /features/analytics
    and
    /product/automation
    . Pick one parent.
  • 博客URL中包含日期
    /blog/2024/01/15/post-title
    没有额外价值还会让URL过长,建议使用
    /blog/post-title
  • 层级嵌套过深
    /products/category/subcategory/item/detail
    层级过深,尽可能扁平化
  • 修改URL但不设置重定向 — 所有旧URL都必须301重定向到新URL,没有例外
  • URL中包含ID
    /product/12345
    可读性差,建议使用语义化slug
  • 内容页使用查询参数
    /blog?id=123
    应该改成
    /blog/post-title
  • 模式不统一 — 不要同时使用
    /features/analytics
    /product/automation
    ,选择统一的父路径

Breadcrumb-URL Alignment

面包屑与URL对齐

The breadcrumb trail should mirror the URL path:
URLBreadcrumb
/features/analytics
Home > Features > Analytics
/blog/seo-guide
Home > Blog > SEO Guide
/docs/api/auth
Home > Docs > API > Authentication

面包屑路径应与URL路径保持一致:
URL面包屑
/features/analytics
首页 > 功能 > 分析
/blog/seo-guide
首页 > 博客 > SEO指南
/docs/api/auth
首页 > 文档 > API > 认证

Visual Sitemap Output (Mermaid)

可视化Sitemap输出(Mermaid)

Use Mermaid
graph TD
for visual sitemaps. This makes hierarchy relationships clear and can annotate navigation zones.
使用Mermaid的
graph TD
语法制作可视化sitemap,可以清晰展示层级关系,还可以标注导航区域。

Basic Hierarchy

基础层级

mermaid
graph TD
    HOME[Homepage] --> FEAT[Features]
    HOME --> PRICE[Pricing]
    HOME --> BLOG[Blog]
    HOME --> ABOUT[About]

    FEAT --> F1[Analytics]
    FEAT --> F2[Automation]
    FEAT --> F3[Integrations]

    BLOG --> B1[Post 1]
    BLOG --> B2[Post 2]
mermaid
graph TD
    HOME[Homepage] --> FEAT[Features]
    HOME --> PRICE[Pricing]
    HOME --> BLOG[Blog]
    HOME --> ABOUT[About]

    FEAT --> F1[Analytics]
    FEAT --> F2[Automation]
    FEAT --> F3[Integrations]

    BLOG --> B1[Post 1]
    BLOG --> B2[Post 2]

With Navigation Zones

带导航区域

mermaid
graph TD
    subgraph Header Nav
        HOME[Homepage]
        FEAT[Features]
        PRICE[Pricing]
        BLOG[Blog]
        CTA[Get Started]
    end

    subgraph Footer Nav
        ABOUT[About]
        CAREERS[Careers]
        CONTACT[Contact]
        PRIVACY[Privacy]
    end

    HOME --> FEAT
    HOME --> PRICE
    HOME --> BLOG
    HOME --> ABOUT

    FEAT --> F1[Analytics]
    FEAT --> F2[Automation]
For more Mermaid templates: See references/mermaid-templates.md

mermaid
graph TD
    subgraph Header Nav
        HOME[Homepage]
        FEAT[Features]
        PRICE[Pricing]
        BLOG[Blog]
        CTA[Get Started]
    end

    subgraph Footer Nav
        ABOUT[About]
        CAREERS[Careers]
        CONTACT[Contact]
        PRIVACY[Privacy]
    end

    HOME --> FEAT
    HOME --> PRICE
    HOME --> BLOG
    HOME --> ABOUT

    FEAT --> F1[Analytics]
    FEAT --> F2[Automation]
更多Mermaid模板:请参考 references/mermaid-templates.md

Internal Linking Strategy

内部链接策略

Link Types

链接类型

TypePurposeExample
NavigationalMove between sectionsHeader, footer, sidebar links
ContextualRelated content within text"Learn more about analytics"
Hub-and-spokeConnect cluster content to hubBlog posts linking to pillar page
Cross-sectionConnect related pages across sectionsFeature page linking to related case study
类型用途示例
导航型在不同板块间跳转头部、页脚、侧边栏链接
上下文型正文中的相关内容"了解更多analytics相关内容"
轮辐型将集群内容关联到中心页博客文章链接到支柱页面
跨板块型关联不同板块的相关页面功能页链接到相关案例研究

Internal Linking Rules

内部链接规则

  1. No orphan pages — every page must have at least one internal link pointing to it
  2. Descriptive anchor text — "our analytics features" not "click here"
  3. 5-10 internal links per 1000 words of content (approximate guideline)
  4. Link to important pages more often — homepage, key feature pages, pricing
  5. Use breadcrumbs — free internal links on every page
  6. Related content sections — "Related Posts" or "You might also like" at page bottom
  1. 没有孤立页面 — 每个页面都必须至少有一个指向它的内部链接
  2. 锚文本表意清晰 — 使用"我们的分析功能"而非"点击这里"
  3. 每1000字内容包含5-10个内部链接(参考指南)
  4. 重要页面增加内部链接指向 — 首页、核心功能页、定价页
  5. 使用面包屑 — 每个页面上的免费内部链接
  6. 相关内容板块 — 页面底部设置"相关文章"或"你可能还喜欢"区域

Hub-and-Spoke Model

轮辐模型

For content-heavy sites, organize around hub pages:
Hub: /blog/seo-guide (comprehensive overview)
├── Spoke: /blog/keyword-research (links back to hub)
├── Spoke: /blog/on-page-seo (links back to hub)
├── Spoke: /blog/technical-seo (links back to hub)
└── Spoke: /blog/link-building (links back to hub)
Each spoke links back to the hub. The hub links to all spokes. Spokes link to each other where relevant.
对于内容密集型站点,围绕中心页组织内容:
Hub: /blog/seo-guide (comprehensive overview)
├── Spoke: /blog/keyword-research (links back to hub)
├── Spoke: /blog/on-page-seo (links back to hub)
├── Spoke: /blog/technical-seo (links back to hub)
└── Spoke: /blog/link-building (links back to hub)
每个辐条页面都链接回中心页,中心页链接到所有辐条页面,相关的辐条页面之间也可以互相链接。

Link Audit Checklist

链接审计检查清单

  • Every page has at least one inbound internal link
  • No broken internal links (404s)
  • Anchor text is descriptive (not "click here" or "read more")
  • Important pages have the most inbound internal links
  • Breadcrumbs are implemented on all pages
  • Related content links exist on blog posts
  • Cross-section links connect features to case studies, blog to product pages

  • 每个页面至少有一个入站内部链接
  • 没有失效的内部链接(404)
  • 锚文本表意清晰(不使用"点击这里"或"阅读更多")
  • 重要页面的入站内部链接数量最多
  • 所有页面都实现了面包屑
  • 博客文章都有相关内容链接
  • 跨板块链接将功能页与案例研究、博客与产品页关联起来

Output Format

输出格式

When creating a site architecture plan, provide these deliverables:
制定站点架构规划时,提供以下交付物:

1. Page Hierarchy (ASCII Tree)

1. 页面层级(ASCII树)

Full site structure with URLs at each node. Use the ASCII tree format from the Page Hierarchy Design section.
包含每个节点URL的完整站点结构,使用页面层级设计部分提到的ASCII树格式。

2. Visual Sitemap (Mermaid)

2. 可视化Sitemap(Mermaid)

Mermaid diagram showing page relationships and navigation zones. Use
graph TD
with subgraphs for nav zones where helpful.
展示页面关联关系和导航区域的Mermaid图,使用
graph TD
语法,必要时用子图表示导航区域。

3. URL Map Table

3. URL映射表

PageURLParentNav LocationPriority
Homepage
/
HeaderHigh
Features
/features
HomepageHeaderHigh
Analytics
/features/analytics
FeaturesHeader dropdownMedium
Pricing
/pricing
HomepageHeaderHigh
Blog
/blog
HomepageHeaderMedium
页面URL父页面导航位置优先级
首页
/
头部
功能
/features
首页头部
分析功能
/features/analytics
功能头部下拉
定价
/pricing
首页头部
博客
/blog
首页头部

4. Navigation Spec

4. 导航规范

  • Header nav items (ordered, with CTA)
  • Footer sections and links
  • Sidebar nav (if applicable)
  • Breadcrumb implementation notes
  • 头部导航项(排序,包含CTA)
  • 页脚板块和链接
  • 侧边栏导航(如适用)
  • 面包屑实现说明

5. Internal Linking Plan

5. 内部链接规划

  • Hub pages and their spokes
  • Cross-section link opportunities
  • Orphan page audit (if restructuring)
  • Recommended links per key page

  • 中心页及其对应的辐条页面
  • 跨板块链接机会
  • 孤立页面审计(如为重构场景)
  • 每个核心页面的推荐链接

Task-Specific Questions

特定任务问题

  1. Is this a new site or are you restructuring an existing one?
  2. What type of site is it? (SaaS, content, e-commerce, docs, hybrid, small business)
  3. How many pages exist or are planned?
  4. What are the 5 most important pages on the site?
  5. Are there existing URLs that need to be preserved or redirected?
  6. Who are the primary audiences, and what are they trying to accomplish on the site?

  1. 是新建站点还是重构现有站点?
  2. 站点类型是什么?(SaaS、内容、电商、文档、混合、小微企业)
  3. 现有或规划的页面数量有多少?
  4. 站点上最重要的5个页面是什么?
  5. 是否有需要保留或重定向的现有URL?
  6. 核心受众是谁,他们在站点上要完成什么目标?

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
  • page-cro: For optimizing individual pages for conversion
  • schema-markup: For implementing breadcrumb and site navigation structured data
  • competitor-alternatives: For comparison page frameworks and URL patterns
  • content-strategy:用于规划内容创作和主题集群
  • programmatic-seo:用于通过模板和数据批量构建SEO页面
  • seo-audit:用于技术SEO、页面优化和索引问题
  • page-cro:用于优化单个页面的转化率
  • schema-markup:用于实现面包屑和站点导航的结构化数据
  • competitor-alternatives:用于对比页框架和URL模式