@captain_z/zsk 1.6.0 → 1.7.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 +24 -32
- package/dist/bin.js +6 -4
- package/dist/bin.js.map +1 -1
- package/dist/commands/check.d.ts +1 -0
- package/dist/commands/check.js +188 -11
- package/dist/commands/check.js.map +1 -1
- package/dist/commands/config.js +1 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/demo.d.ts +1 -0
- package/dist/commands/demo.js +341 -36
- package/dist/commands/demo.js.map +1 -1
- package/dist/commands/issue.js +5 -5
- package/dist/commands/issue.js.map +1 -1
- package/dist/commands/module.js +11 -28
- package/dist/commands/module.js.map +1 -1
- package/dist/commands/prep.js +3 -3
- package/dist/commands/prep.js.map +1 -1
- package/dist/commands/project-init.js +60 -10
- package/dist/commands/project-init.js.map +1 -1
- package/dist/core/config.d.ts +13 -2
- package/dist/core/config.js +64 -11
- package/dist/core/config.js.map +1 -1
- package/dist/core/scaffolder.js +5 -2
- package/dist/core/scaffolder.js.map +1 -1
- package/dist/core/workspace-layout.d.ts +54 -0
- package/dist/core/workspace-layout.js +107 -0
- package/dist/core/workspace-layout.js.map +1 -0
- package/package.json +2 -2
- package/schemas/zsk-config.schema.json +25 -4
- package/templates/issue/default/issue.md +5 -5
- package/templates/module/frontend-module/module.yaml +4 -3
- package/templates/module/frontend-module/tasks.md +2 -2
- package/templates/project-init/.zsk/config.yaml +34 -24
- package/templates/project-init/.zsk/docs/PROJECT-CONFIG.md +39 -0
- package/templates/project-init/.zsk/docs/SYSTEM-SPEC.md +27 -0
- package/templates/project-init/{.issues → .zsk/issues}/README.md +19 -18
- package/templates/project-init/.zsk/issues/_taxonomy.md +35 -0
- package/templates/project-init/.zsk/modules/.gitkeep +1 -0
- package/templates/project-init/.zsk/plans/.gitkeep +1 -0
- package/templates/project-init/.zsk/playwright/.gitkeep +1 -0
- package/templates/project-init/.zsk/resources/.gitkeep +1 -0
- package/templates/module/frontend-module/acceptance.md +0 -18
- package/templates/module/frontend-module/archive.md +0 -17
- package/templates/module/frontend-module/commit.md +0 -15
- package/templates/module/frontend-module/demo-outline.md +0 -59
- package/templates/module/frontend-module/demo-report.md +0 -23
- package/templates/module/frontend-module/deploy.md +0 -18
- package/templates/module/frontend-module/ready.md +0 -12
- package/templates/module/frontend-module/review.md +0 -12
- package/templates/module/frontend-module/scenarios/index.md +0 -21
- package/templates/module/frontend-module/scenarios/p0-happy-path.spec.ts +0 -13
- package/templates/module/frontend-module/smoke.md +0 -21
- package/templates/module/frontend-module/verification.md +0 -6
- package/templates/module/frontend-module/verify.md +0 -12
- package/templates/project-init/.issues/_taxonomy.md +0 -35
- package/templates/project-init/.raws/README.md +0 -27
- package/templates/project-init/.raws/api-contracts/index.md +0 -22
- package/templates/project-init/.raws/backend-repositories/index.md +0 -12
- package/templates/project-init/.raws/design-assets/index.md +0 -25
- package/templates/project-init/.raws/design-sources/index.md +0 -24
- package/templates/project-init/.raws/index.md +0 -56
- package/templates/project-init/.raws/issues/index.md +0 -4
- package/templates/project-init/.raws/manifest.json +0 -4
- package/templates/project-init/.raws/requirements/index.md +0 -23
- package/templates/project-init/.raws/testing/index.md +0 -22
- package/templates/project-init/.zsk/checkpoints/index.md +0 -4
- package/templates/project-init/.zsk/learning/index.md +0 -14
- package/templates/project-init/.zsk/resource-manifest.json +0 -55
- package/templates/project-init/.zsk/workflow-state.json +0 -6
- package/templates/project-init/docs/SYSTEM-SPEC.md +0 -53
- package/templates/project-init/docs/_module-index.md +0 -15
- package/templates/project-init/project-config.md +0 -154
- /package/templates/project-init/.zsk/{learning/proposals → evidence}/.gitkeep +0 -0
- /package/templates/project-init/{.issues → .zsk/issues}/index.md +0 -0
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Module Index
|
|
2
|
-
|
|
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.
|
|
10
|
-
|
|
11
|
-
| Module | Name | Config | Status |
|
|
12
|
-
| --- | --- | --- | --- |
|
|
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`.
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
meta:
|
|
3
|
-
project_name: "<project-name>"
|
|
4
|
-
project_type: "<project-type>"
|
|
5
|
-
project_role: "<project-role>"
|
|
6
|
-
created: "<YYYY-MM-DD>"
|
|
7
|
-
maintainers: []
|
|
8
|
-
|
|
9
|
-
config:
|
|
10
|
-
machine_config: ".zsk/config.yaml"
|
|
11
|
-
system_spec: "docs/SYSTEM-SPEC.md"
|
|
12
|
-
|
|
13
|
-
paths:
|
|
14
|
-
raws_root: ".raws"
|
|
15
|
-
raws_index: ".raws/index.md"
|
|
16
|
-
raws_manifest: ".raws/manifest.json"
|
|
17
|
-
requirements_index: ".raws/requirements/index.md"
|
|
18
|
-
api_contracts_index: ".raws/api-contracts/index.md"
|
|
19
|
-
design_sources_index: ".raws/design-sources/index.md"
|
|
20
|
-
design_assets_index: ".raws/design-assets/index.md"
|
|
21
|
-
testing_index: ".raws/testing/index.md"
|
|
22
|
-
docs_root: "docs"
|
|
23
|
-
module_index: "docs/_module-index.md"
|
|
24
|
-
issues_root: ".issues"
|
|
25
|
-
issues_index: ".issues/README.md"
|
|
26
|
-
|
|
27
|
-
source_registry:
|
|
28
|
-
canonical: ".zsk/config.yaml#sources"
|
|
29
|
-
local_snapshot_root: ".raws"
|
|
30
|
-
generated_manifest: ".raws/manifest.json"
|
|
31
|
-
|
|
32
|
-
modules:
|
|
33
|
-
root: "docs"
|
|
34
|
-
index: "docs/_module-index.md"
|
|
35
|
-
module_config: "docs/{module}/module.yaml"
|
|
36
|
-
module_docs: "docs/{module}/proposal.md | spec.md | design.md | tasks.md | verification.md"
|
|
37
|
-
module_issues: ".issues/{module}"
|
|
38
|
-
|
|
39
|
-
scripts:
|
|
40
|
-
install: "<install command>"
|
|
41
|
-
dev: "<dev command>"
|
|
42
|
-
build: "<build command>"
|
|
43
|
-
lint: "<lint command>"
|
|
44
|
-
type_check: "<typecheck command>"
|
|
45
|
-
test: "<test command>"
|
|
46
|
-
format: "<format command>"
|
|
47
|
-
|
|
48
|
-
stack:
|
|
49
|
-
framework: "<framework>"
|
|
50
|
-
language: "<language>"
|
|
51
|
-
language_strict: true
|
|
52
|
-
build_tool: "<build-tool>"
|
|
53
|
-
css: "<css-stack>"
|
|
54
|
-
ui_lib: "<ui-library>"
|
|
55
|
-
test_framework: "<test-framework>"
|
|
56
|
-
|
|
57
|
-
quality:
|
|
58
|
-
documentation_feedback_required: true
|
|
59
|
-
runtime_evidence_root: ".issues"
|
|
60
|
-
raw_snapshot_root: ".raws"
|
|
61
|
-
docs_runtime_artifacts_forbidden: true
|
|
62
|
-
|
|
63
|
-
examples:
|
|
64
|
-
module_id: "sample-module"
|
|
65
|
-
issue_id: "BUG-0001"
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
# Project Config — <project-name>
|
|
69
|
-
|
|
70
|
-
> **定位**:项目级 AI 配置与机械查表锚点。
|
|
71
|
-
> **维护方式**:与 [docs/SYSTEM-SPEC.md](./docs/SYSTEM-SPEC.md) 和 [.zsk/config.yaml](./.zsk/config.yaml) 同步维护。
|
|
72
|
-
> **适用范围**:`.zsk/`、`.raws/`、`docs/`、`.issues/` 和项目代码。
|
|
73
|
-
> **当前结论**:本文件面向人和 AI;机器校验以 `.zsk/config.yaml` 为准。
|
|
74
|
-
|
|
75
|
-
---
|
|
76
|
-
|
|
77
|
-
## 1. 配置入口
|
|
78
|
-
|
|
79
|
-
| 文件 | 定位 | 维护方式 |
|
|
80
|
-
|---|---|---|
|
|
81
|
-
| `.zsk/config.yaml` | 机器可读配置:路径、sources、tools、module root | 由 AI/人工编辑,`zsk config check` 校验 |
|
|
82
|
-
| `project-config.md` | 人读项目配置:技术栈、脚本、路径、约束查表 | 与系统规约同步维护 |
|
|
83
|
-
| `docs/SYSTEM-SPEC.md` | 项目级规则、事实源优先级、质量门禁 | 稳定约束变更时更新 |
|
|
84
|
-
|
|
85
|
-
## 2. 资源入口
|
|
86
|
-
|
|
87
|
-
| 资源 | 统一入口 | 机器索引 / 配置 | 说明 |
|
|
88
|
-
|---|---|---|---|
|
|
89
|
-
| Raw facts | `.raws/index.md` | `.raws/manifest.json` | 上游事实与本地快照导航 |
|
|
90
|
-
| Requirements | `.raws/requirements/index.md` | `.zsk/config.yaml#sources` | SRS、PRD、验收说明 |
|
|
91
|
-
| API contracts | `.raws/api-contracts/index.md` | `.zsk/config.yaml#sources` | OpenAPI、后端仓库、接口契约 |
|
|
92
|
-
| Design sources | `.raws/design-sources/index.md` | `.zsk/config.yaml#sources` | Figma、Modao、MCP、设计交付源 |
|
|
93
|
-
| Design assets | `.raws/design-assets/index.md` | `.zsk/config.yaml#sources` | token、图片、图标、截图、静态设计资产 |
|
|
94
|
-
| Testing assets | `.raws/testing/index.md` | `.zsk/config.yaml#sources` + `docs/{module}/module.yaml` | QA、验收、发布测试用例 |
|
|
95
|
-
| Issues / evidence | `.issues/README.md` / `.issues/index.md` / `.issues/{module}/index.md` | `.zsk/config.yaml#paths.issues` | bug、截图、日志、复测证据、模块状态索引、全局统计 |
|
|
96
|
-
|
|
97
|
-
## 3. `.raws` / `docs` / `.issues` 边界
|
|
98
|
-
|
|
99
|
-
| 目录 | 存放内容 | 不应存放 |
|
|
100
|
-
|---|---|---|
|
|
101
|
-
| `.raws/` | 上游事实、外部资源快照、原始测试资产 | 本地运行截图、debug log、失败验证证据 |
|
|
102
|
-
| `docs/` | 模块 proposal/spec/design/tasks/verification、系统规约 | 运行时证据、HAR、控制台日志 |
|
|
103
|
-
| `.issues/` | 本地缺陷、验证证据、截图、debug log、复测记录 | 上游 SRS/API/Figma 原文快照 |
|
|
104
|
-
|
|
105
|
-
## 4. Module 文档如何引用资源
|
|
106
|
-
|
|
107
|
-
模块文档优先通过相对路径引用资源:
|
|
108
|
-
|
|
109
|
-
```md
|
|
110
|
-
> 原始需求:`.raws/requirements/{file}`
|
|
111
|
-
> API 契约:`.raws/api-contracts/{service}/contracts/{contract}.md`
|
|
112
|
-
> 设计来源:`.raws/design-sources/{module}/`
|
|
113
|
-
> 设计资产:`.raws/design-assets/{module}/`
|
|
114
|
-
> 测试资产:`.raws/testing/{case-file}`
|
|
115
|
-
> 本地问题:`.issues/{module}/BUG-0001-short-slug/issue.md`
|
|
116
|
-
> 模块索引:`.issues/{module}/index.md`
|
|
117
|
-
> 全局统计:`.issues/index.md`
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
模块级映射写入 `docs/{module}/module.yaml`,项目级来源写入 `.zsk/config.yaml#sources`。
|
|
121
|
-
|
|
122
|
-
## 5. Coding 约束查表
|
|
123
|
-
|
|
124
|
-
| 维度 | 当前项目值 | 说明 |
|
|
125
|
-
|---|---|---|
|
|
126
|
-
| Framework | `<framework>` | 从项目实际依赖填写 |
|
|
127
|
-
| Language | `<language>` | TypeScript / Java / Go / etc. |
|
|
128
|
-
| Build | `<build command>` | 与 package manager 保持一致 |
|
|
129
|
-
| Test | `<test command>` | CI 和本地验收都应可复用 |
|
|
130
|
-
| UI / Runtime verification | `playwright_cli / playwright_mcp / browser_use / computer_use` | Playwright 默认执行与证据;Browser Use 复用登录态;Computer Use 处理视觉/系统级场景 |
|
|
131
|
-
|
|
132
|
-
## 6. 冲突处理顺序
|
|
133
|
-
|
|
134
|
-
1. 用户明确指令 / 仓库 `AGENTS.md`
|
|
135
|
-
2. `docs/SYSTEM-SPEC.md`
|
|
136
|
-
3. `project-config.md`
|
|
137
|
-
4. `.zsk/config.yaml`
|
|
138
|
-
5. `.raws/` 中的上游事实源
|
|
139
|
-
6. `docs/{module}/proposal.md|spec.md|design.md|tasks.md`
|
|
140
|
-
7. 通用 skills / 模板
|
|
141
|
-
|
|
142
|
-
如果两个上游事实源冲突,不要静默选择。应在 `.issues/{module}/` 记录冲突,并在模块 `spec.md` 或 `design.md` 的 Documentation Feedback 中写明处理结果。
|
|
143
|
-
|
|
144
|
-
## 7. 维护清单
|
|
145
|
-
|
|
146
|
-
项目硬约束新增或调整时,至少同步检查:
|
|
147
|
-
|
|
148
|
-
- [ ] `.zsk/config.yaml`
|
|
149
|
-
- [ ] `project-config.md`
|
|
150
|
-
- [ ] `docs/SYSTEM-SPEC.md`
|
|
151
|
-
- [ ] `.raws/index.md` 与相关分类 `index.md`
|
|
152
|
-
- [ ] 受影响模块的 `docs/{module}/module.yaml`
|
|
153
|
-
- [ ] 受影响模块的 `docs/{module}/spec.md` / `design.md`
|
|
154
|
-
- [ ] 必要时新增或更新 `.issues/{module}/BUG-xxxx/issue.md`,并同步 `.issues/{module}/index.md` 与 `.issues/index.md`
|
|
File without changes
|
|
File without changes
|