open-codev-workflow 0.1.0__py3-none-any.whl

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 (47) hide show
  1. codev_workflow/__init__.py +5 -0
  2. codev_workflow/__main__.py +4 -0
  3. codev_workflow/bundle/.agents/skills/build-change/SKILL.md +96 -0
  4. codev_workflow/bundle/.agents/skills/build-change/agents/openai.yaml +4 -0
  5. codev_workflow/bundle/.agents/skills/build-change/assets/implementation-plan.template.md +51 -0
  6. codev_workflow/bundle/.agents/skills/define-product/SKILL.md +79 -0
  7. codev_workflow/bundle/.agents/skills/define-product/agents/openai.yaml +4 -0
  8. codev_workflow/bundle/.agents/skills/define-product/assets/brief.template.md +50 -0
  9. codev_workflow/bundle/.agents/skills/design-solution/SKILL.md +75 -0
  10. codev_workflow/bundle/.agents/skills/design-solution/agents/openai.yaml +4 -0
  11. codev_workflow/bundle/.agents/skills/design-solution/assets/decision.template.md +26 -0
  12. codev_workflow/bundle/.agents/skills/design-solution/assets/design.template.md +76 -0
  13. codev_workflow/bundle/.agents/skills/launch-product/SKILL.md +66 -0
  14. codev_workflow/bundle/.agents/skills/launch-product/agents/openai.yaml +4 -0
  15. codev_workflow/bundle/.agents/skills/launch-product/assets/launch-plan.template.md +48 -0
  16. codev_workflow/bundle/.agents/skills/plan-delivery/SKILL.md +140 -0
  17. codev_workflow/bundle/.agents/skills/plan-delivery/agents/openai.yaml +4 -0
  18. codev_workflow/bundle/.agents/skills/plan-delivery/assets/delivery-plan.template.md +41 -0
  19. codev_workflow/bundle/.agents/skills/review-change/SKILL.md +48 -0
  20. codev_workflow/bundle/.agents/skills/review-change/agents/openai.yaml +4 -0
  21. codev_workflow/bundle/.agents/skills/specify-project/SKILL.md +205 -0
  22. codev_workflow/bundle/.agents/skills/specify-project/agents/openai.yaml +4 -0
  23. codev_workflow/bundle/.agents/skills/specify-project/assets/specification.template.md +151 -0
  24. codev_workflow/bundle/.agents/skills/specify-project/references/interview-coverage.md +303 -0
  25. codev_workflow/bundle/.agents/skills/specify-project/scripts/validate_specification.py +143 -0
  26. codev_workflow/bundle/.opencode/agents/builder.md +54 -0
  27. codev_workflow/bundle/.opencode/agents/orchestrator.md +72 -0
  28. codev_workflow/bundle/.opencode/agents/reviewer.md +35 -0
  29. codev_workflow/bundle/AGENTS.md +23 -0
  30. codev_workflow/bundle/docs/AI-WORKFLOW-PROMPTS.md +318 -0
  31. codev_workflow/bundle/docs/WORKFLOW-COOKBOOK.md +419 -0
  32. codev_workflow/bundle/docs/WORKFLOW-HUMAN.md +212 -0
  33. codev_workflow/bundle/docs/for-ai/WORKFLOW-AGENTS.md +171 -0
  34. codev_workflow/bundle/docs/handbooks/IDEA-TO-PRODUCTION-HANDBOOK.md +1190 -0
  35. codev_workflow/bundle/docs/handbooks/LANGUAGE-AGNOSTIC-PROJECT-HANDBOOK.md +745 -0
  36. codev_workflow/bundle/docs/handbooks/PYTHON-PROJECT-HANDBOOK.md +960 -0
  37. codev_workflow/bundle/evals/development-workflow/scenarios.json +132 -0
  38. codev_workflow/bundle/scripts/evaluate-development-workflow.py +352 -0
  39. codev_workflow/bundle/scripts/validate-development-workflow.py +213 -0
  40. codev_workflow/cli.py +140 -0
  41. codev_workflow/installer.py +891 -0
  42. open_codev_workflow-0.1.0.dist-info/METADATA +150 -0
  43. open_codev_workflow-0.1.0.dist-info/RECORD +47 -0
  44. open_codev_workflow-0.1.0.dist-info/WHEEL +5 -0
  45. open_codev_workflow-0.1.0.dist-info/entry_points.txt +2 -0
  46. open_codev_workflow-0.1.0.dist-info/licenses/LICENSE +28 -0
  47. open_codev_workflow-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,318 @@
1
+ # Human-AI Workflow Prompt Templates
2
+
3
+ Use these templates with the repository's primary `orchestrator` agent. The
4
+ orchestrator routes internally to `specify-project`, `define-product`,
5
+ `design-solution`, `plan-delivery`, `build-change`, `review-change`, or
6
+ `launch-product`; developers do not need to invoke a skill manually.
7
+
8
+ Every replaceable variable is highlighted as **`{{UPPER_SNAKE_CASE}}`**. Replace
9
+ all applicable variables before sending a prompt. Delete an optional line or
10
+ write `Not provided` rather than letting the AI invent missing information.
11
+
12
+ ## Choose a template
13
+
14
+ | Human-facing step | Situation | Template |
15
+ |---|---|---|
16
+ | Understand | New product or whole-product blueprint | 1 |
17
+ | Understand | Bounded feature or product proposal | 2 |
18
+ | Understand | Material technical design | 3 |
19
+ | Understand | Multi-developer milestones and work items | 4 |
20
+ | Build and Review | Ready work item using three agents | 5 |
21
+ | Build and Review | Small bug fix | 6 |
22
+ | Review | Standalone independent review | 7 |
23
+ | Ship | Release readiness and rollout plan | 8 |
24
+ | Ship/Understand | Rollout decision or next milestone | 9 |
25
+
26
+ ## 1. Guided greenfield or whole-product specification
27
+
28
+ Use this when one recommendation-led interview should create a canonical
29
+ `SPECIFICATION.md`. It routes to `specify-project` and must not produce an
30
+ implementation plan or code.
31
+
32
+ > I want to define **`{{PROJECT_NAME}}`** from the following idea or blueprint:
33
+ >
34
+ > **`{{IDEA_OR_BLUEPRINT}}`**
35
+ >
36
+ > Existing evidence, research, or source material:
37
+ > **`{{EVIDENCE_AND_LINKS}}`**
38
+ >
39
+ > Known constraints or policies:
40
+ > **`{{CONSTRAINTS_AND_POLICIES}}`**
41
+ >
42
+ > Guide me through the greenfield/whole-product specification workflow. Ask
43
+ > exactly one targeted question per response and include your recommended
44
+ > default. Distinguish verified facts, assumptions, and decisions. Challenge
45
+ > unsafe or vague answers with concrete trade-offs.
46
+ >
47
+ > Obtain my acceptance of the product frame before beginning technical design.
48
+ > When every material product and architecture question is resolved, generate
49
+ > one canonical `SPECIFICATION.md`. Do not create a roadmap, sprint plan, work
50
+ > items, implementation guide, or code.
51
+
52
+ ## 2. Product or feature definition
53
+
54
+ Use this for a bounded feature or modular product path. It routes to
55
+ `define-product` and deliberately avoids technical solution design.
56
+
57
+ > Help me define **`{{FEATURE_OR_PRODUCT_NAME}}`**.
58
+ >
59
+ > Current request or problem statement:
60
+ > **`{{REQUEST_OR_PROBLEM}}`**
61
+ >
62
+ > Known users and evidence:
63
+ > **`{{USERS_AND_EVIDENCE}}`**
64
+ >
65
+ > Existing product/specification context:
66
+ > **`{{UPSTREAM_CONTEXT_LINKS}}`**
67
+ >
68
+ > Constraints:
69
+ > **`{{CONSTRAINTS}}`**
70
+ >
71
+ > Clarify the user, problem, outcome, success measures, essential scenarios,
72
+ > first-release scope, non-goals, constraints, and evidence-seeking assumptions.
73
+ > Recommend the lightest safe workflow. Ask only questions that materially
74
+ > change those facts. Do not design the technical solution, assign developers,
75
+ > or create implementation tasks. Keep the brief Draft until I explicitly
76
+ > accept outcome, scope, non-goals, and success measures.
77
+
78
+ ## 3. Technical solution design
79
+
80
+ Use when an accepted outcome requires shared architecture, API, data,
81
+ reliability, security, migration, or rollout decisions. It routes to
82
+ `design-solution`.
83
+
84
+ > Design the technical solution for **`{{FEATURE_OR_PRODUCT_NAME}}`**.
85
+ >
86
+ > Accepted brief or specification:
87
+ > **`{{ACCEPTED_PRODUCT_AUTHORITY}}`**
88
+ >
89
+ > Relevant repository area and existing design/API sources:
90
+ > **`{{REPOSITORY_AND_DESIGN_LINKS}}`**
91
+ >
92
+ > Material risks or constraints:
93
+ > **`{{RISKS_AND_CONSTRAINTS}}`**
94
+ >
95
+ > Inspect the current repository, tests, conventions, components, ownership,
96
+ > APIs, schemas, failure behavior, and prior decisions before proposing a
97
+ > solution. Identify only the shared decisions required for safe implementation.
98
+ > For every cross-component contract define its owner, consumers, shape,
99
+ > guarantees, errors/timeouts/retries, compatibility expectations, and a
100
+ > contract fixture or test where parallel work depends on it.
101
+ >
102
+ > Recommend one solution and explain meaningful alternatives and trade-offs.
103
+ > Ask me only about decisions affecting product behavior, public contracts,
104
+ > persistent data, risk, cost, or ownership. Do not prescribe private methods,
105
+ > create work items, or assign developers. Mark the design Accepted only after I
106
+ > confirm the material decisions.
107
+
108
+ ## 4. Multi-developer delivery planning
109
+
110
+ Use after the product and required architecture are accepted. It routes to
111
+ `plan-delivery` and lets the AI discover relevant subsystem and contract seams.
112
+
113
+ > Plan delivery for **`{{PROJECT_OR_FEATURE_NAME}}`** with
114
+ > **`{{TEAM_SIZE}}`** developers.
115
+ >
116
+ > Accepted specification/brief/design/API authority:
117
+ > **`{{ACCEPTED_AUTHORITY_LINKS}}`**
118
+ >
119
+ > Team capabilities and availability:
120
+ > **`{{TEAM_CAPABILITIES_AND_AVAILABILITY}}`**
121
+ >
122
+ > Current commitments or fixed dates:
123
+ > **`{{COMMITMENTS_OR_DATES}}`**
124
+ >
125
+ > First inspect the accepted authority and repository. Recommend the next
126
+ > demonstrable outcome milestone. Show the subsystem and contract boundaries it
127
+ > touches, fixed decisions, blocking unknowns, shared hotspots, and work that can
128
+ > proceed concurrently. Return material architecture gaps to technical design
129
+ > rather than inventing them.
130
+ >
131
+ > Plan the current milestone in detail and later milestones coarsely. Split
132
+ > current work by independently testable behavior, not merely technical layers.
133
+ > For each item provide outcome and acceptance, authority links, recommended
134
+ > owner and independent reviewer, risk, validation, status, and only these
135
+ > dependency relations: `Blocked by`, `Integrates with`, and `Lands after`.
136
+ > Define integration checkpoints and their entry/completion evidence. Default to
137
+ > one implementation item per developer and no more than two active reviews per
138
+ > reviewer. End with `Ready now`, `Parallel`, `Blocked`, `Integration points`,
139
+ > and `Human decisions required`. Do not implement anything.
140
+
141
+ ## 5. Execute one ready work item with orchestrator, builder, and reviewer
142
+
143
+ Use this for the normal Build phase. The orchestrator creates the plan and
144
+ passes all handoffs; the human does not copy messages between subagents.
145
+
146
+ > Execute work item **`{{WORK_ITEM_ID}}`** for
147
+ > **`{{PROJECT_OR_FEATURE_NAME}}`** using the repository's three-agent workflow.
148
+ >
149
+ > Work-item source:
150
+ > **`{{WORK_ITEM_LINK_OR_TEXT}}`**
151
+ >
152
+ > Accepted specification/brief/design/API authority:
153
+ > **`{{AUTHORITY_LINKS}}`**
154
+ >
155
+ > Integration constraints and dependencies:
156
+ > **`{{DEPENDENCIES_AND_CHECKPOINTS}}`**
157
+ >
158
+ > Required validation or test environment:
159
+ > **`{{VALIDATION_REQUIREMENTS}}`**
160
+ >
161
+ > Act as the primary orchestrator and do not implement product code yourself.
162
+ >
163
+ > **Plan:** Inspect repository instructions, Git state, relevant code, tests,
164
+ > ownership, comparable implementations, and authority. Confirm the item is
165
+ > ready. Present the focus card and generate the complete repository-grounded
166
+ > implementation plan using the `build-change` template. Identify exact
167
+ > expected files/symbols, steps with tests, validation commands, risks, rollout,
168
+ > decisions, base commit, allowed scope, and stop conditions. Do not ask me to
169
+ > write the plan. Ask me only for a material product, API, data, dependency,
170
+ > architecture, security, destructive, scope, ownership, or risk decision.
171
+ > Present the plan and obtain my approval before delegation.
172
+ >
173
+ > **Build:** Invoke the `builder` subagent with the accepted work item and plan,
174
+ > exact authority links, base commit, allowed scope, integration constraints,
175
+ > validation, and stop conditions. The builder may edit and test but may not
176
+ > invoke agents, alter accepted authority, commit, push, merge, publish, deploy,
177
+ > migrate data, or expand rollout. Require an evidence receipt with exact base
178
+ > and head snapshots.
179
+ >
180
+ > **Review:** After validating the builder handoff, invoke `reviewer` in a fresh
181
+ > task with the exact base-to-head snapshot, work item, accepted plan, authority,
182
+ > and evidence receipt. The reviewer must remain read-only and end with `READY
183
+ > FOR HUMAN APPROVAL`, `CHANGES REQUIRED`, or `BLOCKED BY MISSING EVIDENCE`.
184
+ >
185
+ > **Correct:** Route actionable findings back to `builder` without asking me to
186
+ > copy them. Reinvoke `reviewer` on the corrected exact snapshot. Stop after two
187
+ > correction attempts with the same root cause, when the accepted plan must
188
+ > change materially, when work collides, or when safe validation is unavailable.
189
+ >
190
+ > **Handoff:** Return delivered behavior, changed files/components, exact
191
+ > validation actually run, acceptance evidence, deviations, limitations,
192
+ > reviewer decision, residual risks, and exact snapshot. Stop before commit or
193
+ > merge for my approval.
194
+
195
+ ## 6. Small bug fix with the three-agent workflow
196
+
197
+ Use this shorter Build prompt for a local, reversible defect with an obvious
198
+ accepted outcome. It still uses `build-change` and independent `review-change`.
199
+
200
+ > Fix **`{{BUG_ID_OR_TITLE}}`** using the orchestrator, builder, and reviewer.
201
+ >
202
+ > Reproduction and expected behavior:
203
+ > **`{{REPRODUCTION_AND_EXPECTED_BEHAVIOR}}`**
204
+ >
205
+ > Relevant issue, specification, or code context:
206
+ > **`{{AUTHORITY_OR_CONTEXT}}`**
207
+ >
208
+ > Non-goals:
209
+ > **`{{NON_GOALS}}`**
210
+ >
211
+ > Inspect and reproduce the defect. Present an inline focus card and recommend
212
+ > the smallest correction with targeted validation. If the fix is truly local
213
+ > and contains no material decision, ask for permission to delegate without
214
+ > manufacturing a separate plan document. Invoke `builder`, then invoke the
215
+ > read-only `reviewer` on the exact diff and evidence. Route findings
216
+ > automatically for at most two correction rounds. Stop for scope expansion,
217
+ > missing authority, contract changes, unsafe validation, or repeated failure.
218
+ > Return the final evidence and reviewer decision; stop before commit or merge.
219
+
220
+ ## 7. Standalone independent change review
221
+
222
+ Use when reviewing an existing pull request, branch, commit, or patch without
223
+ running the complete orchestrated Build flow. It routes to `review-change`.
224
+
225
+ > Independently review **`{{CHANGE_REFERENCE}}`**.
226
+ >
227
+ > Exact base snapshot: **`{{BASE_COMMIT}}`**
228
+ >
229
+ > Exact head snapshot: **`{{HEAD_COMMIT}}`**
230
+ >
231
+ > Work item and acceptance criteria:
232
+ > **`{{WORK_ITEM_AND_ACCEPTANCE}}`**
233
+ >
234
+ > Accepted specification/design/API authority:
235
+ > **`{{AUTHORITY_LINKS}}`**
236
+ >
237
+ > Implementer validation evidence:
238
+ > **`{{VALIDATION_EVIDENCE}}`**
239
+ >
240
+ > Use the independent reviewer in a fresh context. Review only this exact
241
+ > base-to-head snapshot and do not modify files. Prioritize correctness,
242
+ > security/privacy, permissions, data loss, concurrency, compatibility, error
243
+ > behavior, tests, architecture, scope, maintainability, and rollout. For each
244
+ > actionable finding provide severity P0-P3, tight location, observed evidence,
245
+ > impact, and a testable correction. Do not invent requirements or block on
246
+ > personal style. End with `READY FOR HUMAN APPROVAL`, `CHANGES REQUIRED`, or
247
+ > `BLOCKED BY MISSING EVIDENCE` and list residual risks.
248
+
249
+ ## 8. Release readiness and rollout planning
250
+
251
+ Use when a completed feature or product approaches production. It routes to
252
+ `launch-product`; it never authorizes deployment by itself.
253
+
254
+ > Assess release readiness for **`{{RELEASE_NAME_OR_VERSION}}`**.
255
+ >
256
+ > Accepted outcome and release scope:
257
+ > **`{{OUTCOME_AND_SCOPE}}`**
258
+ >
259
+ > Release candidate artifact/configuration and source revision:
260
+ > **`{{ARTIFACT_CONFIG_AND_REVISION}}`**
261
+ >
262
+ > Test, security, migration, compatibility, and operational evidence:
263
+ > **`{{READINESS_EVIDENCE}}`**
264
+ >
265
+ > Observability and support links:
266
+ > **`{{OBSERVABILITY_AND_SUPPORT}}`**
267
+ >
268
+ > Required approvers and policy:
269
+ > **`{{APPROVERS_AND_POLICY}}`**
270
+ >
271
+ > Prepare an evidence-based readiness assessment and staged rollout plan. Cover
272
+ > migrations, feature flags, internal/dogfood testing, immutable artifact
273
+ > promotion, stage audiences, minimum evidence windows, success and health
274
+ > thresholds, pause/rollback thresholds, monitors, ownership, support, rollback
275
+ > readiness, and cleanup. Mark every unverified critical item as a blocker with
276
+ > an owner and evidence-producing action. Recommend `expand`, `hold`, `roll
277
+ > back`, or `revise`. Do not deploy, publish, migrate, or expose users without my
278
+ > explicit authorization.
279
+
280
+ ## 9. Rollout decision, post-launch learning, or next milestone
281
+
282
+ Use after a rollout stage or milestone demonstration. It closes Ship and feeds
283
+ evidence back into Understand and `plan-delivery`.
284
+
285
+ > Evaluate **`{{MILESTONE_OR_ROLLOUT_STAGE}}`** for
286
+ > **`{{PROJECT_OR_RELEASE}}`**.
287
+ >
288
+ > Accepted outcome, success measures, and guardrails:
289
+ > **`{{OUTCOME_MEASURES_AND_GUARDRAILS}}`**
290
+ >
291
+ > Exact deployed artifact/configuration and exposure:
292
+ > **`{{ARTIFACT_AND_EXPOSURE}}`**
293
+ >
294
+ > Product, reliability, security, cost, and support evidence:
295
+ > **`{{OBSERVED_EVIDENCE}}`**
296
+ >
297
+ > Incidents, changed assumptions, or unresolved risks:
298
+ > **`{{INCIDENTS_AND_RISKS}}`**
299
+ >
300
+ > Compare observed evidence with the accepted decision rules. Distinguish facts,
301
+ > inference, and missing evidence. Recommend `expand`, `hold`, `roll back`,
302
+ > `revise`, `keep`, or `stop`, with the exact reason and human decision needed.
303
+ > If this is a completed development milestone, recommend the next demonstrable
304
+ > outcome and update only the next delivery wave after I accept it. Do not
305
+ > change exposure or release state without explicit authorization.
306
+
307
+ ## Placeholder checklist
308
+
309
+ Before sending a prompt:
310
+
311
+ - replace every **`{{PLACEHOLDER}}`**;
312
+ - use repository paths, issue IDs, and commit hashes where available;
313
+ - link to accepted authority instead of copying it;
314
+ - state `Not provided` for genuinely unknown information;
315
+ - do not invent numerical targets, policies, owners, or production evidence;
316
+ - keep one work item and one review purpose per Build invocation; and
317
+ - start separate branches/worktrees and orchestrator sessions for concurrent
318
+ developers.