CLAUDE.md
CLAUDE.mdCLAUDE.mdroot
Quality
81/100
Scores the file, not the repository.Length
351 words
19 headings · 5 code blocksRepository
4
— · pushed 27 days agoLast changed
3 days ago
First indexed 3 days ago.1# CLAUDE.md - Claude Code 專案指引23此文件為 Claude Code(Anthropic 的 AI 編程助手)提供專案上下文。4當使用 Claude Code 時,它會自動讀取此文件以了解專案規範。56---78## 專案概述910這是一個 **AI 輔助開發專案模板**,整合了:11- 憲法-子法層級規則系統12- Claude Skills 模組化技能13- Memory Bank 專案記憶14- DDD + DAL 獨立架構1516## 法規層級1718```19CONSTITUTION.md ← 最高原則(不可違反)20 │21 ├── .github/bylaws/ ← 子法(細則規範)22 │ ├── ddd-architecture.md23 │ ├── git-workflow.md24 │ └── memory-bank.md25 │26 └── .claude/skills/ ← 實施細則(操作程序)27```2829## 核心原則3031### 0. 開發哲學 💡32> **「想要寫文件的時候,就更新 Memory Bank 吧!」**33>34> **「想要零散測試的時候,就寫測試檔案進 tests/ 資料夾吧!」**3536- 不要另開檔案寫筆記,直接寫進 Memory Bank37- 今天的零散測試,就是明天的回歸測試3839### 1. DDD 架構40- Domain Layer 不依賴外部41- DAL (Data Access Layer) 必須獨立42- 使用 Repository Pattern43- 參見:`.github/bylaws/ddd-architecture.md`4445### 2. Python 環境(uv 優先)46```bash47# 初始化48uv venv && uv sync --all-extras4950# 安裝依賴51uv add package-name52uv add --dev pytest ruff mypy53```54- 參見:`.github/bylaws/python-environment.md`5556### 3. Memory Bank 同步57每次重要操作必須更新:58- `memory-bank/progress.md` - 進度追蹤59- `memory-bank/activeContext.md` - 當前焦點60- `memory-bank/decisionLog.md` - 重要決策6162### 4. Git 工作流63提交前執行檢查清單:641. Memory Bank 同步652. README 更新(如需要)663. CHANGELOG 更新674. ROADMAP 標記6869## 可用 Skills7071| Skill | 用途 |72|-------|------|73| `git-precommit` | Git 提交前編排器 |74| `ddd-architect` | DDD 架構輔助 |75| `code-refactor` | 主動重構與模組化 |76| `memory-updater` | Memory Bank 同步 |77| `memory-checkpoint` | 記憶檢查點(Summarize 前外部化) |78| `readme-updater` | README 智能更新 |79| `changelog-updater` | CHANGELOG 自動更新 |80| `roadmap-updater` | ROADMAP 狀態追蹤 |81| `code-reviewer` | 程式碼審查 |82| `test-generator` | 測試生成(Unit/Integration/E2E) |83| `project-init` | 專案初始化 |8485## 💸 Memory Checkpoint 規則8687### 主動觸發時機88- 對話超過 **10 輪** 時,主動建議 checkpoint89- 完成 **重大功能** 後,主動執行 checkpoint90- 使用者說要 **離開/等等繼續** 時,主動執行 checkpoint9192### Checkpoint 內容必須包含93- 具體檔案路徑94- 變更摘要95- 下一步計畫96- 重要決策(如有)9798### 觸發指令99```100「記憶檢查點」 / 「checkpoint」 / 「存檔」101「保存記憶」 / 「sync memory」102```103104## 常用指令105106```107「準備 commit」 → 執行完整提交流程108「快速 commit」 → 只同步 Memory Bank109「建立新功能 X」 → 生成 DDD 結構110「review 程式碼」 → 程式碼審查111「更新 memory bank」 → 同步專案記憶112```113114## 目錄結構約定115116```117src/118├── Domain/ # 核心領域(無外部依賴)119├── Application/ # 應用層(用例編排)120├── Infrastructure/ # 基礎設施(DAL、外部服務)121└── Presentation/ # 呈現層(API、UI)122```123124## 注意事項125126- 修改程式碼前先更新規格文檔127- 程式碼是文檔的「編譯產物」128- 遵循 Conventional Commits 格式129- 使用繁體中文回應130
Also in u9401066/nsforge-mcp
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| u9401066/nsforge-mcp.clinerules/00-project.md · 4 | Cline rules | testlint-formatstylearch+1 | 81/100 | 3 days ago | |
| u9401066/nsforge-mcp.clinerules/10-python.md · 4 | Cline rules | setuptestlint-formatstyle+1 | 83/100 | 3 days ago | |
| u9401066/nsforge-mcp.clinerules/40-release.md · 4 | Cline rules | lint-formatdeploymentdo-not | 51/100 | 3 days ago | |
| u9401066/nsforge-mcp.github/copilot-instructions.md · 4 | Copilot instructions | setuptestlint-formatgit+2 | 85/100 | 3 days ago | |
| u9401066/nsforge-mcpAGENTS.md · 4 | AGENTS.md | stylearchsecuritydo-not+1 | 89/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Adit-Jain-srm/NightmareNetCLAUDE.md · 45 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 3 days ago | |
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 3 days ago | |
| dotCMS/coreCLAUDE.md · 949 | CLAUDE.md | setupbuildteststyle+7 | 99/100 | today | |
| dotCMS/corecore-web/libs/sdk/react/CLAUDE.md · 949 | CLAUDE.md | setupbuildtestlint-format+9 | 97/100 | 3 days ago | |
| modelcontextprotocol/serversCLAUDE.md · 89k | CLAUDE.md | setupbuildtestlint-format+6 | 97/100 | 3 days ago | |
| luongnv89/claude-howtovi/CLAUDE.md · 41k | CLAUDE.md | setupbuildtestlint-format+8 | 97/100 | 3 days ago | |
| dotCMS/corecore-web/libs/sdk/client/CLAUDE.md · 949 | CLAUDE.md | setupbuildtestlint-format+9 | 97/100 | 3 days ago | |
| supabase/supabase.claude/CLAUDE.md · 108k | CLAUDE.md | testlint-formatstylearch+1 | 97/100 | 3 days ago |
