@captain_z/zsk-skills 1.4.2 → 1.5.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.
- package/README.md +84 -224
- package/bundles.yaml +43 -76
- package/core/acceptance/SKILL.md +61 -0
- package/core/archive/SKILL.md +59 -0
- package/core/coding/SKILL.md +60 -0
- package/core/commit/SKILL.md +57 -0
- package/core/demo/SKILL.md +140 -0
- package/core/deploy/SKILL.md +58 -0
- package/core/design/SKILL.md +72 -0
- package/core/issue/SKILL.md +74 -0
- package/core/prepare-resources/SKILL.md +79 -0
- package/core/proposal/SKILL.md +60 -0
- package/core/ready-for-verify/SKILL.md +58 -0
- package/core/review/SKILL.md +207 -0
- package/core/self-test/SKILL.md +60 -0
- package/core/spec/SKILL.md +72 -0
- package/core/standard-dev-flow/SKILL.md +73 -0
- package/core/task/SKILL.md +79 -0
- package/core/test-issue/SKILL.md +62 -0
- package/core/verify/SKILL.md +61 -0
- package/package.json +3 -8
- package/design-handoff/design-system/SKILL.md +0 -124
- package/design-handoff/figma-generate-hifi/SKILL.md +0 -131
- package/design-handoff/figma-to-code/SKILL.md +0 -266
- package/design-handoff/ue-mcp/SKILL.md +0 -185
- package/design-handoff/ux-wireframe/SKILL.md +0 -129
- package/frontend/a11y-web/SKILL.md +0 -170
- package/frontend/api-contract-ts/SKILL.md +0 -276
- package/frontend/design-frontend/SKILL.md +0 -184
- package/frontend/dor-dod-frontend/SKILL.md +0 -115
- package/frontend/feature-tasks-frontend/SKILL.md +0 -247
- package/frontend/i18n/SKILL.md +0 -297
- package/frontend/nfr-web/SKILL.md +0 -259
- package/frontend/performance-web/SKILL.md +0 -300
- package/frontend/react-components/SKILL.md +0 -212
- package/frontend/react-naming/SKILL.md +0 -225
- package/frontend/review-frontend/SKILL.md +0 -127
- package/frontend/security-web/SKILL.md +0 -287
- package/frontend/spec-frontend/SKILL.md +0 -142
- package/frontend/styling-system/SKILL.md +0 -275
- package/frontend/testing-web/SKILL.md +0 -253
- package/frontend/typescript/SKILL.md +0 -220
- package/meta/philosophy/SKILL.md +0 -237
- package/quality/a11y-principles/SKILL.md +0 -156
- package/quality/code-hygiene/SKILL.md +0 -137
- package/quality/release/SKILL.md +0 -210
- package/quality/security-owasp/SKILL.md +0 -158
- package/quality/testing-pyramid/SKILL.md +0 -194
- package/sdlc/archive/SKILL.md +0 -268
- package/sdlc/bugfix/SKILL.md +0 -183
- package/sdlc/bugfix-tasks/SKILL.md +0 -233
- package/sdlc/coding/SKILL.md +0 -219
- package/sdlc/design/SKILL.md +0 -280
- package/sdlc/dor-dod/SKILL.md +0 -121
- package/sdlc/feature/SKILL.md +0 -183
- package/sdlc/proposal/SKILL.md +0 -272
- package/sdlc/refactor/SKILL.md +0 -222
- package/sdlc/refactor-tasks/SKILL.md +0 -266
- package/sdlc/reviewing/SKILL.md +0 -163
- package/sdlc/spec/SKILL.md +0 -300
- package/sdlc/standard-dev-flow/SKILL.md +0 -115
- package/sdlc/task/SKILL.md +0 -117
- package/sdlc/task-evidence/SKILL.md +0 -221
- package/sdlc/task-structure/SKILL.md +0 -154
- package/sdlc/task-tracking/SKILL.md +0 -214
- package/sdlc/verify/SKILL.md +0 -180
- package/system/adr/SKILL.md +0 -170
- package/system/agent-orchestration/SKILL.md +0 -115
- package/system/architecture/SKILL.md +0 -183
- package/system/glossary/SKILL.md +0 -142
- package/system/nfr-baseline/SKILL.md +0 -157
- package/system/project-constraints-template/SKILL.md +0 -242
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zsk:archive
|
|
3
|
+
description: Use when accepted work must be closed and preserved; archives
|
|
4
|
+
artifacts, decisions, issues, and learning proposals without deleting current
|
|
5
|
+
docs or mutating standards silently.
|
|
6
|
+
kind: workflow-node
|
|
7
|
+
pack: core
|
|
8
|
+
stage: archive
|
|
9
|
+
requires:
|
|
10
|
+
- constraints.evidence-rules
|
|
11
|
+
domain: core
|
|
12
|
+
category: stage
|
|
13
|
+
tier: core
|
|
14
|
+
triggers:
|
|
15
|
+
- archive
|
|
16
|
+
- zsk:archive
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Archive
|
|
20
|
+
|
|
21
|
+
Use this stage to close an accepted iteration. Archive preserves the evidence trail and proposes learning updates; it does not silently rewrite project standards.
|
|
22
|
+
|
|
23
|
+
## Inputs
|
|
24
|
+
|
|
25
|
+
- Accepted proposal/spec/design/tasks and final diff summary.
|
|
26
|
+
- Acceptance decision, verify report, demo report, and issue summaries.
|
|
27
|
+
- Release notes, ADRs, postmortems, or learning proposals created during the work.
|
|
28
|
+
|
|
29
|
+
## Procedure
|
|
30
|
+
|
|
31
|
+
1. Collect the final artifact set and link it from the module archive or closeout note.
|
|
32
|
+
2. Summarize decisions, rejected alternatives, issue outcomes, and evidence.
|
|
33
|
+
3. Promote only durable lessons as learning proposals; leave policy changes for explicit review.
|
|
34
|
+
4. Mark the iteration closed in workflow state.
|
|
35
|
+
|
|
36
|
+
## Constraints
|
|
37
|
+
|
|
38
|
+
- Do not delete current module docs.
|
|
39
|
+
- Do not auto-edit core standards from a single iteration.
|
|
40
|
+
- Do not promote project-specific experience into core skills or constraints.
|
|
41
|
+
- Do not claim closure while blocking issues remain open.
|
|
42
|
+
- Keep runtime screenshots/logs in `.issues`, not `docs`.
|
|
43
|
+
|
|
44
|
+
## Outputs
|
|
45
|
+
|
|
46
|
+
- `archive` closeout.
|
|
47
|
+
- Optional learning proposals.
|
|
48
|
+
- Final issue and evidence index.
|
|
49
|
+
|
|
50
|
+
## Installed Harness Contract
|
|
51
|
+
|
|
52
|
+
This core skill is generated from root `skills/archive/SKILL.md` and is governed by the zsk harness. Enforce these rules even when the full harness files are not present in the target:
|
|
53
|
+
|
|
54
|
+
- Stage gates: do not skip required inputs, illegal transitions, blockers, or evidence checks.
|
|
55
|
+
- Evidence rules: no PASS / DONE / READY claim without linked command, artifact, issue, scenario, or human decision evidence.
|
|
56
|
+
- Source of truth: read configured resources before inventing intent; record conflicts instead of choosing silently.
|
|
57
|
+
- Issue taxonomy: route demo, self-test, review, test, verify, and acceptance findings to the correct issue type.
|
|
58
|
+
- Learning loop: reusable gaps become learning proposals; never mutate core constraints, templates, packs, or skills automatically.
|
|
59
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zsk:coding
|
|
3
|
+
description: Use when approved tasks are ready for implementation; requires
|
|
4
|
+
small auditable diffs, existing-pattern reuse, tests/evidence, and blocker
|
|
5
|
+
reporting instead of scope rewriting.
|
|
6
|
+
kind: workflow-node
|
|
7
|
+
pack: core
|
|
8
|
+
stage: coding
|
|
9
|
+
requires:
|
|
10
|
+
- constraints.stage-gates
|
|
11
|
+
- constraints.evidence-rules
|
|
12
|
+
domain: core
|
|
13
|
+
category: stage
|
|
14
|
+
tier: core
|
|
15
|
+
triggers:
|
|
16
|
+
- coding
|
|
17
|
+
- zsk:coding
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# Coding
|
|
21
|
+
|
|
22
|
+
Use this stage when tasks are approved and the next step is implementation. Coding owns small behavior changes, tests, and evidence capture; it does not redefine scope.
|
|
23
|
+
|
|
24
|
+
## Inputs
|
|
25
|
+
|
|
26
|
+
- Approved tasks with FR/AC links and expected evidence.
|
|
27
|
+
- Spec/design constraints, resource manifest, and current code.
|
|
28
|
+
- Existing tests and known blockers.
|
|
29
|
+
|
|
30
|
+
## Procedure
|
|
31
|
+
|
|
32
|
+
1. Read the task and the smallest required source set before editing.
|
|
33
|
+
2. Preserve existing behavior unless the task explicitly changes it.
|
|
34
|
+
3. Prefer deletion, reuse, and local patterns before new abstraction.
|
|
35
|
+
4. Add or update tests at the same risk level as the change.
|
|
36
|
+
5. Record commands, evidence, blockers, and changed files for `self-test`/`review`.
|
|
37
|
+
|
|
38
|
+
## Constraints
|
|
39
|
+
|
|
40
|
+
- No drive-by refactors, dependency additions, or unrelated formatting.
|
|
41
|
+
- No speculative abstraction reserved for imagined reuse.
|
|
42
|
+
- No skipping tests because the change “looks small”.
|
|
43
|
+
- Stop and report when a required resource is missing or contradicted.
|
|
44
|
+
|
|
45
|
+
## Outputs
|
|
46
|
+
|
|
47
|
+
- Implementation diff.
|
|
48
|
+
- Test/evidence notes.
|
|
49
|
+
- Blocker or ready-for-self-test status.
|
|
50
|
+
|
|
51
|
+
## Installed Harness Contract
|
|
52
|
+
|
|
53
|
+
This core skill is generated from root `skills/coding/SKILL.md` and is governed by the zsk harness. Enforce these rules even when the full harness files are not present in the target:
|
|
54
|
+
|
|
55
|
+
- Stage gates: do not skip required inputs, illegal transitions, blockers, or evidence checks.
|
|
56
|
+
- Evidence rules: no PASS / DONE / READY claim without linked command, artifact, issue, scenario, or human decision evidence.
|
|
57
|
+
- Source of truth: read configured resources before inventing intent; record conflicts instead of choosing silently.
|
|
58
|
+
- Issue taxonomy: route demo, self-test, review, test, verify, and acceptance findings to the correct issue type.
|
|
59
|
+
- Learning loop: reusable gaps become learning proposals; never mutate core constraints, templates, packs, or skills automatically.
|
|
60
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zsk:commit
|
|
3
|
+
description: Use only after self-test and review pass; prepares a scoped commit
|
|
4
|
+
with intent and evidence, and forbids staging unrelated dirty files or
|
|
5
|
+
continuing implementation.
|
|
6
|
+
kind: workflow-node
|
|
7
|
+
pack: core
|
|
8
|
+
stage: commit
|
|
9
|
+
requires:
|
|
10
|
+
- constraints.evidence-rules
|
|
11
|
+
domain: core
|
|
12
|
+
category: stage
|
|
13
|
+
tier: core
|
|
14
|
+
triggers:
|
|
15
|
+
- commit
|
|
16
|
+
- zsk:commit
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Commit
|
|
20
|
+
|
|
21
|
+
Use this stage only after self-test and review gates pass. Commit prepares a reviewable change record and preserves intent; it is not a place to continue implementation.
|
|
22
|
+
|
|
23
|
+
## Inputs
|
|
24
|
+
|
|
25
|
+
- Passing self-test evidence.
|
|
26
|
+
- Review verdict and resolved/waived findings.
|
|
27
|
+
- Final diff and issue links.
|
|
28
|
+
|
|
29
|
+
## Procedure
|
|
30
|
+
|
|
31
|
+
1. Inspect the final diff for unrelated files or generated churn.
|
|
32
|
+
2. Confirm evidence links are present for changed behavior.
|
|
33
|
+
3. Stage only files belonging to the approved scope.
|
|
34
|
+
4. Write a commit message that explains why the change was made and records test evidence.
|
|
35
|
+
|
|
36
|
+
## Constraints
|
|
37
|
+
|
|
38
|
+
- Do not commit failing gates.
|
|
39
|
+
- Do not stage unrelated dirty work.
|
|
40
|
+
- Do not rewrite user changes outside the task scope.
|
|
41
|
+
- Do not hide known gaps; use `Not-tested:` or issue links.
|
|
42
|
+
|
|
43
|
+
## Outputs
|
|
44
|
+
|
|
45
|
+
- `commit-evidence` with staged files, message intent, and tests.
|
|
46
|
+
- Commit-ready or blocked status.
|
|
47
|
+
|
|
48
|
+
## Installed Harness Contract
|
|
49
|
+
|
|
50
|
+
This core skill is generated from root `skills/commit/SKILL.md` and is governed by the zsk harness. Enforce these rules even when the full harness files are not present in the target:
|
|
51
|
+
|
|
52
|
+
- Stage gates: do not skip required inputs, illegal transitions, blockers, or evidence checks.
|
|
53
|
+
- Evidence rules: no PASS / DONE / READY claim without linked command, artifact, issue, scenario, or human decision evidence.
|
|
54
|
+
- Source of truth: read configured resources before inventing intent; record conflicts instead of choosing silently.
|
|
55
|
+
- Issue taxonomy: route demo, self-test, review, test, verify, and acceptance findings to the correct issue type.
|
|
56
|
+
- Learning loop: reusable gaps become learning proposals; never mutate core constraints, templates, packs, or skills automatically.
|
|
57
|
+
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zsk:demo
|
|
3
|
+
description: Use before formal testing to prove the changed user flow can be
|
|
4
|
+
demonstrated; requires planned scenarios, demo-only issue separation,
|
|
5
|
+
evidence, and no acceptance claims.
|
|
6
|
+
kind: workflow-node
|
|
7
|
+
pack: core
|
|
8
|
+
stage: demo
|
|
9
|
+
requires:
|
|
10
|
+
- constraints.stage-gates
|
|
11
|
+
- constraints.issue-taxonomy
|
|
12
|
+
- constraints.evidence-rules
|
|
13
|
+
actions:
|
|
14
|
+
- start
|
|
15
|
+
- pause
|
|
16
|
+
- resume
|
|
17
|
+
- terminate
|
|
18
|
+
- complete
|
|
19
|
+
- run playwright
|
|
20
|
+
- run computer-use
|
|
21
|
+
- run hybrid
|
|
22
|
+
- capture
|
|
23
|
+
- scenario generate
|
|
24
|
+
produces:
|
|
25
|
+
- demo-outline
|
|
26
|
+
- demo-report
|
|
27
|
+
- demo-issues
|
|
28
|
+
- demo-scenarios
|
|
29
|
+
- synthesized-playwright-cases
|
|
30
|
+
domain: core
|
|
31
|
+
category: stage
|
|
32
|
+
tier: core
|
|
33
|
+
triggers:
|
|
34
|
+
- demo
|
|
35
|
+
- zsk:demo
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
# zsk:demo
|
|
39
|
+
|
|
40
|
+
Development demo before formal testing. Build a module-grouped smoke demo outline, run manual or automated demonstration steps, record demo-only issues, preserve evidence, and leave reusable Playwright scenarios when possible.
|
|
41
|
+
|
|
42
|
+
Demo should execute and refine Playwright scenarios that were planned earlier by spec/design/task. It should not be the first stage that invents UI scenarios unless upstream artifacts are missing, in which case the gap must be recorded as a resource blocker or learning proposal.
|
|
43
|
+
|
|
44
|
+
If a formal test case and structured page information are both available, demo may generate or refresh a Playwright case before running it. Prefer `aria_snapshot + test case + getByRole` over screenshot-driven generation.
|
|
45
|
+
|
|
46
|
+
## Operating Constraints
|
|
47
|
+
|
|
48
|
+
- Do not treat demo as final acceptance or formal QA.
|
|
49
|
+
- Do not invent flows when spec/design/task resources are missing; record the resource gap.
|
|
50
|
+
- Do not use Computer Use when deterministic Playwright or app APIs are sufficient.
|
|
51
|
+
- Do not mark ready-for-testing with P0 blockers or untriaged core P1 issues.
|
|
52
|
+
- Every claim needs reusable scenario evidence, screenshot/trace evidence, or a documented manual run.
|
|
53
|
+
|
|
54
|
+
## Routing
|
|
55
|
+
|
|
56
|
+
The skill is the conversational entrypoint. The harness/CLI is the execution authority.
|
|
57
|
+
|
|
58
|
+
```text
|
|
59
|
+
$zsk:demo start -> zsk demo start
|
|
60
|
+
$zsk:demo pause -> zsk demo pause
|
|
61
|
+
$zsk:demo resume -> zsk demo resume
|
|
62
|
+
$zsk:demo run playwright -> zsk demo run --playwright
|
|
63
|
+
$zsk:demo run computer-use -> zsk demo run --computer-use
|
|
64
|
+
$zsk:demo run hybrid -> zsk demo run --hybrid
|
|
65
|
+
$zsk:demo capture -> zsk demo capture
|
|
66
|
+
$zsk:demo scenario generate -> zsk demo scenario generate --test-case <path> --snapshot <path>
|
|
67
|
+
$zsk:demo complete -> zsk demo complete
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Automation Priority
|
|
71
|
+
|
|
72
|
+
1. Prefer deterministic scripts or app/test APIs when they are sufficient.
|
|
73
|
+
2. Prefer Playwright CLI for low-token, repeatable UI runs, screenshots, traces, and scenario execution.
|
|
74
|
+
3. Use Playwright MCP when structured accessibility snapshots or locator planning are needed before execution.
|
|
75
|
+
4. Use the hybrid lane only when page understanding is uncertain: Playwright MCP or Computer Use decides, then Playwright executes precise actions and records evidence.
|
|
76
|
+
5. Use Browser Use or Computer Use-only only when Playwright CLI/MCP cannot see or operate the required surface.
|
|
77
|
+
|
|
78
|
+
Browser Use or Computer Use must record why scripts, Playwright CLI, or Playwright MCP were insufficient.
|
|
79
|
+
|
|
80
|
+
## Tool Bridge
|
|
81
|
+
|
|
82
|
+
The hybrid lane exchanges structured artifacts:
|
|
83
|
+
|
|
84
|
+
- `operation-plan.json`: page understanding from Playwright MCP or Computer Use, next operation, target intent, confidence, and fallback note.
|
|
85
|
+
- `playwright-execution.json`: selector/action attempted, result, screenshot/trace paths, scenario update, and issue link.
|
|
86
|
+
|
|
87
|
+
## Three-step Demo Loop
|
|
88
|
+
|
|
89
|
+
1. Observe: Playwright CLI/MCP returns an `aria_snapshot`, accessibility tree, screenshot, or trace; Computer Use provides visual understanding only when structured output is insufficient.
|
|
90
|
+
2. Decide: Claude/agent converts the observation into `operation-plan.json`, preferring role-based locators.
|
|
91
|
+
3. Execute: Playwright consumes the plan using `getByRole`, `getByLabel`, `getByPlaceholder`, or `getByTestId`, then writes `playwright-execution.json` with screenshots/traces/scenario links.
|
|
92
|
+
|
|
93
|
+
Repeat the loop until the demo function point is passed, paused, or converted into a Demo Issue.
|
|
94
|
+
|
|
95
|
+
## Scenario Generation
|
|
96
|
+
|
|
97
|
+
The agent can synthesize Playwright cases from structured page info:
|
|
98
|
+
|
|
99
|
+
1. Load the test case and linked spec/design rows.
|
|
100
|
+
2. Read Playwright MCP `aria_snapshot` or accessibility tree.
|
|
101
|
+
3. Generate a Playwright spec using role-first locators.
|
|
102
|
+
4. Save it under `docs/{module}/scenarios/`.
|
|
103
|
+
5. Run it with Playwright and preserve trace/screenshots.
|
|
104
|
+
|
|
105
|
+
Browser Use or Computer Use is reserved for cases where the structured page tree and Playwright CLI/MCP evidence are insufficient.
|
|
106
|
+
|
|
107
|
+
CLI example:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
zsk demo scenario generate \
|
|
111
|
+
-m checkout \
|
|
112
|
+
--test-case .raws/testing/checkout-happy-path.md \
|
|
113
|
+
--snapshot .raws/testing/checkout.aria.md \
|
|
114
|
+
--name "Checkout happy path"
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Session Lifecycle
|
|
118
|
+
|
|
119
|
+
- `start`: create session id, outline, checklist, evidence directory, and cursor.
|
|
120
|
+
- `pause`: persist cursor, completed points, open questions, evidence, and issues.
|
|
121
|
+
- `resume`: continue from the next unfinished function point.
|
|
122
|
+
- `terminate`: intentionally stop the session with reason and owner.
|
|
123
|
+
- `complete`: summarize coverage, issues, risks, and reusable scenarios.
|
|
124
|
+
|
|
125
|
+
Pause is recoverable. Terminate is terminal for the session but does not mean ready for test.
|
|
126
|
+
|
|
127
|
+
## Evidence
|
|
128
|
+
|
|
129
|
+
Normalize manual, script, Playwright, and computer-use evidence into the same demo report and issue taxonomy.
|
|
130
|
+
|
|
131
|
+
## Installed Harness Contract
|
|
132
|
+
|
|
133
|
+
This core skill is generated from root `skills/demo/SKILL.md` and is governed by the zsk harness. Enforce these rules even when the full harness files are not present in the target:
|
|
134
|
+
|
|
135
|
+
- Stage gates: do not skip required inputs, illegal transitions, blockers, or evidence checks.
|
|
136
|
+
- Evidence rules: no PASS / DONE / READY claim without linked command, artifact, issue, scenario, or human decision evidence.
|
|
137
|
+
- Source of truth: read configured resources before inventing intent; record conflicts instead of choosing silently.
|
|
138
|
+
- Issue taxonomy: route demo, self-test, review, test, verify, and acceptance findings to the correct issue type.
|
|
139
|
+
- Learning loop: reusable gaps become learning proposals; never mutate core constraints, templates, packs, or skills automatically.
|
|
140
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zsk:deploy
|
|
3
|
+
description: Use when reviewed work must be deployed to a non-production/demo
|
|
4
|
+
environment; requires URL/version, smoke evidence, rollback owner, and
|
|
5
|
+
explicit production-authority guard.
|
|
6
|
+
kind: workflow-node
|
|
7
|
+
pack: core
|
|
8
|
+
stage: deploy
|
|
9
|
+
requires:
|
|
10
|
+
- constraints.stage-gates
|
|
11
|
+
- constraints.evidence-rules
|
|
12
|
+
domain: core
|
|
13
|
+
category: stage
|
|
14
|
+
tier: core
|
|
15
|
+
triggers:
|
|
16
|
+
- deploy
|
|
17
|
+
- zsk:deploy
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# Deploy
|
|
21
|
+
|
|
22
|
+
Use this stage to publish a reviewed change to a configured non-production or demo environment. Deploy records where the change can be exercised and how to recover.
|
|
23
|
+
|
|
24
|
+
## Inputs
|
|
25
|
+
|
|
26
|
+
- Commit evidence or equivalent version identifier.
|
|
27
|
+
- Configured deploy command/environment.
|
|
28
|
+
- Smoke check plan and rollback owner.
|
|
29
|
+
|
|
30
|
+
## Procedure
|
|
31
|
+
|
|
32
|
+
1. Confirm the target is non-production unless explicit production authority exists.
|
|
33
|
+
2. Run the configured deploy command or document why deployment is manual.
|
|
34
|
+
3. Record URL, version, timestamp, environment, and owner.
|
|
35
|
+
4. Run the smallest smoke check that proves the environment serves the changed path.
|
|
36
|
+
|
|
37
|
+
## Constraints
|
|
38
|
+
|
|
39
|
+
- Do not deploy to production without explicit authority.
|
|
40
|
+
- Do not mark deploy passed without a reachable URL or documented manual handoff.
|
|
41
|
+
- Do not proceed to demo when smoke evidence is missing.
|
|
42
|
+
|
|
43
|
+
## Outputs
|
|
44
|
+
|
|
45
|
+
- `deployment` record.
|
|
46
|
+
- Runtime evidence and rollback note.
|
|
47
|
+
- Demo-ready or blocked status.
|
|
48
|
+
|
|
49
|
+
## Installed Harness Contract
|
|
50
|
+
|
|
51
|
+
This core skill is generated from root `skills/deploy/SKILL.md` and is governed by the zsk harness. Enforce these rules even when the full harness files are not present in the target:
|
|
52
|
+
|
|
53
|
+
- Stage gates: do not skip required inputs, illegal transitions, blockers, or evidence checks.
|
|
54
|
+
- Evidence rules: no PASS / DONE / READY claim without linked command, artifact, issue, scenario, or human decision evidence.
|
|
55
|
+
- Source of truth: read configured resources before inventing intent; record conflicts instead of choosing silently.
|
|
56
|
+
- Issue taxonomy: route demo, self-test, review, test, verify, and acceptance findings to the correct issue type.
|
|
57
|
+
- Learning loop: reusable gaps become learning proposals; never mutate core constraints, templates, packs, or skills automatically.
|
|
58
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zsk:design
|
|
3
|
+
description: Use after spec freeze to map behavior to implementation structure;
|
|
4
|
+
requires interfaces/data flow/rollout/risks and rejects speculative
|
|
5
|
+
architecture or invented design facts.
|
|
6
|
+
kind: workflow-node
|
|
7
|
+
pack: core
|
|
8
|
+
stage: design
|
|
9
|
+
requires:
|
|
10
|
+
- constraints.source-of-truth
|
|
11
|
+
- constraints.stage-gates
|
|
12
|
+
domain: core
|
|
13
|
+
category: stage
|
|
14
|
+
tier: core
|
|
15
|
+
triggers:
|
|
16
|
+
- design
|
|
17
|
+
- zsk:design
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# Design
|
|
21
|
+
|
|
22
|
+
Design the solution after spec freeze: architecture, interfaces, data flow, rollout, risks, and implementation mapping.
|
|
23
|
+
|
|
24
|
+
## Inputs
|
|
25
|
+
|
|
26
|
+
- Approved spec and scenario contracts.
|
|
27
|
+
- Current code structure, API contracts, domain docs, and design assets when relevant.
|
|
28
|
+
- Project constraints from harness and module config.
|
|
29
|
+
|
|
30
|
+
## Procedure
|
|
31
|
+
|
|
32
|
+
1. Map each required behavior to implementation surfaces: files, modules, interfaces, state, data flow, and rollout.
|
|
33
|
+
2. Record tradeoffs, rejected alternatives, migration/rollback notes, and risks.
|
|
34
|
+
3. For UI work, define routes, accessible names, component states, API observations, and locator strategy.
|
|
35
|
+
4. Identify test/demo scenario needs before task breakdown.
|
|
36
|
+
|
|
37
|
+
## Constraints
|
|
38
|
+
|
|
39
|
+
- Do not rewrite requirements; route unclear behavior back to `spec`.
|
|
40
|
+
- Do not add architecture that is not needed for the approved scope.
|
|
41
|
+
- Do not invent design facts when Figma/SRS/API sources are missing.
|
|
42
|
+
- Do not rely on CSS/layout selectors for UI verification strategy.
|
|
43
|
+
|
|
44
|
+
## Playwright Design Inputs
|
|
45
|
+
|
|
46
|
+
For UI modules, design should provide enough implementation detail for stable Playwright cases:
|
|
47
|
+
|
|
48
|
+
- route and navigation entry points
|
|
49
|
+
- accessible names, labels, roles, and test-id policy
|
|
50
|
+
- loading/empty/error/permission states
|
|
51
|
+
- network/API contracts that the scenario observes or mocks
|
|
52
|
+
- storage/auth state strategy
|
|
53
|
+
- trace/screenshot evidence requirements
|
|
54
|
+
|
|
55
|
+
Prefer user-facing locators (`getByRole`, `getByLabel`, `getByPlaceholder`, `getByTestId`) and avoid selectors coupled to layout or styling.
|
|
56
|
+
|
|
57
|
+
## Outputs
|
|
58
|
+
|
|
59
|
+
- `design` artifact.
|
|
60
|
+
- Locator/scenario strategy when UI-visible.
|
|
61
|
+
- Task-ready implementation map and risks.
|
|
62
|
+
|
|
63
|
+
## Installed Harness Contract
|
|
64
|
+
|
|
65
|
+
This core skill is generated from root `skills/design/SKILL.md` and is governed by the zsk harness. Enforce these rules even when the full harness files are not present in the target:
|
|
66
|
+
|
|
67
|
+
- Stage gates: do not skip required inputs, illegal transitions, blockers, or evidence checks.
|
|
68
|
+
- Evidence rules: no PASS / DONE / READY claim without linked command, artifact, issue, scenario, or human decision evidence.
|
|
69
|
+
- Source of truth: read configured resources before inventing intent; record conflicts instead of choosing silently.
|
|
70
|
+
- Issue taxonomy: route demo, self-test, review, test, verify, and acceptance findings to the correct issue type.
|
|
71
|
+
- Learning loop: reusable gaps become learning proposals; never mutate core constraints, templates, packs, or skills automatically.
|
|
72
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zsk:issue
|
|
3
|
+
description: Use when any stage finds a defect, blocker, question, or risk that
|
|
4
|
+
needs tracking; requires taxonomy, severity, owner, reproduction/evidence, and
|
|
5
|
+
no gate bypass.
|
|
6
|
+
kind: utility
|
|
7
|
+
pack: core
|
|
8
|
+
requires:
|
|
9
|
+
- constraints.issue-taxonomy
|
|
10
|
+
- constraints.evidence-rules
|
|
11
|
+
actions:
|
|
12
|
+
- create
|
|
13
|
+
- list
|
|
14
|
+
- update
|
|
15
|
+
- summarize
|
|
16
|
+
produces:
|
|
17
|
+
- issue-record
|
|
18
|
+
- issue-summary
|
|
19
|
+
domain: core
|
|
20
|
+
category: utility
|
|
21
|
+
tier: core
|
|
22
|
+
triggers:
|
|
23
|
+
- issue
|
|
24
|
+
- zsk:issue
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Issue
|
|
28
|
+
|
|
29
|
+
Cross-stage issue utility. Use this from demo, self-test, review, formal testing, verify, and acceptance so every issue follows the same taxonomy, path, severity, owner, status, steps, and evidence rules.
|
|
30
|
+
|
|
31
|
+
This utility records issues. It does not replace the `test-issue` workflow stage.
|
|
32
|
+
|
|
33
|
+
## Inputs
|
|
34
|
+
|
|
35
|
+
- Finding, failure, question, or risk from any stage.
|
|
36
|
+
- Evidence: command output, screenshot, trace, log, reproduction steps, source reference, or user report.
|
|
37
|
+
- Stage and issue type.
|
|
38
|
+
- Known module, environment, affected FR/AC/task, and current/expected behavior when available.
|
|
39
|
+
|
|
40
|
+
## Procedure
|
|
41
|
+
|
|
42
|
+
1. Classify issue type: demo, self-test, review, test, verify, acceptance, or generic bug.
|
|
43
|
+
2. Ask only for missing intake fields: reproduction steps, actual/current behavior, expected behavior, environment, severity rationale, and evidence.
|
|
44
|
+
3. Assign severity, owner, status, affected artifacts, expected/actual behavior, and reproduction steps.
|
|
45
|
+
4. Analyze likely root cause with confidence and identify whether the fix route is coding, test data, design/spec correction, environment, or invalid report.
|
|
46
|
+
5. Link FR/AC/task/evidence where available.
|
|
47
|
+
6. Decide feedback target: module spec/design/tasks, project `SYSTEM-SPEC.md`, issue memory, or `.zsk/learning/proposals`.
|
|
48
|
+
7. Update summaries without erasing historical evidence.
|
|
49
|
+
|
|
50
|
+
## Constraints
|
|
51
|
+
|
|
52
|
+
- Do not create issue records without enough evidence to act.
|
|
53
|
+
- Do not ask the user for fields already present in logs, screenshots, traces, command output, or failing tests.
|
|
54
|
+
- Do not mix issue types in the wrong directory.
|
|
55
|
+
- Do not close issues without fix/verify evidence or rejection rationale.
|
|
56
|
+
- Do not use issue creation to bypass a blocking stage gate.
|
|
57
|
+
- Do not let a repeated defect disappear after a local fix; add a regression guard or learning proposal.
|
|
58
|
+
|
|
59
|
+
## Outputs
|
|
60
|
+
|
|
61
|
+
- `issue-record`.
|
|
62
|
+
- Updated issue summary when requested.
|
|
63
|
+
- Root-cause note, fix route, feedback target, and regression guard.
|
|
64
|
+
|
|
65
|
+
## Installed Harness Contract
|
|
66
|
+
|
|
67
|
+
This core skill is generated from root `skills/issue/SKILL.md` and is governed by the zsk harness. Enforce these rules even when the full harness files are not present in the target:
|
|
68
|
+
|
|
69
|
+
- Stage gates: do not skip required inputs, illegal transitions, blockers, or evidence checks.
|
|
70
|
+
- Evidence rules: no PASS / DONE / READY claim without linked command, artifact, issue, scenario, or human decision evidence.
|
|
71
|
+
- Source of truth: read configured resources before inventing intent; record conflicts instead of choosing silently.
|
|
72
|
+
- Issue taxonomy: route demo, self-test, review, test, verify, and acceptance findings to the correct issue type.
|
|
73
|
+
- Learning loop: reusable gaps become learning proposals; never mutate core constraints, templates, packs, or skills automatically.
|
|
74
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zsk:prepare-resources
|
|
3
|
+
description: Use after project init and before proposal/spec work to collect
|
|
4
|
+
SRS, PRD, API, backend repository, design, and test resources; asks only for
|
|
5
|
+
missing origins, chooses low-token acquisition tools, snapshots evidence, and
|
|
6
|
+
updates config/manifests without inventing facts.
|
|
7
|
+
kind: workflow-node
|
|
8
|
+
pack: core
|
|
9
|
+
stage: prepare-resources
|
|
10
|
+
requires:
|
|
11
|
+
- resources.resource-catalog
|
|
12
|
+
- constraints.source-of-truth
|
|
13
|
+
- constraints.filesystem-boundaries
|
|
14
|
+
- constraints.evidence-rules
|
|
15
|
+
produces:
|
|
16
|
+
- configured-sources
|
|
17
|
+
- resource-manifest
|
|
18
|
+
- resource-gaps
|
|
19
|
+
domain: core
|
|
20
|
+
category: stage
|
|
21
|
+
tier: core
|
|
22
|
+
triggers:
|
|
23
|
+
- prepare-resources
|
|
24
|
+
- zsk:prepare-resources
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Prepare Resources
|
|
28
|
+
|
|
29
|
+
Use this stage immediately after `zsk init` or when a module lacks trustworthy upstream resources. It turns user-provided files, URLs, Figma/Modao links, API specs, backend repository addresses, and test assets into configured sources and local snapshots.
|
|
30
|
+
|
|
31
|
+
## Inputs
|
|
32
|
+
|
|
33
|
+
- Project root with `.zsk/config.yaml`, `.raws/`, `docs/`, and `.issues/`.
|
|
34
|
+
- User-provided resource origins: local files, URLs, Figma/Modao links, OpenAPI URLs/files, backend repositories, QA sheets, or manual notes.
|
|
35
|
+
- Target module or feature area when known.
|
|
36
|
+
- Tool availability: local filesystem, git, HTTP/browser, Figma MCP, Playwright CLI, Browser Use, Computer Use.
|
|
37
|
+
|
|
38
|
+
## Procedure
|
|
39
|
+
|
|
40
|
+
1. Read `.zsk/config.yaml`, `.raws/index.md`, `.zsk/resource-manifest.json`, and existing module docs.
|
|
41
|
+
2. Ask only for missing high-value origins: requirements, API/backend contract, design source/assets, test cases, and runtime URL if UI validation is needed.
|
|
42
|
+
3. Classify each origin into `sources.*` with `type`, `origin.kind`, and an optional `snapshot` under `.raws/`.
|
|
43
|
+
4. Acquire resources with the lowest-token reliable method:
|
|
44
|
+
- local files: read/copy metadata first, snapshot only relevant files;
|
|
45
|
+
- backend repositories: inspect API contract paths, route docs, generated OpenAPI, or controller entrypoints before broad code reading;
|
|
46
|
+
- URLs/docs: fetch direct content before browser automation;
|
|
47
|
+
- Figma/Modao/design: prefer platform MCP/API metadata, then exported snapshots/assets;
|
|
48
|
+
- runtime UI: prefer Playwright CLI/MCP snapshots and traces; use Browser Use or Computer Use only when structured automation is insufficient.
|
|
49
|
+
5. Update `.zsk/config.yaml` `sources`, `.raws/*/index.md`, `.raws/manifest.json`, and `.zsk/resource-manifest.json` with origin, snapshot, freshness, and evidence.
|
|
50
|
+
6. Run `zsk config check` and `zsk prep`; stop on schema/path errors.
|
|
51
|
+
7. Record unresolved gaps as issue records or Documentation Feedback instead of guessing.
|
|
52
|
+
|
|
53
|
+
## Constraints
|
|
54
|
+
|
|
55
|
+
- Do not invent SRS/API/design/test facts from file names or screenshots.
|
|
56
|
+
- Do not place runtime screenshots, debug logs, or failed verification evidence under `.raws/` or `docs/`; use `.issues/`.
|
|
57
|
+
- Do not clone or crawl large repositories blindly; identify contract-bearing paths first.
|
|
58
|
+
- Do not use Computer Use when Playwright CLI/MCP, direct HTTP, local parsing, or git inspection is sufficient.
|
|
59
|
+
- Do not overwrite existing snapshots without preserving provenance or creating a new dated snapshot.
|
|
60
|
+
- Do not proceed to `proposal`/`spec` with missing required resources unless the gap is explicitly recorded and accepted.
|
|
61
|
+
|
|
62
|
+
## Outputs
|
|
63
|
+
|
|
64
|
+
- Updated `.zsk/config.yaml` `sources`.
|
|
65
|
+
- Updated `.raws/manifest.json` and `.zsk/resource-manifest.json`.
|
|
66
|
+
- Resource gap list with owner, impact, and next action.
|
|
67
|
+
- Evidence of commands/tools used to acquire or validate resources.
|
|
68
|
+
- Next legal stage recommendation: usually `proposal` or `spec`, otherwise blocked.
|
|
69
|
+
|
|
70
|
+
## Installed Harness Contract
|
|
71
|
+
|
|
72
|
+
This core skill is generated from root `skills/prepare-resources/SKILL.md` and is governed by the zsk harness. Enforce these rules even when the full harness files are not present in the target:
|
|
73
|
+
|
|
74
|
+
- Stage gates: do not skip required inputs, illegal transitions, blockers, or evidence checks.
|
|
75
|
+
- Evidence rules: no PASS / DONE / READY claim without linked command, artifact, issue, scenario, or human decision evidence.
|
|
76
|
+
- Source of truth: read configured resources before inventing intent; record conflicts instead of choosing silently.
|
|
77
|
+
- Issue taxonomy: route demo, self-test, review, test, verify, and acceptance findings to the correct issue type.
|
|
78
|
+
- Learning loop: reusable gaps become learning proposals; never mutate core constraints, templates, packs, or skills automatically.
|
|
79
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zsk:proposal
|
|
3
|
+
description: Use before spec work to frame why/what/not-what; requires scope,
|
|
4
|
+
non-goals, success criteria, stakeholders, risks, and explicit resource gaps
|
|
5
|
+
instead of assumptions.
|
|
6
|
+
kind: workflow-node
|
|
7
|
+
pack: core
|
|
8
|
+
stage: proposal
|
|
9
|
+
requires:
|
|
10
|
+
- constraints.source-of-truth
|
|
11
|
+
- constraints.stage-gates
|
|
12
|
+
domain: core
|
|
13
|
+
category: stage
|
|
14
|
+
tier: core
|
|
15
|
+
triggers:
|
|
16
|
+
- proposal
|
|
17
|
+
- zsk:proposal
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# Proposal
|
|
21
|
+
|
|
22
|
+
Use this stage to frame the change before writing a behavioral spec. Proposal decides why the work matters, what is in/out, and which resources are required.
|
|
23
|
+
|
|
24
|
+
## Inputs
|
|
25
|
+
|
|
26
|
+
- Resource manifest and available requirements/SRS/PRD/customer notes.
|
|
27
|
+
- User request, issue, or business problem statement.
|
|
28
|
+
- Known constraints, stakeholders, timelines, and non-goals.
|
|
29
|
+
|
|
30
|
+
## Procedure
|
|
31
|
+
|
|
32
|
+
1. State the problem and desired outcome in product language.
|
|
33
|
+
2. Define scope, non-goals, stakeholders, and success criteria.
|
|
34
|
+
3. Identify required resources for spec/design/testing.
|
|
35
|
+
4. Surface assumptions and conflicts instead of resolving them silently.
|
|
36
|
+
5. Pass only when the spec writer has enough context to define behavior.
|
|
37
|
+
|
|
38
|
+
## Constraints
|
|
39
|
+
|
|
40
|
+
- Do not design implementation here.
|
|
41
|
+
- Do not invent requirements when SRS/PRD is missing; mark the resource gap.
|
|
42
|
+
- Do not expand scope to unrelated cleanup.
|
|
43
|
+
- Keep proposal short enough to be reviewed before spec work.
|
|
44
|
+
|
|
45
|
+
## Outputs
|
|
46
|
+
|
|
47
|
+
- `proposal` artifact.
|
|
48
|
+
- Resource gaps and open questions.
|
|
49
|
+
- Pass/block status for `spec`.
|
|
50
|
+
|
|
51
|
+
## Installed Harness Contract
|
|
52
|
+
|
|
53
|
+
This core skill is generated from root `skills/proposal/SKILL.md` and is governed by the zsk harness. Enforce these rules even when the full harness files are not present in the target:
|
|
54
|
+
|
|
55
|
+
- Stage gates: do not skip required inputs, illegal transitions, blockers, or evidence checks.
|
|
56
|
+
- Evidence rules: no PASS / DONE / READY claim without linked command, artifact, issue, scenario, or human decision evidence.
|
|
57
|
+
- Source of truth: read configured resources before inventing intent; record conflicts instead of choosing silently.
|
|
58
|
+
- Issue taxonomy: route demo, self-test, review, test, verify, and acceptance findings to the correct issue type.
|
|
59
|
+
- Learning loop: reusable gaps become learning proposals; never mutate core constraints, templates, packs, or skills automatically.
|
|
60
|
+
|