sdd-full 4.2.0 → 4.3.1

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.
Files changed (127) hide show
  1. package/bin.js +98 -80
  2. package/package.json +1 -1
  3. package/skills/README.md +97 -0
  4. package/skills/call-adaptation/SKILL.md +23 -0
  5. package/skills/call-adaptation/call-adaptation-guide.md +136 -0
  6. package/skills/call-adaptation/claude-code-call-spec.md +50 -0
  7. package/skills/call-adaptation/trae-call-spec.md +56 -0
  8. package/skills/checklist.md +154 -0
  9. package/skills/design-planning/ai-coding-rules/SKILL.md +52 -0
  10. package/skills/design-planning/design-to-code/SKILL.md +53 -0
  11. package/skills/design-planning/enterprise-spec/SKILL.md +52 -3
  12. package/skills/design-planning/flutter-av/SKILL.md +44 -34
  13. package/skills/design-planning/flutter-map/SKILL.md +41 -31
  14. package/skills/design-planning/function-sdd/SKILL.md +54 -0
  15. package/skills/design-planning/sdd-code/SKILL.md +347 -0
  16. package/skills/design-planning/sdd-deploy/SKILL.md +501 -0
  17. package/skills/design-planning/sdd-ops/SKILL.md +306 -0
  18. package/skills/design-planning/sdd-test/SKILL.md +383 -0
  19. package/skills/design-planning/ui-sdd/SKILL.md +291 -0
  20. package/skills/design-planning/ui-sdd-specialized/SKILL.md +46 -40
  21. package/skills/design-planning/writing-plans/SKILL.md +144 -0
  22. package/skills/development-execution/flutter-errors/SKILL.md +44 -34
  23. package/skills/development-execution/sdd-add/SKILL.md +540 -0
  24. package/skills/development-execution/systematic-debugging/SKILL.md +298 -0
  25. package/skills/development-execution/test-driven-development/SKILL.md +373 -0
  26. package/skills/development-execution/verification-before-completion/SKILL.md +141 -0
  27. package/skills/knowledge-precipitation/claudeception/SKILL.md +96 -0
  28. package/skills/knowledge-precipitation/mempalace-auto-saver/SKILL.md +302 -0
  29. package/skills/quality-assurance/bdd-acceptance/SKILL.md +44 -37
  30. package/skills/quality-assurance/flutter-test/SKILL.md +56 -0
  31. package/skills/quality-assurance/quality-gate/SKILL.md +350 -0
  32. package/skills/quality-assurance/security-audit/SKILL.md +386 -0
  33. package/skills/release-ops/finishing-a-development-branch/SKILL.md +202 -0
  34. package/skills/release-ops/release-flow/SKILL.md +404 -0
  35. package/skills/requirement-analysis/brainstorming/SKILL.md +166 -0
  36. package/skills/requirement-analysis/competitive-brief/SKILL.md +121 -0
  37. package/skills/requirement-analysis/market-research/SKILL.md +143 -0
  38. package/skills/requirement-analysis/prd-write/SKILL.md +111 -0
  39. package/skills/requirement-analysis/requirement-completion-officer/SKILL.md +124 -0
  40. package/skills/requirement-analysis/sdd/SKILL.md +1044 -0
  41. package/skills/requirement-analysis/sdd-full/SKILL.md +717 -36
  42. package/skills/requirement-analysis/unified-flow/SKILL.md +128 -26
  43. package/skills/rules/project_rules.md +167 -0
  44. package/skills/rules/user_rules.md +254 -69
  45. package/skills/special-tools/env-check/SKILL.md +40 -34
  46. package/skills/special-tools/receiving-code-review/SKILL.md +215 -0
  47. package/skills/special-tools/requesting-code-review/SKILL.md +107 -0
  48. package/skills/special-tools/using-superpowers/SKILL.md +117 -0
  49. package/skills/templates/API-SDD.md +31 -0
  50. package/skills/templates/Andrej Karpathy AI/347/274/226/347/240/201/350/247/204/345/210/231/350/220/275/345/234/260SDD.md" +117 -0
  51. package/skills/templates/BDD/351/243/216/346/240/274/351/252/214/346/224/266/346/240/207/345/207/206SDD.md +147 -0
  52. package/skills/templates/Base-SDD.md +38 -0
  53. package/skills/templates/Brain-SDD.md +36 -0
  54. package/skills/templates/Code-SDD.md +41 -0
  55. package/skills/templates/Competitor-SDD.md +34 -0
  56. package/skills/templates/Env-SDD.md +37 -0
  57. package/skills/templates/Flutter/345/205/250/347/261/273/345/236/213/346/265/213/350/257/225/347/255/226/347/225/245SDD.md +162 -0
  58. package/skills/templates/Flutter/345/234/260/345/233/276/345/257/274/350/210/252/344/270/232/345/212/241SDD.md +136 -0
  59. package/skills/templates/Flutter/345/270/270/350/247/201/345/274/202/345/270/270/344/270/223/351/241/271SDD.md +159 -0
  60. package/skills/templates/Flutter/351/237/263/350/247/206/351/242/221/345/205/250/346/240/210SDD.md +121 -0
  61. package/skills/templates/PRD-SDD.md +45 -0
  62. package/skills/templates/SKILL.md +91 -0
  63. package/skills/templates/Test-SDD.md +34 -0
  64. package/skills/templates/UI-SDD.md +38 -0
  65. package/skills/templates/UI-SDD/344/270/223/347/224/250/346/250/241/346/235/277.md +141 -0
  66. package/skills/templates/UI/350/265/204/346/272/220/346/217/220/347/244/272/350/257/215/347/224/237/346/210/220SDD.md +67 -0
  67. package/skills/templates//344/274/201/344/270/232/347/272/247/345/205/250/346/240/210/345/267/245/347/250/213/350/247/204/350/214/203SDD.md +152 -0
  68. package/skills/templates//345/205/250/346/265/201/347/250/213SDD/350/236/215/345/220/210/344/275/223/347/263/273.md +198 -0
  69. package/skills/templates//345/212/237/350/203/275SDD/344/270/223/347/224/250/346/250/241/346/235/277.md +132 -0
  70. package/skills/templates//347/216/257/345/242/203/351/242/204/346/243/200/346/240/207/345/207/206/345/214/226SDD.md +153 -0
  71. package/skills/templates//351/253/230/344/277/235/347/234/237/350/256/276/350/256/241/350/275/254/344/273/243/347/240/201SDD.md +119 -0
  72. package/skills//345/256/214/346/225/264/345/274/200/345/217/221/346/265/201/347/250/213/346/211/213/345/206/214.md +408 -0
  73. package/skills//346/212/200/350/203/275/344/275/223/347/263/273/345/256/214/345/226/204/345/273/272/350/256/256.md +305 -0
  74. package/skills//346/212/200/350/203/275/344/275/277/347/224/250/346/214/207/345/215/227.md +285 -0
  75. package/skills//346/212/200/350/203/275/345/206/263/347/255/226/346/240/221.md +320 -0
  76. package/skills/brainstorming/SKILL.md +0 -164
  77. package/skills/brainstorming/scripts/frame-template.html +0 -214
  78. package/skills/brainstorming/scripts/helper.js +0 -88
  79. package/skills/brainstorming/scripts/server.cjs +0 -338
  80. package/skills/brainstorming/scripts/start-server.sh +0 -153
  81. package/skills/brainstorming/scripts/stop-server.sh +0 -55
  82. package/skills/brainstorming/spec-document-reviewer-prompt.md +0 -48
  83. package/skills/brainstorming/visual-companion.md +0 -286
  84. package/skills/chinese-code-review/SKILL.md +0 -277
  85. package/skills/chinese-commit-conventions/SKILL.md +0 -364
  86. package/skills/chinese-documentation/SKILL.md +0 -448
  87. package/skills/chinese-git-workflow/SKILL.md +0 -510
  88. package/skills/dispatching-parallel-agents/SKILL.md +0 -182
  89. package/skills/executing-plans/SKILL.md +0 -175
  90. package/skills/finishing-a-development-branch/SKILL.md +0 -200
  91. package/skills/mcp-builder/SKILL.md +0 -255
  92. package/skills/receiving-code-review/SKILL.md +0 -213
  93. package/skills/requesting-code-review/SKILL.md +0 -105
  94. package/skills/requesting-code-review/code-reviewer.md +0 -146
  95. package/skills/rules/skill-map.md +0 -97
  96. package/skills/subagent-driven-development/SKILL.md +0 -277
  97. package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +0 -26
  98. package/skills/subagent-driven-development/implementer-prompt.md +0 -113
  99. package/skills/subagent-driven-development/spec-reviewer-prompt.md +0 -61
  100. package/skills/systematic-debugging/CREATION-LOG.md +0 -119
  101. package/skills/systematic-debugging/SKILL.md +0 -296
  102. package/skills/systematic-debugging/condition-based-waiting-example.ts +0 -158
  103. package/skills/systematic-debugging/condition-based-waiting.md +0 -115
  104. package/skills/systematic-debugging/defense-in-depth.md +0 -122
  105. package/skills/systematic-debugging/find-polluter.sh +0 -63
  106. package/skills/systematic-debugging/root-cause-tracing.md +0 -169
  107. package/skills/systematic-debugging/test-academic.md +0 -14
  108. package/skills/systematic-debugging/test-pressure-1.md +0 -58
  109. package/skills/systematic-debugging/test-pressure-2.md +0 -68
  110. package/skills/systematic-debugging/test-pressure-3.md +0 -69
  111. package/skills/test-driven-development/SKILL.md +0 -371
  112. package/skills/test-driven-development/testing-anti-patterns.md +0 -299
  113. package/skills/using-git-worktrees/SKILL.md +0 -218
  114. package/skills/using-superpowers/SKILL.md +0 -134
  115. package/skills/using-superpowers/references/codex-tools.md +0 -25
  116. package/skills/using-superpowers/references/gemini-tools.md +0 -33
  117. package/skills/verification-before-completion/SKILL.md +0 -139
  118. package/skills/workflow-runner/SKILL.md +0 -172
  119. package/skills/writing-plans/SKILL.md +0 -152
  120. package/skills/writing-plans/plan-document-reviewer-prompt.md +0 -49
  121. package/skills/writing-skills/SKILL.md +0 -654
  122. package/skills/writing-skills/anthropic-best-practices.md +0 -1149
  123. package/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +0 -189
  124. package/skills/writing-skills/graphviz-conventions.dot +0 -172
  125. package/skills/writing-skills/persuasion-principles.md +0 -187
  126. package/skills/writing-skills/render-graphs.js +0 -168
  127. package/skills/writing-skills/testing-skills-with-subagents.md +0 -384
@@ -1,364 +0,0 @@
1
- ---
2
- name: chinese-commit-conventions
3
- description: 中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化
4
- ---
5
-
6
- # 中文 Git 提交规范
7
-
8
- ## 1. Conventional Commits 中文适配
9
-
10
- 基于 Conventional Commits 1.0.0 规范,针对中文团队的实际使用习惯进行适配。
11
-
12
- ### 类型(type)定义
13
-
14
- | 类型 | 说明 | 示例场景 |
15
- | ---------- | ---------------------------- | -------------------------- |
16
- | `feat` | 新功能 | 添加用户注册模块 |
17
- | `fix` | 修复缺陷 | 修复登录页白屏问题 |
18
- | `docs` | 文档变更 | 更新 API 接口文档 |
19
- | `style` | 代码格式(不影响逻辑) | 调整缩进、补充分号 |
20
- | `refactor` | 重构(非新功能、非修复) | 拆分过长的服务类 |
21
- | `perf` | 性能优化 | 优化首页列表查询速度 |
22
- | `test` | 测试相关 | 补充用户模块单元测试 |
23
- | `chore` | 构建/工具/依赖变更 | 升级 webpack 到 v5 |
24
- | `ci` | 持续集成配置 | 修改 GitHub Actions 流程 |
25
- | `revert` | 回滚提交 | 回滚 v2.1.0 的登录重构 |
26
-
27
- ### 原则
28
-
29
- - type 保留英文关键字(工具链兼容性好)
30
- - scope 和 description 使用中文
31
- - body 使用中文完整描述
32
-
33
- ## 2. 中文 commit message 模板
34
-
35
- ```
36
- <type>(<scope>): <subject>
37
-
38
- <body>
39
-
40
- <footer>
41
- ```
42
-
43
- ### 完整示例
44
-
45
- ```
46
- feat(用户模块): 添加手机号一键登录功能
47
-
48
- - 接入运营商一键登录 SDK
49
- - 支持移动、联通、电信三网
50
- - 登录失败自动降级到短信验证码
51
-
52
- Closes #128
53
- ```
54
-
55
- ```
56
- fix(订单): 修复并发下单导致库存超卖的问题
57
-
58
- 在高并发场景下,原有的库存扣减逻辑存在竞态条件。
59
- 改用 Redis 分布式锁 + 数据库乐观锁双重保障。
60
-
61
- 影响范围:订单服务、库存服务
62
- 测试确认:已通过 500 并发压测验证
63
-
64
- Closes #256
65
- ```
66
-
67
- ## 3. Subject 行规范
68
-
69
- ### 格式
70
-
71
- ```
72
- <type>(<scope>): <description>
73
- ```
74
-
75
- ### 规则
76
-
77
- - **type**: 必填,从上方类型表中选取
78
- - **scope**: 选填,表示影响范围,使用中文模块名
79
- - 示例:`用户模块`、`订单`、`支付`、`基础组件`
80
- - **description**: 必填,中文简述,不超过 50 个字符
81
- - 使用动宾短语:「添加 xxx」「修复 xxx」「优化 xxx」
82
- - 不加句号结尾
83
- - 不要写「修改了代码」这种无意义描述
84
-
85
- ### 好的示例
86
-
87
- ```
88
- feat(权限): 添加基于 RBAC 的细粒度权限控制
89
- fix(支付): 修复微信支付回调签名验证失败的问题
90
- perf(列表页): 优化大数据量表格的虚拟滚动渲染
91
- refactor(网关): 将单体网关拆分为独立微服务
92
- ```
93
-
94
- ### 反面示例
95
-
96
- ```
97
- # 以下写法应避免
98
- fix: 修了一个 bug
99
- feat: 更新代码
100
- chore: 改了点东西
101
- ```
102
-
103
- ## 4. Body 编写规范
104
-
105
- Body 用于详细说明本次变更的动机、方案和影响。
106
-
107
- ### 编写要点
108
-
109
- - 说明**为什么**要做这个改动(背景/原因)
110
- - 说明**怎么做**的(技术方案摘要)
111
- - 说明**影响范围**(哪些模块、接口受影响)
112
- - 每行不超过 72 个字符(中文约 36 个汉字)
113
- - 正文与标题之间空一行
114
-
115
- ### Body 模板
116
-
117
- ```
118
- <改动背景和原因>
119
-
120
- 技术方案:
121
- - <方案要点 1>
122
- - <方案要点 2>
123
-
124
- 影响范围:<受影响的模块或服务>
125
- ```
126
-
127
- ## 5. Breaking Changes 标注
128
-
129
- 当提交包含不兼容变更时,必须在 footer 中标注。
130
-
131
- ### 格式一:footer 标注
132
-
133
- ```
134
- feat(接口): 重构用户信息返回结构
135
-
136
- 将用户接口返回的扁平结构改为嵌套结构,前端需同步调整字段取值路径。
137
-
138
- BREAKING CHANGE: /api/user/info 返回结构变更
139
- - avatar 字段移入 profile 对象
140
- - 移除已废弃的 nickname 字段,统一使用 displayName
141
- ```
142
-
143
- ### 格式二:type 后加感叹号
144
-
145
- ```
146
- feat(接口)!: 重构用户信息返回结构
147
- ```
148
-
149
- ### 团队约定
150
-
151
- - 涉及数据库表结构变更 -> 必须标注 BREAKING CHANGE
152
- - 涉及公共 API 参数/返回值变更 -> 必须标注
153
- - 涉及配置文件格式变更 -> 必须标注
154
- - 标注时须写明迁移方法或升级步骤
155
-
156
- ## 6. Issue 关联
157
-
158
- ### GitHub 格式
159
-
160
- ```
161
- Closes #128
162
- Refs #129, #130
163
- ```
164
-
165
- ### Gitee 格式
166
-
167
- ```
168
- Closes #I5ABC1
169
- 相关需求: https://gitee.com/org/repo/issues/I5ABC1
170
- ```
171
-
172
- ### Coding 格式
173
-
174
- ```
175
- 关联 Coding 缺陷 #12345
176
- fixed=project-2024/issues/678
177
- ```
178
-
179
- ### 通用写法
180
-
181
- ```
182
- # footer 中关联多个平台
183
- Closes #128
184
- Jira: PROJ-456
185
- 禅道: #789
186
- ```
187
-
188
- ## 7. Changelog 自动生成配置
189
-
190
- ### 安装 conventional-changelog
191
-
192
- ```bash
193
- npm install -D conventional-changelog-cli conventional-changelog-conventionalcommits
194
- ```
195
-
196
- ### package.json 脚本
197
-
198
- ```json
199
- {
200
- "scripts": {
201
- "changelog": "conventional-changelog -p conventionalcommits -i CHANGELOG.md -s",
202
- "changelog:all": "conventional-changelog -p conventionalcommits -i CHANGELOG.md -s -r 0",
203
- "release": "standard-version"
204
- }
205
- }
206
- ```
207
-
208
- ### .versionrc.js 中文配置
209
-
210
- ```javascript
211
- module.exports = {
212
- types: [
213
- { type: 'feat', section: '新功能' },
214
- { type: 'fix', section: '缺陷修复' },
215
- { type: 'perf', section: '性能优化' },
216
- { type: 'refactor', section: '代码重构' },
217
- { type: 'docs', section: '文档更新' },
218
- { type: 'test', section: '测试' },
219
- { type: 'chore', section: '构建/工具', hidden: true },
220
- { type: 'ci', section: '持续集成', hidden: true },
221
- { type: 'style', section: '代码格式', hidden: true }
222
- ],
223
- commitUrlFormat: '{{host}}/{{owner}}/{{repository}}/commit/{{hash}}',
224
- compareUrlFormat: '{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}'
225
- }
226
- ```
227
-
228
- ## 8. commitlint 中文配置
229
-
230
- ### 安装
231
-
232
- ```bash
233
- npm install -D @commitlint/cli @commitlint/config-conventional
234
- ```
235
-
236
- ### commitlint.config.js
237
-
238
- ```javascript
239
- module.exports = {
240
- extends: ['@commitlint/config-conventional'],
241
- rules: {
242
- 'type-enum': [2, 'always', [
243
- 'feat', 'fix', 'docs', 'style', 'refactor',
244
- 'perf', 'test', 'chore', 'ci', 'revert'
245
- ]],
246
- 'type-case': [2, 'always', 'lower-case'],
247
- 'type-empty': [2, 'never'],
248
- 'subject-empty': [2, 'never'],
249
- 'subject-max-length': [2, 'always', 100],
250
- // 允许中文字符,关闭 subject-case 限制
251
- 'subject-case': [0],
252
- // 关闭 header-max-length 或放宽(中文占宽较大)
253
- 'header-max-length': [2, 'always', 120],
254
- 'body-max-line-length': [1, 'always', 200],
255
- 'footer-max-line-length': [1, 'always', 200]
256
- },
257
- prompt: {
258
- messages: {
259
- type: '选择提交类型:',
260
- scope: '输入影响范围(可选):',
261
- subject: '填写简短描述:',
262
- body: '填写详细描述(可选,使用 "|" 换行):',
263
- breaking: '列出不兼容变更(可选):',
264
- footer: '关联的 Issue(可选,例如 #123):',
265
- confirmCommit: '确认提交以上信息?'
266
- }
267
- }
268
- }
269
- ```
270
-
271
- ## 9. husky + lint-staged 集成
272
-
273
- ### 安装与初始化
274
-
275
- ```bash
276
- npm install -D husky lint-staged
277
- npx husky init
278
- ```
279
-
280
- ### 配置 commit-msg 钩子
281
-
282
- ```bash
283
- # .husky/commit-msg
284
- npx --no -- commitlint --edit "$1"
285
- ```
286
-
287
- ### 配置 pre-commit 钩子
288
-
289
- ```bash
290
- # .husky/pre-commit
291
- npx lint-staged
292
- ```
293
-
294
- ### lint-staged 配置(package.json)
295
-
296
- ```json
297
- {
298
- "lint-staged": {
299
- "*.{js,ts,jsx,tsx,vue}": [
300
- "eslint --fix",
301
- "prettier --write"
302
- ],
303
- "*.{css,scss,less}": [
304
- "stylelint --fix",
305
- "prettier --write"
306
- ],
307
- "*.md": [
308
- "prettier --write"
309
- ]
310
- }
311
- }
312
- ```
313
-
314
- ### 交互式提交(可选)
315
-
316
- ```bash
317
- npm install -D commitizen cz-conventional-changelog
318
-
319
- # package.json 中添加
320
- {
321
- "config": {
322
- "commitizen": {
323
- "path": "cz-conventional-changelog"
324
- }
325
- },
326
- "scripts": {
327
- "commit": "cz"
328
- }
329
- }
330
- ```
331
-
332
- 运行 `npm run commit` 即可进入交互式提交引导。
333
-
334
- ## 10. 团队规范检查清单
335
-
336
- ### 提交前自查
337
-
338
- - [ ] type 是否正确选择(feat/fix/docs/...)
339
- - [ ] scope 是否准确描述了影响模块
340
- - [ ] subject 是否为动宾短语且不超过 50 字符
341
- - [ ] subject 末尾是否去掉了句号
342
- - [ ] body 是否说明了变更原因和方案
343
- - [ ] 不兼容变更是否标注了 BREAKING CHANGE
344
- - [ ] 相关 Issue 是否已关联
345
- - [ ] 一次提交是否只做了一件事(原子性)
346
-
347
- ### 团队落地步骤
348
-
349
- 1. **工具链配置**:按上述步骤配置 commitlint + husky,让规范可执行
350
- 2. **模板共享**:将 `.commitlintrc`、`.husky/` 等配置提交到仓库
351
- 3. **团队培训**:组织 15 分钟的规范说明会,演示工具使用
352
- 4. **Code Review**:Review 时关注 commit message 质量
353
- 5. **持续迭代**:每季度回顾规范执行情况,根据团队反馈调整
354
-
355
- ### 常见问题
356
-
357
- **Q: 中英文混排时空格怎么处理?**
358
- A: 中文与英文/数字之间加一个空格,如「添加 Redis 缓存」。
359
-
360
- **Q: scope 用中文还是英文?**
361
- A: 团队内统一即可。推荐中文(可读性好),但需在 commitlint 中关闭 scope-case 检查。
362
-
363
- **Q: 多人协作时如何保证规范一致?**
364
- A: 靠工具而非靠自觉。配置好 husky + commitlint,不符合规范的提交会被拦截。