prizmkit 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/bundled/VERSION.json +5 -0
  2. package/bundled/adapters/claude/agent-adapter.js +108 -0
  3. package/bundled/adapters/claude/command-adapter.js +104 -0
  4. package/bundled/adapters/claude/paths.js +35 -0
  5. package/bundled/adapters/claude/rules-adapter.js +77 -0
  6. package/bundled/adapters/claude/settings-adapter.js +73 -0
  7. package/bundled/adapters/claude/team-adapter.js +183 -0
  8. package/bundled/adapters/codebuddy/agent-adapter.js +43 -0
  9. package/bundled/adapters/codebuddy/paths.js +29 -0
  10. package/bundled/adapters/codebuddy/settings-adapter.js +47 -0
  11. package/bundled/adapters/codebuddy/skill-adapter.js +68 -0
  12. package/bundled/adapters/codebuddy/team-adapter.js +46 -0
  13. package/bundled/adapters/shared/frontmatter.js +77 -0
  14. package/bundled/agents/prizm-dev-team-coordinator.md +142 -0
  15. package/bundled/agents/prizm-dev-team-dev.md +99 -0
  16. package/bundled/agents/prizm-dev-team-pm.md +114 -0
  17. package/bundled/agents/prizm-dev-team-reviewer.md +119 -0
  18. package/bundled/dev-pipeline/README.md +482 -0
  19. package/bundled/dev-pipeline/assets/feature-list-example.json +147 -0
  20. package/bundled/dev-pipeline/assets/prizm-dev-team-integration.md +138 -0
  21. package/bundled/dev-pipeline/launch-bugfix-daemon.sh +425 -0
  22. package/bundled/dev-pipeline/launch-daemon.sh +549 -0
  23. package/bundled/dev-pipeline/reset-feature.sh +209 -0
  24. package/bundled/dev-pipeline/retry-bug.sh +344 -0
  25. package/bundled/dev-pipeline/retry-feature.sh +338 -0
  26. package/bundled/dev-pipeline/run-bugfix.sh +638 -0
  27. package/bundled/dev-pipeline/run.sh +845 -0
  28. package/bundled/dev-pipeline/scripts/check-session-status.py +158 -0
  29. package/bundled/dev-pipeline/scripts/detect-stuck.py +385 -0
  30. package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +598 -0
  31. package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +402 -0
  32. package/bundled/dev-pipeline/scripts/init-bugfix-pipeline.py +294 -0
  33. package/bundled/dev-pipeline/scripts/init-dev-team.py +134 -0
  34. package/bundled/dev-pipeline/scripts/init-pipeline.py +335 -0
  35. package/bundled/dev-pipeline/scripts/update-bug-status.py +748 -0
  36. package/bundled/dev-pipeline/scripts/update-feature-status.py +1076 -0
  37. package/bundled/dev-pipeline/templates/bootstrap-prompt.md +262 -0
  38. package/bundled/dev-pipeline/templates/bug-fix-list-schema.json +159 -0
  39. package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +291 -0
  40. package/bundled/dev-pipeline/templates/feature-list-schema.json +112 -0
  41. package/bundled/dev-pipeline/templates/session-status-schema.json +77 -0
  42. package/bundled/skills/_metadata.json +267 -0
  43. package/bundled/skills/app-planner/SKILL.md +580 -0
  44. package/bundled/skills/app-planner/assets/planning-guide.md +313 -0
  45. package/bundled/skills/app-planner/scripts/validate-and-generate.py +758 -0
  46. package/bundled/skills/bug-planner/SKILL.md +235 -0
  47. package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +252 -0
  48. package/bundled/skills/dev-pipeline-launcher/SKILL.md +223 -0
  49. package/bundled/skills/prizm-kit/SKILL.md +151 -0
  50. package/bundled/skills/prizm-kit/assets/claude-md-template.md +38 -0
  51. package/bundled/skills/prizm-kit/assets/codebuddy-md-template.md +35 -0
  52. package/bundled/skills/prizm-kit/assets/hooks/prizm-commit-hook.json +15 -0
  53. package/bundled/skills/prizmkit-adr-manager/SKILL.md +68 -0
  54. package/bundled/skills/prizmkit-adr-manager/assets/adr-template.md +26 -0
  55. package/bundled/skills/prizmkit-analyze/SKILL.md +194 -0
  56. package/bundled/skills/prizmkit-api-doc-generator/SKILL.md +56 -0
  57. package/bundled/skills/prizmkit-bug-fix-workflow/SKILL.md +351 -0
  58. package/bundled/skills/prizmkit-bug-reproducer/SKILL.md +62 -0
  59. package/bundled/skills/prizmkit-ci-cd-generator/SKILL.md +54 -0
  60. package/bundled/skills/prizmkit-clarify/SKILL.md +52 -0
  61. package/bundled/skills/prizmkit-code-review/SKILL.md +70 -0
  62. package/bundled/skills/prizmkit-committer/SKILL.md +117 -0
  63. package/bundled/skills/prizmkit-db-migration/SKILL.md +65 -0
  64. package/bundled/skills/prizmkit-dependency-health/SKILL.md +123 -0
  65. package/bundled/skills/prizmkit-deployment-strategy/SKILL.md +58 -0
  66. package/bundled/skills/prizmkit-error-triage/SKILL.md +55 -0
  67. package/bundled/skills/prizmkit-implement/SKILL.md +47 -0
  68. package/bundled/skills/prizmkit-init/SKILL.md +156 -0
  69. package/bundled/skills/prizmkit-log-analyzer/SKILL.md +55 -0
  70. package/bundled/skills/prizmkit-monitoring-setup/SKILL.md +75 -0
  71. package/bundled/skills/prizmkit-onboarding-generator/SKILL.md +70 -0
  72. package/bundled/skills/prizmkit-perf-profiler/SKILL.md +55 -0
  73. package/bundled/skills/prizmkit-plan/SKILL.md +54 -0
  74. package/bundled/skills/prizmkit-plan/assets/plan-template.md +37 -0
  75. package/bundled/skills/prizmkit-prizm-docs/SKILL.md +140 -0
  76. package/bundled/skills/prizmkit-prizm-docs/assets/PRIZM-SPEC.md +943 -0
  77. package/bundled/skills/prizmkit-retrospective/SKILL.md +79 -0
  78. package/bundled/skills/prizmkit-security-audit/SKILL.md +130 -0
  79. package/bundled/skills/prizmkit-specify/SKILL.md +52 -0
  80. package/bundled/skills/prizmkit-specify/assets/spec-template.md +37 -0
  81. package/bundled/skills/prizmkit-summarize/SKILL.md +51 -0
  82. package/bundled/skills/prizmkit-summarize/assets/registry-template.md +18 -0
  83. package/bundled/skills/prizmkit-tasks/SKILL.md +50 -0
  84. package/bundled/skills/prizmkit-tasks/assets/tasks-template.md +21 -0
  85. package/bundled/skills/prizmkit-tech-debt-tracker/SKILL.md +139 -0
  86. package/bundled/team/prizm-dev-team.json +47 -0
  87. package/bundled/templates/claude-md-template.md +38 -0
  88. package/bundled/templates/codebuddy-md-template.md +35 -0
  89. package/package.json +2 -1
@@ -0,0 +1,147 @@
1
+ {
2
+ "$schema": "dev-pipeline-feature-list-v1",
3
+ "app_name": "TaskFlow",
4
+ "app_description": "A modern task management application with team collaboration, real-time updates, and analytics dashboard",
5
+ "created_at": "2026-03-04T10:00:00Z",
6
+ "created_by": "app-planner",
7
+ "source_spec": ".prizmkit/specs/app-spec.md",
8
+ "features": [
9
+ {
10
+ "id": "F-001",
11
+ "title": "Project Infrastructure Setup",
12
+ "description": "Initialize the monorepo structure with Next.js frontend, Express backend, and PostgreSQL database. Set up ESLint, Prettier, TypeScript configs, and CI/CD basics.",
13
+ "priority": 1,
14
+ "estimated_complexity": "medium",
15
+ "dependencies": [],
16
+ "acceptance_criteria": [
17
+ "Next.js app runs on port 3000",
18
+ "Express API runs on port 4000",
19
+ "PostgreSQL connection verified",
20
+ "TypeScript compiles without errors",
21
+ "ESLint and Prettier configs applied"
22
+ ],
23
+ "status": "pending",
24
+ "session_granularity": "feature",
25
+ "sub_features": []
26
+ },
27
+ {
28
+ "id": "F-002",
29
+ "title": "User Authentication",
30
+ "description": "Implement email/password registration and login with JWT tokens. Include password reset via email, session management, and protected routes.",
31
+ "priority": 2,
32
+ "estimated_complexity": "medium",
33
+ "dependencies": [
34
+ "F-001"
35
+ ],
36
+ "acceptance_criteria": [
37
+ "Users can register with email and password",
38
+ "Users can login and receive JWT token",
39
+ "Password reset flow works via email",
40
+ "Protected API routes reject unauthenticated requests",
41
+ "Session persists across page refreshes"
42
+ ],
43
+ "status": "pending",
44
+ "session_granularity": "feature",
45
+ "sub_features": []
46
+ },
47
+ {
48
+ "id": "F-003",
49
+ "title": "Task CRUD Operations",
50
+ "description": "Core task management: create, read, update, delete tasks. Tasks have title, description, status (todo/in-progress/done), priority, due date, and assignee.",
51
+ "priority": 3,
52
+ "estimated_complexity": "medium",
53
+ "dependencies": [
54
+ "F-002"
55
+ ],
56
+ "acceptance_criteria": [
57
+ "Create task with all required fields",
58
+ "List tasks with pagination and filtering",
59
+ "Update task status, title, description",
60
+ "Delete task with confirmation",
61
+ "Task validation enforced on both client and server"
62
+ ],
63
+ "status": "pending",
64
+ "session_granularity": "feature",
65
+ "sub_features": []
66
+ },
67
+ {
68
+ "id": "F-004",
69
+ "title": "Project & Team Management",
70
+ "description": "Organize tasks into projects. Support team creation, member invitation, and role-based permissions (owner, admin, member, viewer).",
71
+ "priority": 4,
72
+ "estimated_complexity": "high",
73
+ "dependencies": [
74
+ "F-003"
75
+ ],
76
+ "acceptance_criteria": [
77
+ "Create and manage projects",
78
+ "Invite team members via email",
79
+ "Role-based access control enforced",
80
+ "Project-level task filtering",
81
+ "Team member list with role display"
82
+ ],
83
+ "status": "pending",
84
+ "session_granularity": "auto",
85
+ "sub_features": [
86
+ {
87
+ "id": "F-004-A",
88
+ "title": "Project CRUD & Organization",
89
+ "description": "Create, read, update, delete projects. Associate tasks with projects."
90
+ },
91
+ {
92
+ "id": "F-004-B",
93
+ "title": "Team & Permissions",
94
+ "description": "Team creation, member invitation, role-based access control."
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "id": "F-005",
100
+ "title": "Real-time Updates",
101
+ "description": "Add WebSocket-based real-time notifications for task changes, comments, and team activity. Show live updates without page refresh.",
102
+ "priority": 5,
103
+ "estimated_complexity": "high",
104
+ "dependencies": [
105
+ "F-003"
106
+ ],
107
+ "acceptance_criteria": [
108
+ "Task status changes appear in real-time for team members",
109
+ "New comments trigger live notifications",
110
+ "Connection status indicator shown in UI",
111
+ "Graceful fallback when WebSocket disconnects",
112
+ "No duplicate notifications"
113
+ ],
114
+ "status": "pending",
115
+ "session_granularity": "feature",
116
+ "sub_features": []
117
+ },
118
+ {
119
+ "id": "F-006",
120
+ "title": "Analytics Dashboard",
121
+ "description": "Dashboard showing task completion rates, team productivity metrics, overdue task tracking, and project progress visualization.",
122
+ "priority": 6,
123
+ "estimated_complexity": "medium",
124
+ "dependencies": [
125
+ "F-004",
126
+ "F-005"
127
+ ],
128
+ "acceptance_criteria": [
129
+ "Task completion rate chart (daily/weekly/monthly)",
130
+ "Team productivity leaderboard",
131
+ "Overdue task alerts and summary",
132
+ "Project progress bars",
133
+ "Date range filtering for all charts"
134
+ ],
135
+ "status": "pending",
136
+ "session_granularity": "feature",
137
+ "sub_features": []
138
+ }
139
+ ],
140
+ "global_context": {
141
+ "tech_stack": "Next.js 14 + Express.js + PostgreSQL + Prisma ORM",
142
+ "design_system": "shadcn/ui + Tailwind CSS",
143
+ "testing_strategy": "Jest (unit) + Playwright (e2e)",
144
+ "deployment": "Docker + Vercel (frontend) + Railway (backend)",
145
+ "language": "TypeScript"
146
+ }
147
+ }
@@ -0,0 +1,138 @@
1
+ # prizm-dev-team Integration Guide
2
+
3
+ ## Overview
4
+
5
+ dev-pipeline drives the prizm-dev-team multi-agent team through an outer shell loop. Each iteration spawns a new CodeBuddy CLI session with a bootstrap prompt that instructs the agent to create and orchestrate the team for one feature.
6
+
7
+ ## Architecture
8
+
9
+ ```
10
+ dev-pipeline (outer loop)
11
+
12
+ ├── run.sh Shell runner — picks next feature, spawns CLI
13
+ ├── scripts/ Python state management scripts
14
+ ├── templates/bootstrap-prompt.md Session prompt template
15
+
16
+ └── [per session] CodeBuddy CLI
17
+
18
+ ├── TeamCreate("prizm-dev-team-F-NNN")
19
+ ├── Spawn Coordinator agent
20
+ │ │
21
+ │ ├── Phase 0: Init
22
+ │ ├── Phase 1-4: PM (specify/plan/tasks/analyze)
23
+ │ ├── Phase 5: Schedule & Assign
24
+ │ ├── Phase 6: Dev x N (parallel implement)
25
+ │ ├── Phase 7: QA + Review (parallel)
26
+ │ ├── Phase 8: Fix Loop (max 3 rounds)
27
+ │ └── Phase 9: Summarize & Commit
28
+
29
+ └── Write session-status.json → exit
30
+ ```
31
+
32
+ ## Agent Definitions (Source of Truth)
33
+
34
+ | Agent | Definition Path | Type |
35
+ |-------|----------------|------|
36
+ | Coordinator | `agent-team-master/prizm-dev-team/prizm-dev-team-coordinator/subagent.md` | prizm-dev-team-coordinator |
37
+ | PM | `agent-team-master/prizm-dev-team/prizm-dev-team-pm/subagent.md` | prizm-dev-team-pm |
38
+ | Dev | `agent-team-master/prizm-dev-team/prizm-dev-team-dev/subagent.md` | prizm-dev-team-dev |
39
+ | QA | `agent-team-master/prizm-dev-team/prizm-dev-team-qa/subagent.md` | prizm-dev-team-qa |
40
+ | Review | `agent-team-master/prizm-dev-team/prizm-dev-team-review/subagent.md` | prizm-dev-team-review |
41
+ | Doc-Reader | `agent-team-master/prizm-dev-team/prizm-dev-team-doc-reader/subagent.md` | prizm-dev-team-doc-reader |
42
+
43
+ ## Validator Scripts
44
+
45
+ Located at `agent-team-master/prizm-dev-team/prizm-dev-team-coordinator/scripts/`:
46
+
47
+ | Script | Checkpoint | Purpose |
48
+ |--------|-----------|---------|
49
+ | `init-dev-team.py` | CP-0 | Initialize `.dev-team/` + `.prizmkit/` directories |
50
+ | `validate-json-schema.py` | CP-1,2,3 | Validate JSON artifacts against schemas |
51
+ | `validate-dag.py` | CP-3 | Verify dependency graph has no cycles |
52
+ | `validate-report-format.py` | CP-6,7 | Check Markdown reports have required sections |
53
+ | `check-contract-integrity.py` | CP-3,6,7 | SHA-256 hash verification for contracts |
54
+
55
+ ## Artifact Mapping
56
+
57
+ ### PrizmKit Artifacts (.prizmkit/)
58
+
59
+ | Phase | File | Content |
60
+ |-------|------|---------|
61
+ | 1 | `specs/spec.md` | Feature specification (WHAT/WHY) |
62
+ | 2 | `plans/plan.md` | Technical plan (architecture, API, tests) |
63
+ | 3 | `tasks/tasks.md` | Executable task list with `[ ]` / `[x]` |
64
+ | 4 | `analysis/analyze-report.md` | Consistency analysis |
65
+ | 9 | `specs/REGISTRY.md` | Completed features archive |
66
+
67
+ ### Dev-Team Artifacts (.dev-team/)
68
+
69
+ | Phase | File | Content |
70
+ |-------|------|---------|
71
+ | 1 | `specs/requirements.md` | Requirements with REQ-NNN IDs |
72
+ | 2 | `contracts/*.contract.json` | Interface contracts |
73
+ | 2 | `contracts/data-models.json` | Data entity definitions |
74
+ | 3 | `tasks/task-manifest.json` | Structured tasks with T-NNN IDs |
75
+ | 3 | `tasks/dependency-graph.json` | Task DAG |
76
+ | 6 | `reports/dev/self-test-*.md` | Dev self-test reports |
77
+ | 7 | `reports/qa/integration-test.md` | QA integration test report |
78
+ | 7 | `reports/review/code-review.md` | Review report |
79
+
80
+ ## Session Lifecycle
81
+
82
+ ### 1. Session Start
83
+
84
+ The bootstrap prompt instructs the agent to:
85
+ - Create a team named `prizm-dev-team-{FEATURE_ID}`
86
+ - Spawn the Coordinator with the full subagent.md prompt
87
+ - Coordinator then spawns PM, Dev, QA, Review as needed
88
+
89
+ ### 2. Pipeline Execution
90
+
91
+ The Coordinator drives the 10-phase pipeline with 8 checkpoints (CP-0 through CP-7). Each checkpoint validates artifacts using the validator scripts.
92
+
93
+ ### 3. Session End
94
+
95
+ The agent MUST write `session-status.json` before exiting:
96
+
97
+ ```json
98
+ {
99
+ "session_id": "F-001-20260304100000",
100
+ "feature_id": "F-001",
101
+ "status": "success",
102
+ "completed_phases": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
103
+ "current_phase": 9,
104
+ "checkpoint_reached": "CP-7",
105
+ "tasks_completed": 12,
106
+ "tasks_total": 12,
107
+ "errors": [],
108
+ "can_resume": false,
109
+ "resume_from_phase": null,
110
+ "artifacts": {
111
+ "spec_path": ".prizmkit/specs/spec.md",
112
+ "plan_path": ".prizmkit/plans/plan.md",
113
+ "tasks_path": ".prizmkit/tasks/tasks.md"
114
+ },
115
+ "timestamp": "2026-03-04T11:30:00Z"
116
+ }
117
+ ```
118
+
119
+ ## Failure Recovery
120
+
121
+ | Session Outcome | Pipeline Action |
122
+ |-----------------|-----------------|
123
+ | `status: "success"` | Mark feature completed, pick next |
124
+ | `status: "partial"`, `can_resume: true` | Resume from `resume_from_phase` |
125
+ | `status: "partial"`, `can_resume: false` | Retry from scratch |
126
+ | `status: "failed"` | Retry (up to MAX_RETRIES) |
127
+ | No status file (crash) | Treat as failed, retry |
128
+ | Timeout (exit 124) | Treat as timed_out, retry |
129
+
130
+ ## Team Naming Convention
131
+
132
+ Each feature gets its own team instance: `prizm-dev-team-{FEATURE_ID}`
133
+
134
+ Examples:
135
+ - `prizm-dev-team-F-001` — User Authentication
136
+ - `prizm-dev-team-F-002` — Dashboard
137
+
138
+ This ensures clean isolation between features and allows multiple features to have separate artifact histories.