@captain_z/zsk 1.4.3 → 1.6.0
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/README.md +64 -17
- package/dist/bin.js +174 -1
- package/dist/bin.js.map +1 -1
- package/dist/commands/add-flow.d.ts +1 -1
- package/dist/commands/add-flow.js +4 -9
- package/dist/commands/add-flow.js.map +1 -1
- package/dist/commands/add.d.ts +1 -0
- package/dist/commands/add.js +55 -11
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/check.js +10 -2
- package/dist/commands/check.js.map +1 -1
- package/dist/commands/demo.d.ts +31 -0
- package/dist/commands/demo.js +533 -0
- package/dist/commands/demo.js.map +1 -0
- package/dist/commands/issue.d.ts +8 -0
- package/dist/commands/issue.js +170 -6
- package/dist/commands/issue.js.map +1 -1
- package/dist/commands/module.js +23 -2
- package/dist/commands/module.js.map +1 -1
- package/dist/commands/project-init.js +1 -0
- package/dist/commands/project-init.js.map +1 -1
- package/dist/commands/remove.js +5 -7
- package/dist/commands/remove.js.map +1 -1
- package/dist/core/config.d.ts +14 -0
- package/dist/core/config.js.map +1 -1
- package/dist/core/installer.d.ts +5 -0
- package/dist/core/installer.js +105 -6
- package/dist/core/installer.js.map +1 -1
- package/dist/core/manifest.d.ts +8 -3
- package/dist/core/manifest.js +27 -18
- package/dist/core/manifest.js.map +1 -1
- package/dist/core/skills.d.ts +3 -4
- package/dist/core/skills.js +34 -43
- package/dist/core/skills.js.map +1 -1
- package/dist/core/targets.js +1 -1
- package/dist/core/targets.js.map +1 -1
- package/package.json +2 -2
- package/schemas/module.schema.json +1 -1
- package/schemas/zsk-config.schema.json +122 -2
- package/templates/issue/default/assets/index.md +6 -0
- package/templates/issue/default/debug-logs/index.md +6 -0
- package/templates/issue/default/issue.md +35 -2
- package/templates/module/frontend-module/acceptance.md +18 -0
- package/templates/module/frontend-module/archive.md +17 -0
- package/templates/module/frontend-module/commit.md +15 -0
- package/templates/module/frontend-module/demo-outline.md +59 -0
- package/templates/module/frontend-module/demo-report.md +23 -0
- package/templates/module/frontend-module/deploy.md +18 -0
- package/templates/module/frontend-module/design.md +12 -0
- package/templates/module/frontend-module/module.yaml +4 -1
- package/templates/module/frontend-module/proposal.md +7 -0
- package/templates/module/frontend-module/ready.md +12 -0
- package/templates/module/frontend-module/review.md +12 -0
- package/templates/module/frontend-module/scenarios/index.md +21 -0
- package/templates/module/frontend-module/scenarios/p0-happy-path.spec.ts +13 -0
- package/templates/module/frontend-module/smoke.md +21 -0
- package/templates/module/frontend-module/spec.md +14 -0
- package/templates/module/frontend-module/tasks.md +13 -0
- package/templates/module/frontend-module/verify.md +12 -0
- package/templates/project-init/.issues/README.md +17 -1
- package/templates/project-init/.issues/_taxonomy.md +35 -0
- package/templates/project-init/.issues/index.md +7 -0
- package/templates/project-init/.raws/README.md +2 -1
- package/templates/project-init/.raws/backend-repositories/index.md +12 -0
- package/templates/project-init/.raws/index.md +3 -0
- package/templates/project-init/.raws/issues/index.md +4 -0
- package/templates/project-init/.zsk/checkpoints/index.md +4 -0
- package/templates/project-init/.zsk/config.yaml +56 -1
- package/templates/project-init/.zsk/learning/index.md +14 -0
- package/templates/project-init/.zsk/learning/proposals/.gitkeep +1 -0
- package/templates/project-init/.zsk/resource-manifest.json +55 -0
- package/templates/project-init/.zsk/workflow-state.json +6 -0
- package/templates/project-init/docs/_module-index.md +9 -1
- package/templates/project-init/project-config.md +5 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"resources": {
|
|
4
|
+
"configured-sources": {
|
|
5
|
+
"source": ".zsk/config.yaml",
|
|
6
|
+
"status": "present",
|
|
7
|
+
"evidence": []
|
|
8
|
+
},
|
|
9
|
+
"resource-manifest": {
|
|
10
|
+
"source": ".zsk/resource-manifest.json",
|
|
11
|
+
"status": "present",
|
|
12
|
+
"evidence": []
|
|
13
|
+
},
|
|
14
|
+
"requirements": {
|
|
15
|
+
"source": ".raws/requirements",
|
|
16
|
+
"status": "missing",
|
|
17
|
+
"evidence": []
|
|
18
|
+
},
|
|
19
|
+
"api-contracts": {
|
|
20
|
+
"source": ".raws/api-contracts",
|
|
21
|
+
"status": "missing",
|
|
22
|
+
"evidence": []
|
|
23
|
+
},
|
|
24
|
+
"backend-repositories": {
|
|
25
|
+
"source": ".raws/backend-repositories",
|
|
26
|
+
"status": "missing",
|
|
27
|
+
"evidence": []
|
|
28
|
+
},
|
|
29
|
+
"design-sources": {
|
|
30
|
+
"source": ".raws/design-sources",
|
|
31
|
+
"status": "missing",
|
|
32
|
+
"evidence": []
|
|
33
|
+
},
|
|
34
|
+
"design-assets": {
|
|
35
|
+
"source": ".raws/design-assets",
|
|
36
|
+
"status": "missing",
|
|
37
|
+
"evidence": []
|
|
38
|
+
},
|
|
39
|
+
"test-cases": {
|
|
40
|
+
"source": ".raws/testing",
|
|
41
|
+
"status": "missing",
|
|
42
|
+
"evidence": []
|
|
43
|
+
},
|
|
44
|
+
"issue-records": {
|
|
45
|
+
"source": ".issues",
|
|
46
|
+
"status": "present",
|
|
47
|
+
"evidence": []
|
|
48
|
+
},
|
|
49
|
+
"learning-proposals": {
|
|
50
|
+
"source": ".zsk/learning/proposals",
|
|
51
|
+
"status": "present",
|
|
52
|
+
"evidence": []
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# Module Index
|
|
2
2
|
|
|
3
|
-
This file is maintained by `zsk prep` and AI-assisted module discovery.
|
|
3
|
+
This file is the entry point for project modules. It is maintained by `zsk prep`, `zsk module init`, and AI-assisted module discovery.
|
|
4
|
+
|
|
5
|
+
Use it to answer three questions before starting a skill stage:
|
|
6
|
+
|
|
7
|
+
- which modules exist;
|
|
8
|
+
- where each module's `module.yaml` lives;
|
|
9
|
+
- whether the module is ready for proposal/spec/design/task/coding work.
|
|
4
10
|
|
|
5
11
|
| Module | Name | Config | Status |
|
|
6
12
|
| --- | --- | --- | --- |
|
|
7
13
|
| `<module-id>` | `<module-name>` | `docs/<module-id>/module.yaml` | pending |
|
|
14
|
+
|
|
15
|
+
Status values are project-owned. Recommended baseline: `pending`, `active`, `blocked`, `verified`, `archived`.
|
|
@@ -92,7 +92,7 @@ examples:
|
|
|
92
92
|
| Design sources | `.raws/design-sources/index.md` | `.zsk/config.yaml#sources` | Figma、Modao、MCP、设计交付源 |
|
|
93
93
|
| Design assets | `.raws/design-assets/index.md` | `.zsk/config.yaml#sources` | token、图片、图标、截图、静态设计资产 |
|
|
94
94
|
| Testing assets | `.raws/testing/index.md` | `.zsk/config.yaml#sources` + `docs/{module}/module.yaml` | QA、验收、发布测试用例 |
|
|
95
|
-
| Issues / evidence | `.issues/README.md` | `.zsk/config.yaml#paths.issues` | bug
|
|
95
|
+
| Issues / evidence | `.issues/README.md` / `.issues/index.md` / `.issues/{module}/index.md` | `.zsk/config.yaml#paths.issues` | bug、截图、日志、复测证据、模块状态索引、全局统计 |
|
|
96
96
|
|
|
97
97
|
## 3. `.raws` / `docs` / `.issues` 边界
|
|
98
98
|
|
|
@@ -113,6 +113,8 @@ examples:
|
|
|
113
113
|
> 设计资产:`.raws/design-assets/{module}/`
|
|
114
114
|
> 测试资产:`.raws/testing/{case-file}`
|
|
115
115
|
> 本地问题:`.issues/{module}/BUG-0001-short-slug/issue.md`
|
|
116
|
+
> 模块索引:`.issues/{module}/index.md`
|
|
117
|
+
> 全局统计:`.issues/index.md`
|
|
116
118
|
```
|
|
117
119
|
|
|
118
120
|
模块级映射写入 `docs/{module}/module.yaml`,项目级来源写入 `.zsk/config.yaml#sources`。
|
|
@@ -125,7 +127,7 @@ examples:
|
|
|
125
127
|
| Language | `<language>` | TypeScript / Java / Go / etc. |
|
|
126
128
|
| Build | `<build command>` | 与 package manager 保持一致 |
|
|
127
129
|
| Test | `<test command>` | CI 和本地验收都应可复用 |
|
|
128
|
-
| UI / Runtime verification | `
|
|
130
|
+
| UI / Runtime verification | `playwright_cli / playwright_mcp / browser_use / computer_use` | Playwright 默认执行与证据;Browser Use 复用登录态;Computer Use 处理视觉/系统级场景 |
|
|
129
131
|
|
|
130
132
|
## 6. 冲突处理顺序
|
|
131
133
|
|
|
@@ -149,4 +151,4 @@ examples:
|
|
|
149
151
|
- [ ] `.raws/index.md` 与相关分类 `index.md`
|
|
150
152
|
- [ ] 受影响模块的 `docs/{module}/module.yaml`
|
|
151
153
|
- [ ] 受影响模块的 `docs/{module}/spec.md` / `design.md`
|
|
152
|
-
- [ ] 必要时新增或更新 `.issues/{module}/BUG-xxxx/issue.md`
|
|
154
|
+
- [ ] 必要时新增或更新 `.issues/{module}/BUG-xxxx/issue.md`,并同步 `.issues/{module}/index.md` 与 `.issues/index.md`
|