Description
Use this project as a template to quickly initialize a new project.
Trigger Conditions
- "Initialize new project"
- "Create project from template"
- 「create new project」
Features
1. Template Copy
Copy this project's structure to a new directory:
「用這個模板建立 my-new-project」
Execute:
- Copy directory structure
- Reset Git history
- Update project name
- Clear Memory Bank
- Reset CHANGELOG
### 2. 複製內容
| 檔案/目錄 | 動作 |
|-----------|------|
| CONSTITUTION.md | 複製 |
| .github/bylaws/ | 複製 |
| .claude/skills/ | 複製 |
| .github/workflows/ | 複製 |
| .github/ISSUE_TEMPLATE/ | 複製 |
| memory-bank/ | 複製結構,清空內容 |
| README.md | 重置為模板 |
| CHANGELOG.md | 重置為初始版本 |
| .git/ | 重新初始化 |
### 3. 互動式設定
詢問用戶:
- 專案名稱
- 專案描述
- 授權類型 (MIT/Apache/GPL)
- 主要程式語言
- 是否需要 Docker 支援
## 輸出格式
🚀 Project Initialization
Project name: my-new-project Location: ~/projects/my-new-project
✅ Directory structure created ✅ Constitution and sub-laws copied ✅ Skills copied ✅ CI/CD configured ✅ Git initialized
Next steps: cd ~/projects/my-new-project code .