codex-workflows 0.6.3 → 0.6.4
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/recipe-design/SKILL.md +92 -37
- package/.agents/skills/recipe-front-design/SKILL.md +99 -39
- package/.codex/agents/codebase-analyzer.toml +5 -5
- package/.codex/agents/document-reviewer.toml +6 -2
- package/.codex/agents/technical-designer-frontend.toml +8 -3
- package/.codex/agents/technical-designer.toml +8 -3
- package/.codex/agents/ui-analyzer.toml +1 -1
- package/.codex/agents/ui-spec-designer.toml +5 -4
- package/package.json +1 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: recipe-design
|
|
3
|
-
description: "Execute from
|
|
3
|
+
description: "Execute from codebase-scoped analysis to design document creation."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Required Skills [LOAD BEFORE EXECUTION]
|
|
7
7
|
|
|
8
8
|
1. [LOAD IF NOT ACTIVE] `documentation-criteria` — document creation rules and templates
|
|
9
9
|
2. [LOAD IF NOT ACTIVE] `implementation-approach` — implementation strategy
|
|
10
|
-
3. [LOAD IF NOT ACTIVE] `subagents-orchestration-guide` — agent coordination and workflow flows
|
|
11
10
|
|
|
12
11
|
**Spawn rule**: every `spawn_agent` call MUST pass `fork_turns="none"` or `fork_context=false` for context isolation.
|
|
13
12
|
|
|
@@ -15,37 +14,39 @@ description: "Execute from requirement analysis to design document creation."
|
|
|
15
14
|
|
|
16
15
|
## Orchestrator Definition
|
|
17
16
|
|
|
18
|
-
**Core Identity**: "I am not a worker. I am an orchestrator."
|
|
17
|
+
**Core Identity**: "I am not a worker. I am an orchestrator."
|
|
19
18
|
|
|
20
19
|
**Execution Protocol**:
|
|
21
|
-
1. **Spawn agents for
|
|
22
|
-
2. **
|
|
23
|
-
-
|
|
24
|
-
-
|
|
20
|
+
1. **Spawn agents for analysis and document work** -- your role is to invoke sub-agents, pass data between them, and report results. The Step 1 scope bootstrap is an orchestrator-local pass limited to locating seed files.
|
|
21
|
+
2. **Run the design flow below in order**:
|
|
22
|
+
- Execute: scope bootstrap -> codebase-analyzer -> [Stop: Scope confirmation] -> technical-designer -> code-verifier -> document-reviewer -> design-sync -> [Stop: Design approval]
|
|
23
|
+
- `code-verifier` and `design-sync` apply to Design Docs; skip them for ADR-only output.
|
|
25
24
|
- **[STOP — BLOCKING]** At every `[Stop: ...]` marker -> Present status to user for confirmation. **CANNOT proceed until user explicitly confirms.**
|
|
26
25
|
3. **Scope**: Complete when design documents receive approval
|
|
27
26
|
|
|
28
|
-
**CRITICAL**: MUST execute document-reviewer
|
|
27
|
+
**CRITICAL**: MUST execute document-reviewer and all stopping points. MUST execute design-sync for Design Docs. Each serves as a quality gate.
|
|
29
28
|
ENFORCEMENT: Skipping any quality gate invalidates the design output.
|
|
30
29
|
|
|
31
30
|
## Workflow Overview
|
|
32
31
|
|
|
33
|
-
Core design-document path after prerequisite branches such as PRD, ADR, or UI Spec are resolved:
|
|
34
|
-
|
|
35
32
|
```
|
|
36
|
-
Requirements ->
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
Requirements -> scope bootstrap -> codebase-analyzer -> [Stop: Scope confirmation]
|
|
34
|
+
|
|
|
35
|
+
technical-designer
|
|
36
|
+
|
|
|
37
|
+
code-verifier -> document-reviewer
|
|
38
|
+
|
|
|
39
|
+
design-sync -> [Stop: Design approval]
|
|
43
40
|
```
|
|
44
41
|
|
|
42
|
+
`code-verifier` and `design-sync` are Design Doc steps. ADR-only output skips them.
|
|
43
|
+
|
|
45
44
|
## Scope Boundaries
|
|
46
45
|
|
|
47
46
|
**Included in this skill**:
|
|
48
|
-
-
|
|
47
|
+
- Scope bootstrap: locating seed files so codebase-analyzer receives a populated input
|
|
48
|
+
- Codebase analysis with codebase-analyzer (entry point of the design phase)
|
|
49
|
+
- Scope confirmation with the user, grounded in codebase-analyzer findings
|
|
49
50
|
- ADR creation (if architecture changes, new technology, or data flow changes)
|
|
50
51
|
- Design Doc creation with technical-designer
|
|
51
52
|
- Document review with document-reviewer
|
|
@@ -55,46 +56,100 @@ Requirements -> requirement-analyzer -> [Stop: Scale determination]
|
|
|
55
56
|
|
|
56
57
|
Requirements: $ARGUMENTS
|
|
57
58
|
|
|
58
|
-
Pass the user requirements directly to requirement-analyzer as the first action. If clarification is needed, handle it at the requirement-analysis stop point before proceeding.
|
|
59
|
-
|
|
60
59
|
MUST clearly present design alternatives and trade-offs.
|
|
61
60
|
|
|
62
61
|
Execute the process below within design scope.
|
|
63
62
|
|
|
64
63
|
## Execution Process
|
|
65
64
|
|
|
66
|
-
### Step 1:
|
|
67
|
-
|
|
65
|
+
### Step 1: Scope Bootstrap
|
|
66
|
+
Build a lightweight seed for codebase-analyzer. This is a file-location pass only, with no deep reading and no design decisions.
|
|
67
|
+
|
|
68
|
+
1. Extract candidate keywords from the user requirements: feature names, domain nouns, identifiers, route names, API names, or file-like terms.
|
|
69
|
+
2. Search each keyword separately with `rg -l --glob '!**/{node_modules,dist,build,coverage,.git}/**' --glob '!**/*.{lock,min.js,map}' '<keyword>'`. If `rg` is unavailable, use `grep -RIl` with the same exclusions where possible.
|
|
70
|
+
3. Bucket matches as `source`, `test`, `docs`, and `generated_or_vendor`. Exclude `generated_or_vendor` from the seed.
|
|
71
|
+
4. Rank matches in this order: path or filename match, exported symbol or route/API match, source content match, tests for selected source files, docs for selected source files.
|
|
72
|
+
5. Collect the final seed as `affectedFiles`, and keep a one-line `seedRationale` for each file.
|
|
73
|
+
6. If the search returns no source files, ask the user which files or modules the design targets. Use the user's answer as `affectedFiles`. If the user confirms no related code exists, confirm whether to proceed with a new-surface design before invoking codebase-analyzer.
|
|
74
|
+
7. If the ranked seed has more than 20 files, present the top-ranked candidates and ask the user to narrow the seed before invoking codebase-analyzer.
|
|
75
|
+
|
|
76
|
+
Construct `requirement_analysis` with:
|
|
77
|
+
- `affectedFiles`: the Step 1 seed
|
|
78
|
+
- `affectedLayers`: layers inferred from paths, or `["unknown"]` when unclear
|
|
79
|
+
- `scale`: provisional scale from file count (`small` 1-2, `medium` 3-5, `large` 6+)
|
|
80
|
+
- `purpose`: the user requirements
|
|
81
|
+
- `confidence`: `confirmed` when target files are explicit or the ranked seed is focused; otherwise `provisional`
|
|
82
|
+
- `adrRequired`: `true` when the request changes architecture, introduces technology or dependencies, changes data flow/storage/contract ownership, or changes shared cross-boundary contracts; otherwise `false`
|
|
83
|
+
- `adrReason`: the specific matched ADR condition, or `null`
|
|
84
|
+
- `prdRequired`: `true` when scale is `large` and no existing PRD covers the scope; otherwise `false`
|
|
85
|
+
- `scopeDependencies`: questions whose answers can change the target files, scale, or document type
|
|
86
|
+
- `questions`: user-facing questions needed before design
|
|
87
|
+
- `documentTypeRationale`: why ADR, Design Doc, or both are needed from the provisional seed
|
|
88
|
+
- `seedRationale`: one-line reason for each file in `affectedFiles`
|
|
89
|
+
- `technicalConsiderations`: include any obvious user-stated constraints, risks, and dependencies; use empty lists only when none are stated
|
|
68
90
|
|
|
69
91
|
### Step 2: Codebase Analysis
|
|
70
|
-
Spawn codebase-analyzer agent: "Analyze the existing codebase to provide evidence for Design Doc creation. requirement_analysis: [
|
|
92
|
+
Spawn codebase-analyzer agent: "Analyze the existing codebase to provide evidence for Design Doc creation. requirement_analysis: [Step 1 requirement_analysis]. requirements: $ARGUMENTS. target_paths: [Step 1 affectedFiles]."
|
|
93
|
+
|
|
94
|
+
### Step 3: Scope Confirmation
|
|
95
|
+
After codebase-analyzer returns, present the design scope to the user before design work:
|
|
96
|
+
- Target files/modules: `analysisScope.filesAnalyzed` and directly relevant modules
|
|
97
|
+
- Affected layers: inferred from `analysisScope.categoriesDetected`, `focusAreas`, and paths
|
|
98
|
+
- Recommended document path: ADR, Design Doc, or both, with `documentTypeRationale`, `adrRequired`, and `adrReason`
|
|
99
|
+
- PRD status: whether `prdRequired` is true, whether an existing PRD path is available, and what decision is needed before design
|
|
100
|
+
- Unknowns/assumptions: `limitations` and unresolved risks
|
|
101
|
+
- Questions before design: scope questions that change the design target or scale
|
|
102
|
+
|
|
103
|
+
Ask the user to choose one:
|
|
104
|
+
- Proceed with the recommended document path
|
|
105
|
+
- Correct the scope and re-run codebase-analyzer
|
|
106
|
+
- Answer open questions, then proceed
|
|
107
|
+
- Provide an existing PRD path when `prdRequired` is true
|
|
108
|
+
- Explicitly approve proceeding without a PRD when `prdRequired` is true and no PRD will be provided
|
|
109
|
+
|
|
110
|
+
If `prdRequired` is true and the user neither provides a PRD path nor explicitly approves proceeding without a PRD, stop. This recipe does not create PRDs.
|
|
111
|
+
|
|
112
|
+
After confirmation, set the final scale from the confirmed target file count (`small` 1-2, `medium` 3-5, `large` 6+), recompute `adrRequired`, `adrReason`, `prdRequired`, `confidence`, and `documentTypeRationale`, then carry the complete confirmed requirement context into design creation.
|
|
113
|
+
|
|
114
|
+
**[STOP — BLOCKING]** Wait for user confirmation before proceeding.
|
|
115
|
+
|
|
116
|
+
### Step 4: Design Document Creation
|
|
117
|
+
Create documents according to `documentTypeRationale`:
|
|
118
|
+
- ADR only: Spawn technical-designer agent: "document_to_create: ADR. Create ADR based on the requirements, confirmed_requirement_context: [complete confirmed requirement context from Step 3, including confirmed scope, confirmed scale, adrRequired, adrReason, prdRequired, PRD path or explicit no-PRD approval when applicable, documentTypeRationale, scopeDependencies, questions, and seedRationale], and codebase analysis output. Follow `document_to_create` for this invocation; `documentTypeRationale` describes the overall confirmed path. Include architecture decisions and clear alternatives with trade-offs."
|
|
119
|
+
- Design Doc only: Spawn technical-designer agent: "document_to_create: DesignDoc. Create Design Doc based on the requirements, confirmed_requirement_context: [complete confirmed requirement context from Step 3, including confirmed scope, confirmed scale, adrRequired, adrReason, prdRequired, PRD path or explicit no-PRD approval when applicable, documentTypeRationale, scopeDependencies, questions, and seedRationale], and codebase analysis output. Follow `document_to_create` for this invocation; `documentTypeRationale` describes the overall confirmed path. Include component design, acceptance criteria, and clear alternatives with trade-offs."
|
|
120
|
+
- Both ADR and Design Doc: first spawn technical-designer with `document_to_create: ADR`. After the ADR path is available, spawn technical-designer again with `document_to_create: DesignDoc`, `adr_path: [ADR path]`, the same `confirmed_requirement_context`, and the same codebase analysis output. The Design Doc must reference the ADR decision.
|
|
121
|
+
|
|
122
|
+
### Step 5: Code Verification
|
|
123
|
+
For Design Docs only, spawn code-verifier agent: "Verify the Design Doc against the current codebase. document_path: [Design Doc path from Step 4]. doc_type: design-doc."
|
|
71
124
|
|
|
72
|
-
|
|
73
|
-
Spawn technical-designer agent: "Create design document based on requirement analysis output and codebase analysis output. Include architecture decisions, component design, and acceptance criteria."
|
|
125
|
+
Skip this step for ADR-only output.
|
|
74
126
|
|
|
75
|
-
### Step
|
|
76
|
-
|
|
127
|
+
### Step 6: Document Review
|
|
128
|
+
Review each created document:
|
|
129
|
+
- ADR: Spawn document-reviewer agent: "Review the ADR for consistency and completeness. doc_type: ADR. target: [ADR path]. codebase_analysis: [output from Step 2]."
|
|
130
|
+
- Design Doc: Spawn document-reviewer agent: "Review the Design Doc for consistency and completeness. doc_type: DesignDoc. target: [Design Doc path]. codebase_analysis: [output from Step 2]. code_verification: [output from Step 5]."
|
|
77
131
|
|
|
78
|
-
### Step
|
|
79
|
-
|
|
132
|
+
### Step 7: Consistency Verification
|
|
133
|
+
For Design Docs only, spawn design-sync agent: "Verify consistency of the design document with other existing design documents and project constraints."
|
|
80
134
|
|
|
81
|
-
|
|
82
|
-
Spawn design-sync agent: "Verify consistency of the design document with other existing design documents and project constraints."
|
|
135
|
+
Skip this step for ADR-only output.
|
|
83
136
|
|
|
84
137
|
**Note**: design-sync returns `sync_status: "SKIPPED"` when only 1 Design Doc exists. This is distinct from `NO_CONFLICTS` and MUST be reported as such to the user.
|
|
85
138
|
|
|
86
139
|
## Completion Criteria
|
|
87
140
|
|
|
88
|
-
- [ ]
|
|
89
|
-
- [ ] Spawned codebase-analyzer and passed its findings into design creation
|
|
90
|
-
- [ ]
|
|
91
|
-
- [ ]
|
|
141
|
+
- [ ] Built the Step 1 scope bootstrap seed or obtained target files/modules from the user
|
|
142
|
+
- [ ] Spawned codebase-analyzer with populated requirement context and passed its findings into design creation
|
|
143
|
+
- [ ] Confirmed the design scope with the user before document creation
|
|
144
|
+
- [ ] Created all documents required by `documentTypeRationale` via technical-designer
|
|
145
|
+
- [ ] Spawned code-verifier and passed its findings into document review for Design Docs
|
|
92
146
|
- [ ] Spawned document-reviewer and addressed feedback
|
|
93
|
-
- [ ] Spawned design-sync for consistency verification
|
|
147
|
+
- [ ] Spawned design-sync for consistency verification for Design Docs
|
|
94
148
|
- [ ] Obtained user approval for design document
|
|
95
149
|
- [ ] All `[Stop: ...]` markers honored with user confirmation
|
|
96
150
|
|
|
97
151
|
## Output Example
|
|
98
152
|
Design phase completed.
|
|
99
|
-
-
|
|
153
|
+
- ADR: docs/adr/[document-name].md or N/A
|
|
154
|
+
- Design document: docs/design/[document-name].md or N/A
|
|
100
155
|
- Approval status: User approved
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: recipe-front-design
|
|
3
|
-
description: "Execute from
|
|
3
|
+
description: "Execute from codebase-scoped analysis to frontend design document creation including UI Spec."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
**Context**: Dedicated to the frontend design phase.
|
|
@@ -9,8 +9,7 @@ description: "Execute from requirement analysis to frontend design document crea
|
|
|
9
9
|
|
|
10
10
|
1. [LOAD IF NOT ACTIVE] `documentation-criteria` -- document quality standards
|
|
11
11
|
2. [LOAD IF NOT ACTIVE] `implementation-approach` -- implementation methodology
|
|
12
|
-
3. [LOAD IF NOT ACTIVE] `
|
|
13
|
-
4. [LOAD IF NOT ACTIVE] `external-resource-context` -- external resource hearing and lookup
|
|
12
|
+
3. [LOAD IF NOT ACTIVE] `external-resource-context` -- external resource hearing and lookup
|
|
14
13
|
|
|
15
14
|
**Spawn rule**: every `spawn_agent` call MUST pass `fork_turns="none"` or `fork_context=false` for context isolation.
|
|
16
15
|
|
|
@@ -19,11 +18,13 @@ description: "Execute from requirement analysis to frontend design document crea
|
|
|
19
18
|
**Core Identity**: "I am not a worker. I am an orchestrator."
|
|
20
19
|
|
|
21
20
|
**Execution Method**:
|
|
22
|
-
-
|
|
23
|
-
- Codebase analysis -> performed by codebase-analyzer
|
|
21
|
+
- Scope bootstrap -> performed by the orchestrator as a file-location pass
|
|
22
|
+
- Codebase analysis -> performed by codebase-analyzer
|
|
23
|
+
- Scope confirmation -> performed by the orchestrator with user confirmation
|
|
24
|
+
- UI fact gathering -> performed by ui-analyzer
|
|
24
25
|
- UI Specification creation -> performed by ui-spec-designer
|
|
25
26
|
- Design document creation -> performed by technical-designer-frontend
|
|
26
|
-
- Design verification -> performed by code-verifier
|
|
27
|
+
- Design Doc verification -> performed by code-verifier
|
|
27
28
|
- Document review -> performed by document-reviewer
|
|
28
29
|
|
|
29
30
|
Orchestrator spawns agents and passes structured data between them.
|
|
@@ -31,9 +32,11 @@ Orchestrator spawns agents and passes structured data between them.
|
|
|
31
32
|
## Scope Boundaries
|
|
32
33
|
|
|
33
34
|
**Included in this skill**:
|
|
34
|
-
-
|
|
35
|
+
- Scope bootstrap: locating seed files so codebase-analyzer receives a populated input
|
|
36
|
+
- Codebase analysis with codebase-analyzer (entry point of the frontend design phase)
|
|
37
|
+
- Scope confirmation with the user, grounded in codebase-analyzer findings
|
|
35
38
|
- External resource hearing with external-resource-context
|
|
36
|
-
- UI fact gathering with ui-analyzer
|
|
39
|
+
- UI fact gathering with ui-analyzer
|
|
37
40
|
- UI Specification creation with ui-spec-designer (prototype code inquiry included)
|
|
38
41
|
- ADR creation (if architecture changes, new technology, or data flow changes)
|
|
39
42
|
- Design Doc creation with technical-designer-frontend
|
|
@@ -45,27 +48,76 @@ Requirements: $ARGUMENTS
|
|
|
45
48
|
|
|
46
49
|
## Execution Flow
|
|
47
50
|
|
|
48
|
-
### Step 1:
|
|
49
|
-
|
|
50
|
-
- What problems do you want to solve?
|
|
51
|
-
- Expected outcomes and success criteria
|
|
52
|
-
- Relationship with existing systems
|
|
51
|
+
### Step 1: Scope Bootstrap
|
|
52
|
+
Build a lightweight seed for codebase-analyzer. This is a file-location pass only, with no deep reading and no design decisions.
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
1. Extract candidate keywords from the user requirements: feature names, domain nouns, component names, route names, identifiers, or file-like terms.
|
|
55
|
+
2. Search each keyword separately with `rg -l --glob '!**/{node_modules,dist,build,coverage,.git}/**' --glob '!**/*.{lock,min.js,map}' '<keyword>'`. If `rg` is unavailable, use `grep -RIl` with the same exclusions where possible.
|
|
56
|
+
3. Bucket matches as `source`, `test`, `docs`, and `generated_or_vendor`. Exclude `generated_or_vendor` from the seed.
|
|
57
|
+
4. Rank matches in this order: path or filename match, component/route/hook/API symbol match, source content match, tests for selected source files, docs for selected source files.
|
|
58
|
+
5. Collect matched frontend and shared file paths as `affectedFiles`, and keep a one-line `seedRationale` for each file.
|
|
59
|
+
6. If the search returns no frontend or shared source files, ask the user which files, modules, routes, or components the design targets. Use the user's answer as `affectedFiles`. If the user confirms no related code exists, confirm whether to proceed with a new-surface design before invoking codebase-analyzer.
|
|
60
|
+
7. If the ranked seed has more than 20 files, present the top-ranked candidates and ask the user to narrow the seed before invoking codebase-analyzer.
|
|
56
61
|
|
|
57
|
-
|
|
58
|
-
|
|
62
|
+
Construct `requirement_analysis` with:
|
|
63
|
+
- `affectedFiles`: the Step 1 seed
|
|
64
|
+
- `affectedLayers`: `["frontend"]` plus `shared` when shared files are included
|
|
65
|
+
- `scale`: provisional scale from file count (`small` 1-2, `medium` 3-5, `large` 6+)
|
|
66
|
+
- `purpose`: the user requirements
|
|
67
|
+
- `confidence`: `confirmed` when target files are explicit or the ranked seed is focused; otherwise `provisional`
|
|
68
|
+
- `adrRequired`: `true` when the request changes component architecture, state ownership, routing architecture, data flow, external dependencies, or shared cross-boundary contracts; otherwise `false`
|
|
69
|
+
- `adrReason`: the specific matched ADR condition, or `null`
|
|
70
|
+
- `prdRequired`: `true` when scale is `large` and no existing PRD covers the scope; otherwise `false`
|
|
71
|
+
- `scopeDependencies`: questions whose answers can change the target files, scale, UI surface, or document type
|
|
72
|
+
- `questions`: user-facing questions needed before design
|
|
73
|
+
- `documentTypeRationale`: why ADR, Design Doc, or both are needed from the provisional seed
|
|
74
|
+
- `seedRationale`: one-line reason for each file in `affectedFiles`
|
|
75
|
+
- `technicalConsiderations`: include any obvious user-stated constraints, risks, and dependencies; use empty lists only when none are stated
|
|
59
76
|
|
|
60
|
-
### Step 2:
|
|
61
|
-
|
|
77
|
+
### Step 2: Codebase Analysis
|
|
78
|
+
Spawn codebase-analyzer agent: "Analyze the existing codebase to provide evidence for frontend Design Doc creation. Focus on existing implementations, state paths, API integrations, and constraints the design should respect. requirement_analysis: [Step 1 requirement_analysis]. requirements: [original user requirements]. layer: frontend. target_paths: [Step 1 affectedFiles]. focus_areas: component hierarchy, state management, UI interactions, data fetching."
|
|
79
|
+
|
|
80
|
+
### Step 3: Scope Confirmation
|
|
81
|
+
After codebase-analyzer returns, present the frontend design scope to the user before UI or design work:
|
|
82
|
+
- Target files/modules: `analysisScope.filesAnalyzed` and directly relevant components, routes, or modules
|
|
83
|
+
- Affected layers: inferred from `analysisScope.categoriesDetected`, `focusAreas`, and paths
|
|
84
|
+
- Recommended document path: ADR, Design Doc, or both, with `documentTypeRationale`, `adrRequired`, and `adrReason`
|
|
85
|
+
- PRD status: whether `prdRequired` is true, whether an existing PRD path is available, and what decision is needed before UI/design work
|
|
86
|
+
- Unknowns/assumptions: `limitations` and unresolved risks
|
|
87
|
+
- Questions before design: scope questions that change the UI surface, design target, or scale
|
|
88
|
+
|
|
89
|
+
Ask the user to choose one:
|
|
90
|
+
- Proceed with the recommended document path
|
|
91
|
+
- Correct the scope and re-run codebase-analyzer
|
|
92
|
+
- Answer open questions, then proceed
|
|
93
|
+
- Provide an existing PRD path when `prdRequired` is true
|
|
94
|
+
- Explicitly approve proceeding without a PRD when `prdRequired` is true and no PRD will be provided
|
|
95
|
+
|
|
96
|
+
If `prdRequired` is true and the user neither provides a PRD path nor explicitly approves proceeding without a PRD, stop. This recipe does not create PRDs.
|
|
97
|
+
|
|
98
|
+
After confirmation, set the final scale from the confirmed target file count (`small` 1-2, `medium` 3-5, `large` 6+), recompute `adrRequired`, `adrReason`, `prdRequired`, `confidence`, and `documentTypeRationale`, then carry the complete confirmed requirement context into UI and design creation.
|
|
99
|
+
|
|
100
|
+
ADR-only path: run Steps 1, 2, 3, and 8. Also run Step 4 only when the ADR depends on external frontend resources, and Step 6 only when the ADR depends on existing UI facts beyond Step 2. Skip Steps 5 and 7.
|
|
101
|
+
|
|
102
|
+
Design Doc path: run Steps 1 through 8.
|
|
103
|
+
|
|
104
|
+
Both ADR and Design Doc path: run the Design Doc path, creating the ADR before the Design Doc in Step 8.
|
|
105
|
+
|
|
106
|
+
**[STOP -- BLOCKING]** Wait for user confirmation before proceeding.
|
|
107
|
+
|
|
108
|
+
### Step 4: External Resource Hearing
|
|
109
|
+
For Design Doc output, run this step before UI fact gathering. For ADR-only output, run it only when the ADR depends on external frontend resources.
|
|
110
|
+
|
|
111
|
+
After scope confirmation, run the frontend domain hearing protocol from `external-resource-context`.
|
|
62
112
|
|
|
63
113
|
Persist project-level access methods in `docs/project-context/external-resources.md`. When the file already exists, ask whether to keep current axes, refresh all axes, or refresh selected axes.
|
|
64
114
|
|
|
65
115
|
**[STOP -- BLOCKING]** Complete external resource hearing before UI fact gathering.
|
|
66
116
|
Proceed to UI fact gathering after project-level external resources are written or the update is explicitly skipped.
|
|
67
117
|
|
|
68
|
-
### Step
|
|
118
|
+
### Step 5: Prototype Inquiry
|
|
119
|
+
For Design Doc output only. Skip this step for ADR-only output.
|
|
120
|
+
|
|
69
121
|
After external resource hearing completes, ask the user about prototype code:
|
|
70
122
|
|
|
71
123
|
**Ask the user**: "Do you have prototype code for this feature? If so, please provide the path to the code. The prototype will be placed in `docs/ui-spec/assets/` as reference material for the UI Spec."
|
|
@@ -73,27 +125,32 @@ After external resource hearing completes, ask the user about prototype code:
|
|
|
73
125
|
**[STOP -- BLOCKING]** Wait for user response about prototype code availability.
|
|
74
126
|
**CANNOT proceed until user responds.**
|
|
75
127
|
|
|
76
|
-
### Step
|
|
77
|
-
|
|
128
|
+
### Step 6: UI Fact Gathering Phase
|
|
129
|
+
For Design Doc output, run this step before UI Specification creation. For ADR-only output, run it only when the ADR decision depends on existing UI facts beyond the Step 2 codebase analysis.
|
|
130
|
+
|
|
131
|
+
When Step 5 ran, use the prototype path as an input when one was provided. When Step 5 was skipped, set `prototype_path` to unavailable.
|
|
132
|
+
|
|
133
|
+
Spawn ui-analyzer agent: "Gather UI facts for frontend design. requirement_analysis: [confirmed requirement context]. requirements: [original user requirements]. target_paths: [confirmed frontend affected files and directories]. target_components: [frontend target components when known]. ui_spec_path: [path if an existing UI Spec covers this feature]. prototype_path: [path if provided]. Read docs/project-context/external-resources.md, resolve relevant UI external resources through declared access methods, and analyze component structure, props patterns, CSS layout, state displays, accessibility, generated artifacts, and candidate write set."
|
|
78
134
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
- Spawn ui-analyzer agent: "Gather UI facts for frontend design. requirement_analysis: [JSON from requirement-analyzer]. requirements: [original user requirements]. target_paths: [frontend affected files and directories from requirement-analyzer]. target_components: [frontend target components when known]. ui_spec_path: [path if an existing UI Spec covers this feature]. prototype_path: [path if provided]. Read docs/project-context/external-resources.md, resolve relevant UI external resources through declared access methods, and analyze component structure, props patterns, CSS layout, state displays, accessibility, generated artifacts, and candidate write set."
|
|
135
|
+
### Step 7: UI Specification Phase
|
|
136
|
+
For Design Doc output only. Skip this step for ADR-only output.
|
|
82
137
|
|
|
83
|
-
### Step 5: UI Specification Phase
|
|
84
138
|
After UI fact gathering completes, create the UI Specification:
|
|
85
|
-
- Spawn ui-spec-designer agent: "Create UI Spec [from PRD at [path] if PRD exists]. UI analysis: [JSON from ui-analyzer]. [Prototype code is at [user-provided path]. Place prototype in docs/ui-spec/assets/{feature-name}/ | Prototype path unavailable; proceed from PRD/requirements and UI analysis.] Fill External Resources Used from docs/project-context/external-resources.md and feature identifiers."
|
|
139
|
+
- Spawn ui-spec-designer agent: "Create UI Spec [from PRD at [path] if PRD exists]. Requirements: [original user requirements]. Confirmed scope: [Step 3 confirmed scope]. Codebase analysis: [JSON from codebase-analyzer]. UI analysis: [JSON from ui-analyzer]. [Prototype code is at [user-provided path]. Place prototype in docs/ui-spec/assets/{feature-name}/ | Prototype path unavailable; proceed from PRD/requirements and UI analysis.] Fill External Resources Used from docs/project-context/external-resources.md and feature identifiers."
|
|
86
140
|
- Spawn document-reviewer agent: "doc_type: UISpec target: [ui-spec path] Review for consistency and completeness"
|
|
87
141
|
|
|
88
142
|
**[STOP -- BLOCKING]** Present UI Spec for user approval.
|
|
89
143
|
**CANNOT proceed until user explicitly approves the UI Spec.**
|
|
90
144
|
|
|
91
|
-
### Step
|
|
92
|
-
Create appropriate design documents according to scale
|
|
93
|
-
- For ADR: Spawn technical-designer-frontend agent: "Create ADR for [technical decision]"
|
|
94
|
-
- For Design Doc: Spawn technical-designer-frontend agent: "Create Design Doc based on requirements. Codebase Analysis: [JSON from codebase-analyzer]. UI Analysis: [JSON from ui-analyzer]. UI Spec is at [ui-spec path]. Inherit component structure and state design from UI Spec. Fill External Resources Used from docs/project-context/external-resources.md and feature identifiers."
|
|
95
|
-
-
|
|
96
|
-
-
|
|
145
|
+
### Step 8: Design Document Creation Phase
|
|
146
|
+
Create appropriate design documents according to confirmed scope and scale:
|
|
147
|
+
- For ADR: Spawn technical-designer-frontend agent: "document_to_create: ADR. Create ADR for [technical decision]. Requirements: [original user requirements]. confirmed_requirement_context: [complete confirmed requirement context from Step 3, including confirmed scope, confirmed scale, adrRequired, adrReason, prdRequired, PRD path or explicit no-PRD approval when applicable, documentTypeRationale, scopeDependencies, questions, and seedRationale]. Follow `document_to_create` for this invocation; `documentTypeRationale` describes the overall confirmed path. Codebase Analysis: [JSON from codebase-analyzer]. UI Analysis: [JSON from ui-analyzer, only if Step 6 ran]. Present at least two alternatives with trade-offs."
|
|
148
|
+
- For Design Doc: Spawn technical-designer-frontend agent: "document_to_create: DesignDoc. Create Design Doc based on requirements. Requirements: [original user requirements]. confirmed_requirement_context: [complete confirmed requirement context from Step 3, including confirmed scope, confirmed scale, adrRequired, adrReason, prdRequired, PRD path or explicit no-PRD approval when applicable, documentTypeRationale, scopeDependencies, questions, and seedRationale]. Follow `document_to_create` for this invocation; `documentTypeRationale` describes the overall confirmed path. Codebase Analysis: [JSON from codebase-analyzer]. UI Analysis: [JSON from ui-analyzer]. UI Spec is at [ui-spec path]. Inherit component structure and state design from UI Spec. Fill External Resources Used from docs/project-context/external-resources.md and feature identifiers. Present at least two alternatives with trade-offs."
|
|
149
|
+
- When both ADR and Design Doc are required, create the ADR first. After the ADR path is available, create the Design Doc with `document_to_create: DesignDoc` and `adr_path: [ADR path]`; the Design Doc must reference the ADR decision.
|
|
150
|
+
- For Design Docs only, spawn code-verifier agent: "Verify Design Doc against code. doc_type: design-doc. document_path: [document path]. verbose: false."
|
|
151
|
+
- Review each created document:
|
|
152
|
+
- ADR: Spawn document-reviewer agent: "Review the ADR for consistency and completeness. doc_type: ADR. target: [ADR path]. mode: composite. codebase_analysis: [JSON from codebase-analyzer]. ui_analysis: [JSON from ui-analyzer, when available]."
|
|
153
|
+
- Design Doc: Spawn document-reviewer agent: "Review the Design Doc for consistency and completeness. doc_type: DesignDoc. target: [Design Doc path]. mode: composite. codebase_analysis: [JSON from codebase-analyzer]. ui_analysis: [JSON from ui-analyzer]. code_verification: [JSON from code-verifier]."
|
|
97
154
|
|
|
98
155
|
**[STOP -- BLOCKING]** Present design alternatives and trade-offs, obtain user approval.
|
|
99
156
|
**CANNOT proceed until user explicitly approves the design document.**
|
|
@@ -102,15 +159,18 @@ ENFORCEMENT: Every stop point MUST be respected. Skipping user approval invalida
|
|
|
102
159
|
|
|
103
160
|
## Completion Criteria
|
|
104
161
|
|
|
105
|
-
- [ ]
|
|
106
|
-
- [ ]
|
|
107
|
-
- [ ]
|
|
108
|
-
- [ ]
|
|
109
|
-
- [ ] Design
|
|
162
|
+
- [ ] Built the Step 1 scope bootstrap seed or obtained target files/modules from the user
|
|
163
|
+
- [ ] Codebase analysis completed before UI and design work
|
|
164
|
+
- [ ] Confirmed the frontend design scope with the user before UI and design work
|
|
165
|
+
- [ ] External resource hearing completed when applicable
|
|
166
|
+
- [ ] UI analysis completed before Design Doc creation when applicable
|
|
167
|
+
- [ ] UI Specification created and approved for Design Docs
|
|
168
|
+
- [ ] All documents required by `documentTypeRationale` created and approved
|
|
110
169
|
- [ ] All document reviews passed
|
|
111
170
|
|
|
112
171
|
## Output Example
|
|
113
172
|
Frontend design phase completed.
|
|
114
173
|
- UI Specification: docs/ui-spec/[feature-name]-ui-spec.md
|
|
115
|
-
-
|
|
174
|
+
- ADR: docs/adr/[document-name].md or N/A
|
|
175
|
+
- Design document: docs/design/[document-name].md or N/A
|
|
116
176
|
- Approval status: User approved
|
|
@@ -11,7 +11,7 @@ You are an AI assistant specializing in objective codebase analysis for design p
|
|
|
11
11
|
☐ [VERIFIED] All required skills from [[skills.config]] are LOADED
|
|
12
12
|
☐ [VERIFIED] Input parameters received and validated
|
|
13
13
|
☐ [VERIFIED] Task scope understood
|
|
14
|
-
☐ [VERIFIED]
|
|
14
|
+
☐ [VERIFIED] Requirement context or PRD context available
|
|
15
15
|
|
|
16
16
|
## Required Skills [LOADING PROTOCOL]
|
|
17
17
|
|
|
@@ -33,7 +33,7 @@ You are an AI assistant specializing in objective codebase analysis for design p
|
|
|
33
33
|
|
|
34
34
|
## Input Parameters
|
|
35
35
|
|
|
36
|
-
- **requirement_analysis**: JSON
|
|
36
|
+
- **requirement_analysis**: Requirement context JSON from the orchestrator or requirement-analyzer (required)
|
|
37
37
|
- **requirements**: Original user requirements text (required)
|
|
38
38
|
- **prd_path**: Path to PRD (optional)
|
|
39
39
|
- **layer**: Scope filter for multi-layer projects, such as `backend`, `frontend`, or `shared` (optional)
|
|
@@ -51,10 +51,10 @@ Identify what exists, what appears missing, and what deserves close attention in
|
|
|
51
51
|
|
|
52
52
|
1. Read `requirement_analysis` and extract:
|
|
53
53
|
- `affectedFiles`
|
|
54
|
-
- `affectedLayers`
|
|
55
|
-
- `scale`
|
|
54
|
+
- `affectedLayers` when provided
|
|
55
|
+
- `scale` when provided
|
|
56
56
|
- `purpose`
|
|
57
|
-
- `technicalConsiderations`
|
|
57
|
+
- `technicalConsiderations` when provided
|
|
58
58
|
2. Read PRD when `prd_path` is provided and extract relevant scope boundaries
|
|
59
59
|
3. When `layer` is provided, narrow the candidate scope to that layer first
|
|
60
60
|
4. When `target_paths` are provided, prioritize them over inferred paths and treat them as the primary analysis scope
|
|
@@ -51,6 +51,8 @@ Skill Status:
|
|
|
51
51
|
|
|
52
52
|
- **doc_type**: Document type (`PRD`/`ADR`/`UISpec`/`DesignDoc`)
|
|
53
53
|
- **target**: Document path to review
|
|
54
|
+
- **codebase_analysis**: codebase-analyzer JSON used to create the target document (optional)
|
|
55
|
+
- **ui_analysis**: ui-analyzer JSON used to create the target document (optional)
|
|
54
56
|
- **code_verification**: Code-verifier results JSON (optional)
|
|
55
57
|
|
|
56
58
|
## Review Modes
|
|
@@ -68,10 +70,10 @@ Skill Status:
|
|
|
68
70
|
|
|
69
71
|
### Step 0: Input Context Analysis (MANDATORY)
|
|
70
72
|
|
|
71
|
-
1. **Scan prompt** for: JSON blocks, verification results, discrepancies, prior feedback
|
|
73
|
+
1. **Scan prompt** for: JSON blocks, codebase analysis, UI analysis, verification results, discrepancies, prior feedback
|
|
72
74
|
2. **Extract actionable items** (may be zero)
|
|
73
75
|
- Normalize each to: `{ id, description, location, severity }`
|
|
74
|
-
3. **Record**: `prior_context_count: <N
|
|
76
|
+
3. **Record**: `prior_context_count: <N>`, `codebase_analysis_available: true|false`, `ui_analysis_available: true|false`
|
|
75
77
|
4. Proceed to Step 1
|
|
76
78
|
|
|
77
79
|
### Step 1: Parameter Analysis
|
|
@@ -79,6 +81,8 @@ Skill Status:
|
|
|
79
81
|
- Specialized verification based on doc_type
|
|
80
82
|
- For DesignDoc: Verify "Applicable Standards" section exists with explicit/implicit classification
|
|
81
83
|
- Missing or incomplete → `critical` issue; implicit standards without confirmation → `important` issue
|
|
84
|
+
- When `codebase_analysis` is provided, use `analysisScope`, `existingElements`, `constraints`, `qualityAssurance`, `focusAreas`, and `limitations` as source evidence for scope, feasibility, and completeness checks
|
|
85
|
+
- When `ui_analysis` is provided, use `componentStructure`, `propsPatterns`, `cssLayout`, `stateDisplay`, `displayConditions`, `accessibility`, and `candidateWriteSet` as source evidence for UI scope, feasibility, and completeness checks
|
|
82
86
|
- When `code_verification` is provided, use its discrepancies and reverse coverage as pre-verified evidence during review
|
|
83
87
|
|
|
84
88
|
### Step 2: Target Document Collection
|
|
@@ -10,7 +10,7 @@ You are a frontend technical design specialist AI assistant for creating Archite
|
|
|
10
10
|
☐ [VERIFIED] All required skills from [[skills.config]] are LOADED
|
|
11
11
|
☐ [VERIFIED] Input parameters received and validated
|
|
12
12
|
☐ [VERIFIED] Task scope understood
|
|
13
|
-
☐ [VERIFIED] Requirements
|
|
13
|
+
☐ [VERIFIED] Requirements, confirmed scope, UI Spec, or PRD available
|
|
14
14
|
|
|
15
15
|
**ENFORCEMENT**: HALT and return to caller if any gate unchecked
|
|
16
16
|
|
|
@@ -40,6 +40,8 @@ Representative triggers:
|
|
|
40
40
|
- ADR: component architecture, state-management, React pattern, or external library changes
|
|
41
41
|
- Design Doc: 3+ component/file changes, complex state management, or new React patterns/custom hooks
|
|
42
42
|
|
|
43
|
+
When `confirmed_requirement_context.documentTypeRationale` is provided by the orchestrator, treat it as the authority for the overall confirmed document path. When `document_to_create` is also provided, it is the authority for the current invocation's single document output. Do not re-derive or override either value. If they conflict with the criteria above, report the discrepancy inside the created document and follow the orchestrator-provided values.
|
|
44
|
+
|
|
43
45
|
## Mandatory Process Before Design Doc Creation
|
|
44
46
|
|
|
45
47
|
### Existing Code Investigation【Required】
|
|
@@ -234,7 +236,10 @@ When external resources are recorded for the project:
|
|
|
234
236
|
- `update`: Update existing document
|
|
235
237
|
- `reverse-engineer`: Document existing frontend architecture as-is
|
|
236
238
|
|
|
237
|
-
- **
|
|
239
|
+
- **confirmed_requirement_context**: Confirmed requirement context from the orchestrator when provided, including confirmed scope, confirmed scale, `adrRequired`, `adrReason`, `prdRequired`, PRD path or explicit no-PRD approval, `documentTypeRationale`, `scopeDependencies`, `questions`, and `seedRationale`. When provided, this is the primary source for document type, scope, scale, and open-question handling.
|
|
240
|
+
- **document_to_create**: Current invocation's document output (`ADR` or `DesignDoc`) when provided by the orchestrator. This value determines what this invocation creates.
|
|
241
|
+
- **adr_path**: ADR document path to reference from a Design Doc when the ADR was created earlier in the same flow (optional)
|
|
242
|
+
- **Requirements Analysis Results**: Requirements analysis results (scale determination, technical requirements, etc.) when provided by requirement-analyzer
|
|
238
243
|
- **Codebase Analysis** (optional, from codebase-analyzer):
|
|
239
244
|
- Use as the primary source for Existing Codebase Analysis when provided
|
|
240
245
|
- `existingElements` informs implementation path mapping and inspection evidence
|
|
@@ -252,7 +257,7 @@ When external resources are recorded for the project:
|
|
|
252
257
|
- `candidateWriteSet` informs change impact mapping and planning scope
|
|
253
258
|
- **PRD**: PRD document (if exists)
|
|
254
259
|
- **UI Spec**: UI Specification document (if exists, for frontend features)
|
|
255
|
-
- **Documents to Create**: ADR, Design Doc, or both
|
|
260
|
+
- **Documents to Create**: ADR, Design Doc, or both. When `document_to_create` is provided, create only that document in this invocation; use `confirmed_requirement_context.documentTypeRationale` as the overall flow context.
|
|
256
261
|
- **Existing Architecture Information**:
|
|
257
262
|
- Current technology stack (React, build tool, Tailwind CSS, etc.)
|
|
258
263
|
- Adopted component architecture patterns (Atomic Design, Feature-based, etc.)
|
|
@@ -10,7 +10,7 @@ You are a technical design specialist AI assistant for creating Architecture Dec
|
|
|
10
10
|
☐ [VERIFIED] All required skills from [[skills.config]] are LOADED
|
|
11
11
|
☐ [VERIFIED] Input parameters received and validated
|
|
12
12
|
☐ [VERIFIED] Task scope understood
|
|
13
|
-
☐ [VERIFIED] Requirements
|
|
13
|
+
☐ [VERIFIED] Requirements, confirmed scope, or PRD available
|
|
14
14
|
|
|
15
15
|
**ENFORCEMENT**: HALT and return to caller if any gate unchecked
|
|
16
16
|
|
|
@@ -40,6 +40,8 @@ Representative triggers:
|
|
|
40
40
|
- ADR: contract, architecture, data-flow, or external dependency changes
|
|
41
41
|
- Design Doc: 3+ file changes, complex implementation logic, or new algorithms/patterns
|
|
42
42
|
|
|
43
|
+
When `confirmed_requirement_context.documentTypeRationale` is provided by the orchestrator, treat it as the authority for the overall confirmed document path. When `document_to_create` is also provided, it is the authority for the current invocation's single document output. Do not re-derive or override either value. If they conflict with the criteria above, report the discrepancy inside the created document and follow the orchestrator-provided values.
|
|
44
|
+
|
|
43
45
|
## Mandatory Process Before Design Doc Creation
|
|
44
46
|
|
|
45
47
|
### External Resources Integration
|
|
@@ -272,7 +274,10 @@ Confirm and document conflicts with existing systems at each integration point t
|
|
|
272
274
|
- `update`: Update existing document
|
|
273
275
|
- `reverse-engineer`: Document existing architecture as-is
|
|
274
276
|
|
|
275
|
-
- **
|
|
277
|
+
- **confirmed_requirement_context**: Confirmed requirement context from the orchestrator when provided, including confirmed scope, confirmed scale, `adrRequired`, `adrReason`, `prdRequired`, PRD path or explicit no-PRD approval, `documentTypeRationale`, `scopeDependencies`, `questions`, and `seedRationale`. When provided, this is the primary source for document type, scope, scale, and open-question handling.
|
|
278
|
+
- **document_to_create**: Current invocation's document output (`ADR` or `DesignDoc`) when provided by the orchestrator. This value determines what this invocation creates.
|
|
279
|
+
- **adr_path**: ADR document path to reference from a Design Doc when the ADR was created earlier in the same flow (optional)
|
|
280
|
+
- **Requirements Analysis Results**: Requirements analysis results (scale determination, technical requirements, etc.) when provided by requirement-analyzer
|
|
276
281
|
- **Codebase Analysis** (optional, from codebase-analyzer):
|
|
277
282
|
- Use as the primary source for Existing Codebase Analysis when provided
|
|
278
283
|
- `existingElements` informs implementation path mapping and inspection evidence
|
|
@@ -282,7 +287,7 @@ Confirm and document conflicts with existing systems at each integration point t
|
|
|
282
287
|
- `dataTransformationPipelines` informs the `Output Comparison` section in Verification Strategy
|
|
283
288
|
- Additional investigation should focus on gaps or limitations that the analysis calls out
|
|
284
289
|
- **PRD**: PRD document (if exists)
|
|
285
|
-
- **Documents to Create**: ADR, Design Doc, or both
|
|
290
|
+
- **Documents to Create**: ADR, Design Doc, or both. When `document_to_create` is provided, create only that document in this invocation; use `confirmed_requirement_context.documentTypeRationale` as the overall flow context.
|
|
286
291
|
- **Existing Architecture Information**:
|
|
287
292
|
- Current technology stack
|
|
288
293
|
- Adopted architecture patterns
|
|
@@ -23,7 +23,7 @@ Track work steps. Include first "Confirm skill constraints" and final "Verify sk
|
|
|
23
23
|
|
|
24
24
|
## Input Parameters
|
|
25
25
|
|
|
26
|
-
- **requirement_analysis**: Requirement
|
|
26
|
+
- **requirement_analysis**: Requirement context JSON from the orchestrator or requirement-analyzer
|
|
27
27
|
- **requirements**: Original user requirements text
|
|
28
28
|
- **ui_spec_path**: Existing UI Spec path when available
|
|
29
29
|
- **prototype_path**: Prototype code path when provided by the workflow
|
|
@@ -10,7 +10,7 @@ You are a UI specification specialist AI assistant for creating UI Specification
|
|
|
10
10
|
☐ [VERIFIED] All required skills from [[skills.config]] are LOADED
|
|
11
11
|
☐ [VERIFIED] Input parameters received and validated
|
|
12
12
|
☐ [VERIFIED] Task scope understood
|
|
13
|
-
☐ [VERIFIED] PRD or
|
|
13
|
+
☐ [VERIFIED] PRD, requirements, or confirmed scope context available
|
|
14
14
|
|
|
15
15
|
**ENFORCEMENT**: HALT and return to caller if any gate unchecked
|
|
16
16
|
|
|
@@ -45,16 +45,17 @@ Skill Status:
|
|
|
45
45
|
|
|
46
46
|
## Required Information
|
|
47
47
|
|
|
48
|
-
- **PRD**: PRD document path
|
|
48
|
+
- **PRD**: PRD document path when one exists; otherwise use the requirements, confirmed scope, and UI analysis provided by the orchestrator
|
|
49
49
|
- **Prototype code path**: Path to prototype code (optional, placed in `docs/ui-spec/assets/{feature-name}/`)
|
|
50
|
+
- **Codebase analysis**: JSON from codebase-analyzer when provided; use `analysisScope`, `existingElements`, `constraints`, `focusAreas`, and `limitations` to ground screen/component scope and reuse decisions
|
|
50
51
|
- **UI analysis**: JSON from ui-analyzer when provided, including externalResources, componentStructure, propsPatterns, cssLayout, stateDisplay, focusAreas, and candidateWriteSet
|
|
51
52
|
- **Existing frontend codebase**: Will be investigated automatically
|
|
52
53
|
|
|
53
54
|
## Mandatory Process Before UI Spec Creation
|
|
54
55
|
|
|
55
|
-
### Step 1: PRD Analysis
|
|
56
|
+
### Step 1: PRD or Requirements Analysis
|
|
56
57
|
|
|
57
|
-
1. **Read and understand PRD**
|
|
58
|
+
1. **Read and understand PRD or orchestrator-provided requirements**
|
|
58
59
|
- Extract all acceptance criteria with AC IDs
|
|
59
60
|
- Identify screens/views implied by user stories and requirements
|
|
60
61
|
- Note accessibility requirements and UI quality metrics from PRD
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codex-workflows",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
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",
|