@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,17 +0,0 @@
|
|
|
1
|
-
# __MODULE_NAME__ Archive
|
|
2
|
-
|
|
3
|
-
## Closure
|
|
4
|
-
|
|
5
|
-
| Item | Link |
|
|
6
|
-
| --- | --- |
|
|
7
|
-
|
|
8
|
-
## Learning Proposals
|
|
9
|
-
|
|
10
|
-
| Finding | Target | Evidence |
|
|
11
|
-
| --- | --- | --- |
|
|
12
|
-
|
|
13
|
-
## Documentation Feedback
|
|
14
|
-
|
|
15
|
-
- No-update rationale:
|
|
16
|
-
- Created from the ZSK module template; archive has not run yet.
|
|
17
|
-
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# __MODULE_NAME__ Commit
|
|
2
|
-
|
|
3
|
-
## Commit Evidence
|
|
4
|
-
|
|
5
|
-
| Item | Evidence |
|
|
6
|
-
| --- | --- |
|
|
7
|
-
| Review gate | |
|
|
8
|
-
| Smoke gate | |
|
|
9
|
-
| Commit | |
|
|
10
|
-
|
|
11
|
-
## Documentation Feedback
|
|
12
|
-
|
|
13
|
-
- No-update rationale:
|
|
14
|
-
- Created from the ZSK module template; no commit evidence has been captured yet.
|
|
15
|
-
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# __MODULE_NAME__ Demo Outline
|
|
2
|
-
|
|
3
|
-
## Demo Flow
|
|
4
|
-
|
|
5
|
-
Use this section as the speaking order. The audience should be able to follow the demo from top to bottom without reading any appendix.
|
|
6
|
-
|
|
7
|
-
| Step | Show | Function / Business Point | Scenario | Source Alignment | Playwright Case | Presenter Line | Expected Visible Result | Next |
|
|
8
|
-
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
|
9
|
-
| 1 | Starting state and primary goal | | | PRD/SRS + Spec + Task + Test | `scenarios/<case>.spec.ts` | | | 2 |
|
|
10
|
-
| 2 | Core happy path / main value | | | PRD/SRS + Spec + Task + Test | `scenarios/<case>.spec.ts` | | | 3 |
|
|
11
|
-
| 3 | Required branch / role / validation / edge | | | PRD/SRS + Spec + Task + Test | `scenarios/<case>.spec.ts` | | | Final |
|
|
12
|
-
| Final | Final state, evidence, and known gaps | | | PRD/SRS + Spec + Task + Test | | summarize evidence and known gaps | | close |
|
|
13
|
-
|
|
14
|
-
## Opening
|
|
15
|
-
|
|
16
|
-
- Audience:
|
|
17
|
-
- One-sentence goal:
|
|
18
|
-
- Starting state:
|
|
19
|
-
- Primary user journey:
|
|
20
|
-
- What this demo proves:
|
|
21
|
-
|
|
22
|
-
## Coverage Alignment
|
|
23
|
-
|
|
24
|
-
Every required function point in the PRD/SRS should appear here, either as a demo step or as a known gap.
|
|
25
|
-
|
|
26
|
-
| Function / Business Point | PRD / SRS Need | Spec / Design Contract | Task Scope | Test Case / Assertion | Demo Step | Status |
|
|
27
|
-
| --- | --- | --- | --- | --- | --- | --- |
|
|
28
|
-
| | | | | | 1 | covered |
|
|
29
|
-
| | | | | | 2 | covered |
|
|
30
|
-
| | | | | | 3 | covered |
|
|
31
|
-
|
|
32
|
-
## Rehearsal Checklist
|
|
33
|
-
|
|
34
|
-
| Demo Step | Browser Use Handoff | Playwright Case | Rehearsed | Evidence | Ready |
|
|
35
|
-
| --- | --- | --- | --- | --- | --- |
|
|
36
|
-
| 1 | | | no | trace/report/screenshot | no |
|
|
37
|
-
| 2 | | | no | trace/report/screenshot | no |
|
|
38
|
-
| 3 | | | no | trace/report/screenshot | no |
|
|
39
|
-
|
|
40
|
-
## Pause Rules
|
|
41
|
-
|
|
42
|
-
- Pause if login/session state is lost.
|
|
43
|
-
- Pause if the UI no longer matches the prepared Playwright case.
|
|
44
|
-
- Pause if a P0/P1 function point cannot be shown.
|
|
45
|
-
- Do not improvise new clicks during the external demo; record the blocker and return to Demo Prep.
|
|
46
|
-
|
|
47
|
-
## Appendix: Prep Sources
|
|
48
|
-
|
|
49
|
-
| Source | Path / Link | Used For |
|
|
50
|
-
| --- | --- | --- |
|
|
51
|
-
| SRS / PRD | | user goal and scope |
|
|
52
|
-
| Spec / AC | | observable pass criteria |
|
|
53
|
-
| Test cases | | scenario steps and expected result |
|
|
54
|
-
| Browser Use handoff | | login state, visible target, candidate locators |
|
|
55
|
-
|
|
56
|
-
## Documentation Feedback
|
|
57
|
-
|
|
58
|
-
- No-update rationale:
|
|
59
|
-
- Created from the ZSK module template; no demo outline has been generated yet.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# __MODULE_NAME__ Demo Report
|
|
2
|
-
|
|
3
|
-
## Session
|
|
4
|
-
|
|
5
|
-
- Session id:
|
|
6
|
-
- Status: NOT_STARTED
|
|
7
|
-
- Mode:
|
|
8
|
-
|
|
9
|
-
## Coverage
|
|
10
|
-
|
|
11
|
-
| Function Point | FR/AC | Scenario | Result | Evidence | Issues |
|
|
12
|
-
| --- | --- | --- | --- | --- | --- |
|
|
13
|
-
|
|
14
|
-
## Reusable Scenarios
|
|
15
|
-
|
|
16
|
-
| Scenario | Source | Reuse Target | Evidence |
|
|
17
|
-
| --- | --- | --- | --- |
|
|
18
|
-
|
|
19
|
-
## Documentation Feedback
|
|
20
|
-
|
|
21
|
-
- No-update rationale:
|
|
22
|
-
- Created from the ZSK module template; no demo has been performed yet.
|
|
23
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# __MODULE_NAME__ Deploy
|
|
2
|
-
|
|
3
|
-
## Deployment
|
|
4
|
-
|
|
5
|
-
| Environment | URL | Version | Result | Evidence |
|
|
6
|
-
| --- | --- | --- | --- | --- |
|
|
7
|
-
|
|
8
|
-
## Rollback
|
|
9
|
-
|
|
10
|
-
- Owner:
|
|
11
|
-
- Command:
|
|
12
|
-
- Notes:
|
|
13
|
-
|
|
14
|
-
## Documentation Feedback
|
|
15
|
-
|
|
16
|
-
- No-update rationale:
|
|
17
|
-
- Created from the ZSK module template; no deployment has been performed yet.
|
|
18
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# __MODULE_NAME__ Ready
|
|
2
|
-
|
|
3
|
-
## Gate
|
|
4
|
-
|
|
5
|
-
| Issue | Fix Evidence | Deployment | Ready |
|
|
6
|
-
| --- | --- | --- | --- |
|
|
7
|
-
|
|
8
|
-
## Documentation Feedback
|
|
9
|
-
|
|
10
|
-
- No-update rationale:
|
|
11
|
-
- Created from the ZSK module template; no fixes have been marked ready for verify yet.
|
|
12
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# __MODULE_NAME__ Scenarios
|
|
2
|
-
|
|
3
|
-
Reusable demo, verify, and regression scenarios for this module.
|
|
4
|
-
|
|
5
|
-
Use this index to keep human test cases, Playwright scenarios, and evidence links aligned with module FR/AC IDs. Scenario files should stay module-local and should be referenced from `module.yaml` when they become part of the verification baseline.
|
|
6
|
-
|
|
7
|
-
## Scenario Lifecycle
|
|
8
|
-
|
|
9
|
-
| Stage | Responsibility |
|
|
10
|
-
| --- | --- |
|
|
11
|
-
| Spec | Define scenario contract and FR/AC linkage |
|
|
12
|
-
| Design | Define locator/state/auth/evidence strategy |
|
|
13
|
-
| Task | Create Playwright skeleton and fixture work |
|
|
14
|
-
| Demo | Execute, record, and promote scenarios |
|
|
15
|
-
| Verify | Reuse scenarios for fix verification |
|
|
16
|
-
|
|
17
|
-
## Scenario Index
|
|
18
|
-
|
|
19
|
-
| Scenario | FR/AC Link | Automation | Evidence | Status |
|
|
20
|
-
| --- | --- | --- | --- | --- |
|
|
21
|
-
| `<scenario-name>` | `<FR/AC id>` | manual / Playwright / other | `<relative evidence path>` | draft / active / blocked / retired |
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { test, expect } from "@playwright/test";
|
|
2
|
-
|
|
3
|
-
test.describe("__MODULE_NAME__ demo scenarios", () => {
|
|
4
|
-
test("P0 happy path", async ({ page }) => {
|
|
5
|
-
test.skip(!process.env.ZSK_DEMO_BASE_URL, "Set ZSK_DEMO_BASE_URL to run this scenario.");
|
|
6
|
-
|
|
7
|
-
await page.goto(process.env.ZSK_DEMO_BASE_URL);
|
|
8
|
-
|
|
9
|
-
// Replace this with the scenario contract from spec.md and locator strategy from design.md.
|
|
10
|
-
await expect(page).toHaveURL(/.+/);
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# __MODULE_NAME__ Smoke
|
|
2
|
-
|
|
3
|
-
## Resource Contract
|
|
4
|
-
|
|
5
|
-
| Resource | Required | Source | Status | Used For | Blocker If Missing |
|
|
6
|
-
| --- | --- | --- | --- | --- | --- |
|
|
7
|
-
|
|
8
|
-
## Checks
|
|
9
|
-
|
|
10
|
-
| Check | Command | Result | Evidence |
|
|
11
|
-
| --- | --- | --- | --- |
|
|
12
|
-
|
|
13
|
-
## Test Alignment
|
|
14
|
-
|
|
15
|
-
| Test / Scenario | Source Requirement / Design / Issue | Expected Behavior | Accurate | Evidence |
|
|
16
|
-
| --- | --- | --- | --- | --- |
|
|
17
|
-
|
|
18
|
-
## Documentation Feedback
|
|
19
|
-
|
|
20
|
-
- No-update rationale:
|
|
21
|
-
- Created from the ZSK module template; no smoke has been performed yet.
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# Issue Taxonomy
|
|
2
|
-
|
|
3
|
-
Managed issue records belong under `.issues/` or the configured `.zsk/config.yaml#paths.issues` root.
|
|
4
|
-
|
|
5
|
-
Each module has a module index at `.issues/{module}/index.md`. The issue root has a global index at `.issues/index.md` with module totals. `zsk issue create` and `zsk issue update` refresh both indexes.
|
|
6
|
-
|
|
7
|
-
| Type | Concrete Issue Directory | Prefix |
|
|
8
|
-
| --- | --- | --- |
|
|
9
|
-
| Demo Issue | `.issues/{module}/{prefix}-0001-slug/` | `DEMO` |
|
|
10
|
-
| Smoke Issue | `.issues/{module}/{prefix}-0001-slug/` | `SMOKE` |
|
|
11
|
-
| Review Issue | `.issues/{module}/{prefix}-0001-slug/` | `REV` |
|
|
12
|
-
| Defect | `.issues/{module}/{prefix}-0001-slug/` | `DEFECT` |
|
|
13
|
-
| Verify Issue | `.issues/{module}/{prefix}-0001-slug/` | `VER` |
|
|
14
|
-
| Acceptance Issue | `.issues/{module}/{prefix}-0001-slug/` | `ACC` |
|
|
15
|
-
|
|
16
|
-
Stage directories such as `.issues/{module}/demo/index.md` may exist as stage views or evidence buckets. The authoritative status indexes are `.issues/{module}/index.md` and `.issues/index.md`.
|
|
17
|
-
|
|
18
|
-
`.raws/issues/` is reserved for imported external issue feeds or compatibility inputs.
|
|
19
|
-
|
|
20
|
-
## Required Intake
|
|
21
|
-
|
|
22
|
-
Every actionable issue should include:
|
|
23
|
-
|
|
24
|
-
- reproduction steps or triggering command;
|
|
25
|
-
- actual/current behavior;
|
|
26
|
-
- expected behavior;
|
|
27
|
-
- severity and rationale;
|
|
28
|
-
- environment/version/data source;
|
|
29
|
-
- evidence links;
|
|
30
|
-
- root-cause hypothesis and confidence;
|
|
31
|
-
- fix route;
|
|
32
|
-
- Documentation Feedback target or no-update rationale;
|
|
33
|
-
- regression guard.
|
|
34
|
-
- verification evidence and user/product confirmation before closing behavior-changing issues;
|
|
35
|
-
- updated module index and global issue index.
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Raw Snapshots
|
|
2
|
-
|
|
3
|
-
This directory is the default local snapshot root configured by `.zsk/config.yaml` `paths.raws`.
|
|
4
|
-
|
|
5
|
-
Do not treat this directory as the source-origin configuration. SRS, PRD, Figma, Modao, API contracts, test cases, and design assets can come from online URLs, remote repositories, or local files. Their origins belong in `.zsk/config.yaml`.
|
|
6
|
-
|
|
7
|
-
Start from `index.md` for the human/AI resource entry point. Use `manifest.json` as the generated machine index.
|
|
8
|
-
|
|
9
|
-
## Expected Contents
|
|
10
|
-
|
|
11
|
-
- `index.md`: human/AI navigation entry point for raw resources.
|
|
12
|
-
- `manifest.json`: machine-readable index maintained by `zsk prep` / `zsk sync`.
|
|
13
|
-
- `requirements/`: SRS, PRD, acceptance notes, and other requirement snapshots.
|
|
14
|
-
- `api-contracts/`: OpenAPI files, API schemas, or exported API notes.
|
|
15
|
-
- `backend-repositories/`: small backend repository extracts that prove API/domain behavior.
|
|
16
|
-
- `design-sources/`: Figma, Modao, design handoff, and MCP capture snapshots.
|
|
17
|
-
- `design-assets/`: Icons, images, tokens, and other design asset snapshots.
|
|
18
|
-
- `testing/`: QA cases, acceptance cases, release cases, and imported test assets.
|
|
19
|
-
|
|
20
|
-
These directories are local landing zones only. The source addresses still belong in `.zsk/config.yaml` `sources`, so a resource can be online, a git repository path, a Figma/Modao URL, or a local file.
|
|
21
|
-
|
|
22
|
-
## Rules
|
|
23
|
-
|
|
24
|
-
- Preserve upstream wording. Do not rewrite snapshots to resolve conflicts.
|
|
25
|
-
- Prefer new snapshots over overwriting historical design/API captures.
|
|
26
|
-
- Keep runtime screenshots, debug logs, HAR files, and failed verification evidence out of this directory.
|
|
27
|
-
- Skills must resolve this path from `.zsk/config.yaml`; they must not hard-code `.raws`.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# API Contracts Index
|
|
2
|
-
|
|
3
|
-
Use this directory for backend API contracts needed by the current project. Organize by backend service, not by frontend page.
|
|
4
|
-
|
|
5
|
-
## Organization
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
.raws/api-contracts/
|
|
9
|
-
├── index.md
|
|
10
|
-
└── {service}/
|
|
11
|
-
├── index.md
|
|
12
|
-
└── contracts/
|
|
13
|
-
└── {contract}.md
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Usage Rules
|
|
17
|
-
|
|
18
|
-
- Configure API repositories, OpenAPI URLs, or local source paths in `.zsk/config.yaml` `sources`.
|
|
19
|
-
- Prefer service-level folders such as `organization/`, `user/`, or `billing/`.
|
|
20
|
-
- Keep selected frontend-facing contracts under `{service}/contracts/`.
|
|
21
|
-
- If contracts are mirrored from another repo, record the original repository/ref/path in `.zsk/config.yaml`.
|
|
22
|
-
- Avoid copying whole backend change directories unless the frontend module truly needs that context.
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Backend Repositories
|
|
2
|
-
|
|
3
|
-
Store lightweight backend repository snapshots here when a module needs API or domain evidence from server code.
|
|
4
|
-
|
|
5
|
-
Prefer small, provenance-rich extracts over full repository dumps:
|
|
6
|
-
|
|
7
|
-
- OpenAPI or generated API contract files.
|
|
8
|
-
- Route/controller index excerpts that prove endpoint behavior.
|
|
9
|
-
- DTO/schema/type definitions used by frontend contracts.
|
|
10
|
-
- README or integration notes that define runtime requirements.
|
|
11
|
-
|
|
12
|
-
Record the real repository origin in `.zsk/config.yaml` `sources`; this directory is only the local snapshot landing zone.
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# Design Assets Index
|
|
2
|
-
|
|
3
|
-
Use this directory for design-layer static assets: icons, images, theme tokens, CSS exports, screenshots, and other files consumed by implementation.
|
|
4
|
-
|
|
5
|
-
## Organization
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
.raws/design-assets/
|
|
9
|
-
├── index.md
|
|
10
|
-
└── {module}/
|
|
11
|
-
├── index.md
|
|
12
|
-
├── *.json
|
|
13
|
-
├── *.css
|
|
14
|
-
└── {YYYY-MM-DD}-{snapshot}/
|
|
15
|
-
├── description.md
|
|
16
|
-
├── screenshot-main.png
|
|
17
|
-
└── screenshot-{state}.png
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Usage Rules
|
|
21
|
-
|
|
22
|
-
- Group assets by frontend module when possible.
|
|
23
|
-
- Reference assets from `docs/{module}/design.md` or module-specific design handoff docs.
|
|
24
|
-
- Record token/icon/component mapping decisions in module docs, not only in asset files.
|
|
25
|
-
- Keep runtime verification screenshots under `.issues/`, not here.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Design Sources Index
|
|
2
|
-
|
|
3
|
-
Use this directory for source-level design captures: Figma, Modao, design handoff exports, MCP readouts, and page/node metadata.
|
|
4
|
-
|
|
5
|
-
## Organization
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
.raws/design-sources/
|
|
9
|
-
├── index.md
|
|
10
|
-
└── {module-or-product-area}/
|
|
11
|
-
├── index.md
|
|
12
|
-
├── figma.json
|
|
13
|
-
├── modao.json
|
|
14
|
-
└── {YYYY-MM-DD}-{snapshot}/
|
|
15
|
-
├── description.md
|
|
16
|
-
└── raw/
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Usage Rules
|
|
20
|
-
|
|
21
|
-
- Configure Figma/Modao URLs and node IDs in `.zsk/config.yaml` `sources`.
|
|
22
|
-
- Keep source captures separate from implementation docs.
|
|
23
|
-
- Use `description.md` when a snapshot needs human-readable layout, token, state, or interaction notes.
|
|
24
|
-
- Treat raw MCP responses as cacheable unless the project chooses to commit them.
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# .raws — Raw Resource Index
|
|
2
|
-
|
|
3
|
-
This file is the human/AI entry point for upstream facts and local snapshots. It separates source configuration from local snapshot storage.
|
|
4
|
-
|
|
5
|
-
## Directory Contract
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
.raws/
|
|
9
|
-
├── README.md
|
|
10
|
-
├── index.md # this navigation index
|
|
11
|
-
├── manifest.json # generated machine index, refreshed by zsk prep
|
|
12
|
-
├── requirements/ # SRS, PRD, acceptance notes, requirement snapshots
|
|
13
|
-
│ └── index.md
|
|
14
|
-
├── api-contracts/ # API contracts, OpenAPI files, backend repo extracts
|
|
15
|
-
│ └── index.md
|
|
16
|
-
├── backend-repositories/ # lightweight backend repo extracts
|
|
17
|
-
│ └── index.md
|
|
18
|
-
├── design-sources/ # Figma, Modao, MCP, design handoff captures
|
|
19
|
-
│ └── index.md
|
|
20
|
-
├── design-assets/ # icons, images, tokens, screenshots, raw design assets
|
|
21
|
-
│ └── index.md
|
|
22
|
-
└── testing/ # QA, acceptance, release, and imported test assets
|
|
23
|
-
└── index.md
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Source Configuration
|
|
27
|
-
|
|
28
|
-
Real origins belong in `.zsk/config.yaml` `sources`. A source can be an online URL, git repository, Figma/Modao URL, OpenAPI location, or local file. Use `snapshot` only when the resource is materialized under `.raws/`.
|
|
29
|
-
|
|
30
|
-
`manifest.json` is generated by `zsk prep` and records configured resources, snapshot existence, size, hash, and sync method. Do not edit it by hand unless recovering from a broken sync.
|
|
31
|
-
|
|
32
|
-
## Categories
|
|
33
|
-
|
|
34
|
-
| Category | Entry | Typical source types |
|
|
35
|
-
|---|---|---|
|
|
36
|
-
| Requirements | `requirements/index.md` | `srs`, `prd`, `manual` |
|
|
37
|
-
| API contracts | `api-contracts/index.md` | `api_contract`, `vendor_doc` |
|
|
38
|
-
| Backend repositories | `backend-repositories/index.md` | `backend_repo`, git repository extracts |
|
|
39
|
-
| Design sources | `design-sources/index.md` | `design`, Figma, Modao, MCP |
|
|
40
|
-
| Design assets | `design-assets/index.md` | `design_asset`, tokens, images |
|
|
41
|
-
| Testing assets | `testing/index.md` | `test_case`, QA sheets, acceptance cases |
|
|
42
|
-
|
|
43
|
-
## Boundary With Docs And Issues
|
|
44
|
-
|
|
45
|
-
| Directory | Purpose | Runtime screenshots/logs |
|
|
46
|
-
|---|---|---|
|
|
47
|
-
| `.raws/` | Upstream facts and mirrored snapshots | No |
|
|
48
|
-
| `docs/` | Human-authored module proposal/spec/design/tasks/verification | No |
|
|
49
|
-
| `.issues/` | Local bugs, verification evidence, debug logs, screenshots | Yes |
|
|
50
|
-
|
|
51
|
-
## Rules
|
|
52
|
-
|
|
53
|
-
- Preserve upstream wording in snapshots.
|
|
54
|
-
- Prefer appending new snapshots over overwriting historical captures.
|
|
55
|
-
- Put source URLs and local origins in `.zsk/config.yaml`, not in scattered notes.
|
|
56
|
-
- Keep runtime evidence, failed verification artifacts, HAR files, and debug logs under `.issues/`.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Requirements Index
|
|
2
|
-
|
|
3
|
-
Use this directory for local snapshots of SRS, PRD, acceptance notes, product decisions, and other requirement documents.
|
|
4
|
-
|
|
5
|
-
## Organization
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
.raws/requirements/
|
|
9
|
-
├── index.md
|
|
10
|
-
├── srs.md
|
|
11
|
-
├── prd.md
|
|
12
|
-
└── {source-or-date}/
|
|
13
|
-
├── page.md
|
|
14
|
-
├── comments.json
|
|
15
|
-
└── attachments/
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Usage Rules
|
|
19
|
-
|
|
20
|
-
- Configure real origins in `.zsk/config.yaml` `sources`.
|
|
21
|
-
- Use this directory for immutable or append-only snapshots.
|
|
22
|
-
- Reference requirement snapshots from `docs/{module}/proposal.md` and `docs/{module}/spec.md`.
|
|
23
|
-
- Do not rewrite upstream text to resolve conflicts; document conflict analysis in module docs or `.issues/`.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Testing Assets Index
|
|
2
|
-
|
|
3
|
-
Use this directory for upstream or imported test assets: QA sheets, acceptance cases, release cases, manual verification scripts, and exported test documents.
|
|
4
|
-
|
|
5
|
-
## Organization
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
.raws/testing/
|
|
9
|
-
├── index.md
|
|
10
|
-
├── qa-cases.md
|
|
11
|
-
├── acceptance-cases.md
|
|
12
|
-
└── {source-or-release}/
|
|
13
|
-
├── cases.md
|
|
14
|
-
└── cases.xlsx
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Usage Rules
|
|
18
|
-
|
|
19
|
-
- Configure real test case origins in `.zsk/config.yaml` `sources`.
|
|
20
|
-
- Map module-level raw cases in `docs/{module}/module.yaml` `tests.raw_cases` or `sources.testing`.
|
|
21
|
-
- Derived cases and automated tests belong in module docs or code test files.
|
|
22
|
-
- `zsk check` treats non-index files here as raw test assets that should be mapped to a module.
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# ZSK Learning
|
|
2
|
-
|
|
3
|
-
Project feedback and learning proposals belong here. Learning artifacts may propose changes to templates, constraints, skills, or packs, but they must not auto-mutate core assets.
|
|
4
|
-
|
|
5
|
-
## Rules
|
|
6
|
-
|
|
7
|
-
- Project-specific lessons stay in module archive docs or `docs/SYSTEM-SPEC.md`.
|
|
8
|
-
- Reusable improvements become proposals under `.zsk/learning/proposals/`.
|
|
9
|
-
- Core zsk changes require review, evidence, and a regression prompt before promotion.
|
|
10
|
-
- Learning proposals may target harness constraints, templates, resource maps, root skills, or optional packs; they do not edit those targets automatically.
|
|
11
|
-
|
|
12
|
-
## Proposal Template
|
|
13
|
-
|
|
14
|
-
Use `harness/learning/proposal-template.md` from the installed zsk source as the canonical shape.
|
|
@@ -1,55 +0,0 @@
|
|
|
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,53 +0,0 @@
|
|
|
1
|
-
# System Spec
|
|
2
|
-
|
|
3
|
-
This file defines project-level behavior rules for humans and AI agents. Keep stable constraints here, and keep machine-readable paths and source origins in `.zsk/config.yaml`.
|
|
4
|
-
|
|
5
|
-
## Source Priority
|
|
6
|
-
|
|
7
|
-
When sources conflict, use this priority order until the project overrides it:
|
|
8
|
-
|
|
9
|
-
1. `docs/SYSTEM-SPEC.md`
|
|
10
|
-
2. `.zsk/config.yaml`
|
|
11
|
-
3. Project sources listed in `.zsk/config.yaml`
|
|
12
|
-
4. Module sources listed in `docs/{module}/module.yaml`
|
|
13
|
-
5. `docs/{module}/spec.md`
|
|
14
|
-
6. `docs/{module}/design.md`
|
|
15
|
-
|
|
16
|
-
If two upstream sources conflict, do not silently choose one. Record the conflict under the configured issue root, then ask for confirmation before changing accepted specs or designs.
|
|
17
|
-
|
|
18
|
-
## Store Policy
|
|
19
|
-
|
|
20
|
-
- `paths.raws` stores local snapshots of upstream facts only.
|
|
21
|
-
- `paths.docs` stores digested module knowledge, decisions, tasks, and verification.
|
|
22
|
-
- `paths.issues` stores defects, local verification evidence, screenshots, logs, and retest records.
|
|
23
|
-
- Runtime screenshots, debug logs, HAR files, and failed verification artifacts must not be stored under the docs root.
|
|
24
|
-
|
|
25
|
-
## Testing Policy
|
|
26
|
-
|
|
27
|
-
Test cases are first-class project assets.
|
|
28
|
-
|
|
29
|
-
- Original QA, acceptance, release, and manually supplied test cases belong in configured project sources and may be snapshotted under `paths.raws`.
|
|
30
|
-
- Module-derived test cases belong under each module's configured docs output.
|
|
31
|
-
- AI coding must be TDD-driven from raw and module-derived test cases.
|
|
32
|
-
- A task is not done until the relevant test case is covered by automated tests or recorded as runtime/manual verification evidence.
|
|
33
|
-
|
|
34
|
-
## Documentation Feedback Policy
|
|
35
|
-
|
|
36
|
-
Every project stage must feed confirmed conversation outcomes back into durable files.
|
|
37
|
-
|
|
38
|
-
Required stage record:
|
|
39
|
-
|
|
40
|
-
```md
|
|
41
|
-
## Documentation Feedback
|
|
42
|
-
|
|
43
|
-
- Conversation decisions captured:
|
|
44
|
-
- {decision or "None"}
|
|
45
|
-
- Durable files updated:
|
|
46
|
-
- `{path}`: {what changed and why}
|
|
47
|
-
- Source links:
|
|
48
|
-
- `{path or issue}`: {source role}
|
|
49
|
-
- No-update rationale:
|
|
50
|
-
- {required when no file changed}
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
A stage is not complete until its documentation feedback check is complete.
|