prizmkit 1.0.45 → 1.0.58
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/adapters/claude/agent-adapter.js +2 -1
- package/bundled/adapters/claude/command-adapter.js +4 -3
- package/bundled/agents/prizm-dev-team-dev.md +1 -1
- package/bundled/dev-pipeline/README.md +3 -4
- package/bundled/dev-pipeline/assets/prizm-dev-team-integration.md +2 -3
- package/bundled/dev-pipeline/launch-bugfix-daemon.sh +2 -2
- package/bundled/dev-pipeline/launch-daemon.sh +2 -2
- package/bundled/dev-pipeline/lib/branch.sh +76 -0
- package/bundled/dev-pipeline/run-bugfix.sh +58 -149
- package/bundled/dev-pipeline/run.sh +60 -153
- package/bundled/dev-pipeline/scripts/parse-stream-progress.py +1 -1
- package/bundled/dev-pipeline/templates/bootstrap-tier1.md +8 -16
- package/bundled/dev-pipeline/templates/bootstrap-tier2.md +10 -18
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +20 -24
- package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +6 -6
- package/bundled/dev-pipeline/tests/conftest.py +19 -131
- package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +207 -0
- package/bundled/dev-pipeline/tests/test_utils.py +51 -110
- package/bundled/rules/prizm/prizm-commit-workflow.md +3 -3
- package/bundled/skills/_metadata.json +15 -16
- package/bundled/skills/app-planner/SKILL.md +8 -7
- package/bundled/skills/bug-fix-workflow/SKILL.md +174 -0
- package/bundled/skills/bug-planner/SKILL.md +20 -32
- package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +3 -5
- package/bundled/skills/dev-pipeline-launcher/SKILL.md +4 -6
- package/bundled/skills/feature-workflow/SKILL.md +25 -42
- package/bundled/skills/prizm-kit/SKILL.md +57 -21
- package/bundled/skills/prizm-kit/assets/{claude-md-template.md → project-memory-template.md} +2 -2
- package/bundled/skills/prizmkit-analyze/SKILL.md +41 -29
- package/bundled/skills/prizmkit-clarify/SKILL.md +40 -30
- package/bundled/skills/prizmkit-code-review/SKILL.md +48 -43
- package/bundled/skills/prizmkit-committer/SKILL.md +30 -68
- package/bundled/skills/prizmkit-implement/SKILL.md +48 -26
- package/bundled/skills/prizmkit-init/SKILL.md +57 -66
- package/bundled/skills/prizmkit-plan/SKILL.md +46 -20
- package/bundled/skills/prizmkit-prizm-docs/SKILL.md +60 -19
- package/bundled/skills/prizmkit-prizm-docs/assets/PRIZM-SPEC.md +23 -23
- package/bundled/skills/prizmkit-retrospective/SKILL.md +142 -65
- package/bundled/skills/prizmkit-retrospective/assets/retrospective-template.md +13 -0
- package/bundled/skills/prizmkit-specify/SKILL.md +63 -13
- package/bundled/skills/refactor-workflow/SKILL.md +105 -49
- package/bundled/team/prizm-dev-team.json +2 -2
- package/package.json +1 -1
- package/src/scaffold.js +3 -3
- package/bundled/dev-pipeline/lib/worktree.sh +0 -164
- package/bundled/dev-pipeline/tests/__init__.py +0 -0
- package/bundled/dev-pipeline/tests/test_check_session.py +0 -131
- package/bundled/dev-pipeline/tests/test_cleanup_logs.py +0 -119
- package/bundled/dev-pipeline/tests/test_detect_stuck.py +0 -207
- package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +0 -181
- package/bundled/dev-pipeline/tests/test_generate_prompt.py +0 -190
- package/bundled/dev-pipeline/tests/test_init_bugfix_pipeline.py +0 -153
- package/bundled/dev-pipeline/tests/test_init_pipeline.py +0 -241
- package/bundled/dev-pipeline/tests/test_update_bug_status.py +0 -142
- package/bundled/dev-pipeline/tests/test_update_feature_status.py +0 -338
- package/bundled/dev-pipeline/tests/test_worktree.py +0 -236
- package/bundled/dev-pipeline/tests/test_worktree_integration.py +0 -796
- package/bundled/skills/prizm-kit/assets/codebuddy-md-template.md +0 -35
- package/bundled/skills/prizm-kit/assets/hooks/prizm-commit-hook.json +0 -15
- package/bundled/skills/prizmkit-summarize/SKILL.md +0 -51
- package/bundled/skills/prizmkit-summarize/assets/registry-template.md +0 -18
- package/bundled/templates/hooks/commit-intent-claude.json +0 -26
- /package/bundled/templates/hooks/{commit-intent-codebuddy.json → commit-intent.json} +0 -0
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
## PrizmKit Documentation Framework
|
|
2
|
-
|
|
3
|
-
This project uses PrizmKit with the Prizm documentation system for AI-optimized progressive context loading.
|
|
4
|
-
|
|
5
|
-
### Progressive Loading Protocol
|
|
6
|
-
- ON SESSION START: Always read `.prizm-docs/root.prizm` first (L0 — project map)
|
|
7
|
-
- ON TASK: Read L1 (`.prizm-docs/<module>.prizm`) for relevant modules referenced in MODULE_INDEX
|
|
8
|
-
- ON FILE EDIT: Read L2 (`.prizm-docs/<module>/<submodule>.prizm`) before modifying files. Pay attention to TRAPS and DECISIONS.
|
|
9
|
-
- NEVER load all .prizm docs at once. Load only what is needed for the current task.
|
|
10
|
-
|
|
11
|
-
### Auto-Update Protocol
|
|
12
|
-
- BEFORE EVERY COMMIT: Update affected `.prizm-docs/` files
|
|
13
|
-
- The UserPromptSubmit hook will remind you automatically
|
|
14
|
-
- Use `prizmkit-committer` skill for the complete commit workflow
|
|
15
|
-
|
|
16
|
-
### Doc Format Rules
|
|
17
|
-
- All `.prizm` files use KEY: value format, not prose
|
|
18
|
-
- Size limits: L0 = 4KB, L1 = 3KB, L2 = 5KB
|
|
19
|
-
- Arrow notation (->) indicates load pointers to other .prizm docs
|
|
20
|
-
- DECISIONS and CHANGELOG are append-only (never delete entries)
|
|
21
|
-
|
|
22
|
-
### Creating New L2 Docs
|
|
23
|
-
- When you first modify files in a sub-module that has no L2 doc:
|
|
24
|
-
1. Read the source files in that sub-module
|
|
25
|
-
2. Generate a new L2 `.prizm` file following Prizm specification
|
|
26
|
-
3. Add a pointer in the parent L1 doc's SUBDIRS section
|
|
27
|
-
|
|
28
|
-
### Fast Path for Simple Changes
|
|
29
|
-
Not every change needs the full spec -> plan -> tasks workflow. Use fast path for:
|
|
30
|
-
- Bug fixes with clear root cause, config tweaks, typo fixes, simple refactors
|
|
31
|
-
- Documentation-only changes, test additions for existing code
|
|
32
|
-
- Directly use `prizmkit.implement` with inline task description, then `prizmkit.commit`
|
|
33
|
-
|
|
34
|
-
Use the full workflow (specify -> plan -> tasks -> analyze -> implement) for:
|
|
35
|
-
- New features, multi-file coordinated changes, architectural decisions, data model or API changes
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hooks": {
|
|
3
|
-
"UserPromptSubmit": [
|
|
4
|
-
{
|
|
5
|
-
"matcher": "\\b(commit|Commit|push|Push|finish|Finish|ship|Ship|merge|Merge|pull request|Pull Request|pr|PR)\\b|提交|推送|收尾|完成任务|合并|发版|发布",
|
|
6
|
-
"hooks": [
|
|
7
|
-
{
|
|
8
|
-
"type": "command",
|
|
9
|
-
"command": "echo 'PRIZMKIT_DOC_UPDATE_REQUIRED: Before committing, you MUST update .prizm-docs/ per Prizm auto-update protocol. Steps: 1) Run git diff --cached --name-status. 2) Map changed files to modules via root.prizm MODULE_INDEX. 3) Read and update affected .prizm files (only changed sections). 4) Append to changelog.prizm. 5) Stage .prizm files with git add .prizm-docs/. 6) Then proceed with commit using prizmkit-committer workflow. RULES: Never rewrite entire .prizm files. Never add prose. Only update affected sections.'"
|
|
10
|
-
}
|
|
11
|
-
]
|
|
12
|
-
}
|
|
13
|
-
]
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "prizmkit-summarize"
|
|
3
|
-
description: "Archive completed features to REGISTRY.md. Extracts metadata from specs, scans code, updates feature index. Invoke after code review passes or feature is done. (project)"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# PrizmKit Summarize
|
|
7
|
-
|
|
8
|
-
Archive completed features to the feature registry. Extracts metadata from specs and code, generates a registry entry, and appends a changelog record. Idempotent — re-running produces the same output.
|
|
9
|
-
|
|
10
|
-
## Commands
|
|
11
|
-
|
|
12
|
-
### prizmkit.summarize
|
|
13
|
-
|
|
14
|
-
Archive a completed feature to the registry.
|
|
15
|
-
|
|
16
|
-
**PRECONDITION:** `spec.md`, `plan.md`, `tasks.md` exist in `.prizmkit/specs/###-feature-name/`
|
|
17
|
-
|
|
18
|
-
**STEPS:**
|
|
19
|
-
|
|
20
|
-
1. Read `spec.md`, `plan.md`, `tasks.md`
|
|
21
|
-
2. Analyze `tasks.md` completion rate — warn if < 100%
|
|
22
|
-
3. Scan actual code directories for core file paths
|
|
23
|
-
4. Generate REGISTRY entry:
|
|
24
|
-
- Feature number and name
|
|
25
|
-
- Branch name
|
|
26
|
-
- Status (complete/partial)
|
|
27
|
-
- Key files and directories
|
|
28
|
-
- API endpoints added/modified
|
|
29
|
-
- Data model changes
|
|
30
|
-
- Completion date
|
|
31
|
-
5. Append to `.prizmkit/specs/REGISTRY.md` (create from template `${SKILL_DIR}/assets/registry-template.md` if not exists)
|
|
32
|
-
6. Append changelog entry
|
|
33
|
-
7. Output: registry entry summary
|
|
34
|
-
|
|
35
|
-
**KEY RULES:**
|
|
36
|
-
- Idempotent: same input MUST produce same output on re-run
|
|
37
|
-
- If `tasks.md` completion < 100%, status is "Partial" with warning
|
|
38
|
-
- REGISTRY.md is append-only — never modify existing entries
|
|
39
|
-
- Changelog entries use format: `YYYY-MM-DD | [###] [Feature Name] | [Status]`
|
|
40
|
-
- If REGISTRY.md does not exist, create it from template before appending
|
|
41
|
-
- **Bug fixes MUST NOT create new REGISTRY.md entries.** Bugs are refinements of incomplete existing features, not new functionality. Bug fix commits should only update the original feature's changelog, not generate a new registry entry. Do NOT invoke this skill for bug fix commits.
|
|
42
|
-
|
|
43
|
-
**HANDOFF:** `prizmkit.specify` (start next feature) or `prizmkit.retrospective` (extract lessons)
|
|
44
|
-
|
|
45
|
-
## Template
|
|
46
|
-
|
|
47
|
-
The registry template is located at `${SKILL_DIR}/assets/registry-template.md`.
|
|
48
|
-
|
|
49
|
-
## Output
|
|
50
|
-
|
|
51
|
-
- `.prizmkit/specs/REGISTRY.md` — Updated with new feature entry and changelog record
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# PrizmKit Feature Registry
|
|
2
|
-
|
|
3
|
-
> Auto-generated by prizmkit-summarize. Do not edit manually.
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
|
|
7
|
-
### [###] [Feature Name]
|
|
8
|
-
- **Branch**: ###-feature-name
|
|
9
|
-
- **Status**: Complete | Partial
|
|
10
|
-
- **Date**: YYYY-MM-DD
|
|
11
|
-
- **Key Files**: [list]
|
|
12
|
-
- **API Changes**: [summary]
|
|
13
|
-
- **Data Changes**: [summary]
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## Changelog
|
|
18
|
-
- YYYY-MM-DD | [###] [Feature Name] | [Status]
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hooks": {
|
|
3
|
-
"UserPromptSubmit": [
|
|
4
|
-
{
|
|
5
|
-
"matcher": "\\b(commit|Commit|push|Push|finish|Finish|ship|Ship|merge|Merge|pull request|Pull Request|pr|PR)\\b|提交|推送|收尾|完成任务|合并|发版|发布",
|
|
6
|
-
"hooks": [
|
|
7
|
-
{
|
|
8
|
-
"type": "command",
|
|
9
|
-
"command": "SRC=$(git diff --cached --name-only 2>/dev/null | grep -cE '\\.(ts|tsx|js|jsx|py|go|rs|java)$'); if [ \"$SRC\" -gt 0 ]; then PRIZM=$(git diff --cached --name-only 2>/dev/null | grep -c '^\\.prizm-docs/'); if [ \"$PRIZM\" -gt 0 ]; then echo \"PRIZMKIT_DOC_STATUS: $SRC source file(s) staged | .prizm-docs/ updated ($PRIZM file(s))\"; else echo \"PRIZMKIT_DOC_STATUS: $SRC source file(s) staged | .prizm-docs/ NOT UPDATED — update if this is a feature change\"; fi; fi"
|
|
10
|
-
}
|
|
11
|
-
]
|
|
12
|
-
}
|
|
13
|
-
],
|
|
14
|
-
"PostToolUse": [
|
|
15
|
-
{
|
|
16
|
-
"matcher": "Bash",
|
|
17
|
-
"hooks": [
|
|
18
|
-
{
|
|
19
|
-
"type": "command",
|
|
20
|
-
"command": "if echo \"$CLAUDE_TOOL_INPUT\" 2>/dev/null | grep -qE 'git (commit|merge|rebase)' 2>/dev/null; then DRIFT=$(sh .prizmkit/scripts/diff-prizm-docs.sh 2>/dev/null); if [ -n \"$DRIFT\" ]; then echo \"PRIZMKIT_DRIFT_DETECTED: prizm-docs structural differences found after git operation:\"; echo \"$DRIFT\"; echo \"Please update affected .prizm-docs/ files using /prizmkit-prizm-docs.\"; fi; fi"
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
}
|
|
File without changes
|