@culeo/specx 0.1.2 → 0.1.3

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": "@culeo/specx",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Install specx skills to AI coding agents (Claude Code, Codex, etc.)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -58,32 +58,50 @@ ELSE:
58
58
 
59
59
  1. 根据根因回退到对应环节修复
60
60
  2. 更新下游文档(如果上游改了,下游必须同步)
61
- 3. `04-tasks.md` 末尾追加验收 bug 记录:
61
+ 3. 在子需求目录下创建 bug 修复记录文件:
62
62
 
63
- ```markdown
64
- ### 验收 bug 记录
65
-
66
- | 时间 | 描述 | 根因环节 | 修复内容 | 状态 |
67
- |------|------|---------|---------|------|
68
- | {YYYY-MM-DD} | {bug描述} | spec / design / 代码 | {修复了什么} | ✅ |
63
+ ```
64
+ t-xxx/
65
+ ├── 00-子需求.md
66
+ ├── ...
67
+ ├── 04-tasks.md
68
+ └── fix-001-{简短描述}.md ← 新建
69
69
  ```
70
70
 
71
- > 如果 `04-tasks.md` 不存在,创建 `t-xxx/99-fix.md`
72
-
73
- #### Step A3️⃣ 更新文档状态
71
+ 如果已有 `fix-001`,编号递增为 `fix-002`。
74
72
 
75
- 涉及修改的文档,状态回退为 `draft`:
73
+ ##### fix-{编号}-{描述}.md 模板
76
74
 
77
- ```yaml
75
+ ```markdown
78
76
  ---
79
77
  status: draft
80
78
  updated: {YYYY-MM-DD}
81
79
  history:
82
- - "v{n}: 验收修复: {摘要}"
80
+ - "v1: 初始创建"
83
81
  ---
82
+
83
+ # {Bug 描述}
84
+
85
+ ## 发现场景
86
+ {验收时发现的问题}
87
+
88
+ ## 根因分析
89
+ {定位过程}
90
+
91
+ ### 根因环节
92
+ - [ ] spec 遗漏
93
+ - [ ] design 遗漏
94
+ - [ ] 代码实现错
95
+
96
+ ## 修复内容
97
+ {描述改了哪些代码或文档}
98
+
99
+ ## 验证
100
+ - [ ] 复现步骤不再触发
101
+ - [ ] 相关功能正常
84
102
  ```
85
103
 
86
- #### Step A4️⃣ 回到执行
104
+ #### Step A3️⃣ 回到执行
87
105
 
88
106
  修复完成后,回到 `specx-executing-plans` 继续执行修改后的任务。
89
107