sdd-skills 1.3.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdd-skills",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Spec-Driven Development Skills for Claude Code - SAE/ADE workflow automation",
5
5
  "type": "module",
6
6
  "main": "install.js",
@@ -51,6 +51,29 @@ ADE 接受以下两种输入:
51
51
 
52
52
  **注**: 根据项目技术栈选择合适的框架和工具链。
53
53
 
54
+ ## ⛔ 约束限制
55
+
56
+ ### Git 操作约束
57
+
58
+ **ADE 严禁执行以下 Git 操作:**
59
+
60
+ | 禁止命令 | 说明 |
61
+ |---------|------|
62
+ | `git add` | 禁止暂存文件 |
63
+ | `git commit` | 禁止提交代码 |
64
+ | `git push` | 禁止推送代码 |
65
+
66
+ **原因**:代码提交操作必须在 Tester 测试全部通过后,由 Git-Engineer Skill 统一执行,以确保代码质量和流程规范。
67
+
68
+ **工作流程**:
69
+ ```
70
+ ADE (代码实现) → Code-Reviewer (代码审查) → Tester (测试验证) → Git-Engineer (代码提交)
71
+ ```
72
+
73
+ ⚠️ **重要**:即使所有本地验证都通过,ADE 也不能执行任何 git add/commit/push 操作!
74
+
75
+ ---
76
+
54
77
  ## 职责
55
78
 
56
79
  ### 阶段0:范围识别
@@ -157,9 +180,10 @@ ADE 接受以下两种输入:
157
180
  - 验证通过后才能进入下一阶段
158
181
  - **发送钉钉通知**(如已配置)告知验证失败详情
159
182
 
160
- 4. **代码提交**
161
- - 提交所有实现文件和测试文件
183
+ 4. **完成实现**
184
+ - ⛔ **禁止执行 git add/commit/push 操作**
162
185
  - 确保已通过所有验证检查
186
+ - 代码提交由后续 Git-Engineer Skill 执行
163
187
 
164
188
  ### 阶段3:修复模式(来自 Code Reviewer 或 Tester 的修复请求)
165
189
 
@@ -560,6 +584,8 @@ fi
560
584
  - 收到 Code Reviewer 或 Tester 修复请求 → 修复问题 → 本地验证 → **自动调用** `/code-reviewer` 重新审查
561
585
  - Code Reviewer 通过后自动流转到 Tester,Tester 通过后自动流转到 Git Engineer
562
586
 
587
+ ⛔ **注意**:ADE 完成实现后,**严禁**执行 `git add/commit/push` 操作。代码提交由 Git-Engineer 在 Tester 测试全部通过后统一执行。
588
+
563
589
  ## 会话管理
564
590
 
565
591
  ⚠️ **注意**:ADE **不触发** `/compact` 命令。
@@ -591,7 +617,7 @@ fi
591
617
  - 核心逻辑:参数校验 → 查询用户 → 验证密码 → 生成 Token
592
618
  - 涉及文件:auth_handler.go, auth_service.go, LoginView.vue, authStore.ts
593
619
 
594
- 📋 STEPS (共 11 步):
620
+ 📋 STEPS (共 10 步):
595
621
 
596
622
  开始按 STEPS 执行...
597
623
 
@@ -620,11 +646,6 @@ git switch -c 260106-issue-1-user-login
620
646
  - 后端测试:12/12 通过,覆盖率 92%
621
647
  - 前端测试:8/8 通过,覆盖率 91%
622
648
 
623
- ✅ Step 11: 提交代码
624
- ```bash
625
- git add . && git commit -m "feat(auth): add user login with JWT authentication"
626
- ```
627
-
628
649
  ---
629
650
 
630
651
  ✅ 所有 STEPS 执行完成!
@@ -105,12 +105,13 @@ git add frontend/src/components/LoginForm.vue
105
105
  **格式**:
106
106
  ```
107
107
  <type>(<scope>): <subject>
108
-
109
- <body>
110
-
111
- <footer>
112
108
  ```
113
109
 
110
+ **要求**:
111
+ - **单行提交**:commit message 保持在一行内,不超过 50 个单词
112
+ - **简洁明了**:直接描述做了什么,不需要详细的 body
113
+ - **禁止 AI 标识**:不要包含 "Claude Code"、"Generated by AI" 等 AI 相关信息
114
+
114
115
  **Type 类型**:
115
116
  - `feat`: 新功能
116
117
  - `fix`: Bug 修复
@@ -124,29 +125,34 @@ git add frontend/src/components/LoginForm.vue
124
125
  **示例提交**:
125
126
  ```bash
126
127
  # 新功能
127
- git commit -m "feat(auth): add user login with JWT authentication
128
+ git commit -m "feat(auth): add user login with JWT authentication"
128
129
 
129
- Implement user login functionality with following features:
130
- - Email and password validation
131
- - JWT token generation
132
- - Redis session storage
133
- - Password encryption with bcrypt
130
+ # Bug 修复
131
+ git commit -m "fix(api): resolve N+1 query in user list endpoint"
134
132
 
135
- Related to: #123"
133
+ # 重构
134
+ git commit -m "refactor(frontend): migrate LoginForm to Composition API"
136
135
 
137
- # Bug 修复
138
- git commit -m "fix(api): resolve N+1 query in user list endpoint
136
+ # 多个相关变更
137
+ git commit -m "feat(user): add registration and email verification"
138
+ ```
139
139
 
140
- Use Preload to fetch associated orders in a single query
141
- instead of iterating over users.
140
+ **错误示例(避免)**:
141
+ ```bash
142
+ # ❌ 太长,包含 body
143
+ git commit -m "feat(auth): add login
142
144
 
143
- Performance improvement: 200ms -> 50ms (P95)"
145
+ Implement user login functionality with following features:
146
+ - Email and password validation
147
+ - JWT token generation"
144
148
 
145
- # 重构
146
- git commit -m "refactor(frontend): migrate LoginForm to Composition API
149
+ # ❌ 包含 AI 信息
150
+ git commit -m "feat(auth): add login
147
151
 
148
- Replace Options API with Composition API for better
149
- type safety and code organization."
152
+ 🤖 Generated with Claude Code"
153
+
154
+ # ❌ 太过详细
155
+ git commit -m "feat(auth): add user login with JWT authentication, password encryption using bcrypt, Redis session storage, and input validation"
150
156
  ```
151
157
 
152
158
  #### 4. 提交消息验证
@@ -509,14 +515,6 @@ fi
509
515
  已创建提交:
510
516
  ```
511
517
  feat(auth): add user login with JWT authentication
512
-
513
- Implement user login functionality with following features:
514
- - Email and password validation
515
- - JWT token generation
516
- - Redis session storage
517
- - Password encryption with bcrypt
518
-
519
- Related to: #123
520
518
  ```
521
519
 
522
520
  已推送到远程:feature/user-login