@mrciphersmith/keryx 0.4.27 → 0.4.28

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 (87) hide show
  1. package/README.md +2 -2
  2. package/dist/cli.js +105165 -104989
  3. package/dist/core.js +21 -197
  4. package/dist/keryx-general-worker-entry.js +22 -201
  5. package/package.json +3 -3
  6. package/src/gdskills/bundled/agents/work-planner.md +1 -1
  7. package/src/gdskills/bundled/install-manifest.json +3 -26
  8. package/src/gdskills/bundled/rules/core/code-review-learned-profile.mdc +1 -2
  9. package/src/gdskills/bundled/rules/core/definition-of-done.mdc +0 -1
  10. package/src/gdskills/bundled/rules/core/implementation-doc-mandate.mdc +4 -5
  11. package/src/gdskills/bundled/rules/core/jobs-documentation.mdc +8 -8
  12. package/src/gdskills/bundled/rules/core/skills-storage-workflow.mdc +7 -10
  13. package/src/gdskills/bundled/skills/core/reviewer-skill-creator/SKILL.md +1 -1
  14. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.md +12 -21
  15. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.md +3 -3
  16. package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/SKILL.md +1 -1
  17. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.md +1 -1
  18. package/src/gdskills/bundled/skills/orchestration/task-implementer/input-contract.schema.json +1 -1
  19. package/src/gdskills/bundled/skills/planning/autodoc-orchestrator/SKILL.md +1 -1
  20. package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.md +1 -1
  21. package/src/gdskills/bundled/skills/planning/interview/SKILL.md +3 -4
  22. package/src/gdskills/bundled/skills/planning/interviewer/SKILL.md +1 -1
  23. package/src/gdskills/bundled/skills/quality/git-publish/SKILL.md +60 -0
  24. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.md +1 -1
  25. package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.md +3 -3
  26. package/src/gdskills/bundled/skills/review/review-architecture/SKILL.md +7 -7
  27. package/src/gdskills/bundled/skills/review/review-backend/SKILL.md +22 -22
  28. package/src/gdskills/bundled/skills/review/review-clean-code/SKILL.md +15 -15
  29. package/src/gdskills/bundled/skills/review/review-core-boundaries/SKILL.md +2 -2
  30. package/src/gdskills/bundled/skills/review/review-degradation/SKILL.md +7 -7
  31. package/src/gdskills/bundled/skills/review/review-flow-graph/SKILL.md +2 -2
  32. package/src/gdskills/bundled/skills/review/review-frontend/SKILL.md +34 -30
  33. package/src/gdskills/bundled/skills/review/review-frontend-conventions/SKILL.md +2 -2
  34. package/src/gdskills/bundled/skills/review/review-highload/SKILL.md +64 -135
  35. package/src/gdskills/bundled/skills/review/review-logic/SKILL.md +4 -4
  36. package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.detail.md +18 -20
  37. package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +12 -18
  38. package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-finding.schema.json +2 -2
  39. package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-input.schema.json +2 -10
  40. package/src/gdskills/bundled/skills/review/review-performance/SKILL.md +35 -35
  41. package/src/gdskills/bundled/skills/review/review-pr-contract/SKILL.md +4 -5
  42. package/src/gdskills/bundled/skills/review/review-premise/SKILL.md +2 -2
  43. package/src/gdskills/bundled/skills/review/review-regression/SKILL.md +3 -5
  44. package/src/gdskills/bundled/skills/review/review-security-code/SKILL.md +14 -15
  45. package/src/gdskills/bundled/skills/review/review-style/SKILL.md +14 -13
  46. package/src/gdskills/bundled/skills/review/review-testing-practices/SKILL.md +11 -11
  47. package/src/gdskills/bundled/skills/review/review-ui-ux/SKILL.md +10 -11
  48. package/src/gdskills/bundled/skills/review/review-verifier/SKILL.md +5 -5
  49. package/src/gdskills/bundled/skills/shared/git-merge-base.md +1 -1
  50. package/src/gdskills/bundled/stacks/mobx/agent-refs.json +1 -1
  51. package/src/gdskills/bundled/stacks/mobx/governance/scout.json +2 -2
  52. package/src/gdskills/bundled/stacks/mobx/skills/mobx-store-implementation/SKILL.md +2 -2
  53. package/src/gdskills/bundled/stacks/vue/governance/scout.json +1 -1
  54. package/src/gdskills/contracts/review-finding.schema.json +2 -2
  55. package/src/gdskills/bundled/rules/core/code-review-ai-assistant.mdc +0 -49
  56. package/src/gdskills/bundled/rules/core/gproject-contracts.mdc +0 -198
  57. package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.md +0 -177
  58. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.md +0 -414
  59. package/src/gdskills/bundled/skills/orchestration/job-documenter/input-contract.schema.json +0 -55
  60. package/src/gdskills/bundled/skills/orchestration/job-documenter/output-contract.schema.json +0 -58
  61. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.codex.md +0 -209
  62. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.cursor.md +0 -209
  63. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.md +0 -208
  64. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.codex.md +0 -255
  65. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.cursor.md +0 -255
  66. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.md +0 -254
  67. package/src/gdskills/bundled/skills/planning/planner/SKILL.codex.md +0 -209
  68. package/src/gdskills/bundled/skills/planning/planner/SKILL.cursor.md +0 -209
  69. package/src/gdskills/bundled/skills/planning/planner/SKILL.md +0 -208
  70. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.codex.md +0 -171
  71. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.cursor.md +0 -171
  72. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.md +0 -170
  73. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.codex.md +0 -184
  74. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.cursor.md +0 -184
  75. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.md +0 -183
  76. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.codex.md +0 -249
  77. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.cursor.md +0 -249
  78. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.md +0 -248
  79. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.codex.md +0 -199
  80. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.cursor.md +0 -199
  81. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.md +0 -198
  82. package/src/gdskills/bundled/skills/quality/commit/SKILL.md +0 -87
  83. package/src/gdskills/bundled/skills/quality/pr/SKILL.md +0 -95
  84. package/src/gdskills/bundled/skills/quality/push/SKILL.md +0 -73
  85. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.md +0 -238
  86. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.md +0 -301
  87. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.md +0 -208
@@ -1,254 +0,0 @@
1
- ---
2
- name: patterns-researcher
3
- description: >
4
- Researches best practices per technology in the chosen stack and defines
5
- application architecture patterns. Produces constraints that PRD must follow.
6
- Use when: dispatched by gproject-orchestrator Phase 3.
7
- NOT for: direct user invocation.
8
- triggers:
9
- - "research patterns"
10
- - "architecture patterns"
11
- - "best practices"
12
- metadata:
13
- version: 1.0.0
14
- ---
15
-
16
- # gproject-patterns-researcher
17
-
18
- ## Purpose
19
-
20
- After stack is chosen, research and define the specific patterns, conventions,
21
- and architectural decisions for each technology. The output becomes a set of
22
- **binding constraints** that Phase 4 (PRD) must adhere to.
23
-
24
- ## Iron Laws
25
-
26
- | # | Law |
27
- |---|-----|
28
- | 1 | Every pattern MUST reference a source (official docs, community consensus, or established practice) |
29
- | 2 | Patterns MUST be compatible with chosen project level — no enterprise patterns for MVP |
30
- | 3 | Architecture decisions MUST list alternatives considered |
31
- | 4 | NEVER copy-paste generic "best practices" — every recommendation must be contextualized to THIS project |
32
- | 5 | Output MUST be structured as checkable constraints, not prose advice |
33
- | 6 | Existing project patterns (task_in_project) take precedence unless they're antipatterns |
34
-
35
- ## Red Flags
36
-
37
- Stop and re-read this skill if you are thinking:
38
-
39
- | Rationalization | Rebuttal |
40
- |---|---|
41
- | "Clean Architecture is the right answer for any serious project." | Iron Law 2: patterns must fit the chosen level. Layer boundaries and ports-and-adapters on an MVP buy indirection nobody has time to maintain, and Phase 4 is then bound by a constraint that slows every task. |
42
- | "This is standard practice, so it needs no source." | Iron Law 1: every pattern cites official docs, community consensus, or established practice. Uncited standard practice is how a convention three major versions out of date becomes a binding constraint on the PRD. |
43
- | "I picked the best option, so listing the alternatives is padding." | Iron Law 3: architecture decisions list the alternatives considered. Without them, the next person to question the decision has to redo the research, and usually re-decides it differently. |
44
- | "The existing project does this badly, so I'll specify the correct pattern instead." | Iron Law 6: existing patterns win unless they are genuinely antipatterns — and if they are, say so explicitly with the reason. A silent replacement produces a PRD whose constraints contradict the codebase it will be implemented in. |
45
- | "'Use proper error handling' captures the intent well enough." | Iron Law 5: constraints must be checkable. Phase 5 validates the PRD against these line by line; prose advice passes trivially and constrains nothing. |
46
-
47
- ---
48
-
49
- ## Input Contract
50
-
51
- ```yaml
52
- task: "Research per-technology patterns and define application architecture"
53
- input_artifacts:
54
- - .metaproject/jobs/<job>/artifacts/stack-decision.md
55
- - .metaproject/jobs/<job>/artifacts/problem-statement.md
56
- decisions_so_far:
57
- D_level: "..."
58
- D_frontend: "..."
59
- D_backend: "..."
60
- D_database: "..."
61
- D_deploy: "..."
62
- # All stack decisions
63
- ```
64
-
65
- ## Output Contract
66
-
67
- ```yaml
68
- status: "DONE" | "NEEDS_CONTEXT"
69
- summary: "<3-5 sentences: architecture pattern, key per-tech decisions, constraint count>"
70
- new_decisions:
71
- D_arch_pattern: "<e.g., Clean Architecture, Feature-Sliced, MVC>"
72
- D_api_style: "<REST | GraphQL | tRPC | gRPC>"
73
- D_state_management: "<approach>"
74
- D_auth_pattern: "<JWT | session | OAuth flow>"
75
- D_testing_strategy: "<unit + integration + e2e split>"
76
- D_error_handling: "<pattern>"
77
- D_logging_observability: "<approach>"
78
- artifact_path: ".metaproject/jobs/<job>/artifacts/architecture.md"
79
- additional_artifacts:
80
- - ".metaproject/jobs/<job>/artifacts/tech-bestpractices.md"
81
- ```
82
-
83
- ---
84
-
85
- ## Workflow
86
-
87
- ### Step 1: Define Application Architecture
88
-
89
- Based on project level and stack, select architecture pattern:
90
-
91
- | Level | Typical Pattern | Why |
92
- |-------|---------------|-----|
93
- | MVP | Simple layered (routes → services → DB) | Minimum indirection, fast to build |
94
- | Pet | Feature-based modules | Good learning structure |
95
- | Startup | Clean Architecture / Hexagonal | Testable, scalable when team grows |
96
- | Production | DDD + CQRS where justified | Complex domain needs it |
97
-
98
- Document the pattern with:
99
- - Layer diagram (which layers, what goes where)
100
- - Dependency direction (who imports whom)
101
- - Module/feature structure (how to organize code)
102
- - Cross-cutting concerns (logging, auth, error handling)
103
-
104
- ### Step 2: Per-Technology Research
105
-
106
- For EACH technology in the stack, research and document:
107
-
108
- #### Frontend (e.g., Next.js)
109
- - Project structure pattern (App Router conventions, feature folders)
110
- - Component patterns (Server vs Client components, composition)
111
- - State management pattern (chosen approach + why)
112
- - Data fetching pattern (Server Actions, SWR, React Query)
113
- - Styling approach (Tailwind, CSS Modules, styled-components)
114
- - Form handling pattern
115
- - Error boundary strategy
116
- - Testing approach (unit: Vitest, e2e: Playwright)
117
-
118
- #### Backend (e.g., NestJS)
119
- - Module structure pattern
120
- - DTO and validation approach
121
- - Service layer patterns
122
- - Repository / data access pattern
123
- - Error handling (exception filters, typed errors)
124
- - Authentication and authorization pattern
125
- - API versioning strategy
126
- - Testing approach (unit + integration)
127
-
128
- #### Database (e.g., PostgreSQL)
129
- - Schema design approach (normalized vs denormalized for use case)
130
- - Migration strategy and tooling
131
- - Indexing guidelines for expected queries
132
- - Connection pooling approach
133
- - Backup and recovery (if production level)
134
-
135
- #### Infrastructure (e.g., Docker)
136
- - Container structure (multi-stage builds, compose setup)
137
- - Environment management (dev/staging/prod)
138
- - CI/CD pipeline pattern
139
- - Monitoring and logging stack
140
-
141
- ### Step 3: Define API Contract Style
142
-
143
- Based on project needs:
144
- - REST: resource-based, OpenAPI spec, versioning scheme
145
- - GraphQL: schema-first vs code-first, resolver patterns
146
- - tRPC: shared types, router structure
147
- - gRPC: proto file organization, service boundaries
148
-
149
- ### Step 4: Cross-Cutting Patterns
150
-
151
- Define patterns that span all layers:
152
- - **Authentication flow**: complete auth pattern (signup, login, token refresh, logout)
153
- - **Authorization**: RBAC, ABAC, or simple role checks
154
- - **Error handling**: typed errors, error codes, user-facing messages
155
- - **Logging**: structured logging format, log levels, sensitive data masking
156
- - **Validation**: where validation happens (API layer, domain layer, both)
157
- - **Testing**: test pyramid ratios for this project level
158
-
159
- ### Step 5: Write Architecture Doc
160
-
161
- Write `artifacts/architecture.md`:
162
-
163
- ```markdown
164
- # Architecture: <Project/Task Name>
165
-
166
- ## Architecture Pattern: <Pattern Name>
167
- **Rationale**: <why this pattern for this project>
168
- **Alternative considered**: <pattern and why rejected>
169
-
170
- ## Layer Diagram
171
- <describe layers and dependencies>
172
-
173
- ## Module Structure
174
- <how code is organized — by feature, by layer, hybrid>
175
-
176
- ## Component Interaction
177
- <how layers communicate — direct calls, events, DTOs>
178
-
179
- ## Cross-Cutting Concerns
180
- ### Authentication: <pattern>
181
- ### Error Handling: <pattern>
182
- ### Logging: <pattern>
183
- ### Validation: <pattern>
184
-
185
- ## Key Architecture Decisions
186
- | Decision | Choice | Rationale | Alternative |
187
- |----------|--------|-----------|-------------|
188
- | <decision> | <choice> | <why> | <what else> |
189
- ```
190
-
191
- ### Step 6: Write Best Practices Constraints
192
-
193
- Write `artifacts/tech-bestpractices.md` — this is the **constraint document**
194
- that PRD writer must follow:
195
-
196
- ```markdown
197
- # Technical Best Practices & Constraints
198
-
199
- ## How to Use This Document
200
- Every requirement in the PRD MUST be compatible with these constraints.
201
- The consistency-checker (Phase 5) validates PRD against these rules.
202
-
203
- ## Frontend Constraints (<technology>)
204
- ### MUST
205
- - [ ] <constraint 1 — e.g., "Use Server Components by default, Client only when needed">
206
- - [ ] <constraint 2>
207
- ### MUST NOT
208
- - [ ] <antipattern 1 — e.g., "Do not use getServerSideProps in App Router">
209
- - [ ] <antipattern 2>
210
- ### SHOULD
211
- - [ ] <recommendation 1>
212
-
213
- ## Backend Constraints (<technology>)
214
- ### MUST
215
- - [ ] ...
216
- ### MUST NOT
217
- - [ ] ...
218
- ### SHOULD
219
- - [ ] ...
220
-
221
- ## Database Constraints (<technology>)
222
- ### MUST
223
- - [ ] ...
224
- ### MUST NOT
225
- - [ ] ...
226
-
227
- ## API Constraints
228
- ### MUST
229
- - [ ] ...
230
-
231
- ## Infrastructure Constraints
232
- ### MUST
233
- - [ ] ...
234
-
235
- ## Testing Constraints
236
- ### MUST
237
- - [ ] <e.g., "Every API endpoint must have integration test">
238
- - [ ] <e.g., "Critical user flows must have e2e tests">
239
- ### Test Pyramid Target
240
- - Unit: <X>%
241
- - Integration: <Y>%
242
- - E2E: <Z>%
243
-
244
- ## Security Constraints
245
- ### MUST
246
- - [ ] ...
247
- ### MUST NOT
248
- - [ ] ...
249
- ```
250
-
251
- ### Step 7: Return Summary
252
-
253
- Compact summary: architecture pattern, number of constraints defined,
254
- key per-tech decisions, any concerns about pattern compatibility.
@@ -1,209 +0,0 @@
1
- ---
2
- name: planner
3
- description: >
4
- Generates roadmap, milestones, task breakdown, and dependency graph from PRD.
5
- Use when: dispatched by gproject-orchestrator Phase 6.
6
- NOT for: direct user invocation.
7
- triggers:
8
- - "create plan"
9
- - "roadmap"
10
- - "task breakdown"
11
- metadata:
12
- version: 1.0.0
13
- compatible_harnesses: "cursor,codex,zed,opencode"
14
- ---
15
-
16
- # gproject-planner
17
-
18
- ## Purpose
19
-
20
- Transform approved PRD into an actionable implementation plan with milestones,
21
- task breakdown, dependency ordering, and effort estimates. Output is ready
22
- to feed into job-orchestrator or task-implementer.
23
-
24
- ## Iron Laws
25
-
26
- | # | Law |
27
- |---|-----|
28
- | 1 | Every task MUST trace to a user story in PRD |
29
- | 2 | Dependencies MUST form a DAG — no circular dependencies |
30
- | 3 | Estimates are ranges (optimistic / realistic / pessimistic), never single numbers |
31
- | 4 | P0 user stories MUST be in Milestone 1 |
32
- | 5 | Each milestone MUST be independently deployable / demonstrable |
33
- | 6 | Infrastructure and setup tasks come before feature tasks |
34
-
35
- ## Red Flags
36
-
37
- Stop and re-read this skill if you are thinking:
38
-
39
- | Rationalization | Rebuttal |
40
- |---|---|
41
- | "This task is obviously needed even though no user story asks for it." | Iron Law 1: every task traces to a user story. An untraceable task is either scope the PRD did not agree to, or a story the PRD is missing — both are worth surfacing, and neither is fixed by adding the task quietly. |
42
- | "A single estimate is clearer to read than a three-point range." | Iron Law 3: estimates are ranges. A single number is read as a commitment, and the pessimistic case — the one that decides whether the milestone holds — was never stated. |
43
- | "These two tasks depend on each other, which is just how the work is." | Iron Law 2: dependencies form a DAG. A cycle means the decomposition is wrong, not that the work is circular. Split one task at the boundary where it stops needing the other. |
44
- | "Milestone 1 is already large, so this P0 story can move to Milestone 2." | Iron Law 4: P0 stories are in Milestone 1. If M1 is too large, the split goes elsewhere — deferring a P0 silently redefines what the PRD called essential. |
45
- | "Milestone 2 is a coherent chunk of work, even if it demos nothing on its own." | Iron Law 5: each milestone is independently deployable or demonstrable. A milestone with no demo has no completion signal, and slips are invisible until the next one that does. |
46
- | "Setup is boring — the feature tasks are what matters for the estimate." | Iron Law 6: infrastructure and setup come first, and they are estimated like anything else. Unestimated setup is the most common reason a critical path is wrong from day one. |
47
-
48
- ---
49
-
50
- ## Input Contract
51
-
52
- ```yaml
53
- task: "Generate roadmap and task breakdown"
54
- input_artifacts:
55
- - .metaproject/jobs/<job>/artifacts/prd.md
56
- - .metaproject/jobs/<job>/artifacts/architecture.md
57
- decisions_so_far:
58
- D_level: "..."
59
- D_frontend: "..."
60
- D_backend: "..."
61
- # All relevant decisions
62
- ```
63
-
64
- ## Output Contract
65
-
66
- ```yaml
67
- status: "DONE" | "NEEDS_CONTEXT"
68
- summary: "<3-5 sentences: milestone count, total tasks, critical path duration>"
69
- new_decisions:
70
- D_milestones: ["<M1 name>", "<M2 name>", ...]
71
- D_estimated_duration: "<range>"
72
- D_critical_path: "<list of blocking tasks>"
73
- artifact_path: ".metaproject/jobs/<job>/artifacts/roadmap.md"
74
- ```
75
-
76
- ---
77
-
78
- ## Workflow
79
-
80
- ### Step 1: Decompose User Stories into Tasks
81
-
82
- For each user story, break into implementation tasks:
83
-
84
- ```yaml
85
- - task_id: "T-001"
86
- title: "<specific task>"
87
- user_story: "US-001"
88
- layer: "frontend | backend | database | infra | testing"
89
- type: "setup | feature | integration | test | docs"
90
- estimate:
91
- optimistic: "<time>"
92
- realistic: "<time>"
93
- pessimistic: "<time>"
94
- depends_on: ["T-000"] # or [] if no deps
95
- acceptance_criteria:
96
- - "<from user story, scoped to this task>"
97
- files_likely_affected:
98
- - "<file path or module>"
99
- ```
100
-
101
- ### Step 2: Identify Dependencies
102
-
103
- Build dependency graph:
104
- - Infrastructure tasks → before all feature tasks
105
- - Database schema → before backend → before frontend
106
- - Auth setup → before any authenticated feature
107
- - Shared components → before pages that use them
108
-
109
- Verify: no cycles in dependency graph.
110
-
111
- ### Step 3: Group into Milestones
112
-
113
- Each milestone:
114
- - Has a clear deliverable (demo-able, deployable)
115
- - Contains all P0 stories it covers (no half-done P0 at milestone end)
116
- - Ends with a verification checkpoint
117
-
118
- Typical milestone structure:
119
-
120
- **M0: Foundation**
121
- - Project setup, tooling, CI/CD, dev environment
122
- - Database schema initial migration
123
- - Auth skeleton
124
- - Deploy pipeline to staging
125
-
126
- **M1: Core (P0 features)**
127
- - All P0 user stories
128
- - Core API endpoints
129
- - Core UI flows
130
- - Integration tests for critical paths
131
-
132
- **M2: Complete (P1 features)**
133
- - P1 user stories
134
- - Polish, edge cases
135
- - Performance optimization
136
- - Full test coverage
137
-
138
- **M3: Launch-Ready (if production level)**
139
- - P2 features (selected)
140
- - Security hardening
141
- - Monitoring, alerting
142
- - Documentation
143
- - Load testing
144
-
145
- ### Step 4: Estimate Critical Path
146
-
147
- Identify the longest dependency chain and estimate total duration.
148
- Flag tasks that block the most other tasks.
149
-
150
- ### Step 5: Write Roadmap
151
-
152
- Write `artifacts/roadmap.md`:
153
-
154
- ```markdown
155
- # Roadmap: <Project/Task Name>
156
-
157
- ## Overview
158
- - **Milestones**: <count>
159
- - **Total tasks**: <count>
160
- - **Estimated duration**: <optimistic> — <realistic> — <pessimistic>
161
- - **Critical path**: <list of blocking tasks>
162
-
163
- ## Milestone 0: Foundation
164
- **Deliverable**: <what can be demonstrated>
165
- **Duration estimate**: <range>
166
-
167
- ### Tasks
168
- | ID | Title | Layer | Depends On | Estimate | Story |
169
- |----|-------|-------|-----------|----------|-------|
170
- | T-001 | <title> | infra | — | <range> | — |
171
- | T-002 | <title> | database | T-001 | <range> | — |
172
-
173
- ## Milestone 1: Core
174
- **Deliverable**: <what can be demonstrated>
175
- **Duration estimate**: <range>
176
-
177
- ### Tasks
178
- | ID | Title | Layer | Depends On | Estimate | Story |
179
- |----|-------|-------|-----------|----------|-------|
180
- | T-010 | <title> | backend | T-002 | <range> | US-001 |
181
-
182
- ## ...
183
-
184
- ## Dependency Graph (summary)
185
- <textual description of key dependency chains>
186
- T-001 → T-002 → T-010 → T-015 (critical path)
187
- T-001 → T-003 → T-011 (parallel track)
188
-
189
- ## Risk-Adjusted Timeline
190
- | Scenario | Duration | Assumptions |
191
- |----------|---------|-------------|
192
- | Optimistic | <time> | No blockers, all estimates hold |
193
- | Realistic | <time> | Normal friction, 1-2 minor blockers |
194
- | Pessimistic | <time> | Major unknowns surface, rework needed |
195
-
196
- ## Parallelization Opportunities
197
- <Which tasks can run simultaneously — useful for team or multi-agent execution>
198
-
199
- ## Integration with job-orchestrator
200
- <How to feed this roadmap into job-orchestrator for automated implementation>
201
- - Each milestone maps to a job-orchestrator run
202
- - Tasks within a milestone map to issue-analyzer output format
203
- - Dependency order maps to wave-based execution
204
- ```
205
-
206
- ### Step 6: Return Summary
207
-
208
- Compact summary: milestone count, task count, critical path duration,
209
- biggest scheduling risk.
@@ -1,209 +0,0 @@
1
- ---
2
- name: planner
3
- description: >
4
- Generates roadmap, milestones, task breakdown, and dependency graph from PRD.
5
- Use when: dispatched by gproject-orchestrator Phase 6.
6
- NOT for: direct user invocation.
7
- triggers:
8
- - "create plan"
9
- - "roadmap"
10
- - "task breakdown"
11
- metadata:
12
- version: 1.0.0
13
- compatible_harnesses: "cursor,codex,zed,opencode"
14
- ---
15
-
16
- # gproject-planner
17
-
18
- ## Purpose
19
-
20
- Transform approved PRD into an actionable implementation plan with milestones,
21
- task breakdown, dependency ordering, and effort estimates. Output is ready
22
- to feed into job-orchestrator or task-implementer.
23
-
24
- ## Iron Laws
25
-
26
- | # | Law |
27
- |---|-----|
28
- | 1 | Every task MUST trace to a user story in PRD |
29
- | 2 | Dependencies MUST form a DAG — no circular dependencies |
30
- | 3 | Estimates are ranges (optimistic / realistic / pessimistic), never single numbers |
31
- | 4 | P0 user stories MUST be in Milestone 1 |
32
- | 5 | Each milestone MUST be independently deployable / demonstrable |
33
- | 6 | Infrastructure and setup tasks come before feature tasks |
34
-
35
- ## Red Flags
36
-
37
- Stop and re-read this skill if you are thinking:
38
-
39
- | Rationalization | Rebuttal |
40
- |---|---|
41
- | "This task is obviously needed even though no user story asks for it." | Iron Law 1: every task traces to a user story. An untraceable task is either scope the PRD did not agree to, or a story the PRD is missing — both are worth surfacing, and neither is fixed by adding the task quietly. |
42
- | "A single estimate is clearer to read than a three-point range." | Iron Law 3: estimates are ranges. A single number is read as a commitment, and the pessimistic case — the one that decides whether the milestone holds — was never stated. |
43
- | "These two tasks depend on each other, which is just how the work is." | Iron Law 2: dependencies form a DAG. A cycle means the decomposition is wrong, not that the work is circular. Split one task at the boundary where it stops needing the other. |
44
- | "Milestone 1 is already large, so this P0 story can move to Milestone 2." | Iron Law 4: P0 stories are in Milestone 1. If M1 is too large, the split goes elsewhere — deferring a P0 silently redefines what the PRD called essential. |
45
- | "Milestone 2 is a coherent chunk of work, even if it demos nothing on its own." | Iron Law 5: each milestone is independently deployable or demonstrable. A milestone with no demo has no completion signal, and slips are invisible until the next one that does. |
46
- | "Setup is boring — the feature tasks are what matters for the estimate." | Iron Law 6: infrastructure and setup come first, and they are estimated like anything else. Unestimated setup is the most common reason a critical path is wrong from day one. |
47
-
48
- ---
49
-
50
- ## Input Contract
51
-
52
- ```yaml
53
- task: "Generate roadmap and task breakdown"
54
- input_artifacts:
55
- - .metaproject/jobs/<job>/artifacts/prd.md
56
- - .metaproject/jobs/<job>/artifacts/architecture.md
57
- decisions_so_far:
58
- D_level: "..."
59
- D_frontend: "..."
60
- D_backend: "..."
61
- # All relevant decisions
62
- ```
63
-
64
- ## Output Contract
65
-
66
- ```yaml
67
- status: "DONE" | "NEEDS_CONTEXT"
68
- summary: "<3-5 sentences: milestone count, total tasks, critical path duration>"
69
- new_decisions:
70
- D_milestones: ["<M1 name>", "<M2 name>", ...]
71
- D_estimated_duration: "<range>"
72
- D_critical_path: "<list of blocking tasks>"
73
- artifact_path: ".metaproject/jobs/<job>/artifacts/roadmap.md"
74
- ```
75
-
76
- ---
77
-
78
- ## Workflow
79
-
80
- ### Step 1: Decompose User Stories into Tasks
81
-
82
- For each user story, break into implementation tasks:
83
-
84
- ```yaml
85
- - task_id: "T-001"
86
- title: "<specific task>"
87
- user_story: "US-001"
88
- layer: "frontend | backend | database | infra | testing"
89
- type: "setup | feature | integration | test | docs"
90
- estimate:
91
- optimistic: "<time>"
92
- realistic: "<time>"
93
- pessimistic: "<time>"
94
- depends_on: ["T-000"] # or [] if no deps
95
- acceptance_criteria:
96
- - "<from user story, scoped to this task>"
97
- files_likely_affected:
98
- - "<file path or module>"
99
- ```
100
-
101
- ### Step 2: Identify Dependencies
102
-
103
- Build dependency graph:
104
- - Infrastructure tasks → before all feature tasks
105
- - Database schema → before backend → before frontend
106
- - Auth setup → before any authenticated feature
107
- - Shared components → before pages that use them
108
-
109
- Verify: no cycles in dependency graph.
110
-
111
- ### Step 3: Group into Milestones
112
-
113
- Each milestone:
114
- - Has a clear deliverable (demo-able, deployable)
115
- - Contains all P0 stories it covers (no half-done P0 at milestone end)
116
- - Ends with a verification checkpoint
117
-
118
- Typical milestone structure:
119
-
120
- **M0: Foundation**
121
- - Project setup, tooling, CI/CD, dev environment
122
- - Database schema initial migration
123
- - Auth skeleton
124
- - Deploy pipeline to staging
125
-
126
- **M1: Core (P0 features)**
127
- - All P0 user stories
128
- - Core API endpoints
129
- - Core UI flows
130
- - Integration tests for critical paths
131
-
132
- **M2: Complete (P1 features)**
133
- - P1 user stories
134
- - Polish, edge cases
135
- - Performance optimization
136
- - Full test coverage
137
-
138
- **M3: Launch-Ready (if production level)**
139
- - P2 features (selected)
140
- - Security hardening
141
- - Monitoring, alerting
142
- - Documentation
143
- - Load testing
144
-
145
- ### Step 4: Estimate Critical Path
146
-
147
- Identify the longest dependency chain and estimate total duration.
148
- Flag tasks that block the most other tasks.
149
-
150
- ### Step 5: Write Roadmap
151
-
152
- Write `artifacts/roadmap.md`:
153
-
154
- ```markdown
155
- # Roadmap: <Project/Task Name>
156
-
157
- ## Overview
158
- - **Milestones**: <count>
159
- - **Total tasks**: <count>
160
- - **Estimated duration**: <optimistic> — <realistic> — <pessimistic>
161
- - **Critical path**: <list of blocking tasks>
162
-
163
- ## Milestone 0: Foundation
164
- **Deliverable**: <what can be demonstrated>
165
- **Duration estimate**: <range>
166
-
167
- ### Tasks
168
- | ID | Title | Layer | Depends On | Estimate | Story |
169
- |----|-------|-------|-----------|----------|-------|
170
- | T-001 | <title> | infra | — | <range> | — |
171
- | T-002 | <title> | database | T-001 | <range> | — |
172
-
173
- ## Milestone 1: Core
174
- **Deliverable**: <what can be demonstrated>
175
- **Duration estimate**: <range>
176
-
177
- ### Tasks
178
- | ID | Title | Layer | Depends On | Estimate | Story |
179
- |----|-------|-------|-----------|----------|-------|
180
- | T-010 | <title> | backend | T-002 | <range> | US-001 |
181
-
182
- ## ...
183
-
184
- ## Dependency Graph (summary)
185
- <textual description of key dependency chains>
186
- T-001 → T-002 → T-010 → T-015 (critical path)
187
- T-001 → T-003 → T-011 (parallel track)
188
-
189
- ## Risk-Adjusted Timeline
190
- | Scenario | Duration | Assumptions |
191
- |----------|---------|-------------|
192
- | Optimistic | <time> | No blockers, all estimates hold |
193
- | Realistic | <time> | Normal friction, 1-2 minor blockers |
194
- | Pessimistic | <time> | Major unknowns surface, rework needed |
195
-
196
- ## Parallelization Opportunities
197
- <Which tasks can run simultaneously — useful for team or multi-agent execution>
198
-
199
- ## Integration with job-orchestrator
200
- <How to feed this roadmap into job-orchestrator for automated implementation>
201
- - Each milestone maps to a job-orchestrator run
202
- - Tasks within a milestone map to issue-analyzer output format
203
- - Dependency order maps to wave-based execution
204
- ```
205
-
206
- ### Step 6: Return Summary
207
-
208
- Compact summary: milestone count, task count, critical path duration,
209
- biggest scheduling risk.