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.
- codev_workflow/__init__.py +5 -0
- codev_workflow/__main__.py +4 -0
- codev_workflow/bundle/.agents/skills/build-change/SKILL.md +96 -0
- codev_workflow/bundle/.agents/skills/build-change/agents/openai.yaml +4 -0
- codev_workflow/bundle/.agents/skills/build-change/assets/implementation-plan.template.md +51 -0
- codev_workflow/bundle/.agents/skills/define-product/SKILL.md +79 -0
- codev_workflow/bundle/.agents/skills/define-product/agents/openai.yaml +4 -0
- codev_workflow/bundle/.agents/skills/define-product/assets/brief.template.md +50 -0
- codev_workflow/bundle/.agents/skills/design-solution/SKILL.md +75 -0
- codev_workflow/bundle/.agents/skills/design-solution/agents/openai.yaml +4 -0
- codev_workflow/bundle/.agents/skills/design-solution/assets/decision.template.md +26 -0
- codev_workflow/bundle/.agents/skills/design-solution/assets/design.template.md +76 -0
- codev_workflow/bundle/.agents/skills/launch-product/SKILL.md +66 -0
- codev_workflow/bundle/.agents/skills/launch-product/agents/openai.yaml +4 -0
- codev_workflow/bundle/.agents/skills/launch-product/assets/launch-plan.template.md +48 -0
- codev_workflow/bundle/.agents/skills/plan-delivery/SKILL.md +140 -0
- codev_workflow/bundle/.agents/skills/plan-delivery/agents/openai.yaml +4 -0
- codev_workflow/bundle/.agents/skills/plan-delivery/assets/delivery-plan.template.md +41 -0
- codev_workflow/bundle/.agents/skills/review-change/SKILL.md +48 -0
- codev_workflow/bundle/.agents/skills/review-change/agents/openai.yaml +4 -0
- codev_workflow/bundle/.agents/skills/specify-project/SKILL.md +205 -0
- codev_workflow/bundle/.agents/skills/specify-project/agents/openai.yaml +4 -0
- codev_workflow/bundle/.agents/skills/specify-project/assets/specification.template.md +151 -0
- codev_workflow/bundle/.agents/skills/specify-project/references/interview-coverage.md +303 -0
- codev_workflow/bundle/.agents/skills/specify-project/scripts/validate_specification.py +143 -0
- codev_workflow/bundle/.opencode/agents/builder.md +54 -0
- codev_workflow/bundle/.opencode/agents/orchestrator.md +72 -0
- codev_workflow/bundle/.opencode/agents/reviewer.md +35 -0
- codev_workflow/bundle/AGENTS.md +23 -0
- codev_workflow/bundle/docs/AI-WORKFLOW-PROMPTS.md +318 -0
- codev_workflow/bundle/docs/WORKFLOW-COOKBOOK.md +419 -0
- codev_workflow/bundle/docs/WORKFLOW-HUMAN.md +212 -0
- codev_workflow/bundle/docs/for-ai/WORKFLOW-AGENTS.md +171 -0
- codev_workflow/bundle/docs/handbooks/IDEA-TO-PRODUCTION-HANDBOOK.md +1190 -0
- codev_workflow/bundle/docs/handbooks/LANGUAGE-AGNOSTIC-PROJECT-HANDBOOK.md +745 -0
- codev_workflow/bundle/docs/handbooks/PYTHON-PROJECT-HANDBOOK.md +960 -0
- codev_workflow/bundle/evals/development-workflow/scenarios.json +132 -0
- codev_workflow/bundle/scripts/evaluate-development-workflow.py +352 -0
- codev_workflow/bundle/scripts/validate-development-workflow.py +213 -0
- codev_workflow/cli.py +140 -0
- codev_workflow/installer.py +891 -0
- open_codev_workflow-0.1.0.dist-info/METADATA +150 -0
- open_codev_workflow-0.1.0.dist-info/RECORD +47 -0
- open_codev_workflow-0.1.0.dist-info/WHEEL +5 -0
- open_codev_workflow-0.1.0.dist-info/entry_points.txt +2 -0
- open_codev_workflow-0.1.0.dist-info/licenses/LICENSE +28 -0
- open_codev_workflow-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# AI Collaboration Reference
|
|
2
|
+
|
|
3
|
+
Use this reference when helping a developer move from a software idea to a safe
|
|
4
|
+
production release. Operate as an interactive engineering partner, not an
|
|
5
|
+
unattended implementation service.
|
|
6
|
+
|
|
7
|
+
## Present one simple workflow
|
|
8
|
+
|
|
9
|
+
Route skills internally. Do not make the developer learn or select them. Name
|
|
10
|
+
the current human-facing step in plain language:
|
|
11
|
+
|
|
12
|
+
1. **Understand:** settle the outcome and any material design or coordination.
|
|
13
|
+
2. **Build:** implement and validate one bounded change.
|
|
14
|
+
3. **Review:** independently inspect an exact change snapshot.
|
|
15
|
+
4. **Ship:** authorize and observe controlled production exposure.
|
|
16
|
+
|
|
17
|
+
Design and delivery planning are conditional work inside `Understand`, not
|
|
18
|
+
additional stages every change must traverse.
|
|
19
|
+
|
|
20
|
+
## Select the path
|
|
21
|
+
|
|
22
|
+
- **Quick change:** use `build-change`, then `review-change` when risk warrants.
|
|
23
|
+
- **Feature:** use `define-product`; add `design-solution` for material technical
|
|
24
|
+
decisions; use `plan-delivery` for multi-person work; repeat build and review.
|
|
25
|
+
- **Guided greenfield/whole product:** use `specify-project` for a one-question-
|
|
26
|
+
at-a-time interview and one canonical `SPECIFICATION.md`, then continue with
|
|
27
|
+
`plan-delivery`.
|
|
28
|
+
- **Product/high risk, modular:** use `define-product`, `design-solution`, and all
|
|
29
|
+
later lifecycle skills through `launch-product`.
|
|
30
|
+
|
|
31
|
+
Risk overrides size. Permission, security, privacy, public API, persistent-data,
|
|
32
|
+
billing, compliance, destructive, or difficult-to-reverse changes require a
|
|
33
|
+
design and independent review.
|
|
34
|
+
|
|
35
|
+
## Interaction contract
|
|
36
|
+
|
|
37
|
+
1. Explain the current step and its value in plain language.
|
|
38
|
+
2. Read supplied material and inspect discoverable repository facts before
|
|
39
|
+
asking the developer.
|
|
40
|
+
3. Recommend a path or decision; do not present an unfiltered option catalogue.
|
|
41
|
+
4. Ask only for decisions that change outcome, scope, architecture, API/data,
|
|
42
|
+
risk, ownership, priority, or commitment.
|
|
43
|
+
5. Keep progress visible at meaningful boundaries; never disappear into an
|
|
44
|
+
unattended retry loop.
|
|
45
|
+
6. Preserve human control over acceptance, merge, release, migration,
|
|
46
|
+
publication, and rollout expansion.
|
|
47
|
+
|
|
48
|
+
Before editing in `Build`, present an inline focus card containing the change,
|
|
49
|
+
observable success, non-goals, allowed scope, validation, stop conditions, and
|
|
50
|
+
work style. Default to interactive pairing. Use bounded delegation only for
|
|
51
|
+
isolated, well-specified, testable, reversible work that will be independently
|
|
52
|
+
reviewed. Surface a required scope expansion before acting on it.
|
|
53
|
+
|
|
54
|
+
## Three-agent Build execution
|
|
55
|
+
|
|
56
|
+
When the platform provides repository-local subagents, keep the human in one
|
|
57
|
+
primary orchestrator conversation and automate task-local handoffs:
|
|
58
|
+
|
|
59
|
+
1. The **orchestrator** reads authority and repository evidence, confirms
|
|
60
|
+
readiness, presents the focus card, and creates any required implementation
|
|
61
|
+
plan. It does not edit product code.
|
|
62
|
+
2. After human approval to delegate, the **builder** executes only that accepted
|
|
63
|
+
plan, validates the exact change, and returns an evidence receipt with base
|
|
64
|
+
and head snapshots. It cannot invoke agents or authorize source-control or
|
|
65
|
+
release actions.
|
|
66
|
+
3. The orchestrator invokes a fresh, read-only **reviewer** with the exact diff,
|
|
67
|
+
work item, plan, authority, and evidence. The reviewer never fixes its own
|
|
68
|
+
findings.
|
|
69
|
+
4. The orchestrator routes actionable findings back to the builder and repeats
|
|
70
|
+
independent review. Stop after two correction attempts with the same root
|
|
71
|
+
cause or whenever a material decision, scope expansion, collision, or
|
|
72
|
+
validation gap requires the human.
|
|
73
|
+
|
|
74
|
+
Pass durable task facts and observable evidence between agents, not private
|
|
75
|
+
reasoning or broad chat transcripts. The human retains plan/delegation, merge,
|
|
76
|
+
and release authority. If the platform lacks subagents, one interactive builder
|
|
77
|
+
may perform implementation, but review still needs a fresh context and human
|
|
78
|
+
approval.
|
|
79
|
+
|
|
80
|
+
## Artifact authority
|
|
81
|
+
|
|
82
|
+
- Combined specification: product frame and high-level technical blueprint when
|
|
83
|
+
`specify-project` is deliberately selected. It replaces, rather than copies,
|
|
84
|
+
the corresponding brief and design.
|
|
85
|
+
- Brief: why, users, outcome, success, scope, non-goals, constraints.
|
|
86
|
+
- Design/API: architecture, ownership, contracts, trade-offs, risk controls.
|
|
87
|
+
- Project tracker/delivery plan: milestones, work items, assignments,
|
|
88
|
+
dependencies, status.
|
|
89
|
+
- Implementation plan: repository-grounded approach for one bounded work item.
|
|
90
|
+
- Code/tests: implemented behavior and executable evidence.
|
|
91
|
+
- Launch plan/observability: release decision, exposure, health, learning.
|
|
92
|
+
|
|
93
|
+
Reference upstream facts; do not duplicate them. Use Git commits as document and
|
|
94
|
+
code revisions. Do not introduce custom planning revision identifiers.
|
|
95
|
+
|
|
96
|
+
## Repository grounding
|
|
97
|
+
|
|
98
|
+
Before prescribing code mechanics:
|
|
99
|
+
|
|
100
|
+
- read repository instructions, relevant code, tests, build scripts, and current
|
|
101
|
+
Git state;
|
|
102
|
+
- resolve actual paths, symbols, signatures, schemas, conventions, and ownership;
|
|
103
|
+
- inspect comparable implementations and recent relevant changes where useful;
|
|
104
|
+
- identify concurrent or uncommitted work before editing overlapping files; and
|
|
105
|
+
- distinguish observed facts, inferences, and unresolved decisions.
|
|
106
|
+
|
|
107
|
+
If the request conflicts with repository reality, present evidence and return to
|
|
108
|
+
the appropriate brief, design, or work item. Never hallucinate a missing API or
|
|
109
|
+
silently rewrite accepted intent.
|
|
110
|
+
|
|
111
|
+
## Implementation behavior
|
|
112
|
+
|
|
113
|
+
Implement one coherent review purpose at a time. Keep the repository buildable,
|
|
114
|
+
put tests with behavior, reuse established patterns, and avoid unrelated cleanup.
|
|
115
|
+
Treat roughly 400 non-generated changed lines or eight files as a prompt to
|
|
116
|
+
reconsider slicing, not a hard limit.
|
|
117
|
+
|
|
118
|
+
Run formatting, static checks, affected tests, and proportionate broader tests.
|
|
119
|
+
Report exact commands and outcomes. Inspect the complete diff for accidental
|
|
120
|
+
files, debug code, weakened tests, scope expansion, compatibility risk, and stale
|
|
121
|
+
documentation.
|
|
122
|
+
|
|
123
|
+
After two failed attempts with the same root cause, stop and collaborate on a
|
|
124
|
+
new approach. Do not weaken requirements or validation to force progress.
|
|
125
|
+
|
|
126
|
+
## Review behavior
|
|
127
|
+
|
|
128
|
+
Review only an exact base-to-head snapshot. Lead with evidence-based findings,
|
|
129
|
+
ordered by impact. Check correctness, failures, security/privacy, concurrency,
|
|
130
|
+
compatibility, tests, architecture, maintainability, and rollout. Do not block
|
|
131
|
+
on personal style or invent missing requirements.
|
|
132
|
+
|
|
133
|
+
The implementing AI may self-check but never self-approve. An independent human
|
|
134
|
+
reviews every code change; use a fresh AI review as additional evidence for
|
|
135
|
+
normal or higher-risk work.
|
|
136
|
+
|
|
137
|
+
## Stop conditions
|
|
138
|
+
|
|
139
|
+
Stop with evidence, recommendation, and one precise decision when:
|
|
140
|
+
|
|
141
|
+
- outcome, acceptance, or non-goals conflict;
|
|
142
|
+
- a material product or technical decision is missing;
|
|
143
|
+
- an accepted API or design cannot be implemented safely;
|
|
144
|
+
- the repository base or dependency changed materially;
|
|
145
|
+
- access, environment, or validation evidence is unavailable;
|
|
146
|
+
- concurrent work collides; or
|
|
147
|
+
- the safe action requires new authorization.
|
|
148
|
+
|
|
149
|
+
Ordinary defects remain part of the current pair-engineering loop.
|
|
150
|
+
|
|
151
|
+
## Completion
|
|
152
|
+
|
|
153
|
+
For a code change, return an evidence receipt with: delivered behavior, files or
|
|
154
|
+
components changed, exact validation actually run, acceptance evidence, scope
|
|
155
|
+
deviations, known limitations, and review state. Stop before merge.
|
|
156
|
+
|
|
157
|
+
For a release, report readiness, exact artifact/configuration, current exposure,
|
|
158
|
+
success/health evidence, rollback readiness, and the recommended next decision.
|
|
159
|
+
Stop before deployment or exposure changes unless the human explicitly
|
|
160
|
+
authorizes them.
|
|
161
|
+
|
|
162
|
+
## Evaluate workflow changes
|
|
163
|
+
|
|
164
|
+
When `AGENTS.md`, a workflow skill, or an AI workflow rule changes, validate the
|
|
165
|
+
scenario catalog and run representative behavioral evaluations from
|
|
166
|
+
`evals/development-workflow/scenarios.json`. Score externally observed actions
|
|
167
|
+
with `scripts/evaluate-development-workflow.py`; the agent under evaluation must
|
|
168
|
+
not grade itself. Evaluate selected path, repository grounding, focus and scope,
|
|
169
|
+
required stops, validation evidence, read-only review behavior, and human
|
|
170
|
+
authorization boundaries. Record tool calls and artifacts as evidence, never
|
|
171
|
+
private chain-of-thought.
|