nsforge-mcp
CLAUDE.md4 starsChanged 11 months agoApache-2.0View on GitHub
此文件為 Claude Code(Anthropic 的 AI 編程助手)提供專案上下文。 當使用 Claude Code 時,它會自動讀取此文件以了解專案規範。 這是一個 AI 輔助開發專案模板,整合了: - 憲法-子法層級規則系統 - Claude Skills 模組化技能 - Memory Bank 專案記憶 - DDD + DAL 獨立架構
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- changelog-updaterSkill
- code-refactorSkill
- code-reviewerSkill
- ddd-architectSkill
- git-doc-updaterSkill
- git-precommitSkill
- memory-checkpointSkill
- memory-updaterSkill
- nsforge-code-generationSkill
- nsforge-derivation-workflowSkill
- nsforge-formula-managementSkill
- nsforge-formula-searchSkill
- nsforge-quick-calculateSkill
- nsforge-usolver-collabSkill
- nsforge-verification-suiteSkill
- project-initSkill
- readme-i18nSkill
- readme-updaterSkill
- roadmap-updaterSkill
- test-generatorSkill
The file
Files
CLAUDE.md - Claude Code 專案指引
此文件為 Claude Code(Anthropic 的 AI 編程助手)提供專案上下文。 當使用 Claude Code 時,它會自動讀取此文件以了解專案規範。
專案概述
這是一個 AI 輔助開發專案模板,整合了:
- 憲法-子法層級規則系統
- Claude Skills 模組化技能
- Memory Bank 專案記憶
- DDD + DAL 獨立架構
法規層級
CONSTITUTION.md ← 最高原則(不可違反)
│
├── .github/bylaws/ ← 子法(細則規範)
│ ├── ddd-architecture.md
│ ├── git-workflow.md
│ └── memory-bank.md
│
└── .claude/skills/ ← 實施細則(操作程序)核心原則
0. 開發哲學 💡
「想要寫文件的時候,就更新 Memory Bank 吧!」
「想要零散測試的時候,就寫測試檔案進 tests/ 資料夾吧!」
- 不要另開檔案寫筆記,直接寫進 Memory Bank
- 今天的零散測試,就是明天的回歸測試
1. DDD 架構
- Domain Layer 不依賴外部
- DAL (Data Access Layer) 必須獨立
- 使用 Repository Pattern
- 參見:
.github/bylaws/ddd-architecture.md
2. Python 環境(uv 優先)
# 初始化
uv venv && uv sync --all-extras
# 安裝依賴
uv add package-name
uv add --dev pytest ruff mypy- 參見:
.github/bylaws/python-environment.md
3. Memory Bank 同步
每次重要操作必須更新:
memory-bank/progress.md- 進度追蹤memory-bank/activeContext.md- 當前焦點memory-bank/decisionLog.md- 重要決策
4. Git 工作流
提交前執行檢查清單:
- Memory Bank 同步
- README 更新(如需要)
- CHANGELOG 更新
- ROADMAP 標記
可用 Skills
| Skill | 用途 |
git-precommit | Git 提交前編排器 |
ddd-architect | DDD 架構輔助 |
code-refactor | 主動重構與模組化 |
memory-updater | Memory Bank 同步 |
memory-checkpoint | 記憶檢查點(Summarize 前外部化) |
readme-updater | README 智能更新 |
changelog-updater | CHANGELOG 自動更新 |
roadmap-updater | ROADMAP 狀態追蹤 |
code-reviewer | 程式碼審查 |
test-generator | 測試生成(Unit/Integration/E2E) |
project-init | 專案初始化 |
💸 Memory Checkpoint 規則
主動觸發時機
- 對話超過 10 輪 時,主動建議 checkpoint
- 完成 重大功能 後,主動執行 checkpoint
- 使用者說要 離開/等等繼續 時,主動執行 checkpoint
Checkpoint 內容必須包含
- 具體檔案路徑
- 變更摘要
- 下一步計畫
- 重要決策(如有)
觸發指令
「記憶檢查點」 / 「checkpoint」 / 「存檔」
「保存記憶」 / 「sync memory」常用指令
「準備 commit」 → 執行完整提交流程
「快速 commit」 → 只同步 Memory Bank
「建立新功能 X」 → 生成 DDD 結構
「review 程式碼」 → 程式碼審查
「更新 memory bank」 → 同步專案記憶目錄結構約定
src/
├── Domain/ # 核心領域(無外部依賴)
├── Application/ # 應用層(用例編排)
├── Infrastructure/ # 基礎設施(DAL、外部服務)
└── Presentation/ # 呈現層(API、UI)注意事項
- 修改程式碼前先更新規格文檔
- 程式碼是文檔的「編譯產物」
- 遵循 Conventional Commits 格式
- 使用繁體中文回應
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

