@mrciphersmith/keryx 0.4.27 → 0.4.29

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 (97) hide show
  1. package/README.md +2 -2
  2. package/dist/cli.js +105640 -105242
  3. package/dist/core.js +24 -200
  4. package/dist/keryx-general-worker-entry.js +355 -418
  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 +4 -26
  8. package/src/gdskills/bundled/rules/core/clean-architecture.mdc +25 -153
  9. package/src/gdskills/bundled/rules/core/code-review-learned-profile.mdc +1 -2
  10. package/src/gdskills/bundled/rules/core/code-style-patterns.mdc +1 -0
  11. package/src/gdskills/bundled/rules/core/definition-of-done.mdc +0 -1
  12. package/src/gdskills/bundled/rules/core/error-handling.mdc +57 -108
  13. package/src/gdskills/bundled/rules/core/implementation-doc-mandate.mdc +4 -5
  14. package/src/gdskills/bundled/rules/core/jobs-documentation.mdc +8 -8
  15. package/src/gdskills/bundled/rules/core/skill-authoring.mdc +190 -0
  16. package/src/gdskills/bundled/rules/core/skills-storage-workflow.mdc +12 -10
  17. package/src/gdskills/bundled/rules/core/solid-principles.mdc +48 -123
  18. package/src/gdskills/bundled/skills/core/reviewer-skill-creator/SKILL.md +1 -1
  19. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.md +12 -21
  20. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.md +3 -3
  21. package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/SKILL.md +1 -1
  22. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.md +1 -1
  23. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.md +2 -2
  24. package/src/gdskills/bundled/skills/orchestration/task-implementer/input-contract.schema.json +1 -1
  25. package/src/gdskills/bundled/skills/planning/autodoc-orchestrator/SKILL.md +1 -1
  26. package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.md +1 -1
  27. package/src/gdskills/bundled/skills/planning/interview/SKILL.md +3 -4
  28. package/src/gdskills/bundled/skills/planning/interviewer/SKILL.md +1 -1
  29. package/src/gdskills/bundled/skills/quality/git-publish/SKILL.md +60 -0
  30. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.md +1 -1
  31. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.md +1 -1
  32. package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.md +3 -3
  33. package/src/gdskills/bundled/skills/review/review-architecture/SKILL.md +6 -6
  34. package/src/gdskills/bundled/skills/review/review-backend/SKILL.md +23 -25
  35. package/src/gdskills/bundled/skills/review/review-clean-code/SKILL.md +100 -421
  36. package/src/gdskills/bundled/skills/review/review-core-boundaries/SKILL.md +2 -2
  37. package/src/gdskills/bundled/skills/review/review-degradation/SKILL.md +6 -6
  38. package/src/gdskills/bundled/skills/review/review-flow-graph/SKILL.md +1 -1
  39. package/src/gdskills/bundled/skills/review/review-frontend/SKILL.md +36 -33
  40. package/src/gdskills/bundled/skills/review/review-frontend-conventions/SKILL.md +1 -1
  41. package/src/gdskills/bundled/skills/review/review-highload/SKILL.md +63 -134
  42. package/src/gdskills/bundled/skills/review/review-logic/SKILL.md +4 -5
  43. package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.detail.md +18 -20
  44. package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +12 -18
  45. package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-finding.schema.json +2 -2
  46. package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-input.schema.json +2 -10
  47. package/src/gdskills/bundled/skills/review/review-performance/SKILL.md +35 -35
  48. package/src/gdskills/bundled/skills/review/review-pr-contract/SKILL.md +4 -5
  49. package/src/gdskills/bundled/skills/review/review-premise/SKILL.md +2 -2
  50. package/src/gdskills/bundled/skills/review/review-regression/SKILL.md +2 -4
  51. package/src/gdskills/bundled/skills/review/review-security-code/SKILL.md +13 -14
  52. package/src/gdskills/bundled/skills/review/review-style/SKILL.md +41 -44
  53. package/src/gdskills/bundled/skills/review/review-testing-practices/SKILL.md +10 -10
  54. package/src/gdskills/bundled/skills/review/review-ui-ux/SKILL.md +10 -11
  55. package/src/gdskills/bundled/skills/review/review-verifier/SKILL.md +5 -5
  56. package/src/gdskills/bundled/skills/shared/git-merge-base.md +1 -1
  57. package/src/gdskills/bundled/stacks/csharp-dotnet/rules/patterns.mdc +4 -3
  58. package/src/gdskills/bundled/stacks/java-kotlin-spring/rules/coding-style.mdc +3 -3
  59. package/src/gdskills/bundled/stacks/mobx/agent-refs.json +1 -1
  60. package/src/gdskills/bundled/stacks/mobx/governance/scout.json +2 -2
  61. package/src/gdskills/bundled/stacks/mobx/skills/mobx-store-implementation/SKILL.md +2 -2
  62. package/src/gdskills/bundled/stacks/ruby-rails/rules/coding-style.mdc +4 -4
  63. package/src/gdskills/bundled/stacks/vue/governance/scout.json +1 -1
  64. package/src/gdskills/contracts/review-finding.schema.json +2 -2
  65. package/src/gdskills/bundled/rules/core/code-review-ai-assistant.mdc +0 -49
  66. package/src/gdskills/bundled/rules/core/gproject-contracts.mdc +0 -198
  67. package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.md +0 -177
  68. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.md +0 -414
  69. package/src/gdskills/bundled/skills/orchestration/job-documenter/input-contract.schema.json +0 -55
  70. package/src/gdskills/bundled/skills/orchestration/job-documenter/output-contract.schema.json +0 -58
  71. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.codex.md +0 -209
  72. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.cursor.md +0 -209
  73. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.md +0 -208
  74. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.codex.md +0 -255
  75. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.cursor.md +0 -255
  76. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.md +0 -254
  77. package/src/gdskills/bundled/skills/planning/planner/SKILL.codex.md +0 -209
  78. package/src/gdskills/bundled/skills/planning/planner/SKILL.cursor.md +0 -209
  79. package/src/gdskills/bundled/skills/planning/planner/SKILL.md +0 -208
  80. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.codex.md +0 -171
  81. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.cursor.md +0 -171
  82. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.md +0 -170
  83. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.codex.md +0 -184
  84. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.cursor.md +0 -184
  85. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.md +0 -183
  86. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.codex.md +0 -249
  87. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.cursor.md +0 -249
  88. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.md +0 -248
  89. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.codex.md +0 -199
  90. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.cursor.md +0 -199
  91. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.md +0 -198
  92. package/src/gdskills/bundled/skills/quality/commit/SKILL.md +0 -87
  93. package/src/gdskills/bundled/skills/quality/pr/SKILL.md +0 -95
  94. package/src/gdskills/bundled/skills/quality/push/SKILL.md +0 -73
  95. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.md +0 -238
  96. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.md +0 -301
  97. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.md +0 -208
@@ -1,208 +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
- ---
14
-
15
- # gproject-planner
16
-
17
- ## Purpose
18
-
19
- Transform approved PRD into an actionable implementation plan with milestones,
20
- task breakdown, dependency ordering, and effort estimates. Output is ready
21
- to feed into job-orchestrator or task-implementer.
22
-
23
- ## Iron Laws
24
-
25
- | # | Law |
26
- |---|-----|
27
- | 1 | Every task MUST trace to a user story in PRD |
28
- | 2 | Dependencies MUST form a DAG — no circular dependencies |
29
- | 3 | Estimates are ranges (optimistic / realistic / pessimistic), never single numbers |
30
- | 4 | P0 user stories MUST be in Milestone 1 |
31
- | 5 | Each milestone MUST be independently deployable / demonstrable |
32
- | 6 | Infrastructure and setup tasks come before feature tasks |
33
-
34
- ## Red Flags
35
-
36
- Stop and re-read this skill if you are thinking:
37
-
38
- | Rationalization | Rebuttal |
39
- |---|---|
40
- | "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. |
41
- | "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. |
42
- | "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. |
43
- | "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. |
44
- | "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. |
45
- | "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. |
46
-
47
- ---
48
-
49
- ## Input Contract
50
-
51
- ```yaml
52
- task: "Generate roadmap and task breakdown"
53
- input_artifacts:
54
- - .metaproject/jobs/<job>/artifacts/prd.md
55
- - .metaproject/jobs/<job>/artifacts/architecture.md
56
- decisions_so_far:
57
- D_level: "..."
58
- D_frontend: "..."
59
- D_backend: "..."
60
- # All relevant decisions
61
- ```
62
-
63
- ## Output Contract
64
-
65
- ```yaml
66
- status: "DONE" | "NEEDS_CONTEXT"
67
- summary: "<3-5 sentences: milestone count, total tasks, critical path duration>"
68
- new_decisions:
69
- D_milestones: ["<M1 name>", "<M2 name>", ...]
70
- D_estimated_duration: "<range>"
71
- D_critical_path: "<list of blocking tasks>"
72
- artifact_path: ".metaproject/jobs/<job>/artifacts/roadmap.md"
73
- ```
74
-
75
- ---
76
-
77
- ## Workflow
78
-
79
- ### Step 1: Decompose User Stories into Tasks
80
-
81
- For each user story, break into implementation tasks:
82
-
83
- ```yaml
84
- - task_id: "T-001"
85
- title: "<specific task>"
86
- user_story: "US-001"
87
- layer: "frontend | backend | database | infra | testing"
88
- type: "setup | feature | integration | test | docs"
89
- estimate:
90
- optimistic: "<time>"
91
- realistic: "<time>"
92
- pessimistic: "<time>"
93
- depends_on: ["T-000"] # or [] if no deps
94
- acceptance_criteria:
95
- - "<from user story, scoped to this task>"
96
- files_likely_affected:
97
- - "<file path or module>"
98
- ```
99
-
100
- ### Step 2: Identify Dependencies
101
-
102
- Build dependency graph:
103
- - Infrastructure tasks → before all feature tasks
104
- - Database schema → before backend → before frontend
105
- - Auth setup → before any authenticated feature
106
- - Shared components → before pages that use them
107
-
108
- Verify: no cycles in dependency graph.
109
-
110
- ### Step 3: Group into Milestones
111
-
112
- Each milestone:
113
- - Has a clear deliverable (demo-able, deployable)
114
- - Contains all P0 stories it covers (no half-done P0 at milestone end)
115
- - Ends with a verification checkpoint
116
-
117
- Typical milestone structure:
118
-
119
- **M0: Foundation**
120
- - Project setup, tooling, CI/CD, dev environment
121
- - Database schema initial migration
122
- - Auth skeleton
123
- - Deploy pipeline to staging
124
-
125
- **M1: Core (P0 features)**
126
- - All P0 user stories
127
- - Core API endpoints
128
- - Core UI flows
129
- - Integration tests for critical paths
130
-
131
- **M2: Complete (P1 features)**
132
- - P1 user stories
133
- - Polish, edge cases
134
- - Performance optimization
135
- - Full test coverage
136
-
137
- **M3: Launch-Ready (if production level)**
138
- - P2 features (selected)
139
- - Security hardening
140
- - Monitoring, alerting
141
- - Documentation
142
- - Load testing
143
-
144
- ### Step 4: Estimate Critical Path
145
-
146
- Identify the longest dependency chain and estimate total duration.
147
- Flag tasks that block the most other tasks.
148
-
149
- ### Step 5: Write Roadmap
150
-
151
- Write `artifacts/roadmap.md`:
152
-
153
- ```markdown
154
- # Roadmap: <Project/Task Name>
155
-
156
- ## Overview
157
- - **Milestones**: <count>
158
- - **Total tasks**: <count>
159
- - **Estimated duration**: <optimistic> — <realistic> — <pessimistic>
160
- - **Critical path**: <list of blocking tasks>
161
-
162
- ## Milestone 0: Foundation
163
- **Deliverable**: <what can be demonstrated>
164
- **Duration estimate**: <range>
165
-
166
- ### Tasks
167
- | ID | Title | Layer | Depends On | Estimate | Story |
168
- |----|-------|-------|-----------|----------|-------|
169
- | T-001 | <title> | infra | — | <range> | — |
170
- | T-002 | <title> | database | T-001 | <range> | — |
171
-
172
- ## Milestone 1: Core
173
- **Deliverable**: <what can be demonstrated>
174
- **Duration estimate**: <range>
175
-
176
- ### Tasks
177
- | ID | Title | Layer | Depends On | Estimate | Story |
178
- |----|-------|-------|-----------|----------|-------|
179
- | T-010 | <title> | backend | T-002 | <range> | US-001 |
180
-
181
- ## ...
182
-
183
- ## Dependency Graph (summary)
184
- <textual description of key dependency chains>
185
- T-001 → T-002 → T-010 → T-015 (critical path)
186
- T-001 → T-003 → T-011 (parallel track)
187
-
188
- ## Risk-Adjusted Timeline
189
- | Scenario | Duration | Assumptions |
190
- |----------|---------|-------------|
191
- | Optimistic | <time> | No blockers, all estimates hold |
192
- | Realistic | <time> | Normal friction, 1-2 minor blockers |
193
- | Pessimistic | <time> | Major unknowns surface, rework needed |
194
-
195
- ## Parallelization Opportunities
196
- <Which tasks can run simultaneously — useful for team or multi-agent execution>
197
-
198
- ## Integration with job-orchestrator
199
- <How to feed this roadmap into job-orchestrator for automated implementation>
200
- - Each milestone maps to a job-orchestrator run
201
- - Tasks within a milestone map to issue-analyzer output format
202
- - Dependency order maps to wave-based execution
203
- ```
204
-
205
- ### Step 6: Return Summary
206
-
207
- Compact summary: milestone count, task count, critical path duration,
208
- biggest scheduling risk.
@@ -1,171 +0,0 @@
1
- ---
2
- name: problem-definer
3
- description: >
4
- Defines core problems, goals, non-goals, and success metrics from discovery data.
5
- Use when: dispatched by gproject-orchestrator Phase 1.
6
- NOT for: direct user invocation.
7
- triggers:
8
- - "define problem"
9
- - "goals non-goals"
10
- - "success metrics"
11
- metadata:
12
- version: 1.0.0
13
- compatible_harnesses: "cursor,codex,zed,opencode"
14
- ---
15
-
16
- # gproject-problem-definer
17
-
18
- ## Purpose
19
-
20
- Transform raw discovery data into a crisp problem statement with measurable goals.
21
- This phase answers: "Why are we doing this?" and "How will we know we succeeded?"
22
-
23
- ## Iron Laws
24
-
25
- | # | Law |
26
- |---|-----|
27
- | 1 | Every goal MUST have a measurable success metric |
28
- | 2 | Non-goals are as important as goals — list at least 3 |
29
- | 3 | Problems MUST be stated from the USER's perspective, not technical |
30
- | 4 | NEVER introduce solutions in the problem statement |
31
- | 5 | If discovery brief has low confidence areas, flag them — don't paper over |
32
-
33
- ## Red Flags
34
-
35
- Stop and re-read this skill if you are thinking:
36
-
37
- | Rationalization | Rebuttal |
38
- |---|---|
39
- | "'Improve onboarding' is a real goal — the metric can come later." | Iron Law 1: every goal carries a measurable success metric, here. Phase 5 checks each user story against a goal's metric; a goal without one passes every check by being uncheckable. |
40
- | "The obvious fix is a dashboard, so the problem is 'users have no dashboard'." | Iron Law 4: no solutions in the problem statement. A problem phrased as a missing solution pre-decides the PRD, and the stack and architecture phases then optimise for the wrong thing with nothing to notice. |
41
- | "Non-goals are filler — two obvious ones are enough." | Iron Law 2 sets a floor of three, and non-goals are the only part of this document that stops scope growth later. The useful ones are the plausible features you are deliberately not building, not the absurd ones. |
42
- | "The discovery brief was thin on this area, but I can reason my way to the goal." | Iron Law 5: flag low-confidence areas. Reasoning over a gap produces a goal that reads as firm as the evidenced ones, and no later phase can tell them apart. |
43
- | "This problem is really about the database schema, which is the true root cause." | Iron Law 3: problems are stated from the user's perspective. A technical root cause belongs in the architecture phase; stated here it becomes the thing success is measured against, instead of what the user experiences. |
44
-
45
- ---
46
-
47
- ## Input Contract
48
-
49
- ```yaml
50
- task: "Define core problems and goals"
51
- input_artifacts:
52
- - .metaproject/jobs/<job>/artifacts/discovery-brief.md
53
- decisions_so_far:
54
- D_mode: "..."
55
- D_domain: "..."
56
- D_audience: "..."
57
- D_scale_estimate: "..."
58
- ```
59
-
60
- ## Output Contract
61
-
62
- ```yaml
63
- status: "DONE" | "NEEDS_CONTEXT"
64
- summary: "<3-5 sentences: core problem, primary goal, key constraint>"
65
- new_decisions:
66
- D_core_problems: ["<problem 1>", "<problem 2>"]
67
- D_goals: ["<goal 1 + metric>", "<goal 2 + metric>"]
68
- D_non_goals: ["<non-goal 1>", "<non-goal 2>", "<non-goal 3>"]
69
- D_success_metrics: ["<metric 1>", "<metric 2>"]
70
- D_target_users: "<primary persona>"
71
- artifact_path: ".metaproject/jobs/<job>/artifacts/problem-statement.md"
72
- ```
73
-
74
- ---
75
-
76
- ## Workflow
77
-
78
- ### Step 1: Extract Problems
79
-
80
- From discovery brief, identify:
81
- - What pain points do target users have?
82
- - What's broken / missing / inefficient?
83
- - What opportunity exists?
84
-
85
- Frame each problem as: "**[User type]** cannot / struggles to **[action]** because **[reason]**, which results in **[consequence]**."
86
-
87
- ### Step 2: Define Goals (SMART)
88
-
89
- For each problem, define a goal:
90
- - **Specific** — exactly what will change
91
- - **Measurable** — quantifiable success metric
92
- - **Achievable** — realistic given constraints
93
- - **Relevant** — tied to a real problem
94
- - **Time-bound** — when to evaluate (if applicable)
95
-
96
- ### Step 3: Define Non-Goals (Critical)
97
-
98
- Explicitly state what this project will NOT do. This prevents scope creep
99
- and aligns expectations. Common categories:
100
- - Features explicitly excluded from scope
101
- - User segments not targeted
102
- - Performance levels not targeted (e.g., "not optimized for 1M+ users")
103
- - Platforms not supported
104
- - Integrations not included
105
-
106
- ### Step 4: Define Success Metrics
107
-
108
- For each goal, define how to measure success:
109
- - Quantitative metrics (response time, conversion rate, error rate)
110
- - Qualitative metrics (user satisfaction, NPS)
111
- - Leading indicators (usage frequency, feature adoption)
112
-
113
- ### Step 5: Write Problem Statement
114
-
115
- Write `artifacts/problem-statement.md`:
116
-
117
- ```markdown
118
- # Problem Statement: <Project/Task Name>
119
-
120
- ## Core Problems
121
- ### P1: <Problem Title>
122
- <User type> cannot <action> because <reason>, resulting in <consequence>.
123
- **Impact**: <high/medium/low>
124
- **Evidence**: <from discovery brief>
125
-
126
- ### P2: ...
127
-
128
- ## Goals
129
- ### G1: <Goal Title>
130
- **Statement**: <SMART goal>
131
- **Success Metric**: <measurable metric>
132
- **Target**: <specific target value>
133
- **Measured by**: <how and when>
134
-
135
- ### G2: ...
136
-
137
- ## Non-Goals
138
- ### NG1: <Non-Goal>
139
- **Why excluded**: <rationale>
140
-
141
- ### NG2: ...
142
- ### NG3: ...
143
-
144
- ## Target Users
145
- ### Primary Persona
146
- - **Who**: <description>
147
- - **Core need**: <what they need most>
148
- - **Current solution**: <how they solve it today>
149
-
150
- ### Secondary Persona (if applicable)
151
- - ...
152
-
153
- ## Success Criteria
154
- | Metric | Current State | Target | Measurement Method |
155
- |--------|--------------|--------|-------------------|
156
- | <metric> | <baseline or N/A> | <target> | <how to measure> |
157
-
158
- ## Assumptions & Risks
159
- | Assumption | Risk if Wrong | Mitigation |
160
- |-----------|--------------|------------|
161
- | <assumption> | <impact> | <what to do> |
162
-
163
- ## Scope Boundary
164
- **In scope**: <brief list>
165
- **Out of scope**: <brief list referencing non-goals>
166
- ```
167
-
168
- ### Step 6: Return Summary
169
-
170
- Return compact summary to orchestrator: core problem in one sentence,
171
- primary goal in one sentence, biggest risk, confidence level.
@@ -1,171 +0,0 @@
1
- ---
2
- name: problem-definer
3
- description: >
4
- Defines core problems, goals, non-goals, and success metrics from discovery data.
5
- Use when: dispatched by gproject-orchestrator Phase 1.
6
- NOT for: direct user invocation.
7
- triggers:
8
- - "define problem"
9
- - "goals non-goals"
10
- - "success metrics"
11
- metadata:
12
- version: 1.0.0
13
- compatible_harnesses: "cursor,codex,zed,opencode"
14
- ---
15
-
16
- # gproject-problem-definer
17
-
18
- ## Purpose
19
-
20
- Transform raw discovery data into a crisp problem statement with measurable goals.
21
- This phase answers: "Why are we doing this?" and "How will we know we succeeded?"
22
-
23
- ## Iron Laws
24
-
25
- | # | Law |
26
- |---|-----|
27
- | 1 | Every goal MUST have a measurable success metric |
28
- | 2 | Non-goals are as important as goals — list at least 3 |
29
- | 3 | Problems MUST be stated from the USER's perspective, not technical |
30
- | 4 | NEVER introduce solutions in the problem statement |
31
- | 5 | If discovery brief has low confidence areas, flag them — don't paper over |
32
-
33
- ## Red Flags
34
-
35
- Stop and re-read this skill if you are thinking:
36
-
37
- | Rationalization | Rebuttal |
38
- |---|---|
39
- | "'Improve onboarding' is a real goal — the metric can come later." | Iron Law 1: every goal carries a measurable success metric, here. Phase 5 checks each user story against a goal's metric; a goal without one passes every check by being uncheckable. |
40
- | "The obvious fix is a dashboard, so the problem is 'users have no dashboard'." | Iron Law 4: no solutions in the problem statement. A problem phrased as a missing solution pre-decides the PRD, and the stack and architecture phases then optimise for the wrong thing with nothing to notice. |
41
- | "Non-goals are filler — two obvious ones are enough." | Iron Law 2 sets a floor of three, and non-goals are the only part of this document that stops scope growth later. The useful ones are the plausible features you are deliberately not building, not the absurd ones. |
42
- | "The discovery brief was thin on this area, but I can reason my way to the goal." | Iron Law 5: flag low-confidence areas. Reasoning over a gap produces a goal that reads as firm as the evidenced ones, and no later phase can tell them apart. |
43
- | "This problem is really about the database schema, which is the true root cause." | Iron Law 3: problems are stated from the user's perspective. A technical root cause belongs in the architecture phase; stated here it becomes the thing success is measured against, instead of what the user experiences. |
44
-
45
- ---
46
-
47
- ## Input Contract
48
-
49
- ```yaml
50
- task: "Define core problems and goals"
51
- input_artifacts:
52
- - .metaproject/jobs/<job>/artifacts/discovery-brief.md
53
- decisions_so_far:
54
- D_mode: "..."
55
- D_domain: "..."
56
- D_audience: "..."
57
- D_scale_estimate: "..."
58
- ```
59
-
60
- ## Output Contract
61
-
62
- ```yaml
63
- status: "DONE" | "NEEDS_CONTEXT"
64
- summary: "<3-5 sentences: core problem, primary goal, key constraint>"
65
- new_decisions:
66
- D_core_problems: ["<problem 1>", "<problem 2>"]
67
- D_goals: ["<goal 1 + metric>", "<goal 2 + metric>"]
68
- D_non_goals: ["<non-goal 1>", "<non-goal 2>", "<non-goal 3>"]
69
- D_success_metrics: ["<metric 1>", "<metric 2>"]
70
- D_target_users: "<primary persona>"
71
- artifact_path: ".metaproject/jobs/<job>/artifacts/problem-statement.md"
72
- ```
73
-
74
- ---
75
-
76
- ## Workflow
77
-
78
- ### Step 1: Extract Problems
79
-
80
- From discovery brief, identify:
81
- - What pain points do target users have?
82
- - What's broken / missing / inefficient?
83
- - What opportunity exists?
84
-
85
- Frame each problem as: "**[User type]** cannot / struggles to **[action]** because **[reason]**, which results in **[consequence]**."
86
-
87
- ### Step 2: Define Goals (SMART)
88
-
89
- For each problem, define a goal:
90
- - **Specific** — exactly what will change
91
- - **Measurable** — quantifiable success metric
92
- - **Achievable** — realistic given constraints
93
- - **Relevant** — tied to a real problem
94
- - **Time-bound** — when to evaluate (if applicable)
95
-
96
- ### Step 3: Define Non-Goals (Critical)
97
-
98
- Explicitly state what this project will NOT do. This prevents scope creep
99
- and aligns expectations. Common categories:
100
- - Features explicitly excluded from scope
101
- - User segments not targeted
102
- - Performance levels not targeted (e.g., "not optimized for 1M+ users")
103
- - Platforms not supported
104
- - Integrations not included
105
-
106
- ### Step 4: Define Success Metrics
107
-
108
- For each goal, define how to measure success:
109
- - Quantitative metrics (response time, conversion rate, error rate)
110
- - Qualitative metrics (user satisfaction, NPS)
111
- - Leading indicators (usage frequency, feature adoption)
112
-
113
- ### Step 5: Write Problem Statement
114
-
115
- Write `artifacts/problem-statement.md`:
116
-
117
- ```markdown
118
- # Problem Statement: <Project/Task Name>
119
-
120
- ## Core Problems
121
- ### P1: <Problem Title>
122
- <User type> cannot <action> because <reason>, resulting in <consequence>.
123
- **Impact**: <high/medium/low>
124
- **Evidence**: <from discovery brief>
125
-
126
- ### P2: ...
127
-
128
- ## Goals
129
- ### G1: <Goal Title>
130
- **Statement**: <SMART goal>
131
- **Success Metric**: <measurable metric>
132
- **Target**: <specific target value>
133
- **Measured by**: <how and when>
134
-
135
- ### G2: ...
136
-
137
- ## Non-Goals
138
- ### NG1: <Non-Goal>
139
- **Why excluded**: <rationale>
140
-
141
- ### NG2: ...
142
- ### NG3: ...
143
-
144
- ## Target Users
145
- ### Primary Persona
146
- - **Who**: <description>
147
- - **Core need**: <what they need most>
148
- - **Current solution**: <how they solve it today>
149
-
150
- ### Secondary Persona (if applicable)
151
- - ...
152
-
153
- ## Success Criteria
154
- | Metric | Current State | Target | Measurement Method |
155
- |--------|--------------|--------|-------------------|
156
- | <metric> | <baseline or N/A> | <target> | <how to measure> |
157
-
158
- ## Assumptions & Risks
159
- | Assumption | Risk if Wrong | Mitigation |
160
- |-----------|--------------|------------|
161
- | <assumption> | <impact> | <what to do> |
162
-
163
- ## Scope Boundary
164
- **In scope**: <brief list>
165
- **Out of scope**: <brief list referencing non-goals>
166
- ```
167
-
168
- ### Step 6: Return Summary
169
-
170
- Return compact summary to orchestrator: core problem in one sentence,
171
- primary goal in one sentence, biggest risk, confidence level.