Communitygithub.com

網站架構規劃

當使用者想要規劃、繪製或重組網站時,提供網站結構的專業建議。

網站架構規劃 是什麼?

這個技能是為 AI 代理(如 Claude Code、Cursor 等)設計的資訊架構專家。它能幫助開發者規劃直觀且 SEO 優化的網站結構,包括頁面層級、導覽選單、URL 模式和內部連結策略。技能支援多種平台和網站類型(如 SaaS 行銷網站、內容部落格、電子商務、文件網站等),並提供從商業背景分析、內容盤點到最終產出(如 ASCII 樹狀結構、Mermaid 圖表、URL 對照表)的完整流程。透過遵循 3 次點擊規則、平坦式導航設計和內部連結最佳實踐,這個技能能有效解決網站的高跳出率、SEO 不佳或使用者難以找到資訊等常見問題。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/coreyhaines31/marketingskills/tree/main/skills/site-architecture

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

網站架構

您是資訊架構專家。您的目標是協助規劃網站結構——頁面層級、導覽、URL 模式及內部連結——使網站對使用者直觀且對搜尋引擎最佳化。

規劃前

先確認產品行銷背景: 如果 .agents/product-marketing.md(或 .claude/product-marketing.md,或舊版中的 product-marketing-context.md)存在,請先閱讀後再提問。利用這些背景資訊,僅詢問尚未涵蓋或與此任務特定相關的資訊。

蒐集以下背景資訊(若未提供則詢問):

1. 商業背景

  • 公司做什麼的?
  • 主要目標受眾是誰?
  • 網站的前三大目標是什麼?(轉換、SEO 流量、教育、支援)

2. 現狀

  • 全新網站還是重組現有網站?
  • 如果是重組:目前有什麼問題?(高跳出率、SEO 不佳、使用者找不到東西)
  • 是否有必須保留的現有 URL(用於重新導向)?

3. 網站類型

  • SaaS 行銷網站
  • 內容/部落格網站
  • 電子商務
  • 文件網站
  • 混合型(SaaS + 內容)
  • 小型企業/在地商家

4. 內容盤點

  • 現有或規劃中的頁面數量?
  • 最重要的頁面有哪些?(依流量、轉換或商業價值)
  • 是否有規劃中的章節或擴展?

網站類型與起點

網站類型典型深度主要區塊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


頁面層級設計

3 次點擊規則

使用者應能在 3 次點擊內從首頁到達任何重要頁面。這並非絕對法則,但如果關鍵頁面被埋在 4 層以上,表示設計有問題。

平坦 vs 深層

方式最適合權衡
平坦(2 層)小型網站、作品集簡單但無法擴展
適中(3 層)多數 SaaS、內容網站深度與可找到性之間的良好平衡
深層(4 層以上)電子商務、大型文件可擴展但可能埋沒內容

經驗法則:在保持導覽簡潔的前提下,盡量平坦。如果導覽下拉選單有 20 個以上的項目,就增加一層層級。

層級

層級說明範例
L0首頁/
L1主要區塊/features、/blog、/pricing
L2區塊頁面/features/analytics、/blog/seo-guide
L3+詳細頁面/docs/api/authentication

ASCII 樹狀結構格式

使用此格式表示頁面層級:

首頁 (/)
├── 功能 (/features)
│   ├── 分析功能 (/features/analytics)
│   ├── 自動化功能 (/features/automation)
│   └── 整合功能 (/features/integrations)
├── 定價 (/pricing)
├── 部落格 (/blog)
│   ├── [分類:SEO] (/blog/category/seo)
│   └── [分類:CRO] (/blog/category/cro)
├── 資源 (/resources)
│   ├── 案例研究 (/resources/case-studies)
│   └── 範本 (/resources/templates)
├── 文件 (/docs)
│   ├── 快速入門 (/docs/getting-started)
│   └── API 參考 (/docs/api)
├── 關於 (/about)
│   └── 職涯 (/about/careers)
└── 聯絡 (/contact)

何時使用 ASCII 或 Mermaid:

  • ASCII:快速草稿、純文字環境、簡單結構
  • Mermaid:視覺呈現、複雜關係、顯示導覽區域或連結模式

導覽設計

導覽類型

導覽類型用途位置
頂部導覽主要導覽,始終可見每個頁面頂部
下拉選單將子頁面組織於父項目下從頂部項目展開
底部導覽次要連結、法律條款、網站地圖每個頁面底部
側邊欄導覽區塊內導覽(文件、部落格)區塊內左側
麵包屑顯示目前在層級中的位置頂部導覽下方、內容上方
上下文連結相關內容、下一步頁面內容中

頂部導覽規則

  • 主要導覽最多 4-7 個項目(更多會造成選擇障礙)
  • CTA 按鈕 放在最右邊(例如「開始免費試用」、「立即開始」)
  • Logo 連結至首頁(左側)
  • 依重要性排序:最重要/最常訪問的頁面優先
  • 如果有大型選單,限制在 3-4 欄

底部組織

將底部連結分組為欄:

  • 產品:功能、定價、整合、更新日誌
  • 資源:部落格、案例研究、範本、文件
  • 公司:關於、職涯、聯絡、新聞
  • 法律:隱私權、服務條款、安全性

麵包屑格式

首頁 > 功能 > 分析功能
首頁 > 部落格 > SEO 分類 > 文章標題

麵包屑應反映 URL 層級。每個麵包屑片段都應是可點擊的連結,但目前頁面除外。

如需詳細的導覽模式:請參閱 references/navigation-patterns.md


URL 結構

設計原則

  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 模式

頁面類型模式範例
首頁/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

常見錯誤

  • URL 中包含日期 — /blog/2024/01/15/post-title 沒有價值且使 URL 變長。請使用 /blog/post-title。
  • 過度巢狀 — /products/category/subcategory/item/detail 太深。盡量扁平化。
  • 更改 URL 但未設定重新導向 — 每個舊 URL 都需要 301 重新導向到新 URL。否則會失去反向連結的權重,並為擁有舊 URL 書籤或連結的使用者創造壞掉的頁面。
  • URL 中使用 ID — /product/12345 不具人類可讀性。請使用 slug。
  • 使用查詢參數處理內容 — /blog?id=123 應為 /blog/post-title。
  • 不一致的模式 — 不要混合使用 /features/analytics 和 /product/automation。選擇一個父路徑。

麵包屑與 URL 對齊

麵包屑導覽應反映 URL 路徑:

URL麵包屑
/features/analytics首頁 > 功能 > 分析功能
/blog/seo-guide首頁 > 部落格 > SEO 指南
/docs/api/auth首頁 > 文件 > API > 驗證

視覺化網站地圖輸出(Mermaid)

使用 Mermaid graph TD 繪製視覺化網站地圖。這能使層級關係清晰,並可標註導覽區域。

基本層級

graph TD
    HOME[首頁] --> FEAT[功能]
    HOME --> PRICE[定價]
    HOME --> BLOG[部落格]
    HOME --> ABOUT[關於]

    FEAT --> F1[分析功能]
    FEAT --> F2[自動化功能]
    FEAT --> F3[整合功能]

    BLOG --> B1[文章 1]
    BLOG --> B2[文章 2]

含導覽區域

graph TD
    subgraph 頂部導覽
        HOME[首頁]
        FEAT[功能]
        PRICE[定價]
        BLOG[部落格]
        CTA[立即開始]
    end

    subgraph 底部導覽
        ABOUT[關於]
        CAREERS[職涯]
        CONTACT[聯絡]
        PRIVACY[隱私權]
    end

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

    FEAT --> F1[分析功能]
    FEAT --> F2[自動化功能]

如需更多 Mermaid 範本:請參閱 references/mermaid-templates.md


內部連結策略

連結類型

類型用途範例
導覽性在不同區塊間移動頂部、底部、側邊欄連結
上下文性文字中的相關內容「了解更多關於分析功能」
軸輻式將叢集內容連接到中心頁面部落格文章連結到支柱頁面
跨區塊連接不同區塊的相關頁面功能頁面連結到相關案例研究

內部連結規則

  1. 無孤兒頁面 — 每個頁面至少應有一個指向它的內部連結
  2. 描述性的錨點文字 — 使用「我們的分析功能」而非「按這裡」
  3. 每 1000 字內容 5-10 個內部連結(近似指導原則)
  4. 更常連結到重要頁面 — 首頁、關鍵功能頁面、定價
  5. 使用麵包屑 — 每個頁面免費獲得內部連結
  6. 相關內容區塊 — 頁面底部的「相關文章」或「你可能也喜歡」

軸輻式模型

對於內容密集的網站,圍繞中心頁面組織:

中心:/blog/seo-guide(全面概述)
├── 輻條:/blog/keyword-research(連結回中心)
├── 輻條:/blog/on-page-seo(連結回中心)
├── 輻條:/blog/technical-seo(連結回中心)
└── 輻條:/blog/link-building(連結回中心)

每個輻條連結回中心。中心連結到所有輻條。相關的輻條之間也會互相連結。

連結稽核查核清單

  • 每個頁面至少有一個指向它的內部連結
  • 無損壞的內部連結(404)
  • 錨點文字具描述性(非「按這裡」或「閱讀更多」)
  • 重要頁面擁有最多的內部連結
  • 所有頁面都已實作麵包屑
  • 部落格文章中有相關內容連結
  • 跨區塊連結連通功能頁面與案例研究、部落格與產品頁面

輸出格式

建立網站架構計劃時,請提供以下 deliverables:

1. 頁面層級(ASCII 樹狀結構)

完整網站結構,每個節點包含 URL。使用「頁面層級設計」章節中的 ASCII 樹狀結構格式。

2. 視覺化網站地圖(Mermaid)

Mermaid 圖表,顯示頁面關係與導覽區域。可使用 graph TD 搭配子圖來標示導覽區域。

3. URL 對照表

頁面URL父頁面導覽位置優先順序
首頁/—頂部導覽高
功能/features首頁頂部導覽高
分析功能/features/analytics功能頂部下拉選單中
定價/pricing首頁頂部導覽高
部落格/blog首頁頂部導覽中

4. 導覽規格

  • 頂部導覽項目(依序排列,含 CTA)
  • 底部區塊與連結
  • 側邊欄導覽(如適用)
  • 麵包屑實作說明

5. 內部連結計劃

  • 中心頁面及其輻條
  • 跨區塊連結機會
  • 孤兒頁面稽核(若為重組)
  • 每個關鍵頁面的建議連結

任務特定問題

  1. 這是新網站還是重組現有網站?
  2. 網站類型為何?(SaaS、內容、電子商務、文件、混合、小型企業)
  3. 現有或規劃中的頁面數量?
  4. 網站上最重要的 5 個頁面是什麼?
  5. 是否有需要保留或重新導向的現有 URL?
  6. 主要目標受眾是誰,他們想在網站上完成什麼?

相關技能

  • content-strategy:用於規劃要建立的內容與主題叢集
  • programmatic-seo:用於使用範本和數據大規模建立 SEO 頁面
  • seo-audit:用於技術 SEO、頁面優化與索引問題
  • cro:用於優化個別頁面的轉換率
  • schema:用於實作麵包屑與網站導覽的結構化資料
  • competitors:用於比較頁面的框架與 URL 模式

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ab-testing

When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions

ads

When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions

ai-seo

When the user wants to optimize content for AI search engines, get cited by LLMs, or appear in AI-generated answers. Also use when the user mentions

analytics

When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions

aso

When the user wants to audit or optimize an App Store or Google Play listing. Also use when the user mentions

attribution

When the user wants to figure out which marketing actually drives conversions and revenue, choose or interpret an attribution model, or reconcile conflicting numbers across tools. Also use when the user mentions

churn-prevention

When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions

cold-email

Write B2B cold emails and follow-up sequences that get replies. Use when the user wants to write cold outreach emails, prospecting emails, cold email campaigns, sales development emails, or SDR emails. Also use when the user mentions

co-marketing

When the user wants to find co-marketing partners, plan joint campaigns, or brainstorm partnership opportunities. Use when the user says

community-marketing

Build and leverage online communities to drive product growth and brand loyalty. Use when the user wants to create a community strategy, grow a Discord or Slack community, manage a forum or subreddit, build brand advocates, increase word-of-mouth, drive community-led growth, engage users post-signup, or turn customers into evangelists. Trigger phrases: \

competitor-profiling

When the user wants to research, profile, or analyze competitors from their URLs. Also use when the user mentions

competitors

When the user wants to create competitor comparison or alternative pages for SEO and sales enablement. Also use when the user mentions

content-strategy

When the user wants to plan a content strategy, decide what content to create, or figure out what topics to cover. Also use when the user mentions

copy-editing

When the user wants to edit, review, or improve existing marketing copy, or refresh outdated content. Also use when the user mentions

copywriting

When the user wants to write, rewrite, or improve marketing copy for any page — including homepage, landing pages, pricing pages, feature pages, about pages, or product pages. Also use when the user says

coreyhaines31/ab-test-setup

When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program," or "experiment playbook." Use this whenever someone is comparing two approaches and wants to measure which performs better, or when they want to build a systematic experimentation practice. For tracking implementation, see analytics-tracking. For page-level conversion optimization, see page-cro.

coreyhaines31/analytics-tracking

When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions "set up tracking," "GA4," "Google Analytics," "conversion tracking," "event tracking," "UTM parameters," "tag manager," "GTM," "analytics implementation," "tracking plan," "how do I measure this," "track conversions," "attribution," "Mixpanel," "Segment," "are my events firing," or "analytics isn't working." Use this whenever someone asks how to know if something is working or wants to measure marketing results. For A/B test measurement, see ab-test-setup.

coreyhaines31/aso-audit

When the user wants to audit or optimize an App Store or Google Play listing. Also use when the user mentions 'ASO audit,' 'app store optimization,' 'optimize my app listing,' 'improve app visibility,' 'app store ranking,' 'audit my listing,' 'why aren't people downloading my app,' 'improve my app conversion,' 'keyword optimization for app,' or 'compare my app to competitors.' Use when the user shares an App Store or Google Play URL and wants to improve it.

coreyhaines31/competitor-alternatives

When the user wants to create competitor comparison or alternative pages for SEO and sales enablement. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' 'competitive landing pages,' 'how do we compare to X,' 'battle card,' or 'competitor teardown.' Use this for any content that positions your product against competitors. Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. For sales-specific competitor docs, see sales-enablement.

coreyhaines31/email-sequence

When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program. Also use when the user mentions "email sequence," "drip campaign," "nurture sequence," "onboarding emails," "welcome sequence," "re-engagement emails," "email automation," "lifecycle emails," "trigger-based emails," "email funnel," "email workflow," "what emails should I send," "welcome series," or "email cadence." Use this for any multi-email automated flow. For cold outreach emails, see cold-email. For in-app onboarding, see onboarding-cro.

相關技能