Skip to content

Commit b9a06c2

Browse files
author
薛華慶, james.hsueh
committed
feat: setup documents
1 parent db12e97 commit b9a06c2

File tree

8 files changed

+589
-226
lines changed

8 files changed

+589
-226
lines changed

README.md

Lines changed: 283 additions & 193 deletions
Large diffs are not rendered by default.
File renamed without changes.

docs/GETTING_STARTED.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mkdir -p ~/.claude/workflows
2121

2222
# Clone 這個工具
2323
cd ~/.claude/workflows
24-
git clone <your-repo-url> sdd-workflow
24+
git clone https://github.com/CodeMachine0121/GSI-Protocol.git sdd-workflow
2525
```
2626

2727
### 步驟 2: 在任何專案中使用
@@ -49,7 +49,7 @@ Claude Code 會自動找到全域安裝的指令。
4949
cd ~/projects/my-new-project
5050

5151
# Clone 工具到 .claude 目錄
52-
git clone <your-repo-url> .sdd-workflow
52+
git clone https://github.com/CodeMachine0121/GSI-Protocol.git .sdd-workflow
5353

5454
# 複製 slash commands 到專案
5555
mkdir -p .claude/commands
@@ -60,7 +60,7 @@ cp .sdd-workflow/.claude/commands/* .claude/commands/
6060

6161
```bash
6262
# 選項 A: 作為 git submodule(推薦)
63-
git submodule add <your-repo-url> .sdd-workflow
63+
git submodule add https://github.com/CodeMachine0121/GSI-Protocol.git .sdd-workflow
6464

6565
# 選項 B: 直接 commit
6666
git add .claude/
@@ -386,7 +386,7 @@ pwd
386386

387387
# 1. 安裝
388388
cd ~/.claude/workflows
389-
git clone <repo> sdd-workflow
389+
git clone https://github.com/CodeMachine0121/GSI-Protocol.git sdd-workflow
390390

391391
# 2. 進入專案
392392
cd ~/my-project

docs/INDEX.md

Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
# GSI-Protocol Documentation
2+
3+
Complete documentation for the GSI-Protocol (Gherkin-Structure-Implementation) workflow.
4+
5+
---
6+
7+
## 📚 Documentation Index
8+
9+
### Getting Started
10+
11+
| Document | Description | Time |
12+
|----------|-------------|------|
13+
| **[Quick Start Guide](QUICKSTART.md)** | 5-minute tutorial to get started | 5 min |
14+
| **[Installation Guide](INSTALL.md)** | Detailed installation instructions for all scenarios | 10 min |
15+
16+
### Reference
17+
18+
| Document | Description |
19+
|----------|-------------|
20+
| **[Commands Reference](COMMANDS.md)** | Complete documentation for all commands |
21+
| **[Language Guide](LANGUAGE_GUIDE.md)** | Multi-language support and examples |
22+
| **[Workflow Definition](expected_workflow.md)** | Detailed SDD methodology and philosophy |
23+
24+
### Community
25+
26+
| Document | Description |
27+
|----------|-------------|
28+
| **[Contributing Guidelines](../CONTRIBUTING.md)** | How to contribute to the project |
29+
| **[License](../LICENSE)** | MIT License details |
30+
31+
---
32+
33+
## 🚀 Recommended Reading Order
34+
35+
### For First-Time Users
36+
37+
1. **[Quick Start](QUICKSTART.md)** - Understand the basics
38+
2. **[Installation](INSTALL.md)** - Set up the tool
39+
3. Try it: `/sdd-auto Create a calculator in Python`
40+
4. **[Commands](COMMANDS.md)** - Learn all available commands
41+
42+
### For Team Leads
43+
44+
1. **[Workflow Definition](expected_workflow.md)** - Understand the methodology
45+
2. **[Language Guide](LANGUAGE_GUIDE.md)** - See language support
46+
3. **[Installation](INSTALL.md)** - Choose installation strategy
47+
4. **[Commands](COMMANDS.md)** - Plan team workflow
48+
49+
### For Contributors
50+
51+
1. **[Workflow Definition](expected_workflow.md)** - Understand core principles
52+
2. **[Contributing](../CONTRIBUTING.md)** - Learn contribution process
53+
3. **[Language Guide](LANGUAGE_GUIDE.md)** - Add language examples
54+
55+
---
56+
57+
## 📖 Documentation Overview
58+
59+
### Quick Start Guide
60+
61+
**File**: [QUICKSTART.md](QUICKSTART.md)
62+
63+
Learn GSI-Protocol in 5 minutes:
64+
- Installation in 30 seconds
65+
- Your first feature in 2 minutes
66+
- Common usage patterns
67+
- Tips for success
68+
69+
**Perfect for**: Developers who want to try it immediately
70+
71+
---
72+
73+
### Installation Guide
74+
75+
**File**: [INSTALL.md](INSTALL.md)
76+
77+
Complete installation documentation:
78+
- Global installation (recommended)
79+
- Project-specific installation
80+
- Team collaboration setup
81+
- Troubleshooting
82+
83+
**Perfect for**: Understanding all installation options
84+
85+
---
86+
87+
### Commands Reference
88+
89+
**File**: [COMMANDS.md](COMMANDS.md)
90+
91+
Complete command documentation:
92+
- `/sdd-auto` - Auto workflow
93+
- `/sdd-spec` - Phase 1: Specification
94+
- `/sdd-arch` - Phase 2: Architecture
95+
- `/sdd-impl` - Phase 3: Implementation
96+
- `/sdd-verify` - Phase 4: Verification
97+
- Usage examples
98+
- Decision matrix
99+
- Best practices
100+
101+
**Perfect for**: Daily reference and mastering the tool
102+
103+
---
104+
105+
### Language Guide
106+
107+
**File**: [LANGUAGE_GUIDE.md](LANGUAGE_GUIDE.md)
108+
109+
Multi-language support guide:
110+
- Language-specific patterns
111+
- Python, TypeScript, Go, Java, Rust, C# examples
112+
- Choosing the right language
113+
- Cross-language migration
114+
- Best practices by language
115+
116+
**Perfect for**: Multi-language teams and language-specific questions
117+
118+
---
119+
120+
### Workflow Definition
121+
122+
**File**: [expected_workflow.md](expected_workflow.md)
123+
124+
Deep dive into the SDD methodology:
125+
- Philosophy and principles
126+
- 4-phase workflow details
127+
- PM, Architect, Engineer, QA roles
128+
- BDD and Gherkin usage
129+
- Quality assurance
130+
131+
**Perfect for**: Understanding the "why" behind GSI-Protocol
132+
133+
---
134+
135+
## 🎯 Quick Links by Role
136+
137+
### Product Manager
138+
- **[Workflow Definition](expected_workflow.md)** - Understand PM role in Phase 1
139+
- **[Commands](COMMANDS.md)** - `/sdd-spec` command details
140+
141+
### System Architect
142+
- **[Workflow Definition](expected_workflow.md)** - Understand Architect role in Phase 2
143+
- **[Language Guide](LANGUAGE_GUIDE.md)** - Structure patterns by language
144+
- **[Commands](COMMANDS.md)** - `/sdd-arch` command details
145+
146+
### Software Engineer
147+
- **[Quick Start](QUICKSTART.md)** - Get started quickly
148+
- **[Commands](COMMANDS.md)** - All commands reference
149+
- **[Language Guide](LANGUAGE_GUIDE.md)** - Implementation patterns
150+
151+
### QA Engineer
152+
- **[Workflow Definition](expected_workflow.md)** - Understand QA role in Phase 4
153+
- **[Commands](COMMANDS.md)** - `/sdd-verify` command details
154+
155+
### DevOps / Team Lead
156+
- **[Installation](INSTALL.md)** - Setup for teams
157+
- **[Workflow Definition](expected_workflow.md)** - Process overview
158+
159+
---
160+
161+
## 🔍 Finding Information
162+
163+
### By Task
164+
165+
**"I want to install the tool"**
166+
[Installation Guide](INSTALL.md)
167+
168+
**"I want to try it quickly"**
169+
[Quick Start](QUICKSTART.md)
170+
171+
**"I need to understand a specific command"**
172+
[Commands Reference](COMMANDS.md)
173+
174+
**"I want to use it with Go/Rust/etc"**
175+
[Language Guide](LANGUAGE_GUIDE.md)
176+
177+
**"I want to understand the methodology"**
178+
[Workflow Definition](expected_workflow.md)
179+
180+
**"I want to contribute"**
181+
[Contributing Guidelines](../CONTRIBUTING.md)
182+
183+
---
184+
185+
### By Question
186+
187+
**"How do I install this?"**
188+
[Installation Guide](INSTALL.md)
189+
190+
**"What commands are available?"**
191+
[Commands Reference](COMMANDS.md)
192+
193+
**"Does it work with TypeScript/Go/etc?"**
194+
[Language Guide](LANGUAGE_GUIDE.md)
195+
196+
**"When should I use /sdd-auto vs manual phases?"**
197+
[Commands Reference](COMMANDS.md) - Decision Matrix
198+
199+
**"How does the 4-phase workflow work?"**
200+
[Workflow Definition](expected_workflow.md)
201+
202+
**"Can I use this in my team?"**
203+
[Installation Guide](INSTALL.md) - Team Setup
204+
205+
---
206+
207+
## 📞 Still Have Questions?
208+
209+
- 💬 [GitHub Issues](https://github.com/CodeMachine0121/GSI-Protocol/issues)
210+
- 💡 [GitHub Discussions](https://github.com/CodeMachine0121/GSI-Protocol/discussions)
211+
- 📖 [Main README](../README.md)
212+
213+
---
214+
215+
## 🔄 Documentation Updates
216+
217+
This documentation is continuously improved. If you find:
218+
- ❌ Errors or typos
219+
- 📝 Missing information
220+
- 💡 Suggestions for improvement
221+
222+
Please:
223+
1. Open an issue
224+
2. Submit a pull request
225+
3. Start a discussion
226+
227+
See [Contributing Guidelines](../CONTRIBUTING.md) for details.
228+
229+
---
230+
231+
**[⬆ Back to Main README](../README.md)**

INSTALL.md renamed to docs/INSTALL.md

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ mkdir -p ~/.claude/workflows
2222

2323
# 2. Clone 到全域目錄
2424
cd ~/.claude/workflows
25-
git clone <your-repo-url> sdd-workflow
25+
git clone https://github.com/CodeMachine0121/GSI-Protocol.git sdd-workflow
2626

2727
# 3. 完成!現在在任何專案都能使用
2828
cd ~/your-project
@@ -59,7 +59,7 @@ cd ~/projects/my-python-api
5959
```bash
6060
# 1. 在專案外臨時下載
6161
cd /tmp
62-
git clone <your-repo-url> sdd-temp
62+
git clone https://github.com/CodeMachine0121/GSI-Protocol.git sdd-temp
6363

6464
# 2. 進入你的專案
6565
cd ~/your-project
@@ -76,24 +76,38 @@ git add .claude/commands/
7676
git commit -m "Add SDD workflow commands"
7777
```
7878

79-
### 使用腳本安裝(僅限 Public Repo)
79+
### 使用腳本安裝
8080

81-
⚠️ **注意**: 如果 repo 是 private,curl/wget 會要求認證。請使用「手動複製」方式。
81+
#### 選項 A: 一鍵 curl 安裝(推薦,需要 Public Repo)
8282

83-
如果 repo public,可以使用安裝腳本:
83+
⚠️ **注意**: 此方式只在 repo public 時可用
8484

8585
```bash
86-
# 先 clone repo
86+
# 下載並執行安裝腳本
87+
curl -sSL https://raw.githubusercontent.com/CodeMachine0121/GSI-Protocol/main/install.sh | bash
88+
89+
# 或使用 wget
90+
wget -qO- https://raw.githubusercontent.com/CodeMachine0121/GSI-Protocol/main/install.sh | bash
91+
```
92+
93+
#### 選項 B: Clone 後安裝(Private Repo 也可用)
94+
95+
```bash
96+
# 1. Clone repo(private repo 會要求 GitHub 認證)
8797
git clone https://github.com/CodeMachine0121/GSI-Protocol.git /tmp/gsi-temp
8898
cd /tmp/gsi-temp
8999

90-
# 執行安裝腳本
100+
# 2. 執行安裝腳本
91101
./install.sh
92102

93-
# 清理
103+
# 3. 清理
94104
cd ~ && rm -rf /tmp/gsi-temp
95105
```
96106

107+
**如何選擇**
108+
- ✅ Repo 是 **public** → 使用選項 A(最快最方便)
109+
- ✅ Repo 是 **private** → 使用選項 B 或「手動複製」方式
110+
97111
---
98112

99113
## 方法三:使用 Git Sparse Checkout(進階)
@@ -104,7 +118,7 @@ cd ~ && rm -rf /tmp/gsi-temp
104118
cd ~/your-project
105119

106120
# 初始化 sparse checkout
107-
git clone --no-checkout <your-repo-url> .sdd-tools
121+
git clone --no-checkout https://github.com/CodeMachine0121/GSI-Protocol.git .sdd-tools
108122
cd .sdd-tools
109123

110124
# 設定只 checkout .claude/commands
@@ -215,7 +229,7 @@ your-project/
215229

216230
```bash
217231
# 方式 1: 每個開發者自己全域安裝
218-
每人執行:mkdir -p ~/.claude/workflows && cd ~/.claude/workflows && git clone <repo>
232+
每人執行:mkdir -p ~/.claude/workflows && cd ~/.claude/workflows && git clone https://github.com/CodeMachine0121/GSI-Protocol.git
219233

220234
# 方式 2: 專案內只包含 commands(Git 管理)
221235
在專案內:mkdir -p .claude/commands && cp <commands>
@@ -311,10 +325,10 @@ cd ~/.claude/workflows/sdd-workflow/examples
311325

312326
```bash
313327
# 全域安裝(推薦)
314-
mkdir -p ~/.claude/workflows && cd ~/.claude/workflows && git clone <repo> sdd-workflow
328+
mkdir -p ~/.claude/workflows && cd ~/.claude/workflows && git clone https://github.com/CodeMachine0121/GSI-Protocol.git sdd-workflow
315329

316330
# 專案內安裝(只複製 commands)
317-
mkdir -p .claude/commands && cd /tmp && git clone <repo> sdd-temp && cp sdd-temp/.claude/commands/* <your-project>/.claude/commands/ && rm -rf sdd-temp
331+
mkdir -p .claude/commands && cd /tmp && git clone https://github.com/CodeMachine0121/GSI-Protocol.git sdd-temp && cp sdd-temp/.claude/commands/* <your-project>/.claude/commands/ && rm -rf sdd-temp
318332
```
319333

320334
開始使用 SDD Workflow,讓 AI 幫你寫結構化的程式碼!🚀
File renamed without changes.

0 commit comments

Comments
 (0)