prizmkit 1.1.111 → 1.1.112
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/bundled/VERSION.json +3 -3
- package/bundled/agents/prizm-dev-team-reviewer.md +12 -1
- package/bundled/dev-pipeline/prizmkit_runtime/interoperability.py +1 -0
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +19 -73
- package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +283 -421
- package/bundled/dev-pipeline/scripts/generate-recovery-prompt.py +1 -1
- package/bundled/dev-pipeline/scripts/generate-refactor-prompt.py +259 -481
- package/bundled/dev-pipeline/scripts/init-bugfix-pipeline.py +34 -0
- package/bundled/dev-pipeline/scripts/init-pipeline.py +12 -0
- package/bundled/dev-pipeline/scripts/init-refactor-pipeline.py +24 -1
- package/bundled/dev-pipeline/scripts/prompt_framework.py +312 -0
- package/bundled/dev-pipeline/scripts/update-bug-status.py +87 -20
- package/bundled/dev-pipeline/scripts/update-feature-status.py +82 -16
- package/bundled/dev-pipeline/scripts/update-refactor-status.py +68 -28
- package/bundled/dev-pipeline/scripts/utils.py +171 -0
- package/bundled/dev-pipeline/templates/bootstrap-prompt.md +1 -1
- package/bundled/dev-pipeline/templates/bootstrap-tier2.md +10 -18
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +14 -25
- package/bundled/dev-pipeline/templates/bug-fix-list-schema.json +9 -1
- package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +11 -8
- package/bundled/dev-pipeline/templates/refactor-bootstrap-prompt.md +122 -182
- package/bundled/dev-pipeline/templates/sections/bugfix-artifacts.md +16 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-critical-paths.md +12 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-mission.md +9 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-commit-report.md +31 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-critic.md +22 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-diagnose-plan.md +23 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-implement.md +20 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-init.md +9 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-manual-verification.md +15 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-review.md +29 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-reminders.md +11 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-session-context.md +7 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-session-status.md +31 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-task-contract.md +40 -0
- package/bundled/dev-pipeline/templates/sections/failure-capture.md +2 -2
- package/bundled/dev-pipeline/templates/sections/phase-browser-verification-auto.md +1 -1
- package/bundled/dev-pipeline/templates/sections/refactor-artifacts.md +17 -0
- package/bundled/dev-pipeline/templates/sections/refactor-critical-paths.md +13 -0
- package/bundled/dev-pipeline/templates/sections/refactor-mission.md +9 -0
- package/bundled/dev-pipeline/templates/sections/refactor-phase-commit-report.md +37 -0
- package/bundled/dev-pipeline/templates/sections/refactor-phase-critic.md +22 -0
- package/bundled/dev-pipeline/templates/sections/refactor-phase-implement.md +16 -0
- package/bundled/dev-pipeline/templates/sections/refactor-phase-init.md +9 -0
- package/bundled/dev-pipeline/templates/sections/refactor-phase-plan.md +22 -0
- package/bundled/dev-pipeline/templates/sections/refactor-phase-review.md +19 -0
- package/bundled/dev-pipeline/templates/sections/refactor-reminders.md +11 -0
- package/bundled/dev-pipeline/templates/sections/refactor-session-context.md +7 -0
- package/bundled/dev-pipeline/templates/sections/refactor-session-status.md +28 -0
- package/bundled/dev-pipeline/templates/sections/refactor-task-contract.md +52 -0
- package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +17 -5
- package/bundled/dev-pipeline/tests/test_python_runner_parity.py +197 -0
- package/bundled/dev-pipeline/tests/test_unified_cli.py +6 -2
- package/bundled/dev-pipeline/tests/test_utils.py +66 -1
- package/bundled/skills/_metadata.json +1 -1
- package/bundled/skills/app-planner/SKILL.md +8 -7
- package/bundled/skills/app-planner/references/project-brief-guide.md +2 -2
- package/bundled/skills/app-planner/references/rules/backend/derivation-rules.md +1 -1
- package/bundled/skills/app-planner/references/rules/frontend/derivation-rules.md +1 -1
- package/bundled/skills/app-planner/references/rules-configuration.md +53 -26
- package/bundled/skills/bug-fix-workflow/SKILL.md +191 -336
- package/bundled/skills/bug-planner/SKILL.md +6 -5
- package/bundled/skills/bug-planner/references/critic-and-verification.md +3 -3
- package/bundled/skills/bug-planner/references/schema-validation.md +2 -1
- package/bundled/skills/bug-planner/scripts/validate-bug-list.py +30 -1
- package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +16 -16
- package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +2 -2
- package/bundled/skills/feature-pipeline-launcher/SKILL.md +19 -11
- package/bundled/skills/feature-planner/SKILL.md +9 -11
- package/bundled/skills/feature-planner/assets/planning-guide.md +1 -1
- package/bundled/skills/feature-planner/references/decomposition-patterns.md +1 -1
- package/bundled/skills/feature-planner/references/error-recovery.md +2 -1
- package/bundled/skills/feature-planner/references/incremental-feature-planning.md +2 -2
- package/bundled/skills/feature-planner/references/new-project-planning.md +35 -39
- package/bundled/skills/feature-planner/scripts/validate-and-generate.py +1 -1
- package/bundled/skills/feature-workflow/SKILL.md +169 -298
- package/bundled/skills/prizmkit/SKILL.md +103 -57
- package/bundled/skills/prizmkit-code-review/SKILL.md +97 -116
- package/bundled/skills/prizmkit-code-review/references/review-report-template.md +1 -0
- package/bundled/skills/prizmkit-code-review/references/reviewer-agent-prompt.md +12 -1
- package/bundled/skills/prizmkit-committer/SKILL.md +59 -47
- package/bundled/skills/prizmkit-deploy/SKILL.md +162 -381
- package/bundled/skills/prizmkit-deploy/references/ssh-adapter-flow.md +220 -0
- package/bundled/skills/prizmkit-implement/SKILL.md +51 -40
- package/bundled/skills/prizmkit-init/SKILL.md +4 -3
- package/bundled/skills/prizmkit-plan/SKILL.md +85 -70
- package/bundled/skills/prizmkit-prizm-docs/SKILL.md +94 -73
- package/bundled/skills/prizmkit-prizm-docs/assets/prizm-docs-format.md +20 -18
- package/bundled/skills/prizmkit-prizm-docs/references/op-update.md +18 -14
- package/bundled/skills/prizmkit-retrospective/SKILL.md +56 -48
- package/bundled/skills/prizmkit-retrospective/references/structural-sync-steps.md +79 -27
- package/bundled/skills/prizmkit-test/SKILL.md +138 -141
- package/bundled/skills/prizmkit-test/references/examples.md +10 -8
- package/bundled/skills/prizmkit-test/references/test-generation-steps.md +1 -1
- package/bundled/skills/prizmkit-test/references/test-report-template.md +2 -2
- package/bundled/skills/recovery-workflow/SKILL.md +195 -256
- package/bundled/skills/recovery-workflow/evals/evals.json +21 -13
- package/bundled/skills/recovery-workflow/references/detection.md +48 -39
- package/bundled/skills/recovery-workflow/scripts/detect-recovery-state.py +258 -322
- package/bundled/skills/refactor-pipeline-launcher/SKILL.md +29 -11
- package/bundled/skills/refactor-planner/SKILL.md +2 -2
- package/bundled/skills/refactor-planner/references/behavior-preservation.md +24 -19
- package/bundled/skills/refactor-planner/references/fast-path.md +2 -4
- package/bundled/skills/refactor-planner/references/planning-phases.md +2 -2
- package/bundled/skills/refactor-workflow/SKILL.md +173 -307
- package/package.json +1 -1
- package/src/scaffold.js +5 -0
- package/bundled/dev-pipeline/templates/agent-prompts/reviewer-review.md +0 -6
- package/bundled/skills/feature-workflow/references/brainstorm-guide.md +0 -137
- package/bundled/skills/refactor-workflow/references/brainstorm-guide.md +0 -116
|
@@ -1,89 +1,101 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "prizmkit-committer"
|
|
3
|
-
description: "Pure git commit workflow with safety checks. Stages files, generates Conventional
|
|
3
|
+
description: "Pure git commit workflow with safety checks. Stages intended files safely, generates a Conventional Commit message, commits, and verifies the result. Does not modify CHANGELOG.md or .prizmkit/prizm-docs/ by default; run /prizmkit-retrospective first only when the chosen lifecycle path requires docs sync. Trigger on: 'commit', 'submit', 'finish', 'done'. If the user says only 'ship it', clarify whether they mean commit or deploy. (project)"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# PrizmKit Committer
|
|
7
7
|
|
|
8
8
|
### When to Use
|
|
9
|
-
- User says "commit", "submit", "finish", "done with this task"
|
|
10
|
-
-
|
|
11
|
-
-
|
|
9
|
+
- User says "commit", "submit", "finish", "done with this task"
|
|
10
|
+
- The current lifecycle path is ready to record changes in git
|
|
11
|
+
- Required gates for the chosen path have passed or been explicitly deemed not applicable
|
|
12
12
|
|
|
13
13
|
### When NOT to Use
|
|
14
14
|
- No uncommitted changes exist — nothing to commit
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- Mid-merge conflict resolution — handle manually
|
|
15
|
+
- User says only "ship it" — clarify commit vs deploy first
|
|
16
|
+
- Current path still has required unresolved gates, such as failed tests, unresolved review findings, or required retrospective work
|
|
17
|
+
- Mid-merge conflict resolution — handle conflicts manually before committing
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
## Gate Policy
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|---|---|---|
|
|
23
|
-
| Uncommitted changes exist | `git status` shows modified/added/untracked files | Inform user "nothing to commit" and stop |
|
|
24
|
-
| `.prizmkit/prizm-docs/` synced (feature/refactor) | `/prizmkit-retrospective` has run | Run `/prizmkit-retrospective` first |
|
|
25
|
-
| Code review passed (pipeline mode) | `review-report.md` in artifact directory has `## Verdict: PASS` | Run `/prizmkit-code-review` first |
|
|
21
|
+
`/prizmkit-committer` does not decide the entire lifecycle. It checks that the gates required by the chosen path are satisfied:
|
|
26
22
|
|
|
27
|
-
|
|
23
|
+
| Path | Commit gate expectation |
|
|
24
|
+
|---|---|
|
|
25
|
+
| Direct edit | Verify the specific edit as appropriate; no spec/review/retro artifact required. |
|
|
26
|
+
| Fast path | Simplified plan tasks complete; run tests or retrospective only if risk/knowledge triggers apply. |
|
|
27
|
+
| Full path | Implementation complete; review passed; retrospective completed when docs or durable knowledge changed; tests completed when risk-triggered. |
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
If a gate is missing but not applicable, state why before committing. If a gate is missing and applicable, stop and run or request the missing gate.
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
## Workflow
|
|
32
|
+
|
|
33
|
+
Follow these steps in order. The goal is to commit exactly the intended changes and avoid staging secrets or unrelated files.
|
|
34
|
+
|
|
35
|
+
### Step 1: Status Check
|
|
32
36
|
|
|
33
|
-
#### Step 1: Status Check
|
|
34
37
|
```bash
|
|
35
38
|
git status
|
|
36
39
|
```
|
|
37
|
-
- If "nothing to commit, working tree clean": inform user and stop
|
|
38
|
-
- If there are changes: proceed
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
- If the working tree is clean, inform the user and stop.
|
|
42
|
+
- If changes exist, inspect modified, deleted, and untracked files before staging.
|
|
43
|
+
- Warn about sensitive-looking files: `.env*`, `*credential*`, `*secret*`, `*.pem`, `*.key`.
|
|
44
|
+
|
|
45
|
+
### Step 2: Generate Commit Message
|
|
46
|
+
|
|
47
|
+
Analyze the staged/unstaged diff and task context to generate a concise Conventional Commit message:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
<type>(<scope>): <description>
|
|
51
|
+
```
|
|
42
52
|
|
|
43
|
-
|
|
44
|
-
If CHANGELOG.md exists in the project root, append an entry following Keep a Changelog format under the `[Unreleased]` section. Match the existing style in the file.
|
|
53
|
+
The message should capture what changed and why it matters.
|
|
45
54
|
|
|
46
|
-
|
|
55
|
+
### Step 3: Stage Safely
|
|
47
56
|
|
|
48
|
-
|
|
57
|
+
Never use `git add .` or `git add -A`; broad staging can accidentally include secrets or unrelated files.
|
|
49
58
|
|
|
50
|
-
1.
|
|
51
|
-
2. Stage
|
|
52
|
-
3.
|
|
53
|
-
4. Verify staged content with `git diff --cached --stat` before committing.
|
|
59
|
+
1. Stage tracked modified/deleted files with `git add -u` when all tracked changes are intended.
|
|
60
|
+
2. Stage new files explicitly by path after confirming they belong in the commit.
|
|
61
|
+
3. Verify staged content:
|
|
54
62
|
|
|
55
63
|
```bash
|
|
56
|
-
git
|
|
64
|
+
git diff --cached --stat
|
|
57
65
|
```
|
|
58
|
-
Follow Conventional Commits format.
|
|
59
66
|
|
|
60
|
-
|
|
67
|
+
If staged content differs from the intended change set, unstage and correct it before committing.
|
|
68
|
+
|
|
69
|
+
### Step 4: Commit
|
|
70
|
+
|
|
61
71
|
```bash
|
|
62
|
-
git
|
|
72
|
+
git commit -m "<type>(<scope>): <description>"
|
|
63
73
|
```
|
|
64
|
-
Confirm the commit was recorded.
|
|
65
74
|
|
|
66
|
-
|
|
75
|
+
Do not update `CHANGELOG.md` by default. Changelog updates belong to release, publish, version-bump workflows, or explicit user requests.
|
|
76
|
+
|
|
77
|
+
### Step 5: Verification
|
|
78
|
+
|
|
67
79
|
```bash
|
|
80
|
+
git log -1 --stat
|
|
68
81
|
git status
|
|
69
82
|
```
|
|
70
|
-
- If "nothing to commit, working tree clean": commit verified successfully, proceed
|
|
71
83
|
|
|
72
|
-
|
|
84
|
+
Confirm the commit was recorded and report whether the working tree is clean or has remaining intentionally uncommitted changes.
|
|
85
|
+
|
|
86
|
+
### Step 6: Optional Push
|
|
87
|
+
|
|
73
88
|
Ask user: "Push to remote?"
|
|
74
|
-
- Yes: `git push`
|
|
75
|
-
- No: Stop
|
|
76
89
|
|
|
77
|
-
|
|
90
|
+
- Yes: run `git push`
|
|
91
|
+
- No: stop after reporting the commit hash
|
|
78
92
|
|
|
79
|
-
|
|
93
|
+
**Headless mode**: If invoked with `--headless`, skip the push question, do not push, and stop after Step 5 verification.
|
|
80
94
|
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
git commit -m "feat(avatar): add user avatar upload with S3 storage"
|
|
84
|
-
```
|
|
95
|
+
## Examples
|
|
85
96
|
|
|
86
|
-
|
|
87
|
-
|
|
97
|
+
```bash
|
|
98
|
+
git commit -m "feat(avatar): add user avatar upload with S3 storage"
|
|
88
99
|
git commit -m "fix(auth): handle null token in refresh flow"
|
|
100
|
+
git commit -m "docs(prizm): clarify lifecycle gate policy"
|
|
89
101
|
```
|