Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 2.98 KB

File metadata and controls

57 lines (46 loc) · 2.98 KB

Architecture

專案架構說明文檔。

系統概覽

┌─────────────────────────────────────────────────────────┐
│                    VS Code Editor                        │
├─────────────────────────────────────────────────────────┤
│                  GitHub Copilot Chat                     │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────┐  │
│  │ Agent Mode  │  │Claude Skills│  │ Custom Instruct │  │
│  └──────┬──────┘  └──────┬──────┘  └────────┬────────┘  │
│         │                │                   │           │
│         └────────────────┼───────────────────┘           │
│                          ▼                               │
│  ┌─────────────────────────────────────────────────────┐│
│  │                   Memory Bank                        ││
│  │  ┌──────────┐ ┌──────────┐ ┌──────────┐            ││
│  │  │ Context  │ │ Progress │ │ Decisions│            ││
│  │  └──────────┘ └──────────┘ └──────────┘            ││
│  └─────────────────────────────────────────────────────┘│
└─────────────────────────────────────────────────────────┘

組件說明

1. Claude Skills (.claude/skills/)

自定義 AI 技能模組,可被 Copilot Chat 自動載入使用。

目前技能:

  • git-doc-updater - Git 提交前文檔更新

2. Memory Bank (memory-bank/)

跨對話的專案記憶系統,保持上下文連續性。

文件 用途
activeContext.md 當前工作焦點
progress.md 進度追蹤
decisionLog.md 決策記錄
productContext.md 專案上下文
projectBrief.md 專案簡介
systemPatterns.md 系統模式
architect.md 架構設計

3. VS Code 設定 (.vscode/)

編輯器設定,包含 Copilot 相關配置。

資料流

  1. 用戶在 Chat 中輸入請求
  2. Copilot 檢測是否匹配 Skill
  3. 載入相關 Skill 定義
  4. 結合 Memory Bank 上下文
  5. 執行操作並更新文檔