@captain_z/zsk-skills 1.8.2 → 1.8.4
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 +33 -27
- package/acceptance/SKILL.md +5 -1
- package/acceptance/harness/THIS_SKILL.md +78 -0
- package/acceptance/harness/constraints/filesystem-boundaries.md +23 -1
- package/acceptance/harness/constraints/issue-taxonomy.md +16 -0
- package/acceptance/harness/constraints/skill-role-contract.md +162 -11
- package/acceptance/harness/constraints/source-of-truth.md +2 -0
- package/acceptance/harness/constraints/stage-gates.md +65 -0
- package/acceptance/harness/profiles/enterprise.yaml +5 -0
- package/acceptance/harness/profiles/frontend.yaml +7 -3
- package/acceptance/harness/profiles/sdlc.yaml +5 -0
- package/acceptance/harness/workflow/completion-contract.yaml +41 -7
- package/acceptance/harness/workflow/skill-io-contract.yaml +21 -0
- package/acceptance/harness/workflow/skill-quality-standards.yaml +154 -13
- package/acceptance/harness/workflow/stage-contracts.yaml +16 -7
- package/acceptance/harness/workflow/state-machine.yaml +14 -5
- package/archive/SKILL.md +5 -1
- package/archive/harness/THIS_SKILL.md +78 -0
- package/archive/harness/constraints/filesystem-boundaries.md +23 -1
- package/archive/harness/constraints/issue-taxonomy.md +16 -0
- package/archive/harness/constraints/skill-role-contract.md +162 -11
- package/archive/harness/constraints/source-of-truth.md +2 -0
- package/archive/harness/constraints/stage-gates.md +65 -0
- package/archive/harness/profiles/enterprise.yaml +5 -0
- package/archive/harness/profiles/frontend.yaml +7 -3
- package/archive/harness/profiles/sdlc.yaml +5 -0
- package/archive/harness/workflow/completion-contract.yaml +41 -7
- package/archive/harness/workflow/skill-io-contract.yaml +21 -0
- package/archive/harness/workflow/skill-quality-standards.yaml +154 -13
- package/archive/harness/workflow/stage-contracts.yaml +16 -7
- package/archive/harness/workflow/state-machine.yaml +14 -5
- package/bundles.yaml +17 -3
- package/coding/SKILL.md +28 -3
- package/coding/harness/THIS_SKILL.md +90 -3
- package/coding/harness/constraints/filesystem-boundaries.md +23 -1
- package/coding/harness/constraints/issue-taxonomy.md +16 -0
- package/coding/harness/constraints/skill-role-contract.md +162 -11
- package/coding/harness/constraints/source-of-truth.md +2 -0
- package/coding/harness/constraints/stage-gates.md +65 -0
- package/coding/harness/profiles/enterprise.yaml +5 -0
- package/coding/harness/profiles/frontend.yaml +7 -3
- package/coding/harness/profiles/sdlc.yaml +5 -0
- package/coding/harness/workflow/completion-contract.yaml +41 -7
- package/coding/harness/workflow/skill-io-contract.yaml +26 -0
- package/coding/harness/workflow/skill-quality-standards.yaml +175 -14
- package/coding/harness/workflow/stage-contracts.yaml +16 -7
- package/coding/harness/workflow/state-machine.yaml +14 -5
- package/commit/SKILL.md +5 -1
- package/commit/harness/THIS_SKILL.md +78 -0
- package/commit/harness/constraints/filesystem-boundaries.md +23 -1
- package/commit/harness/constraints/issue-taxonomy.md +16 -0
- package/commit/harness/constraints/skill-role-contract.md +162 -11
- package/commit/harness/constraints/source-of-truth.md +2 -0
- package/commit/harness/constraints/stage-gates.md +65 -0
- package/commit/harness/profiles/enterprise.yaml +5 -0
- package/commit/harness/profiles/frontend.yaml +7 -3
- package/commit/harness/profiles/sdlc.yaml +5 -0
- package/commit/harness/workflow/completion-contract.yaml +41 -7
- package/commit/harness/workflow/skill-io-contract.yaml +21 -0
- package/commit/harness/workflow/skill-quality-standards.yaml +153 -13
- package/commit/harness/workflow/stage-contracts.yaml +16 -7
- package/commit/harness/workflow/state-machine.yaml +14 -5
- package/defect/SKILL.md +5 -1
- package/defect/harness/THIS_SKILL.md +78 -0
- package/defect/harness/best-practices/frontend.md +2 -3
- package/defect/harness/constraints/filesystem-boundaries.md +23 -1
- package/defect/harness/constraints/issue-taxonomy.md +16 -0
- package/defect/harness/constraints/skill-role-contract.md +162 -11
- package/defect/harness/constraints/source-of-truth.md +2 -0
- package/defect/harness/constraints/stage-gates.md +65 -0
- package/defect/harness/profiles/enterprise.yaml +5 -0
- package/defect/harness/profiles/frontend.yaml +7 -3
- package/defect/harness/profiles/sdlc.yaml +5 -0
- package/defect/harness/workflow/completion-contract.yaml +41 -7
- package/defect/harness/workflow/skill-io-contract.yaml +21 -0
- package/defect/harness/workflow/skill-quality-standards.yaml +153 -13
- package/defect/harness/workflow/stage-contracts.yaml +16 -7
- package/defect/harness/workflow/state-machine.yaml +14 -5
- package/demo/SKILL.md +5 -1
- package/demo/harness/THIS_SKILL.md +78 -0
- package/demo/harness/best-practices/design-handoff.md +81 -3
- package/demo/harness/best-practices/frontend.md +2 -3
- package/demo/harness/constraints/filesystem-boundaries.md +23 -1
- package/demo/harness/constraints/issue-taxonomy.md +16 -0
- package/demo/harness/constraints/skill-role-contract.md +162 -11
- package/demo/harness/constraints/source-of-truth.md +2 -0
- package/demo/harness/constraints/stage-gates.md +65 -0
- package/demo/harness/profiles/enterprise.yaml +5 -0
- package/demo/harness/profiles/frontend.yaml +7 -3
- package/demo/harness/profiles/sdlc.yaml +5 -0
- package/demo/harness/workflow/completion-contract.yaml +41 -7
- package/demo/harness/workflow/skill-io-contract.yaml +21 -0
- package/demo/harness/workflow/skill-quality-standards.yaml +153 -13
- package/demo/harness/workflow/stage-contracts.yaml +16 -7
- package/demo/harness/workflow/state-machine.yaml +14 -5
- package/deploy/SKILL.md +5 -1
- package/deploy/harness/THIS_SKILL.md +78 -0
- package/deploy/harness/constraints/filesystem-boundaries.md +23 -1
- package/deploy/harness/constraints/issue-taxonomy.md +16 -0
- package/deploy/harness/constraints/skill-role-contract.md +162 -11
- package/deploy/harness/constraints/source-of-truth.md +2 -0
- package/deploy/harness/constraints/stage-gates.md +65 -0
- package/deploy/harness/profiles/enterprise.yaml +5 -0
- package/deploy/harness/profiles/frontend.yaml +7 -3
- package/deploy/harness/profiles/sdlc.yaml +5 -0
- package/deploy/harness/workflow/completion-contract.yaml +41 -7
- package/deploy/harness/workflow/skill-io-contract.yaml +21 -0
- package/deploy/harness/workflow/skill-quality-standards.yaml +154 -13
- package/deploy/harness/workflow/stage-contracts.yaml +16 -7
- package/deploy/harness/workflow/state-machine.yaml +14 -5
- package/design/SKILL.md +47 -4
- package/design/harness/THIS_SKILL.md +90 -9
- package/design/harness/best-practices/README.md +0 -1
- package/design/harness/best-practices/frontend.md +2 -3
- package/design/harness/constraints/filesystem-boundaries.md +23 -1
- package/design/harness/constraints/issue-taxonomy.md +16 -0
- package/design/harness/constraints/skill-role-contract.md +162 -11
- package/design/harness/constraints/source-of-truth.md +2 -0
- package/design/harness/constraints/stage-gates.md +65 -0
- package/design/harness/profiles/enterprise.yaml +5 -0
- package/design/harness/profiles/frontend.yaml +7 -3
- package/design/harness/profiles/sdlc.yaml +5 -0
- package/design/harness/workflow/completion-contract.yaml +41 -7
- package/design/harness/workflow/skill-io-contract.yaml +27 -4
- package/design/harness/workflow/skill-quality-standards.yaml +173 -14
- package/design/harness/workflow/stage-contracts.yaml +16 -7
- package/design/harness/workflow/state-machine.yaml +14 -5
- package/dispatch/SKILL.md +5 -1
- package/dispatch/harness/THIS_SKILL.md +78 -0
- package/dispatch/harness/constraints/filesystem-boundaries.md +23 -1
- package/dispatch/harness/constraints/issue-taxonomy.md +16 -0
- package/dispatch/harness/constraints/skill-role-contract.md +162 -11
- package/dispatch/harness/constraints/source-of-truth.md +2 -0
- package/dispatch/harness/constraints/stage-gates.md +65 -0
- package/dispatch/harness/profiles/enterprise.yaml +5 -0
- package/dispatch/harness/profiles/frontend.yaml +7 -3
- package/dispatch/harness/profiles/sdlc.yaml +5 -0
- package/dispatch/harness/workflow/completion-contract.yaml +41 -7
- package/dispatch/harness/workflow/skill-io-contract.yaml +21 -0
- package/dispatch/harness/workflow/skill-quality-standards.yaml +154 -13
- package/dispatch/harness/workflow/stage-contracts.yaml +16 -7
- package/dispatch/harness/workflow/state-machine.yaml +14 -5
- package/fix/SKILL.md +115 -0
- package/fix/harness/README.md +15 -0
- package/fix/harness/THIS_SKILL.md +243 -0
- package/fix/harness/best-practices/README.md +13 -0
- package/fix/harness/best-practices/agent-orchestration.md +45 -0
- package/fix/harness/best-practices/quality.md +41 -0
- package/fix/harness/best-practices/sdlc.md +49 -0
- package/fix/harness/constraints/evidence-rules.md +33 -0
- package/fix/harness/constraints/filesystem-boundaries.md +65 -0
- package/fix/harness/constraints/issue-taxonomy.md +114 -0
- package/fix/harness/constraints/skill-role-contract.md +346 -0
- package/fix/harness/constraints/source-of-truth.md +35 -0
- package/fix/harness/constraints/stage-gates.md +120 -0
- package/fix/harness/profiles/enterprise.yaml +94 -0
- package/fix/harness/profiles/frontend.yaml +97 -0
- package/fix/harness/profiles/lite.yaml +55 -0
- package/fix/harness/profiles/sdlc.yaml +88 -0
- package/fix/harness/workflow/completion-contract.yaml +183 -0
- package/fix/harness/workflow/skill-io-contract.yaml +214 -0
- package/fix/harness/workflow/skill-quality-standards.yaml +254 -0
- package/fix/harness/workflow/stage-contracts.yaml +64 -0
- package/fix/harness/workflow/state-machine.yaml +74 -0
- package/flow/SKILL.md +17 -5
- package/flow/harness/THIS_SKILL.md +86 -1
- package/flow/harness/constraints/filesystem-boundaries.md +23 -1
- package/flow/harness/constraints/issue-taxonomy.md +16 -0
- package/flow/harness/constraints/skill-role-contract.md +162 -11
- package/flow/harness/constraints/source-of-truth.md +2 -0
- package/flow/harness/constraints/stage-gates.md +65 -0
- package/flow/harness/profiles/enterprise.yaml +5 -0
- package/flow/harness/profiles/frontend.yaml +7 -3
- package/flow/harness/profiles/sdlc.yaml +5 -0
- package/flow/harness/workflow/completion-contract.yaml +41 -7
- package/flow/harness/workflow/skill-io-contract.yaml +24 -0
- package/flow/harness/workflow/skill-quality-standards.yaml +164 -13
- package/flow/harness/workflow/stage-contracts.yaml +16 -7
- package/flow/harness/workflow/state-machine.yaml +14 -5
- package/issue/SKILL.md +19 -1
- package/issue/harness/THIS_SKILL.md +82 -1
- package/issue/harness/constraints/filesystem-boundaries.md +23 -1
- package/issue/harness/constraints/issue-taxonomy.md +16 -0
- package/issue/harness/constraints/skill-role-contract.md +162 -11
- package/issue/harness/constraints/source-of-truth.md +2 -0
- package/issue/harness/constraints/stage-gates.md +65 -0
- package/issue/harness/profiles/enterprise.yaml +5 -0
- package/issue/harness/profiles/frontend.yaml +7 -3
- package/issue/harness/profiles/sdlc.yaml +5 -0
- package/issue/harness/workflow/completion-contract.yaml +41 -7
- package/issue/harness/workflow/skill-io-contract.yaml +24 -0
- package/issue/harness/workflow/skill-quality-standards.yaml +156 -13
- package/issue/harness/workflow/stage-contracts.yaml +16 -7
- package/issue/harness/workflow/state-machine.yaml +14 -5
- package/learn/SKILL.md +10 -2
- package/learn/harness/THIS_SKILL.md +81 -0
- package/learn/harness/constraints/filesystem-boundaries.md +23 -1
- package/learn/harness/constraints/issue-taxonomy.md +16 -0
- package/learn/harness/constraints/skill-role-contract.md +162 -11
- package/learn/harness/constraints/source-of-truth.md +2 -0
- package/learn/harness/constraints/stage-gates.md +65 -0
- package/learn/harness/profiles/enterprise.yaml +5 -0
- package/learn/harness/profiles/frontend.yaml +7 -3
- package/learn/harness/profiles/sdlc.yaml +5 -0
- package/learn/harness/workflow/completion-contract.yaml +41 -7
- package/learn/harness/workflow/skill-io-contract.yaml +23 -0
- package/learn/harness/workflow/skill-quality-standards.yaml +158 -13
- package/learn/harness/workflow/stage-contracts.yaml +16 -7
- package/learn/harness/workflow/state-machine.yaml +14 -5
- package/package.json +1 -1
- package/prepare/SKILL.md +5 -1
- package/prepare/harness/THIS_SKILL.md +78 -0
- package/prepare/harness/constraints/filesystem-boundaries.md +23 -1
- package/prepare/harness/constraints/issue-taxonomy.md +16 -0
- package/prepare/harness/constraints/skill-role-contract.md +162 -11
- package/prepare/harness/constraints/source-of-truth.md +2 -0
- package/prepare/harness/constraints/stage-gates.md +65 -0
- package/prepare/harness/profiles/enterprise.yaml +5 -0
- package/prepare/harness/profiles/frontend.yaml +7 -3
- package/prepare/harness/profiles/sdlc.yaml +5 -0
- package/prepare/harness/workflow/completion-contract.yaml +41 -7
- package/prepare/harness/workflow/skill-io-contract.yaml +21 -0
- package/prepare/harness/workflow/skill-quality-standards.yaml +154 -13
- package/prepare/harness/workflow/stage-contracts.yaml +16 -7
- package/prepare/harness/workflow/state-machine.yaml +14 -5
- package/preproposal/SKILL.md +250 -0
- package/preproposal/harness/README.md +15 -0
- package/preproposal/harness/THIS_SKILL.md +292 -0
- package/preproposal/harness/best-practices/README.md +14 -0
- package/preproposal/harness/best-practices/design-handoff.md +119 -0
- package/preproposal/harness/best-practices/project-constraints-template.md +66 -0
- package/preproposal/harness/best-practices/quality.md +41 -0
- package/preproposal/harness/best-practices/sdlc.md +49 -0
- package/preproposal/harness/constraints/evidence-rules.md +33 -0
- package/preproposal/harness/constraints/filesystem-boundaries.md +65 -0
- package/preproposal/harness/constraints/issue-taxonomy.md +114 -0
- package/preproposal/harness/constraints/skill-role-contract.md +346 -0
- package/preproposal/harness/constraints/source-of-truth.md +35 -0
- package/preproposal/harness/constraints/stage-gates.md +120 -0
- package/preproposal/harness/profiles/enterprise.yaml +94 -0
- package/preproposal/harness/profiles/frontend.yaml +97 -0
- package/preproposal/harness/profiles/lite.yaml +55 -0
- package/preproposal/harness/profiles/sdlc.yaml +88 -0
- package/preproposal/harness/workflow/completion-contract.yaml +183 -0
- package/preproposal/harness/workflow/skill-io-contract.yaml +240 -0
- package/preproposal/harness/workflow/skill-quality-standards.yaml +312 -0
- package/preproposal/harness/workflow/stage-contracts.yaml +64 -0
- package/preproposal/harness/workflow/state-machine.yaml +74 -0
- package/preproposal/templates/interaction-handoff.md +88 -0
- package/proposal/SKILL.md +24 -7
- package/proposal/harness/THIS_SKILL.md +79 -0
- package/proposal/harness/constraints/filesystem-boundaries.md +23 -1
- package/proposal/harness/constraints/issue-taxonomy.md +16 -0
- package/proposal/harness/constraints/skill-role-contract.md +162 -11
- package/proposal/harness/constraints/source-of-truth.md +2 -0
- package/proposal/harness/constraints/stage-gates.md +65 -0
- package/proposal/harness/profiles/enterprise.yaml +5 -0
- package/proposal/harness/profiles/frontend.yaml +7 -3
- package/proposal/harness/profiles/sdlc.yaml +5 -0
- package/proposal/harness/workflow/completion-contract.yaml +41 -7
- package/proposal/harness/workflow/skill-io-contract.yaml +22 -0
- package/proposal/harness/workflow/skill-quality-standards.yaml +154 -13
- package/proposal/harness/workflow/stage-contracts.yaml +16 -7
- package/proposal/harness/workflow/state-machine.yaml +14 -5
- package/ready/SKILL.md +8 -1
- package/ready/harness/THIS_SKILL.md +79 -0
- package/ready/harness/constraints/filesystem-boundaries.md +23 -1
- package/ready/harness/constraints/issue-taxonomy.md +16 -0
- package/ready/harness/constraints/skill-role-contract.md +162 -11
- package/ready/harness/constraints/source-of-truth.md +2 -0
- package/ready/harness/constraints/stage-gates.md +65 -0
- package/ready/harness/profiles/enterprise.yaml +5 -0
- package/ready/harness/profiles/frontend.yaml +7 -3
- package/ready/harness/profiles/sdlc.yaml +5 -0
- package/ready/harness/workflow/completion-contract.yaml +41 -7
- package/ready/harness/workflow/skill-io-contract.yaml +22 -0
- package/ready/harness/workflow/skill-quality-standards.yaml +154 -13
- package/ready/harness/workflow/stage-contracts.yaml +16 -7
- package/ready/harness/workflow/state-machine.yaml +14 -5
- package/review/SKILL.md +36 -9
- package/review/harness/THIS_SKILL.md +98 -5
- package/review/harness/best-practices/frontend.md +2 -3
- package/review/harness/constraints/filesystem-boundaries.md +23 -1
- package/review/harness/constraints/issue-taxonomy.md +16 -0
- package/review/harness/constraints/skill-role-contract.md +162 -11
- package/review/harness/constraints/source-of-truth.md +2 -0
- package/review/harness/constraints/stage-gates.md +65 -0
- package/review/harness/profiles/enterprise.yaml +5 -0
- package/review/harness/profiles/frontend.yaml +7 -3
- package/review/harness/profiles/sdlc.yaml +5 -0
- package/review/harness/workflow/completion-contract.yaml +41 -7
- package/review/harness/workflow/skill-io-contract.yaml +36 -1
- package/review/harness/workflow/skill-quality-standards.yaml +180 -15
- package/review/harness/workflow/stage-contracts.yaml +16 -7
- package/review/harness/workflow/state-machine.yaml +14 -5
- package/smoke/SKILL.md +8 -1
- package/smoke/harness/THIS_SKILL.md +79 -0
- package/smoke/harness/best-practices/frontend.md +2 -3
- package/smoke/harness/constraints/filesystem-boundaries.md +23 -1
- package/smoke/harness/constraints/issue-taxonomy.md +16 -0
- package/smoke/harness/constraints/skill-role-contract.md +162 -11
- package/smoke/harness/constraints/source-of-truth.md +2 -0
- package/smoke/harness/constraints/stage-gates.md +65 -0
- package/smoke/harness/profiles/enterprise.yaml +5 -0
- package/smoke/harness/profiles/frontend.yaml +7 -3
- package/smoke/harness/profiles/sdlc.yaml +5 -0
- package/smoke/harness/workflow/completion-contract.yaml +41 -7
- package/smoke/harness/workflow/skill-io-contract.yaml +21 -0
- package/smoke/harness/workflow/skill-quality-standards.yaml +157 -13
- package/smoke/harness/workflow/stage-contracts.yaml +16 -7
- package/smoke/harness/workflow/state-machine.yaml +14 -5
- package/spec/SKILL.md +19 -1
- package/spec/harness/THIS_SKILL.md +81 -1
- package/spec/harness/constraints/filesystem-boundaries.md +23 -1
- package/spec/harness/constraints/issue-taxonomy.md +16 -0
- package/spec/harness/constraints/skill-role-contract.md +162 -11
- package/spec/harness/constraints/source-of-truth.md +2 -0
- package/spec/harness/constraints/stage-gates.md +65 -0
- package/spec/harness/profiles/enterprise.yaml +5 -0
- package/spec/harness/profiles/frontend.yaml +7 -3
- package/spec/harness/profiles/sdlc.yaml +5 -0
- package/spec/harness/workflow/completion-contract.yaml +41 -7
- package/spec/harness/workflow/skill-io-contract.yaml +23 -0
- package/spec/harness/workflow/skill-quality-standards.yaml +159 -13
- package/spec/harness/workflow/stage-contracts.yaml +16 -7
- package/spec/harness/workflow/state-machine.yaml +14 -5
- package/task/SKILL.md +22 -4
- package/task/harness/THIS_SKILL.md +84 -4
- package/task/harness/constraints/filesystem-boundaries.md +23 -1
- package/task/harness/constraints/issue-taxonomy.md +16 -0
- package/task/harness/constraints/skill-role-contract.md +162 -11
- package/task/harness/constraints/source-of-truth.md +2 -0
- package/task/harness/constraints/stage-gates.md +65 -0
- package/task/harness/profiles/enterprise.yaml +5 -0
- package/task/harness/profiles/frontend.yaml +7 -3
- package/task/harness/profiles/sdlc.yaml +5 -0
- package/task/harness/workflow/completion-contract.yaml +41 -7
- package/task/harness/workflow/skill-io-contract.yaml +24 -1
- package/task/harness/workflow/skill-quality-standards.yaml +160 -17
- package/task/harness/workflow/stage-contracts.yaml +16 -7
- package/task/harness/workflow/state-machine.yaml +14 -5
- package/verify/SKILL.md +8 -1
- package/verify/harness/THIS_SKILL.md +79 -0
- package/verify/harness/best-practices/frontend.md +2 -3
- package/verify/harness/constraints/filesystem-boundaries.md +23 -1
- package/verify/harness/constraints/issue-taxonomy.md +16 -0
- package/verify/harness/constraints/skill-role-contract.md +162 -11
- package/verify/harness/constraints/source-of-truth.md +2 -0
- package/verify/harness/constraints/stage-gates.md +65 -0
- package/verify/harness/profiles/enterprise.yaml +5 -0
- package/verify/harness/profiles/frontend.yaml +7 -3
- package/verify/harness/profiles/sdlc.yaml +5 -0
- package/verify/harness/workflow/completion-contract.yaml +41 -7
- package/verify/harness/workflow/skill-io-contract.yaml +22 -0
- package/verify/harness/workflow/skill-quality-standards.yaml +153 -13
- package/verify/harness/workflow/stage-contracts.yaml +16 -7
- package/verify/harness/workflow/state-machine.yaml +14 -5
- package/zsk/SKILL.md +30 -12
- package/zsk/harness/THIS_SKILL.md +88 -1
- package/zsk/harness/constraints/filesystem-boundaries.md +23 -1
- package/zsk/harness/constraints/issue-taxonomy.md +16 -0
- package/zsk/harness/constraints/skill-role-contract.md +162 -11
- package/zsk/harness/constraints/source-of-truth.md +2 -0
- package/zsk/harness/constraints/stage-gates.md +65 -0
- package/zsk/harness/profiles/enterprise.yaml +5 -0
- package/zsk/harness/profiles/frontend.yaml +7 -3
- package/zsk/harness/profiles/sdlc.yaml +5 -0
- package/zsk/harness/workflow/completion-contract.yaml +41 -7
- package/zsk/harness/workflow/skill-io-contract.yaml +26 -0
- package/zsk/harness/workflow/skill-quality-standards.yaml +168 -13
- package/zsk/harness/workflow/stage-contracts.yaml +16 -7
- package/zsk/harness/workflow/state-machine.yaml +14 -5
- package/zskplan/SKILL.md +68 -15
- package/zskplan/harness/THIS_SKILL.md +117 -6
- package/zskplan/harness/constraints/filesystem-boundaries.md +23 -1
- package/zskplan/harness/constraints/issue-taxonomy.md +16 -0
- package/zskplan/harness/constraints/skill-role-contract.md +162 -11
- package/zskplan/harness/constraints/source-of-truth.md +2 -0
- package/zskplan/harness/constraints/stage-gates.md +65 -0
- package/zskplan/harness/profiles/enterprise.yaml +5 -0
- package/zskplan/harness/profiles/frontend.yaml +7 -3
- package/zskplan/harness/profiles/sdlc.yaml +5 -0
- package/zskplan/harness/workflow/completion-contract.yaml +41 -7
- package/zskplan/harness/workflow/skill-io-contract.yaml +38 -0
- package/zskplan/harness/workflow/skill-quality-standards.yaml +213 -19
- package/zskplan/harness/workflow/stage-contracts.yaml +16 -7
- package/zskplan/harness/workflow/state-machine.yaml +14 -5
- package/design/harness/best-practices/design-handoff.md +0 -41
package/README.md
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
ZNorth Standard Kit 的可安装 skill 内容包。安装面现在只保留从根级 `skills/` 生成的 **core harness-first skills**;旧 `.best-practices/` 不再批量生成独立 installable skills,而是作为参考源按 skill 携带相关子集。
|
|
4
4
|
|
|
5
|
-
包内共有 **
|
|
5
|
+
包内共有 **24 颗 installable skills**,全部来自根级 `skills/`。
|
|
6
6
|
|
|
7
7
|
## 合规审查(ARCHITECTURE §4.4 硬指标)
|
|
8
8
|
|
|
9
9
|
| 检查项 | 结果 | 说明 |
|
|
10
10
|
| ---------------------------------------------------------------------------------------- | ------- | ----------------------------------------------------- |
|
|
11
|
-
| frontmatter 完整(`name` / `description` / `category` / `domain` / `tier` / `triggers`) | ✓
|
|
12
|
-
| `name` 使用裸 slug,扁平且不含连字符 | ✓
|
|
13
|
-
| `description` 简洁表达职责和使用时机 | ✓
|
|
14
|
-
| `category` / `domain` / `tier` 枚举值合法 | ✓
|
|
15
|
-
| `triggers` 数组非空 | ✓
|
|
11
|
+
| frontmatter 完整(`name` / `description` / `category` / `domain` / `tier` / `triggers`) | ✓ 24/24 | core 由 root `skills/` 生成 |
|
|
12
|
+
| `name` 使用裸 slug,扁平且不含连字符 | ✓ 24/24 | LLM 原生 skill 入口保持简洁;CLI 选择层使用 `zsk:<slug>` |
|
|
13
|
+
| `description` 简洁表达职责和使用时机 | ✓ 24/24 | 面向索引阅读;triggers 留给机器使用 |
|
|
14
|
+
| `category` / `domain` / `tier` 枚举值合法 | ✓ 24/24 | stage/utility · core |
|
|
15
|
+
| `triggers` 数组非空 | ✓ 24/24 | 至少含裸 slug |
|
|
16
16
|
| 无硬编码项目名 / 技术栈(统一 `{{config.*}}` 占位符) | ✓ | harness-neutral |
|
|
17
17
|
| `related:` 相对路径合法 | ✓ | core 不依赖参考层生成物 |
|
|
18
|
-
| 单文件 ≤ 300 行 | ✓
|
|
18
|
+
| 单文件 ≤ 300 行 | ✓ 24/24 | core 由 `lint:harness` 强制 |
|
|
19
19
|
|
|
20
20
|
当前 `max-lines` 已由 `tools/lint-frontmatter.ts` 作为 error 强制;新增或修改 skill 不应超过 300 行。
|
|
21
21
|
|
|
@@ -35,11 +35,11 @@ Profile 是流程组合策略,不是新的 skill。Atomic skills 仍然平铺
|
|
|
35
35
|
| profile | skills | 适用场景 |
|
|
36
36
|
| --- | ---: | --- |
|
|
37
37
|
| `zsk-entry` | 2 | 只装 `zskplan` / `zsk` 两个主入口,由它们按 harness 调度 |
|
|
38
|
-
| `zsk-lite` |
|
|
39
|
-
| `zsk-sdlc` |
|
|
40
|
-
| `zsk-frontend` |
|
|
41
|
-
| `zsk-enterprise` |
|
|
42
|
-
| `sdlc-only` |
|
|
38
|
+
| `zsk-lite` | 11 | 小修、小项目、脚本、低风险任务 |
|
|
39
|
+
| `zsk-sdlc` | 21 | 标准工程交付;需求、实现、审查、验证、验收、归档 |
|
|
40
|
+
| `zsk-frontend` | 22 | UI/UX/browser-facing 交付;强化 demo、视觉证据、前端质量门禁 |
|
|
41
|
+
| `zsk-enterprise` | 22 | 高治理交付;要求 deploy、验收、归档、审计证据 |
|
|
42
|
+
| `sdlc-only` | 24 | 旧入口兼容;安装全部 core skills |
|
|
43
43
|
|
|
44
44
|
## Skill 搭配流程图
|
|
45
45
|
|
|
@@ -81,8 +81,8 @@ flowchart TD
|
|
|
81
81
|
| --- | --- | --- |
|
|
82
82
|
| 安装默认 core skills | `npx @captain_z/zsk add` | 交互选择 target 和 bundle |
|
|
83
83
|
| CI 安装 ZSK 主入口 | `npx @captain_z/zsk add zsk-entry --target=~/.claude/skills --yes` | 非交互安装 `zskplan` / `zsk` 两个入口 |
|
|
84
|
-
| CI 安装轻量 profile | `npx @captain_z/zsk add zsk-lite --target=~/.claude/skills --yes` | 非交互安装
|
|
85
|
-
| CI 安装标准 SDLC profile | `npx @captain_z/zsk add zsk-sdlc --target=~/.claude/skills --yes` | 非交互安装
|
|
84
|
+
| CI 安装轻量 profile | `npx @captain_z/zsk add zsk-lite --target=~/.claude/skills --yes` | 非交互安装 11 颗常用 skills |
|
|
85
|
+
| CI 安装标准 SDLC profile | `npx @captain_z/zsk add zsk-sdlc --target=~/.claude/skills --yes` | 非交互安装 21 颗标准 workflow skills |
|
|
86
86
|
| Claude plugin 安装 | `/plugin marketplace add codeshareman/zsk` 后 `/plugin install zsk@zsk` | 使用 `/zsk:<slug>` 命令面 |
|
|
87
87
|
| GitHub skills 管理器安装 | `npx skills add codeshareman/zsk` | 从仓库根 `skills/` 安装;不要加 `@` |
|
|
88
88
|
| 只想让 ZSK 自己规划和执行 | "用 `zsk:zskplan` 规划" / "用 `zsk:zsk` 继续" | 计划写入 `.zsk/plans/`,执行产物写入 `.zsk` |
|
|
@@ -113,33 +113,33 @@ Skills 负责更需要判断的部分:理解 SRS、PRD、API 契约、Figma/Mo
|
|
|
113
113
|
|
|
114
114
|
| 领域 | skill 数 | 职责 |
|
|
115
115
|
| ----------------- | -------- | ------------------------------------------ |
|
|
116
|
-
| `skills/` |
|
|
117
|
-
| **总计** | **
|
|
116
|
+
| `skills/` | 24 | harness-first 默认工作流入口 |
|
|
117
|
+
| **总计** | **24** | |
|
|
118
118
|
|
|
119
119
|
## 安装套件(bundles.yaml)
|
|
120
120
|
|
|
121
121
|
| name | skills | 场景 |
|
|
122
122
|
| ------------------------------ | ------ | --------------------------------------------- |
|
|
123
123
|
| `zsk-entry` | 2 | 只安装 ZSK / ZSK Plan 两个主入口 |
|
|
124
|
-
| `zsk-lite` |
|
|
125
|
-
| `zsk-sdlc`(推荐) |
|
|
126
|
-
| `zsk-frontend` |
|
|
127
|
-
| `zsk-enterprise` |
|
|
128
|
-
| `sdlc-only` |
|
|
129
|
-
| `frontend-project` |
|
|
130
|
-
| `frontend-with-design-handoff` |
|
|
124
|
+
| `zsk-lite` | 11 | 小型低风险任务;ZSK 入口 + fix/coding → smoke → review → commit |
|
|
125
|
+
| `zsk-sdlc`(推荐) | 21 | 标准工程交付;完整需求、实现、审查、验证、验收、归档链路 |
|
|
126
|
+
| `zsk-frontend` | 22 | 前端/视觉/browser-facing 任务;强化 demo 和前端质量门禁 |
|
|
127
|
+
| `zsk-enterprise` | 22 | 高治理交付;要求 deploy、验收、归档、审计证据 |
|
|
128
|
+
| `sdlc-only` | 24 | 旧入口兼容;安装全部 core skills |
|
|
129
|
+
| `frontend-project` | 24 | 旧入口兼容;推荐改用 `zsk-frontend` |
|
|
130
|
+
| `frontend-with-design-handoff` | 24 | 旧入口兼容;推荐改用 `zsk-frontend` |
|
|
131
131
|
| `custom` | 交互 | 通过 `zsk add` 任意多选 |
|
|
132
132
|
|
|
133
|
-
<!-- Auto-generated by tools/catalog.ts — do not edit manually. Total:
|
|
133
|
+
<!-- Auto-generated by tools/catalog.ts — do not edit manually. Total: 24 skills -->
|
|
134
134
|
|
|
135
135
|
## Skill 清单(core skills)
|
|
136
136
|
|
|
137
137
|
> 内容由 `tools/catalog.ts` 从 `packages/skills/*/SKILL.md` frontmatter 生成。重生成:`pnpm catalog`。
|
|
138
138
|
|
|
139
|
-
### `<slug>/` — Core · harness-first 默认工作流入口 (
|
|
139
|
+
### `<slug>/` — Core · harness-first 默认工作流入口 (24)
|
|
140
140
|
|
|
141
141
|
- **`zskplan`**
|
|
142
|
-
Use as the ZSK-aware RalphPlan-style planning entrypoint that freezes scope, skill route, expert lanes, Playwright/evidence paths, and stop conditions under .zsk.
|
|
142
|
+
Use as the ZSK-aware RalphPlan-style planning entrypoint that clarifies vague intake, then freezes scope, module decomposition, skill route, expert lanes, Playwright/evidence paths, and stop conditions under .zsk.
|
|
143
143
|
|
|
144
144
|
- **`zsk`**
|
|
145
145
|
Use as the ZSK-aware Ralph-style execution loop that follows ZSK plans, dispatches expert lanes, verifies, fixes, and writes only .zsk outputs.
|
|
@@ -153,6 +153,9 @@ Skills 负责更需要判断的部分:理解 SRS、PRD、API 契约、Figma/Mo
|
|
|
153
153
|
- **`prepare`**
|
|
154
154
|
After project init, collects resource origins, snapshots evidence, and updates config/manifests before proposal/spec.
|
|
155
155
|
|
|
156
|
+
- **`preproposal`**
|
|
157
|
+
Before proposal, turns a one-sentence or vague intake brief into a clear, reviewed product, roadmap, UX, and readiness raw resource pack.
|
|
158
|
+
|
|
156
159
|
- **`proposal`**
|
|
157
160
|
Before spec, frames the problem, scope, non-goals, success criteria, stakeholders, risks, and resource gaps.
|
|
158
161
|
|
|
@@ -172,7 +175,7 @@ Skills 负责更需要判断的部分:理解 SRS、PRD、API 契约、Figma/Mo
|
|
|
172
175
|
After coding, proves changed behavior locally with targeted tests and relevant lint/typecheck/build evidence.
|
|
173
176
|
|
|
174
177
|
- **`review`**
|
|
175
|
-
After smoke, reviews implementation against scope,
|
|
178
|
+
After smoke or explicit path targeting, reviews implementation or local targets against scope, contracts, evidence, security, maintainability, and ZSK boundaries.
|
|
176
179
|
|
|
177
180
|
- **`commit`**
|
|
178
181
|
After smoke and review pass, prepares a scoped commit with intent, evidence, and clean staging.
|
|
@@ -204,3 +207,6 @@ Skills 负责更需要判断的部分:理解 SRS、PRD、API 契约、Figma/Mo
|
|
|
204
207
|
- **`issue`**
|
|
205
208
|
Tracks defects, blockers, questions, and risks with taxonomy, severity, owner, reproduction, and evidence.
|
|
206
209
|
|
|
210
|
+
- **`fix`**
|
|
211
|
+
For persisted issues, diagnoses root cause, applies the smallest scoped correction, adds a regression guard, updates the issue, and hands off verification.
|
|
212
|
+
|
package/acceptance/SKILL.md
CHANGED
|
@@ -79,9 +79,13 @@ This core skill is governed by the ZSK harness. Enforce these rules even when on
|
|
|
79
79
|
- Source of truth: read configured resources before inventing intent; record conflicts instead of choosing silently.
|
|
80
80
|
- Issue taxonomy: route demo, smoke, review, test, verify, and acceptance findings to the correct issue type.
|
|
81
81
|
- Skill role: execute the full expert role, including all relevant lanes; partial single-angle execution is a failing result.
|
|
82
|
+
- Constraint levels: hard requirements and triggered conditional requirements are blocking; advisory guidance may be skipped only with rationale and no broken hard/conditional gate.
|
|
83
|
+
- Required outputs: every output declared in the skill I/O contract is mandatory unless recorded as evidence-backed N/A or BLOCKED with owner, impact, and next action.
|
|
82
84
|
- Collaboration: ordinary stage skills own their declared outputs and handoff quality; workflow skills own route selection. Do not hardcode the next stage inside a stage skill.
|
|
85
|
+
- Stage Challenge Gate: when an existing stage artifact is present, the active skill must challenge only its own responsibility, required inputs, required outputs, must-answer questions, quality checkpoints, current artifact, upstream sources, and downstream consumer; route cross-stage gaps to their owning stage instead of running a generic grill.
|
|
83
86
|
- Dynamic state awareness: identify the active role/stage, project type, stack, runtime, domain, target users/market, and freshness-sensitive decisions before selecting practices or retrieval sources.
|
|
84
87
|
- Filesystem boundaries: write ZSK-managed outputs only under the configured `.zsk` workspace paths.
|
|
88
|
+
- Context recording: durable terminology, naming, decomposition, and load-bearing clarification decisions must update the nearest `CONTEXT.md`, or the handoff must record `Context update: N/A` with rationale.
|
|
85
89
|
- Learning loop: reusable gaps become learning proposals; never mutate core constraints, templates, packs, or skills automatically.
|
|
86
90
|
- Learning authority: reusable ZSK core learning must target the canonical ZSK source repo `.zsk/learning/proposals/`; project-local learning may stay in the current project.
|
|
87
91
|
|
|
@@ -93,7 +97,7 @@ When a `harness/` directory is installed beside this file, treat it as the local
|
|
|
93
97
|
- Read `harness/workflow/state-machine.yaml` and `harness/constraints/stage-gates.md` before moving between stages.
|
|
94
98
|
- Read `harness/constraints/skill-role-contract.md` before planning or reviewing expert work.
|
|
95
99
|
- Read `harness/constraints/filesystem-boundaries.md` before creating any project artifact.
|
|
100
|
+
- Record durable project/module language in `.zsk/modules/{module}/CONTEXT.md` or `.zsk/docs/CONTEXT.md` before relying on it downstream.
|
|
96
101
|
- Read `harness/constraints/evidence-rules.md` and `harness/workflow/completion-contract.yaml` before claiming READY / PASS / DONE.
|
|
97
102
|
- Read `harness/constraints/issue-taxonomy.md` before creating or updating blockers, risks, defects, or questions.
|
|
98
103
|
- Apply the related best-practice concerns listed in `harness/THIS_SKILL.md`; read bundled `harness/best-practices/` files first when they are listed for the current skill. Search Context7 or the web only when local guidance or local facts are missing, incomplete, stale, too generic, version-sensitive, market-sensitive, or role-incomplete. Record source links, source dates when relevant, and adaptation rationale in the evidence or learning proposal.
|
|
99
|
-
|
|
@@ -21,6 +21,12 @@ This file is generated for the installed skill. Read it before executing this sk
|
|
|
21
21
|
- `confirmed-doc-feedback`
|
|
22
22
|
- `residual-risk-list`
|
|
23
23
|
|
|
24
|
+
## Required Output Enforcement
|
|
25
|
+
|
|
26
|
+
- Every required output above is a hard requirement for this skill run.
|
|
27
|
+
- If an output is not applicable, record `N/A` with evidence from scope, source, or project rules.
|
|
28
|
+
- If an output cannot be produced, record `BLOCKED` with owner, missing input, impact, and next action.
|
|
29
|
+
|
|
24
30
|
## Allowed Tools And Capabilities
|
|
25
31
|
|
|
26
32
|
- Tools: `filesystem`, `issue-update`
|
|
@@ -49,11 +55,73 @@ This file is generated for the installed skill. Read it before executing this sk
|
|
|
49
55
|
- Avoid provider lock-in: do not assume Jira, Confluence, Figma, GitHub, GitLab, Linear, Notion, browser tooling, or any platform unless configured sources or evidence identify it.
|
|
50
56
|
- For each required output or finding, name owner, dependency, acceptance condition, verification evidence, and next action.
|
|
51
57
|
|
|
58
|
+
## Industry Best-Practice Anchors
|
|
59
|
+
|
|
60
|
+
- Diataxis (https://diataxis.fr/): choose document mode by reader need: task guidance, reference, explanation, or learning.
|
|
61
|
+
- Google developer documentation style guide (https://developers.google.com/style): optimize for reader clarity, consistency, active language, examples, and project-specific terminology.
|
|
62
|
+
- Definition of Done: completion requires shared, visible, measurable quality criteria.
|
|
63
|
+
- Review workflows: a stage is not complete until another reader can inspect artifacts, evidence, decisions, and unresolved risks.
|
|
64
|
+
- ISO/IEC/IEEE 12207 and 15288: lifecycle coverage should be method-neutral and accepted by equivalent artifacts or control points only when evidence exists.
|
|
65
|
+
- ISO/IEC/IEEE 29148:2018 (https://www.iso.org/standard/72089.html): requirements work must produce traceable, testable information items, not only narrative intent.
|
|
66
|
+
- ISO/IEC/IEEE 42010:2022 (https://www.iso.org/standard/74393.html), C4 (https://c4model.com/), and MADR (https://github.com/adr/madr): architecture/design work needs stakeholder concerns, viewpoints or equivalent views, context, rationale, tradeoffs, alternatives, consequences, and decision records.
|
|
67
|
+
- ISO/IEC/IEEE 29119 (https://committee.iso.org/sites/jtc1sc7/home/projects/flagship-standards/isoiecieee-29119-series.html): testing needs test basis, traceability, coverage, entry/exit criteria, regression, defect closure, and reports.
|
|
68
|
+
- Scrum Guide 2020 (https://scrumguides.org/scrum-guide.html): product work needs transparent product goals/backlog items, ordered value, inspection, and adaptation rather than one-shot requirements freezing.
|
|
69
|
+
- ISO 9241-210:2019 (https://www.iso.org/standard/77520.html), confirmed current in 2025: human-centred design needs user/context understanding and design activities across the lifecycle of interactive systems.
|
|
70
|
+
- GOV.UK Service Standard points 1 and 4 (https://www.gov.uk/service-manual/service-standard/point-1-understand-user-needs, https://www.gov.uk/service-manual/service-standard/point-4-make-the-service-simple-to-use): understand user needs before solutioning and test simplicity/usability with users.
|
|
71
|
+
- Design Council Double Diamond / Framework for Innovation (https://www.designcouncil.org.uk/resources/the-double-diamond/): discovery, definition, development, and delivery may iterate when evidence changes the problem framing.
|
|
72
|
+
- NIST SSDF (https://csrc.nist.gov/pubs/sp/800/218/final) and OWASP ASVS/SAMM (https://owasp.org/www-project-application-security-verification-standard/, https://owaspsamm.org/model/): security requirements, secure design, verification, and control evidence belong across the lifecycle.
|
|
73
|
+
- DORA continuous delivery and metrics (https://dora.dev/capabilities/continuous-delivery/, https://dora.dev/guides/dora-metrics/): delivery design should preserve automated tests, deployment safety, observability, small batches, and measurable release outcomes.
|
|
74
|
+
|
|
75
|
+
## Constraint Levels
|
|
76
|
+
|
|
77
|
+
- `hard`: Mandatory stage contract. Missing, stale, contradictory, or placeholder-only evidence is FAIL/BLOCKED and cannot be waived by wording.
|
|
78
|
+
- `conditional`: Mandatory when the trigger condition is touched by scope, sources, project rules, domain terms, or downstream evidence needs. If the condition applies, omission is FAIL/BLOCKED.
|
|
79
|
+
- `advisory`: Best-practice guidance that improves quality, reviewability, or maintainability. It may be skipped only with a short rationale and no broken hard or conditional requirement.
|
|
80
|
+
- `nA`: Allowed only when the artifact explains why the level or view does not apply, cites the evidence or project rule, and does not hide a missing mandatory input.
|
|
81
|
+
|
|
52
82
|
## Document Quality Standard
|
|
53
83
|
|
|
54
84
|
- Document mode: `decisionRecord`
|
|
55
85
|
- Purpose: Record the accept/reject business decision and residual-risk ownership.
|
|
56
86
|
|
|
87
|
+
## Hard Requirements
|
|
88
|
+
|
|
89
|
+
- Read the required inputs for the active skill, or stop as BLOCKED with owner, missing input, impact, and next action.
|
|
90
|
+
- Produce every required output from the skill I/O contract, or mark the specific output BLOCKED with evidence.
|
|
91
|
+
- Expose the required output contract in the artifact or handoff so the next skill can verify what was produced, blocked, or N/A.
|
|
92
|
+
- Separate facts, decisions, assumptions, open questions, risks, blockers, and evidence.
|
|
93
|
+
- Trace required claims to source artifacts, accepted decisions, scenarios, commands, issues, or human decisions.
|
|
94
|
+
- When an existing stage artifact is present, the active skill must run its own Stage Challenge Gate before downstream handoff: derive the challenge focus from that skill's responsibility, required inputs, required outputs, must-answer questions, quality checkpoints, current artifact, upstream sources, and downstream consumer; classify sourced, accepted, assumed, conflicting, missing, and N/A claims, then repair or block through the owning stage.
|
|
95
|
+
- Keep Stage Challenge Gates skill-local: ask, repair, or block only on questions the active skill owns; route upstream or downstream findings to the owning stage instead of absorbing another skill's responsibility.
|
|
96
|
+
- Every Stage Challenge Gate must align terminology against CONTEXT.md/CONTEXT-MAP.md when present, SYSTEM-SPEC.md, configured raw sources, current artifact identifiers, and code/component/API names when implementation-facing work is touched.
|
|
97
|
+
- Record durable terminology, naming, decomposition, and load-bearing clarification decisions in the nearest CONTEXT.md, or write `Context update: N/A` with rationale.
|
|
98
|
+
- Preserve upstream/downstream stage ownership; do not silently rewrite another skill's artifact.
|
|
99
|
+
- Record accept, reject, or conditional acceptance decision with linked verify/demo evidence.
|
|
100
|
+
- Name accepted criteria, residual risks, owners, and documentation feedback or no-update rationale.
|
|
101
|
+
- Do not accept without verification evidence unless explicitly blocked and risk-accepted.
|
|
102
|
+
|
|
103
|
+
## Conditional Requirements
|
|
104
|
+
|
|
105
|
+
- When auth, permissions, privacy, security, tenancy, roles, data access, compliance, payment, migration, public API, or audit behavior is touched, produce the relevant control/traceability matrix or block with the missing source.
|
|
106
|
+
- When architecture, interface, data-flow, storage, migration, dependency, rollback, integration, or cross-team ownership decisions are made, record ADR/decision-record entries with context, options, decision, consequences, rollback/migration notes, and linked requirements.
|
|
107
|
+
- When UI-visible behavior is touched, include user-observable states, accessibility/locator strategy, scenario evidence needs, and stable test hooks.
|
|
108
|
+
- When behavior is testable, define or consume a traceable test basis before claiming implementation, smoke, review, verify, or acceptance success.
|
|
109
|
+
- When external facts, SDKs, APIs, regulations, market context, or dependency behavior are freshness-sensitive, retrieve current authoritative references or record why local sources are sufficient.
|
|
110
|
+
- When an artifact becomes too large for one reviewable file, split it into `{stage}/index.md` plus linked child Markdown files while preserving the full stage contract.
|
|
111
|
+
- When clarification, grilling, architecture review, artifact repair, or task decomposition introduces a term or naming decision future stages must reuse, update module-local or project-level CONTEXT.md before handoff.
|
|
112
|
+
- When residual risks affect security, privacy, permissions, data, release, or compliance, require owner and follow-up issue.
|
|
113
|
+
- When business/user confirmation is missing, mark acceptance BLOCKED instead of inferred.
|
|
114
|
+
|
|
115
|
+
## Advisory Guidance
|
|
116
|
+
|
|
117
|
+
- Prefer the smallest artifact that lets the next reader decide and act without chat memory.
|
|
118
|
+
- Use tables, matrices, diagrams, or checklists only when they clarify ownership, traceability, risk, or execution.
|
|
119
|
+
- Use project terminology and source identifiers consistently across proposal, spec, design, task, and evidence artifacts.
|
|
120
|
+
- When a skill challenges an artifact, name any overloaded, translated, or conflicting term before asking the user or editing the artifact.
|
|
121
|
+
- Record suggestions separately from current project policy, especially for thresholds that remain `未指定`.
|
|
122
|
+
- Keep acceptance focused on decision and risk, not implementation recap.
|
|
123
|
+
- Preserve rejection reasons in a form that can route back to issue/fix.
|
|
124
|
+
|
|
57
125
|
## Must Answer
|
|
58
126
|
|
|
59
127
|
- Is the verified work accepted, rejected, or conditionally accepted?
|
|
@@ -72,9 +140,14 @@ This file is generated for the installed skill. Read it before executing this sk
|
|
|
72
140
|
- Accepts different project methods and artifact names only when they provide an equivalent control point with evidence.
|
|
73
141
|
- Uses PASS, FAIL, BLOCKED, or N/A only with evidence; missing mandatory evidence remains a failure, not an assumption.
|
|
74
142
|
- Records numeric targets or thresholds as `未指定` when the project has not supplied them; never invents thresholds to make an output look complete.
|
|
143
|
+
- Records `Context update: <path>` or `Context update: N/A` so later stages do not depend on hidden chat terminology.
|
|
144
|
+
- Names terminology alignment status for the active artifact: source-consistent, repaired, conflicting, missing, or N/A.
|
|
75
145
|
- Names owner, dependency, acceptance condition, and verification evidence for every required output or blocker.
|
|
146
|
+
- Names existing stage artifact clarity status as PASS, NEEDS_REPAIR, BLOCKED, or WAIVED when a prior artifact is being consumed or improved.
|
|
147
|
+
- Names the Stage Challenge Gate focus and shows it came from the active skill contract rather than a generic grill.
|
|
76
148
|
- Runs or references the stage-entry quality gate before downstream handoff; below-threshold but non-blocking gaps require explicit risk acceptance instead of silent progression.
|
|
77
149
|
- For testable work, verifies test correctness, not only test execution: traceable test basis, meaningful assertions, negative/boundary/regression coverage, and skipped/unrun checks called out.
|
|
150
|
+
- When proposal, spec, design, or tasks become too large for one reviewable file, the artifact may split to `{stage}/index.md` plus linked child Markdown files; the index remains the entrypoint and the full stage contract still applies.
|
|
78
151
|
- Links verify report, demo evidence, accepted criteria, and residual risks.
|
|
79
152
|
- Records documentation feedback or no-update rationale for confirmed learnings.
|
|
80
153
|
|
|
@@ -108,6 +181,10 @@ This file is generated for the installed skill. Read it before executing this sk
|
|
|
108
181
|
- Passing because a familiar term appears while the equivalent lifecycle function is absent.
|
|
109
182
|
- Inventing project policy, quality thresholds, source mappings, or platform behavior without configured evidence.
|
|
110
183
|
- Treating missing evidence as low risk when the stage output depends on that evidence.
|
|
184
|
+
- Discarding or rewriting an unclear existing stage artifact before classifying what is sourced, accepted, assumed, conflicting, or missing.
|
|
185
|
+
- Running a generic grill or cross-stage rewrite instead of the active skill's own Stage Challenge Gate.
|
|
186
|
+
- Letting terminology, naming, or decomposition decisions live only in chat instead of CONTEXT.md.
|
|
187
|
+
- Running stage-specific questioning without checking whether the artifact uses the same terms as upstream sources, downstream consumers, and implementation surfaces.
|
|
111
188
|
- Letting a delayed subagent packet block indefinitely instead of marking it stale and falling back or re-emitting.
|
|
112
189
|
- Claiming tests prove behavior when they have no traceable basis, no meaningful assertion, or only prove implementation details.
|
|
113
190
|
- Accepting without verification evidence.
|
|
@@ -133,6 +210,7 @@ This file is generated for the installed skill. Read it before executing this sk
|
|
|
133
210
|
## Hard Stops
|
|
134
211
|
|
|
135
212
|
- Required input is missing, stale, or contradictory.
|
|
213
|
+
- A hard requirement or triggered conditional requirement cannot be satisfied with linked evidence.
|
|
136
214
|
- The requested work belongs to an earlier or later ZSK stage.
|
|
137
215
|
- Evidence cannot be linked to command output, artifact, issue, scenario, or human decision.
|
|
138
216
|
- The fix would widen scope beyond this skill's responsibility.
|
|
@@ -5,17 +5,37 @@ Default project paths:
|
|
|
5
5
|
- `.zsk/`: the only default ZSK-managed workspace root.
|
|
6
6
|
- `.zsk/docs/`: project-level docs such as `SYSTEM-SPEC.md` and `PROJECT-CONFIG.md`.
|
|
7
7
|
- `.zsk/modules/{module}/`: module config and stage artifacts.
|
|
8
|
+
- `.zsk/modules/{module}/CONTEXT.md`: module-local domain language, naming decisions, decomposition rationale, and accepted clarifications that later stages must reuse.
|
|
9
|
+
- `.zsk/docs/CONTEXT.md`: project-wide domain language and cross-module terms when a term is not owned by one module.
|
|
8
10
|
- `.zsk/raws/`: raw external source snapshots, manifests, imported test cases, market/product research sources, and design/API assets.
|
|
11
|
+
- `.zsk/raws/prepare/**`: reusable source lanes. `preproposal` may add generated or candidate intake clarity, product, roadmap, UX, and design-source readiness resources here only when they are labeled with provenance, review checkpoint status, assumptions, and blockers.
|
|
12
|
+
- `.zsk/evidence/preproposal/{run}/`: checkpoint review evidence for product direction, roadmap/decomposition, UX/design-readiness, and final readiness before formal proposal.
|
|
9
13
|
- `.zsk/modules/{module}/_issues/`: module-private managed issue records and indexes, created on demand.
|
|
10
14
|
- `.zsk/modules/{module}/_evidence/`: module-private reusable runtime or research evidence, created on demand.
|
|
11
15
|
- `.zsk/modules/{module}/_playwright/`: module-specific Playwright specs, test plans, auth state, execution records, reports, and results, created on demand.
|
|
12
16
|
- `.zsk/issues/`, `.zsk/evidence/`, `.zsk/playwright/`: shared/global artifacts only, created on demand when the asset is intentionally cross-module.
|
|
13
17
|
- `.zsk/learning/proposals/`: reusable improvement proposals and learning records, created lazily only when learn/archive writes an actual proposal.
|
|
18
|
+
- `.zsk/plans/`: ZSK plan artifacts, created lazily only when `zskplan` or `zsk` freezes an executable route.
|
|
14
19
|
- `skills/{slug}/`: zsk source skill directories.
|
|
15
20
|
- `harness/`: zsk source governance contracts.
|
|
16
21
|
|
|
17
22
|
Root `docs/`, `.raws/`, `.issues/`, `.playwright/`, and `plans/` are not default write targets for ZSK skills. Use explicit export, promote, import, or migration commands when project-facing root documentation is needed.
|
|
18
23
|
|
|
24
|
+
## Context Recording Authority
|
|
25
|
+
|
|
26
|
+
Every durable terminology, naming, decomposition, or load-bearing clarification
|
|
27
|
+
created during a Clarification Loop, artifact clarity pass, architecture review,
|
|
28
|
+
stage repair, or task decomposition must be recorded in the nearest
|
|
29
|
+
`CONTEXT.md`.
|
|
30
|
+
|
|
31
|
+
- Module-local terms and decisions go to `.zsk/modules/{module}/CONTEXT.md`.
|
|
32
|
+
- Cross-module or project-wide terms go to `.zsk/docs/CONTEXT.md`.
|
|
33
|
+
- ZSK core terms go to the source repo `CONTEXT.md`.
|
|
34
|
+
- If no update is needed, the stage handoff records a no-update rationale.
|
|
35
|
+
- Do not use `CONTEXT.md` for transient notes, raw evidence, task execution
|
|
36
|
+
logs, or unresolved speculation; record those in the owning artifact, issue,
|
|
37
|
+
evidence directory, or learning proposal.
|
|
38
|
+
|
|
19
39
|
## Learning Output Authority
|
|
20
40
|
|
|
21
41
|
Learning artifacts must be written according to what they are meant to change:
|
|
@@ -40,4 +60,6 @@ Before any skill writes an artifact, classify its scope:
|
|
|
40
60
|
|
|
41
61
|
This rule applies to every underscore module directory, not only `_issues`. For example, module-local issues go to `_issues`, module-local runtime evidence goes to `_evidence`, and module-local Playwright specs/auth/results go to `_playwright`. Use outer `.zsk/issues`, `.zsk/evidence`, or `.zsk/playwright` only after deciding the artifact is shared, global, or public. When scope is ambiguous, prefer module-private and record the reason or blocker before promoting outward.
|
|
42
62
|
|
|
43
|
-
The skill that produces the final artifact for a module stage writes the formal report to `.zsk/modules/{module}/{stage}.md`. Supporting artifacts stay in the appropriate `_issues`, `_evidence`, or `_playwright` directory unless they are deliberately shared/global/public.
|
|
63
|
+
The skill that produces the final artifact for a module stage writes the formal report to `.zsk/modules/{module}/{stage}.md`. For large `proposal`, `spec`, `design`, or `tasks` artifacts, the skill may upgrade the stage artifact to `.zsk/modules/{module}/{stage}/index.md` and split child Markdown files under the same stage directory. The `index.md` file remains the review entrypoint, must link every child document included in the logical artifact, and must preserve the same stage contract; splitting content does not weaken required gates. Supporting artifacts stay in the appropriate `_issues`, `_evidence`, or `_playwright` directory unless they are deliberately shared/global/public.
|
|
64
|
+
|
|
65
|
+
`preproposal` is not a module-final stage. Its outputs are intake clarity and proposal-prep raw resources under `.zsk/raws/prepare/**` plus checkpoint evidence under `.zsk/evidence/preproposal/{run}/`. When a target module is specified, use the module id as the default raw topic, for example `.zsk/raws/prepare/ux/{module}/interaction-handoff.md`, and record any narrower page/frame split rationale in the raw artifact. It must not create `.zsk/modules/{module}/proposal.md`, `spec.md`, `design.md`, or `tasks.md`; those remain owned by their formal stage skills.
|
|
@@ -88,6 +88,22 @@ Every actionable issue should record:
|
|
|
88
88
|
- whether a durable learning proposal is needed under `.zsk/learning/proposals`;
|
|
89
89
|
- regression guard: test, scenario, lint rule, checklist, or explicit waiver.
|
|
90
90
|
|
|
91
|
+
## Issue-Driven Fix Route
|
|
92
|
+
|
|
93
|
+
`fix` is the dedicated skill and route name for "persisted issue -> root cause -> minimal change -> regression guard -> verification handoff". It is not a shortcut around `coding`, `smoke`, `review`, `ready`, or `verify`.
|
|
94
|
+
|
|
95
|
+
Required fix-route ledger fields:
|
|
96
|
+
|
|
97
|
+
- issue path or id;
|
|
98
|
+
- reproduction/evidence basis;
|
|
99
|
+
- root-cause hypothesis and confidence;
|
|
100
|
+
- changed files or no-code rationale;
|
|
101
|
+
- regression guard or explicit blocker;
|
|
102
|
+
- documentation feedback target or no-update rationale;
|
|
103
|
+
- next verification route and evidence command.
|
|
104
|
+
|
|
105
|
+
Do not use `fix` for generic unanchored cleanup. If there is no persisted issue or accepted expected/actual clarification, create or update the issue first.
|
|
106
|
+
|
|
91
107
|
## Closure And Feedback Loop
|
|
92
108
|
|
|
93
109
|
1. Create or update module-specific issues under `.zsk/modules/{module}/_issues/` as soon as the finding is actionable, using the type and prefix fields to preserve taxonomy.
|
|
@@ -12,6 +12,19 @@ ZSK skills must work across project types, team methods, tools, and platforms. A
|
|
|
12
12
|
- Every required output or finding needs an owner, dependency, acceptance condition, verification evidence, and next action.
|
|
13
13
|
- Security, privacy, data safety, release readiness, test traceability, and continuous improvement are lifecycle concerns. They are N/A only when the project context proves they do not apply.
|
|
14
14
|
|
|
15
|
+
## Constraint Level Model
|
|
16
|
+
|
|
17
|
+
Each skill must separate requirements by enforcement level before it claims PASS, READY, DONE, or an unblocked handoff.
|
|
18
|
+
|
|
19
|
+
- **Hard requirements** are mandatory for the stage. Missing inputs, outputs, evidence, owners, gates, traceability, or blocking contradictions are `FAIL` or `BLOCKED`.
|
|
20
|
+
- **Conditional requirements** are mandatory when the scope, sources, domain terms, project rules, or downstream evidence needs trigger them. When triggered, they have the same blocking force as hard requirements.
|
|
21
|
+
- **Advisory guidance** improves reviewability or maintainability but cannot override missing hard or triggered conditional requirements. If skipped, record a short rationale.
|
|
22
|
+
- **N/A** is valid only with evidence-backed rationale. It cannot hide a missing source, missing policy, or missing required output.
|
|
23
|
+
|
|
24
|
+
Cross-cutting controls are conditional hard requirements, not optional polish. If auth, permissions, privacy, roles, tenancy, data access, audit, compliance, public APIs, payment, migration, or security behavior is touched, the owning stage must produce or consume the relevant traceability/control matrix. A missing matrix is a blocker unless the source/spec explicitly proves the control is out of scope.
|
|
25
|
+
|
|
26
|
+
ADR/decision records are mandatory for design-significant decisions, not a stylistic preference. If a stage makes or consumes an architecture, interface, data-flow, storage, migration, dependency, rollback, integration, cross-team ownership, security, or permission-enforcement decision, it must record or cite an ADR/decision-record entry with context, options considered, decision, consequences, rollback or migration notes, and linked requirements/evidence. `task` must preserve ADR traceability into executable work.
|
|
27
|
+
|
|
15
28
|
## Cross-Project Portability Rule
|
|
16
29
|
|
|
17
30
|
Core skills and harness rules must be generic by default.
|
|
@@ -41,11 +54,12 @@ Each skill owns one stage contract. Workflow skills may route or schedule work,
|
|
|
41
54
|
| Skill | Owns | Does Not Own | Consistency / Handoff |
|
|
42
55
|
| --- | --- | --- | --- |
|
|
43
56
|
| `prepare` | Source discovery, configured origin validation, raws snapshots, manifest, source gaps | Product interpretation, requirements decisions, design choices | Hands source manifest, raws indexes, conflicts, and blockers to `proposal` / `spec`; asks before uncertain source-to-lane mapping |
|
|
57
|
+
| `preproposal` | Intake clarity, proposal-prep raw resources: product direction, MVP/phase/module decomposition, UX/design-readiness seeds, interaction handoff when triggered, candidate code component mapping when code exists, assumptions, risks, scenario seeds, checkpoint review evidence | Formal module proposal/spec/design/tasks, formal test cases, final implementation decisions | Hands reviewed `.zsk/raws/prepare/**` resources and `.zsk/evidence/preproposal/**` checkpoint verdicts to `proposal`; source-discoverable questions must be answered before asking the user; product review must pass before roadmap, roadmap before UX, UX before readiness |
|
|
44
58
|
| `proposal` | Problem, goal, scope, non-goals, stakeholders, risks, success metrics, decision request | Detailed behavior, architecture, task breakdown, implementation | Every goal and metric must trace to sources or accepted assumptions; hands bounded scope to `spec` |
|
|
45
|
-
| `spec` | FR/NFR, acceptance criteria, scenarios, edge cases, constraints, traceability | Architecture, file/module design, implementation tasks | Every P0/P1 requirement must trace to proposal/source and be testable; hands behavior contract to `design` and `task` |
|
|
46
|
-
| `design` |
|
|
47
|
-
| `task` | Kiro-style nested checkbox task groups/subtasks, owners, dependencies, scope/files, evidence hooks, coverage matrix | Changing proposal/spec/design intent, coding, review approval | Every task group must align to proposal/spec/design IDs; every subtask must be executable and evidence-backed before `coding
|
|
48
|
-
| `coding` | Scoped implementation, changed tests, implementation notes, local validation evidence | Requirements changes, broad refactors, final approval | Every diff maps to task IDs and preserves upstream intent; hands changed files and evidence to `smoke` / `review` |
|
|
59
|
+
| `spec` | FR/NFR, acceptance criteria, scenarios, edge cases, constraints, traceability, behavior-level control matrix when triggered | Architecture, file/module design, implementation tasks | Every P0/P1 requirement must trace to proposal/source and be testable; cross-cutting control behavior must trace to subject/action/resource/scope/source; hands behavior contract to `design` and `task` |
|
|
60
|
+
| `design` | Code design: architecture, interfaces, data/state flow, implementation surfaces, design views/diagrams, ADRs or equivalent decision records, tradeoffs, rollout and verification surfaces, control traceability matrix when triggered | Rewriting requirements, authoring interaction handoff, deciding missing UX/Figma behavior, task sequencing, coding, decorative diagrams | Every design decision and diagram must trace to spec/AC/NFR, ADR, risk, or verification need; triggered controls must trace to enforcement/UI/API/state/test surfaces; hands implementation map to `task` |
|
|
61
|
+
| `task` | Kiro-style nested checkbox task groups/subtasks, owners, dependencies, scope/files, evidence hooks, proposal/spec/design/ADR coverage matrix, control-row task coverage when triggered | Changing proposal/spec/design intent, coding, review approval | Every task group must align to proposal/spec/design/ADR IDs; every subtask must be executable and evidence-backed before `coding`; triggered control rows must map to implementation and evidence tasks |
|
|
62
|
+
| `coding` | Scoped implementation, vertical TDD cycles, changed tests, implementation notes, local validation evidence | Requirements changes, broad refactors, final approval | Every diff maps to task IDs and preserves upstream intent; each testable behavior records RED/GREEN evidence before the next behavior; hands changed files and evidence to `smoke` / `review` |
|
|
49
63
|
| `smoke` | Smallest credible local proof of changed behavior, failure classification, smoke issues | Full acceptance, final verification, release approval | Hands command/scenario evidence and failures to `review`, `defect`, or `ready` |
|
|
50
64
|
| `review` | Scope drift, correctness, maintainability, security, test adequacy, harness compliance findings | Implementing fixes, independent verification, business acceptance | Findings must reference files/artifacts and route fix work to `issue` / `defect` / `coding`; no PASS without evidence adequacy |
|
|
51
65
|
| `commit` | Scoped staging, Lore commit message, commit evidence, known verification gaps | Feature validation, release readiness | Hands immutable change intent and tested/not-tested evidence to `deploy` / `archive` |
|
|
@@ -57,11 +71,12 @@ Each skill owns one stage contract. Workflow skills may route or schedule work,
|
|
|
57
71
|
| `acceptance` | Accept/reject decision, residual risk, business/user confirmation, documentation feedback | New verification, implementation fixes | Hands accepted state, waived risks, or rejection reasons to `archive` / `issue` |
|
|
58
72
|
| `archive` | Final artifact preservation, closed issue audit, learning proposals, release notes | Changing delivered scope, reopening decisions without issue evidence | Preserves decisions/evidence and promotes reusable gaps to `learn` |
|
|
59
73
|
| `learn` | Learning proposal intake, pattern comparison, optimization batch planning, reusable ZSK core proposal routing | Unreviewed mutation of core skills/harness/templates, scattering core learning into consuming projects | Writes project-local learning only for project-specific change; writes reusable core learning to canonical ZSK source repo proposals; requires review/regression before promotion |
|
|
60
|
-
| `issue` | Persistent issue/defect/risk/question records, indexes, owner/status/evidence fields | Resolving the issue by assertion, replacing review/verify | Provides the shared feedback and closure ledger for all stages |
|
|
74
|
+
| `issue` | Persistent issue/defect/risk/question records, indexes, owner/status/evidence fields, issue-driven fix ledger fields | Resolving the issue by assertion, replacing review/verify | Provides the shared feedback and closure ledger for all stages; issue-driven `fix` work remains open until smoke/review/verify evidence is linked |
|
|
75
|
+
| `fix` | Issue-driven root-cause analysis, minimal correction route, regression guard, issue ledger update, smoke/review/verify handoff | Generic cleanup, new issue intake, broad redesign, independent verification or closure by assertion | Consumes a persisted issue or accepted expected/actual clarification; routes implementation through `coding` discipline and leaves closure to `verify` / `acceptance` |
|
|
61
76
|
| `dispatch` | Runtime staffing plan, active roles, write scopes, evidence obligations, durable emit packets, packet status ledger | Business or technical stage output | Supports any stage skill from the resource pool; stale or delayed packets fall back to leader-sequential role simulation |
|
|
62
77
|
| `flow` | Next legal stage decision from state, resources, blockers, profile, and stage-entry quality assessment | Stage artifact production | Routes only when gates allow; reports blockers or quality-confirmation needs instead of forcing progression |
|
|
63
|
-
| `zskplan` | Route freeze, selected skills, output map, expert lane plan, evidence plan, blockers | Implementation and
|
|
64
|
-
| `zsk` |
|
|
78
|
+
| `zskplan` | Route freeze, governing-rule coverage, module decomposition, per-module stage route, selected skills, output map, expert lane plan, evidence plan, blockers | Implementation, verification, runtime dispatch, and final proposal/spec/design/task artifact authoring | Produces the plan contract that `zsk` executes; each planned stage skill still owns its artifact and gates |
|
|
79
|
+
| `zsk` | Plan-driven stage orchestration, end-to-end execution loop, skill dispatch, expert lane integration, validation/fix loop | Skipping selected skill contracts or evidence gates | Executes the frozen or inferred route until complete or blocked |
|
|
65
80
|
|
|
66
81
|
## Collaboration Consistency Gate
|
|
67
82
|
|
|
@@ -69,6 +84,7 @@ Before a skill reports `PASS`, `READY`, `DONE`, or an unblocked handoff, it must
|
|
|
69
84
|
|
|
70
85
|
```text
|
|
71
86
|
prepare sources
|
|
87
|
+
-> preproposal product / roadmap / UX raw resources when needed
|
|
72
88
|
-> proposal goals / scope / success metrics
|
|
73
89
|
-> spec FR / AC / NFR / scenarios
|
|
74
90
|
-> design decisions / ADRs / interfaces / data flow
|
|
@@ -91,6 +107,127 @@ Consistency checks:
|
|
|
91
107
|
- No skill silently changes another skill's artifact; it records a feedback item, issue, or blocker instead.
|
|
92
108
|
- Workflow skills (`flow`, `zskplan`, `zsk`) choose the route. Stage skills state status, blockers, handoff needs, and next legal candidates only.
|
|
93
109
|
|
|
110
|
+
## Stage Artifact Clarity Pass
|
|
111
|
+
|
|
112
|
+
Every stage owns clarity and repair for the artifacts it owns. If a stage artifact
|
|
113
|
+
already exists but is unclear, incomplete, contradictory, placeholder-like, or too
|
|
114
|
+
weak for the next consumer, the workflow must route to the owning stage instead
|
|
115
|
+
of restarting from intake, skipping ahead, or letting a downstream skill repair
|
|
116
|
+
upstream intent.
|
|
117
|
+
|
|
118
|
+
This is a skill-local Stage Challenge Gate, not a generic grilling session. The
|
|
119
|
+
active skill must auto-identify what to challenge from its own responsibility,
|
|
120
|
+
required inputs, required outputs, must-answer questions, quality checkpoints,
|
|
121
|
+
current artifact, upstream sources, and downstream consumer. It may surface
|
|
122
|
+
upstream or downstream findings, but those findings are routed to the owning
|
|
123
|
+
stage instead of being silently absorbed.
|
|
124
|
+
|
|
125
|
+
The challenge basis is also skill-local: use this skill's `THIS_SKILL.md`,
|
|
126
|
+
`skill-quality-standards.yaml`, bundled related best-practice files, and current
|
|
127
|
+
official references when local references are incomplete or version-sensitive.
|
|
128
|
+
Do not reuse another stage's checklist as the active challenge unless the finding
|
|
129
|
+
is routed back to that owning stage.
|
|
130
|
+
|
|
131
|
+
Every skill-local challenge also performs terminology alignment. Compare the
|
|
132
|
+
artifact's domain terms, actor names, module names, stage IDs, FR/AC/NFR/ADR IDs,
|
|
133
|
+
UI component names, route/API names, and source/provider labels against
|
|
134
|
+
`CONTEXT.md` / `CONTEXT-MAP.md` when present, `.zsk/docs/SYSTEM-SPEC.md`,
|
|
135
|
+
configured raw sources, and implementation names when the skill touches code or
|
|
136
|
+
UI surfaces. If a term is overloaded, stale, translated inconsistently, or
|
|
137
|
+
conflicts with upstream/downstream language, classify it explicitly and route the
|
|
138
|
+
repair to the owning stage. Do not introduce a new canonical term only in chat.
|
|
139
|
+
|
|
140
|
+
The owning stage must:
|
|
141
|
+
|
|
142
|
+
- preserve the current artifact as evidence and avoid wholesale rewrite unless
|
|
143
|
+
the artifact is explicitly superseded;
|
|
144
|
+
- state the Stage Challenge Gate focus for this skill, such as proposal
|
|
145
|
+
problem/scope clarity, spec behavior/AC traceability, design implementation
|
|
146
|
+
mapping, task execution readiness, or evidence-stage claim validity;
|
|
147
|
+
- classify material claims as `sourced`, `accepted`, `assumed`, `conflicting`,
|
|
148
|
+
`missing`, or `N/A`;
|
|
149
|
+
- classify terminology conflicts and accepted canonical names with source or
|
|
150
|
+
context references;
|
|
151
|
+
- repair only the claims that local/configured sources, accepted decisions, or
|
|
152
|
+
current evidence support;
|
|
153
|
+
- ask at most one blocking question when the missing answer changes scope,
|
|
154
|
+
behavior, design, task order, or verification;
|
|
155
|
+
- report `Stage artifact clarity: PASS | NEEDS_REPAIR | BLOCKED | WAIVED`
|
|
156
|
+
with owner, missing input, impact, next action, and downstream consumer.
|
|
157
|
+
|
|
158
|
+
Examples:
|
|
159
|
+
|
|
160
|
+
- unclear `proposal` routes to `proposal` for problem/scope/non-goal repair;
|
|
161
|
+
- unclear `spec` routes to `spec` for FR/AC/scenario/source-trace repair;
|
|
162
|
+
- unclear `design` routes to `design` for interface, ADR, data-flow, or control
|
|
163
|
+
traceability repair;
|
|
164
|
+
- unclear `tasks` routes to `task` for executable checkbox, ownership,
|
|
165
|
+
dependency, source-alignment, and evidence-hook repair.
|
|
166
|
+
|
|
167
|
+
## Context Recording Discipline
|
|
168
|
+
|
|
169
|
+
ZSK treats `CONTEXT.md` as durable project language, not chat memory. When a
|
|
170
|
+
Clarification Loop, artifact clarity pass, architecture review, stage repair, or
|
|
171
|
+
task decomposition creates or sharpens terminology, naming, module/decomposition
|
|
172
|
+
rationale, accepted clarification, or a load-bearing "call this X, not Y"
|
|
173
|
+
decision, the owning skill must update the nearest `CONTEXT.md` before handoff.
|
|
174
|
+
|
|
175
|
+
Context targets:
|
|
176
|
+
|
|
177
|
+
- module-local language and decomposition decisions:
|
|
178
|
+
`.zsk/modules/{module}/CONTEXT.md`;
|
|
179
|
+
- project-wide or cross-module language: `.zsk/docs/CONTEXT.md`;
|
|
180
|
+
- reusable ZSK core language: the source repo `CONTEXT.md`.
|
|
181
|
+
|
|
182
|
+
The update must separate accepted terms from rejected/ambiguous framings and
|
|
183
|
+
state the downstream impact. If no context update is needed, the handoff records
|
|
184
|
+
`Context update: N/A` with a short reason. A downstream stage must not rely on a
|
|
185
|
+
term that only exists in chat.
|
|
186
|
+
|
|
187
|
+
## Coding TDD Cycle Discipline
|
|
188
|
+
|
|
189
|
+
`coding` uses vertical TDD, not horizontal batching. For each testable behavior
|
|
190
|
+
or defect slice:
|
|
191
|
+
|
|
192
|
+
1. Select one behavior from task, AC, issue, or accepted clarification.
|
|
193
|
+
2. Write or update one public-interface behavior test or scenario expectation.
|
|
194
|
+
3. Run that focused test and record RED evidence. If RED cannot be observed
|
|
195
|
+
because the harness, fixture, or dependency is unavailable, record the tool
|
|
196
|
+
gap before implementation.
|
|
197
|
+
4. Implement the smallest code change that can make this behavior pass.
|
|
198
|
+
5. Run the focused test again and record GREEN evidence before starting another
|
|
199
|
+
behavior.
|
|
200
|
+
6. Refactor only while GREEN, then rerun the affected focused test.
|
|
201
|
+
|
|
202
|
+
The coding handoff must list cycles separately. A final full-suite result is
|
|
203
|
+
useful only after the vertical cycles; it must not replace per-behavior evidence.
|
|
204
|
+
|
|
205
|
+
## Preproposal Team Simulation
|
|
206
|
+
|
|
207
|
+
`preproposal` is one workflow-node with role lanes, not a set of standalone skills.
|
|
208
|
+
|
|
209
|
+
Before lane work begins, the lead-integrator owns intake clarity. A one-sentence
|
|
210
|
+
or vague requirement must be restated as known facts, inferred assumptions,
|
|
211
|
+
source gaps, non-goals, and at most one blocking question. The lead must inspect
|
|
212
|
+
available repo docs, code, `.zsk` sources, glossary, and decision records before
|
|
213
|
+
asking the user. Every blocking question includes the recommended answer and
|
|
214
|
+
tradeoff, and accepted clarification is recorded as fact, decision, assumption,
|
|
215
|
+
or open question.
|
|
216
|
+
|
|
217
|
+
- Product-owner and business-analyst lanes own product direction, user/problem framing, business process, scope options, non-goals, risks, and evidence gaps.
|
|
218
|
+
- Planner and architect lanes own MVP/phase/module decomposition, dependency shape, boundary rationale, deferred work, and feasibility risks.
|
|
219
|
+
- UX and design-source lanes own user journey, IA/navigation seeds, interaction handoff when triggered, interaction states, usability/accessibility risks, provider-backed source maps, and design-source needs during `preproposal`.
|
|
220
|
+
- QA and researcher lanes own scenario seeds, risk seeds, test-basis candidates, current external evidence when needed, and source gaps.
|
|
221
|
+
- Verifier/lead-integrator owns checkpoint completeness, blocker creation, raw manifest/index update or no-update rationale, and readiness handoff.
|
|
222
|
+
|
|
223
|
+
Checkpoint order is mandatory when dependencies exist:
|
|
224
|
+
|
|
225
|
+
```text
|
|
226
|
+
product review -> roadmap/decomposition review -> UX/design-readiness review -> readiness review -> proposal
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
If a checkpoint repeatedly fails, the lead does not keep rewriting silently. It creates or updates a blocker/issue with owner, missing input, impact, next action, and retry count. The default retry limit is 2 unless project config supplies a different policy; unsupplied project thresholds are still recorded as `未指定`.
|
|
230
|
+
|
|
94
231
|
## Kiro-Style Task Handoff
|
|
95
232
|
|
|
96
233
|
`task` must use nested Markdown checkboxes as the primary execution surface:
|
|
@@ -101,7 +238,7 @@ Consistency checks:
|
|
|
101
238
|
- [ ] 1.2 <subtask>
|
|
102
239
|
```
|
|
103
240
|
|
|
104
|
-
Metadata belongs under the relevant checkbox item, not in a detached table alone. Each task group needs proposal/spec/design alignment, owner, dependencies, scope/files, expected output, evidence, and stop condition. Each subtask needs at least source ID, owner, scope/files, expected output, acceptance, and evidence. A task artifact without this hierarchy is not execution-ready.
|
|
241
|
+
Metadata belongs under the relevant checkbox item, not in a detached table alone. Each task group needs proposal/spec/design/ADR alignment, owner, dependencies, scope/files, expected output, evidence, and stop condition. Each subtask needs at least source ID, owner, scope/files, expected output, acceptance, and evidence. A task artifact without this hierarchy is not execution-ready.
|
|
105
242
|
|
|
106
243
|
## Role Completeness
|
|
107
244
|
|
|
@@ -151,7 +288,9 @@ Use local SRS/PRD/customer notes first. If they are absent, stale, or insufficie
|
|
|
151
288
|
|
|
152
289
|
## Review-Specific Minimum
|
|
153
290
|
|
|
154
|
-
`review` must
|
|
291
|
+
`review` must classify the target mode before applying prerequisites. Supported modes include implementation/code-diff, preproposal/raw-source, `.zsk` workspace, stage/module doc, design/source target, and generic explicit path.
|
|
292
|
+
|
|
293
|
+
Implementation/code-diff review covers these lanes before a PASS verdict:
|
|
155
294
|
|
|
156
295
|
- scope and requirement drift;
|
|
157
296
|
- execution-path correctness;
|
|
@@ -162,14 +301,25 @@ Use local SRS/PRD/customer notes first. If they are absent, stale, or insufficie
|
|
|
162
301
|
- performance, concurrency, migration, and rollout checks when touched;
|
|
163
302
|
- ZSK harness compliance, output paths, issue taxonomy, and documentation feedback.
|
|
164
303
|
|
|
304
|
+
Preproposal/raw-source review must cover product direction, roadmap/decomposition, UX/design-readiness, assumptions/risks, source gaps, checkpoint order, readiness for proposal, and raw/evidence path placement. It must not fail merely because module `spec`, `design`, `tasks`, or `smoke` artifacts are absent.
|
|
305
|
+
|
|
306
|
+
Stage/module doc review must cover the target stage contract, source traceability, required outputs, blockers, downstream handoff quality, and split-artifact index/child links when used.
|
|
307
|
+
|
|
308
|
+
`.zsk` workspace review must cover config/filesystem correspondence, raws/source taxonomy, active module workspace, issue/evidence/playwright scope routing, learning proposal authority, and stale path references.
|
|
309
|
+
|
|
165
310
|
For `DEEP` review, dispatch at least three independent expert lanes when subagents are available: architecture/API, security/data, and tests/evidence. Add frontend/performance specialists when the diff touches those domains.
|
|
166
311
|
|
|
167
312
|
## ZSK Entry Points
|
|
168
313
|
|
|
169
314
|
`zskplan` and `zsk` are ZSK-aware RalphPlan/Ralph-style user surfaces, not shortcuts around the harness.
|
|
170
315
|
|
|
171
|
-
- `zskplan` freezes the route and writes the plan artifact under `.zsk/plans/`: selected skills, required inputs, `.zsk` output map, expert lanes, subagent plan, Playwright/auth/evidence plan, fix loop, blockers, and stop condition.
|
|
172
|
-
- `
|
|
316
|
+
- `zskplan` freezes the route and writes the plan artifact under `.zsk/plans/`: governing-rule coverage, module decomposition, per-module stage route, selected skills, required inputs, `.zsk` output map, expert lanes, subagent plan, Playwright/auth/evidence plan, fix loop, blockers, and stop condition.
|
|
317
|
+
- `zskplan` may plan `preproposal` and module-level `proposal`, `spec`, `design`, and `task` outputs from a simple proposal plus system/project rules. It must not dispatch those stages or author those final artifacts itself; `zsk` executes the plan and the selected stage skill must run with its own required inputs, forbidden scope, output contract, and evidence gate.
|
|
318
|
+
- Until a plan artifact explicitly says `Ready for zsk: yes`, `zskplan` may write only the chosen `.zsk/plans/**` artifact. It must not mutate `skills/**`, `harness/**`, `packages/**`, `tools/**`, generated package assets, product code, or runtime evidence.
|
|
319
|
+
- If `.zsk/docs/SYSTEM-SPEC.md` or `.zsk/docs/PROJECT-CONFIG.md` is missing, `zskplan` may plan a rule-bootstrap step from proposal evidence, configured sources, repo facts, and best-practice references. Derived rules must be labeled `inferred`, unsupplied thresholds must remain `未指定`, and mandatory unaccepted policy remains a blocker.
|
|
320
|
+
- `zsk` executes the frozen or inferred route: it selects the legal module/stage pair and skill from the plan, dispatches required expert lanes, runs `preproposal`, `proposal`, `spec`, `design`, `task`, or later stage skills through their own contracts, integrates results, writes only `.zsk` artifacts, validates, fixes, and repeats until the plan is complete or blocked.
|
|
321
|
+
- When the route includes `preproposal`, `zsk` must run the checkpoint review loop in order and preserve checkpoint verdicts before formal proposal starts.
|
|
322
|
+
- `fix` is the dedicated issue-driven skill and route name. It requires a persisted issue path/id or equivalent accepted clarification, then routes through root-cause analysis, scoped `coding`, regression guard, issue update, `smoke`/`review`, `ready`, and `verify`. It is not generic repair and must not bypass downstream stage contracts.
|
|
173
323
|
- Neither entry point may skip a selected skill's own contract, forbidden scope, required inputs, issue routing, or evidence gate.
|
|
174
324
|
- Before entering a downstream stage, the workflow must evaluate required upstream artifact quality or record why the gate is N/A. Below-threshold quality gaps require an explicit risk acceptance; missing mandatory artifacts remain blocked.
|
|
175
325
|
- Every emitted subagent packet must be durable: `runId`, `packetId`, heartbeat/deadline policy, status path, write scope, evidence obligation, stop condition, and fallback route. Stale packets must be completed by fallback evidence or re-emitted; they cannot count as completed work.
|
|
@@ -190,6 +340,7 @@ For `DEEP` review, dispatch at least three independent expert lanes when subagen
|
|
|
190
340
|
- write project-local proposals under the current project's `.zsk/learning/proposals/` only when the proposal affects that project alone;
|
|
191
341
|
- write reusable ZSK core proposals under the canonical ZSK source repo `.zsk/learning/proposals/`, resolved by `ZSK_LEARNING_REPO`, `ZSK_CORE_REPO`, or a recognized ZSK source checkout;
|
|
192
342
|
- if the canonical ZSK source repo cannot be resolved or is not writable, report `BLOCKED` with the missing root, intended proposal name, evidence, and next action instead of writing core learning into the consuming project;
|
|
343
|
+
- sync-check linked project-local and reusable core proposals together; if one side changes and the counterpart does not, record a no-update rationale in the edited proposal;
|
|
193
344
|
- group accepted proposals into one optimization batch with target files, regression prompts, risks, and review status.
|
|
194
345
|
|
|
195
346
|
`learn` must not mutate core skills, harness constraints, packs, templates, or generated artifacts from one unreviewed incident. It must not copy external skills or harnesses wholesale; it adapts principles and testable constraints into ZSK proposals with source notes. Promotion requires review evidence and regression prompts.
|