codex-workflows 0.3.0 → 0.4.0
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.
- package/.agents/skills/documentation-criteria/references/design-template.md +16 -0
- package/.agents/skills/documentation-criteria/references/task-template.md +9 -0
- package/.agents/skills/integration-e2e-testing/SKILL.md +17 -1
- package/.agents/skills/recipe-front-design/SKILL.md +7 -2
- package/.agents/skills/recipe-fullstack-implement/SKILL.md +2 -0
- package/.agents/skills/recipe-implement/SKILL.md +2 -0
- package/.agents/skills/recipe-reverse-engineer/SKILL.md +2 -2
- package/.agents/skills/recipe-update-doc/SKILL.md +16 -5
- package/.agents/skills/subagents-orchestration-guide/SKILL.md +43 -25
- package/.agents/skills/subagents-orchestration-guide/references/monorepo-flow.md +45 -21
- package/.agents/skills/testing/SKILL.md +31 -0
- package/.codex/agents/acceptance-test-generator.toml +9 -2
- package/.codex/agents/code-verifier.toml +11 -4
- package/.codex/agents/codebase-analyzer.toml +193 -0
- package/.codex/agents/document-reviewer.toml +5 -0
- package/.codex/agents/integration-test-reviewer.toml +8 -7
- package/.codex/agents/quality-fixer-frontend.toml +30 -4
- package/.codex/agents/quality-fixer.toml +30 -4
- package/.codex/agents/task-decomposer.toml +23 -2
- package/.codex/agents/task-executor-frontend.toml +46 -7
- package/.codex/agents/task-executor.toml +47 -8
- package/.codex/agents/technical-designer-frontend.toml +9 -0
- package/.codex/agents/technical-designer.toml +9 -0
- package/.codex/agents/work-planner.toml +22 -2
- package/README.md +11 -5
- package/package.json +1 -1
|
@@ -113,6 +113,8 @@ Must be performed before Design Doc creation:
|
|
|
113
113
|
- Clearly document similar functionality search results (found implementations or "none")
|
|
114
114
|
- Include dependency existence verification results (verified existing / requires new creation / external dependency)
|
|
115
115
|
- Record adopted decision (use existing/improvement proposal/new implementation) and rationale
|
|
116
|
+
- When Codebase Analysis input is provided, use it as the baseline evidence set and extend it only where gaps remain
|
|
117
|
+
- When persistence, repositories, queries, migrations, or schema-bound behavior are part of scope, complete the `Test Boundaries` section with a concrete data layer verification strategy. When they are not part of scope, mark the section explicitly as not applicable.
|
|
116
118
|
|
|
117
119
|
6. **Code Inspection Evidence**
|
|
118
120
|
- Record all inspected files and key functions in "Code Inspection Evidence" section of Design Doc
|
|
@@ -233,6 +235,13 @@ Confirm and document conflicts with existing systems at each integration point t
|
|
|
233
235
|
- `reverse-engineer`: Document existing architecture as-is
|
|
234
236
|
|
|
235
237
|
- **Requirements Analysis Results**: Requirements analysis results (scale determination, technical requirements, etc.)
|
|
238
|
+
- **Codebase Analysis** (optional, from codebase-analyzer):
|
|
239
|
+
- Use as the primary source for Existing Codebase Analysis when provided
|
|
240
|
+
- `existingElements` informs implementation path mapping and inspection evidence
|
|
241
|
+
- `dataModel` informs schema references, data contracts, and persistence design
|
|
242
|
+
- `focusAreas` indicate areas requiring deeper design attention
|
|
243
|
+
- `constraints` inform design constraints, assumptions, and risk handling
|
|
244
|
+
- Additional investigation should focus on gaps or limitations that the analysis calls out
|
|
236
245
|
- **PRD**: PRD document (if exists)
|
|
237
246
|
- **Documents to Create**: ADR, Design Doc, or both
|
|
238
247
|
- **Existing Architecture Information**:
|
|
@@ -156,7 +156,26 @@ Read test skeleton files (integration tests, E2E tests) and extract meta informa
|
|
|
156
156
|
- `// @complexity: high` → Subdivide tasks or estimate higher effort
|
|
157
157
|
- `// @complexity: low` → Consider combining multiple tests into one task
|
|
158
158
|
|
|
159
|
-
#### Step 3:
|
|
159
|
+
#### Step 3: Extract Environment Prerequisites from E2E Skeletons
|
|
160
|
+
|
|
161
|
+
When E2E test skeletons are provided, first identify the E2E skeleton subset using file naming conventions such as `*.e2e.test.*` and then scan only those files for environment prerequisites in two stages:
|
|
162
|
+
|
|
163
|
+
**Stage 1: Detect precondition patterns**
|
|
164
|
+
- `Preconditions:` annotations mentioning seed data, test users, subscriptions, or required DB state
|
|
165
|
+
- `@dependency: full-system` combined with auth/login setup
|
|
166
|
+
- Environment variable references such as `E2E_*` or `TEST_*`
|
|
167
|
+
- External service dependencies that require mock/intercept or a running local dependency
|
|
168
|
+
|
|
169
|
+
**Stage 2: Generate Phase 0 setup tasks**
|
|
170
|
+
- Seed data → Add a Phase 0 task for fixture or seed preparation
|
|
171
|
+
- Auth fixture/login state → Add a Phase 0 task for auth setup
|
|
172
|
+
- External service mocks → Add a Phase 0 task for mock/intercept setup
|
|
173
|
+
- Environment configuration → Add a Phase 0 task for env var or local service configuration
|
|
174
|
+
- Other prerequisites → Add a matching setup task with clear traceability to the E2E skeleton
|
|
175
|
+
|
|
176
|
+
Place these setup tasks before implementation and annotate them as E2E setup work.
|
|
177
|
+
|
|
178
|
+
#### Step 4: Classify and Place Tests
|
|
160
179
|
|
|
161
180
|
**Test Classification**:
|
|
162
181
|
- Setup items (Mock preparation, measurement tools, Helpers, etc.) → Prioritize in Phase 1
|
|
@@ -208,7 +227,7 @@ Compose phases based on technical dependencies and implementation approach from
|
|
|
208
227
|
Always include quality assurance (all tests passing, acceptance criteria achieved) in final phase.
|
|
209
228
|
|
|
210
229
|
### Test Skeleton Integration
|
|
211
|
-
Follow the test skeleton placement rules defined in
|
|
230
|
+
Follow the test skeleton placement rules defined in the Planning Process.
|
|
212
231
|
|
|
213
232
|
## Diagram Creation (using mermaid notation)
|
|
214
233
|
|
|
@@ -221,6 +240,7 @@ When creating work plans, **Phase Structure Diagrams** and **Task Dependency Dia
|
|
|
221
240
|
- [ ] All requirements converted to tasks
|
|
222
241
|
- [ ] Quality assurance exists in final phase
|
|
223
242
|
- [ ] Test skeleton file paths listed in corresponding phases (when provided)
|
|
243
|
+
- [ ] E2E environment prerequisites addressed when E2E skeletons are provided
|
|
224
244
|
- [ ] Test design information reflected (only when provided)
|
|
225
245
|
- [ ] Setup tasks placed in first phase
|
|
226
246
|
- [ ] Risk level-based prioritization applied
|
package/README.md
CHANGED
|
@@ -48,10 +48,11 @@ The framework runs a structured workflow — requirements → design → task de
|
|
|
48
48
|
A single request becomes a structured development process:
|
|
49
49
|
|
|
50
50
|
1. **Understand** the problem (scale, constraints, affected files)
|
|
51
|
-
2. **
|
|
52
|
-
3. **
|
|
53
|
-
4. **
|
|
54
|
-
5. **
|
|
51
|
+
2. **Analyze the existing codebase** (dependencies, data layer, risk areas)
|
|
52
|
+
3. **Design** the solution (ADR, Design Doc with acceptance criteria)
|
|
53
|
+
4. **Break it into tasks** (atomic, 1 commit each)
|
|
54
|
+
5. **Implement with tests** (TDD per task)
|
|
55
|
+
6. **Run quality checks** (lint, test, build — no failing checks)
|
|
55
56
|
|
|
56
57
|
Each step is handled by a specialized subagent in its own context, preventing context pollution and reducing error accumulation in long-running tasks:
|
|
57
58
|
|
|
@@ -62,9 +63,13 @@ requirement-analyzer → Scale determination (Small / Medium / Large)
|
|
|
62
63
|
↓
|
|
63
64
|
prd-creator → Product requirements (Large scale)
|
|
64
65
|
↓
|
|
66
|
+
codebase-analyzer → Existing codebase facts + focus areas
|
|
67
|
+
↓
|
|
65
68
|
technical-designer → ADR + Design Doc with acceptance criteria
|
|
66
69
|
↓
|
|
67
|
-
|
|
70
|
+
code-verifier → Design Doc vs existing code verification
|
|
71
|
+
↓
|
|
72
|
+
document-reviewer → Quality gate with verification evidence
|
|
68
73
|
↓
|
|
69
74
|
acceptance-test-gen → Test skeletons from ACs
|
|
70
75
|
↓
|
|
@@ -222,6 +227,7 @@ Codex spawns these as needed during recipe execution. Each agent runs in its own
|
|
|
222
227
|
| `technical-designer` | ADR and Design Doc creation (backend) |
|
|
223
228
|
| `technical-designer-frontend` | Frontend ADR and Design Doc creation (React) |
|
|
224
229
|
| `ui-spec-designer` | UI Specification from PRD and optional prototype code |
|
|
230
|
+
| `codebase-analyzer` | Existing codebase analysis before Design Doc creation |
|
|
225
231
|
| `work-planner` | Work plan creation from Design Docs |
|
|
226
232
|
| `document-reviewer` | Document consistency and approval |
|
|
227
233
|
| `design-sync` | Cross-document consistency verification |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codex-workflows",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Task-oriented agentic coding framework for OpenAI Codex CLI — skills, recipes, and subagents for structured development workflows",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Shinsuke Kagawa",
|