codex-workflows 0.1.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.
Files changed (85) hide show
  1. package/.agents/skills/ai-development-guide/SKILL.md +283 -0
  2. package/.agents/skills/ai-development-guide/agents/openai.yaml +7 -0
  3. package/.agents/skills/ai-development-guide/references/frontend.md +135 -0
  4. package/.agents/skills/coding-rules/SKILL.md +98 -0
  5. package/.agents/skills/coding-rules/agents/openai.yaml +7 -0
  6. package/.agents/skills/coding-rules/references/typescript.md +220 -0
  7. package/.agents/skills/documentation-criteria/SKILL.md +127 -0
  8. package/.agents/skills/documentation-criteria/agents/openai.yaml +7 -0
  9. package/.agents/skills/documentation-criteria/references/adr-template.md +64 -0
  10. package/.agents/skills/documentation-criteria/references/design-template.md +327 -0
  11. package/.agents/skills/documentation-criteria/references/plan-template.md +131 -0
  12. package/.agents/skills/documentation-criteria/references/prd-template.md +119 -0
  13. package/.agents/skills/documentation-criteria/references/task-template.md +38 -0
  14. package/.agents/skills/documentation-criteria/references/ui-spec-template.md +145 -0
  15. package/.agents/skills/implementation-approach/SKILL.md +145 -0
  16. package/.agents/skills/implementation-approach/agents/openai.yaml +7 -0
  17. package/.agents/skills/integration-e2e-testing/SKILL.md +125 -0
  18. package/.agents/skills/integration-e2e-testing/agents/openai.yaml +7 -0
  19. package/.agents/skills/integration-e2e-testing/references/e2e-design.md +86 -0
  20. package/.agents/skills/recipe-add-integration-tests/SKILL.md +128 -0
  21. package/.agents/skills/recipe-add-integration-tests/agents/openai.yaml +7 -0
  22. package/.agents/skills/recipe-build/SKILL.md +119 -0
  23. package/.agents/skills/recipe-build/agents/openai.yaml +7 -0
  24. package/.agents/skills/recipe-design/SKILL.md +90 -0
  25. package/.agents/skills/recipe-design/agents/openai.yaml +7 -0
  26. package/.agents/skills/recipe-diagnose/SKILL.md +187 -0
  27. package/.agents/skills/recipe-diagnose/agents/openai.yaml +7 -0
  28. package/.agents/skills/recipe-front-build/SKILL.md +127 -0
  29. package/.agents/skills/recipe-front-build/agents/openai.yaml +7 -0
  30. package/.agents/skills/recipe-front-design/SKILL.md +90 -0
  31. package/.agents/skills/recipe-front-design/agents/openai.yaml +7 -0
  32. package/.agents/skills/recipe-front-plan/SKILL.md +68 -0
  33. package/.agents/skills/recipe-front-plan/agents/openai.yaml +7 -0
  34. package/.agents/skills/recipe-front-review/SKILL.md +101 -0
  35. package/.agents/skills/recipe-front-review/agents/openai.yaml +7 -0
  36. package/.agents/skills/recipe-fullstack-build/SKILL.md +139 -0
  37. package/.agents/skills/recipe-fullstack-build/agents/openai.yaml +7 -0
  38. package/.agents/skills/recipe-fullstack-implement/SKILL.md +151 -0
  39. package/.agents/skills/recipe-fullstack-implement/agents/openai.yaml +7 -0
  40. package/.agents/skills/recipe-implement/SKILL.md +125 -0
  41. package/.agents/skills/recipe-implement/agents/openai.yaml +7 -0
  42. package/.agents/skills/recipe-plan/SKILL.md +73 -0
  43. package/.agents/skills/recipe-plan/agents/openai.yaml +7 -0
  44. package/.agents/skills/recipe-reverse-engineer/SKILL.md +212 -0
  45. package/.agents/skills/recipe-reverse-engineer/agents/openai.yaml +7 -0
  46. package/.agents/skills/recipe-review/SKILL.md +115 -0
  47. package/.agents/skills/recipe-review/agents/openai.yaml +7 -0
  48. package/.agents/skills/recipe-task/SKILL.md +74 -0
  49. package/.agents/skills/recipe-task/agents/openai.yaml +7 -0
  50. package/.agents/skills/recipe-update-doc/SKILL.md +156 -0
  51. package/.agents/skills/recipe-update-doc/agents/openai.yaml +7 -0
  52. package/.agents/skills/subagents-orchestration-guide/SKILL.md +354 -0
  53. package/.agents/skills/subagents-orchestration-guide/agents/openai.yaml +7 -0
  54. package/.agents/skills/subagents-orchestration-guide/references/monorepo-flow.md +124 -0
  55. package/.agents/skills/task-analyzer/SKILL.md +142 -0
  56. package/.agents/skills/task-analyzer/agents/openai.yaml +7 -0
  57. package/.agents/skills/task-analyzer/references/skills-index.yaml +162 -0
  58. package/.agents/skills/testing/SKILL.md +324 -0
  59. package/.agents/skills/testing/agents/openai.yaml +7 -0
  60. package/.agents/skills/testing/references/typescript.md +224 -0
  61. package/.codex/agents/acceptance-test-generator.toml +310 -0
  62. package/.codex/agents/code-reviewer.toml +228 -0
  63. package/.codex/agents/code-verifier.toml +231 -0
  64. package/.codex/agents/design-sync.toml +265 -0
  65. package/.codex/agents/document-reviewer.toml +367 -0
  66. package/.codex/agents/integration-test-reviewer.toml +178 -0
  67. package/.codex/agents/investigator.toml +197 -0
  68. package/.codex/agents/prd-creator.toml +250 -0
  69. package/.codex/agents/quality-fixer-frontend.toml +356 -0
  70. package/.codex/agents/quality-fixer.toml +249 -0
  71. package/.codex/agents/requirement-analyzer.toml +172 -0
  72. package/.codex/agents/rule-advisor.toml +186 -0
  73. package/.codex/agents/scope-discoverer.toml +248 -0
  74. package/.codex/agents/solver.toml +212 -0
  75. package/.codex/agents/task-decomposer.toml +262 -0
  76. package/.codex/agents/task-executor-frontend.toml +312 -0
  77. package/.codex/agents/task-executor.toml +314 -0
  78. package/.codex/agents/technical-designer-frontend.toml +492 -0
  79. package/.codex/agents/technical-designer.toml +474 -0
  80. package/.codex/agents/ui-spec-designer.toml +150 -0
  81. package/.codex/agents/verifier.toml +228 -0
  82. package/.codex/agents/work-planner.toml +251 -0
  83. package/README.md +365 -0
  84. package/bin/cli.js +249 -0
  85. package/package.json +35 -0
@@ -0,0 +1,119 @@
1
+ ---
2
+ name: recipe-build
3
+ description: "Execute decomposed backend tasks in autonomous execution mode using task-executor and quality-fixer."
4
+ ---
5
+
6
+ ## Required Skills [LOAD BEFORE EXECUTION]
7
+
8
+ 1. [LOAD IF NOT ACTIVE] `coding-rules` — coding standards
9
+ 2. [LOAD IF NOT ACTIVE] `testing` — test strategy and quality gates
10
+ 3. [LOAD IF NOT ACTIVE] `ai-development-guide` — AI development patterns
11
+ 4. [LOAD IF NOT ACTIVE] `subagents-orchestration-guide` — agent coordination and workflow flows
12
+
13
+ ## Orchestrator Definition
14
+
15
+ **Core Identity**: "I am not a worker. I am an orchestrator." (see subagents-orchestration-guide skill)
16
+
17
+ **Execution Protocol**:
18
+ 1. **Spawn agents for all work** -- your role is to invoke sub-agents, pass data between them, and report results
19
+ 2. **Follow the 4-step task cycle exactly**: task-executor -> escalation check -> quality-fixer -> commit
20
+ 3. **Enter autonomous mode** when user provides execution instruction with existing task files -- this IS the batch approval
21
+ 4. **Scope**: Complete when all tasks are committed or escalation occurs
22
+
23
+ **CRITICAL**: MUST run quality-fixer before every commit.
24
+ ENFORCEMENT: Commits without quality-fixer approval are invalid and MUST be reverted.
25
+
26
+ Work plan: $ARGUMENTS
27
+
28
+ ## Pre-execution Prerequisites
29
+
30
+ ### Task File Existence Check
31
+ Check for work plans in docs/plans/ and task files in docs/plans/tasks/.
32
+
33
+ ### Task Generation Decision Flow
34
+
35
+ Analyze task file existence state and determine the action required:
36
+
37
+ | State | Criteria | Next Action |
38
+ |-------|----------|-------------|
39
+ | Tasks exist | .md files in tasks/ directory | User's execution instruction serves as batch approval -> Enter autonomous execution immediately |
40
+ | No tasks + plan exists | Plan exists but no task files | Confirm with user -> spawn task-decomposer |
41
+ | Neither exists | No plan or task files | Error: Prerequisites not met |
42
+
43
+ ## Task Decomposition Phase (Conditional)
44
+
45
+ When task files don't exist:
46
+
47
+ ### 1. User Confirmation
48
+ ```
49
+ No task files found.
50
+ Work plan: docs/plans/[plan-name].md
51
+
52
+ Generate tasks from the work plan? (y/n):
53
+ ```
54
+
55
+ ### 2. Task Decomposition (if approved)
56
+ Spawn task-decomposer agent: "Read work plan at docs/plans/[plan-name].md and decompose into atomic tasks. Output: Individual task files in docs/plans/tasks/. Granularity: 1 task = 1 commit = independently executable."
57
+
58
+ ### 3. Verify Generation
59
+ Verify generated task files exist in docs/plans/tasks/.
60
+
61
+ ## Pre-execution Checklist
62
+
63
+ - [ ] Confirmed task files exist in docs/plans/tasks/
64
+ - [ ] Identified task execution order (dependencies)
65
+ - [ ] **Environment check**: Can I execute per-task commit cycle?
66
+ - If commit capability unavailable -> Escalate before autonomous mode
67
+ - Other environments (tests, quality tools) -> Subagents will escalate
68
+
69
+ ## Task Execution Cycle (4-Step Cycle)
70
+
71
+ **MANDATORY EXECUTION CYCLE**: `task-executor -> escalation check -> quality-fixer -> commit`
72
+
73
+ For EACH task, YOU MUST:
74
+ 1. **Register tasks**: Register work steps. Always include: first "Confirm skill constraints", final "Verify skill fidelity"
75
+ 2. **Spawn task-executor agent**: "Execute the task implementation for [task-file-path]"
76
+ 3. **CHECK task-executor response**:
77
+ - `status: "escalation_needed"` or `"blocked"` -> STOP and escalate to user
78
+ - `testsAdded` contains `*.int.test.ts` or `*.e2e.test.ts` -> Spawn integration-test-reviewer agent: "Review integration tests in [test-files]"
79
+ - `needs_revision` -> Return to step 2 with `requiredFixes`
80
+ - `approved` -> Proceed to step 4
81
+ - `readyForQualityCheck: true` -> Proceed to step 4
82
+ 4. **Spawn quality-fixer agent**: "Execute all quality checks and fixes"
83
+ 5. **COMMIT on approval**: After `approved: true` from quality-fixer -> Execute git commit
84
+
85
+ **CRITICAL**: MUST monitor ALL structured responses WITHOUT EXCEPTION and ENSURE every quality gate is passed.
86
+ ENFORCEMENT: Proceeding past a failed quality gate invalidates all subsequent work.
87
+
88
+ ## Sub-agent Invocation Constraints
89
+
90
+ **MANDATORY suffix for ALL sub-agent prompts**:
91
+ ```
92
+ [SYSTEM CONSTRAINT]
93
+ This agent operates within build skill scope. Use orchestrator-provided rules only.
94
+ ```
95
+
96
+ Autonomous sub-agents require scope constraints for stable execution. MUST append this constraint to every sub-agent prompt.
97
+ ENFORCEMENT: Sub-agent prompts missing the constraint suffix MUST be re-issued with the constraint appended.
98
+
99
+ VERIFY approval status before proceeding. Once confirmed, INITIATE autonomous execution mode.
100
+
101
+ **[STOP — BLOCKING]** Upon detecting ANY requirement changes, halt execution immediately.
102
+ **CANNOT proceed until user explicitly confirms the change scope.**
103
+
104
+ ## Completion Criteria
105
+
106
+ - [ ] Task files verified in docs/plans/tasks/
107
+ - [ ] Task execution order identified with dependencies
108
+ - [ ] Environment check completed (commit capability confirmed)
109
+ - [ ] All tasks executed through 4-step cycle (task-executor -> check -> quality-fixer -> commit)
110
+ - [ ] System constraint suffix appended to all sub-agent prompts
111
+ - [ ] All quality gates passed
112
+ - [ ] All tasks committed or escalation completed
113
+
114
+ ## Output Example
115
+ Backend implementation phase completed.
116
+ - Task decomposition: Generated under docs/plans/tasks/
117
+ - Implemented tasks: [number] tasks
118
+ - Quality checks: All passed
119
+ - Commits: [number] commits created
@@ -0,0 +1,7 @@
1
+ interface:
2
+ display_name: "recipe-build"
3
+ short_description: "Autonomous backend task execution with quality gates"
4
+ default_prompt: "Use $recipe-build to start building: "
5
+
6
+ policy:
7
+ allow_implicit_invocation: false
@@ -0,0 +1,90 @@
1
+ ---
2
+ name: recipe-design
3
+ description: "Execute from requirement analysis to design document creation."
4
+ ---
5
+
6
+ ## Required Skills [LOAD BEFORE EXECUTION]
7
+
8
+ 1. [LOAD IF NOT ACTIVE] `documentation-criteria` — document creation rules and templates
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
+
12
+ **Context**: Dedicated to the design phase.
13
+
14
+ ## Orchestrator Definition
15
+
16
+ **Core Identity**: "I am not a worker. I am an orchestrator." (see subagents-orchestration-guide skill)
17
+
18
+ **Execution Protocol**:
19
+ 1. **Spawn agents for all work** -- your role is to invoke sub-agents, pass data between them, and report results
20
+ 2. **Follow subagents-orchestration-guide skill design flow exactly**:
21
+ - Execute: requirement-analyzer -> technical-designer -> document-reviewer -> design-sync
22
+ - **[STOP — BLOCKING]** At every `[Stop: ...]` marker -> Present status to user for confirmation. **CANNOT proceed until user explicitly confirms.**
23
+ 3. **Scope**: Complete when design documents receive approval
24
+
25
+ **CRITICAL**: MUST execute document-reviewer, design-sync, and all stopping points defined in subagents-orchestration-guide skill flows -- each serves as a quality gate.
26
+ ENFORCEMENT: Skipping any quality gate invalidates the design output.
27
+
28
+ ## Workflow Overview
29
+
30
+ ```
31
+ Requirements -> requirement-analyzer -> [Stop: Scale determination]
32
+ |
33
+ technical-designer -> document-reviewer
34
+ |
35
+ design-sync -> [Stop: Design approval]
36
+ ```
37
+
38
+ ## Scope Boundaries
39
+
40
+ **Included in this skill**:
41
+ - Requirement analysis with requirement-analyzer
42
+ - ADR creation (if architecture changes, new technology, or data flow changes)
43
+ - Design Doc creation with technical-designer
44
+ - Document review with document-reviewer
45
+ - Design Doc consistency verification with design-sync
46
+
47
+ **Responsibility Boundary**: This skill completes with design document (ADR/Design Doc) approval. Work planning and beyond are outside scope.
48
+
49
+ Requirements: $ARGUMENTS
50
+
51
+ Considering the deep impact on design, first engage in dialogue to understand the background and purpose of requirements:
52
+ - What problems do you want to solve?
53
+ - Expected outcomes and success criteria
54
+ - Relationship with existing systems
55
+
56
+ Once requirements are moderately clarified, analyze with requirement-analyzer and create appropriate design documents according to scale.
57
+
58
+ MUST clearly present design alternatives and trade-offs.
59
+
60
+ Execute the process below within design scope.
61
+
62
+ ## Execution Process
63
+
64
+ ### Step 1: Requirement Analysis
65
+ Spawn requirement-analyzer agent: "Analyze the following requirements and determine scale: $ARGUMENTS"
66
+
67
+ ### Step 2: Design Document Creation
68
+ Spawn technical-designer agent: "Create design document based on requirement analysis output. Include architecture decisions, component design, and acceptance criteria."
69
+
70
+ ### Step 3: Document Review
71
+ Spawn document-reviewer agent: "Review the design document created in the previous step. Verify completeness, consistency, and quality."
72
+
73
+ ### Step 4: Consistency Verification
74
+ Spawn design-sync agent: "Verify consistency of the design document with other existing design documents and project constraints."
75
+
76
+ **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.
77
+
78
+ ## Completion Criteria
79
+
80
+ - [ ] Spawned requirement-analyzer and determined scale
81
+ - [ ] Created appropriate design document (ADR or Design Doc) via technical-designer
82
+ - [ ] Spawned document-reviewer and addressed feedback
83
+ - [ ] Spawned design-sync for consistency verification
84
+ - [ ] Obtained user approval for design document
85
+ - [ ] All `[Stop: ...]` markers honored with user confirmation
86
+
87
+ ## Output Example
88
+ Design phase completed.
89
+ - Design document: docs/design/[document-name].md or docs/adr/[document-name].md
90
+ - Approval status: User approved
@@ -0,0 +1,7 @@
1
+ interface:
2
+ display_name: "recipe-design"
3
+ short_description: "Requirement analysis to design document creation"
4
+ default_prompt: "Use $recipe-design to start designing: "
5
+
6
+ policy:
7
+ allow_implicit_invocation: false
@@ -0,0 +1,187 @@
1
+ ---
2
+ name: recipe-diagnose
3
+ description: "Investigate problem, verify findings, and derive solutions through structured diagnosis."
4
+ ---
5
+
6
+ ## Required Skills [LOAD BEFORE EXECUTION]
7
+
8
+ 1. [LOAD IF NOT ACTIVE] `ai-development-guide` — AI development patterns
9
+ 2. [LOAD IF NOT ACTIVE] `coding-rules` — coding standards
10
+
11
+ **Context**: Diagnosis flow to identify root cause and present solutions
12
+
13
+ Target problem: $ARGUMENTS
14
+
15
+ ## Orchestrator Definition
16
+
17
+ **Core Identity**: "I am not a worker. I am an orchestrator."
18
+
19
+ **Execution Method**:
20
+ - Investigation -> Spawn investigator agent
21
+ - Verification -> Spawn verifier agent
22
+ - Solution derivation -> Spawn solver agent
23
+
24
+ Orchestrator spawns sub-agents and passes structured data between them.
25
+
26
+ **Task Registration**: Register execution steps and proceed systematically. Track status for each step.
27
+
28
+ ## Step 0: Problem Structuring (Before spawning investigator)
29
+
30
+ ### 0.1 Problem Type Determination
31
+
32
+ | Type | Criteria |
33
+ |------|----------|
34
+ | Change Failure | Indicates some change occurred before the problem appeared |
35
+ | New Discovery | No relation to changes is indicated |
36
+
37
+ If uncertain, ask the user whether any changes were made right before the problem occurred.
38
+
39
+ ### 0.2 Information Supplementation for Change Failures
40
+
41
+ If the following are unclear, MUST **ask the user** before proceeding:
42
+ - What was changed (cause change)
43
+ - What broke (affected area)
44
+ - Relationship between both (shared components, etc.)
45
+
46
+ ### 0.3 Problem Essence Understanding
47
+
48
+ Spawn rule-advisor agent: "Identify the essence and required rules for this problem: [Problem reported by user]"
49
+
50
+ Confirm from rule-advisor output:
51
+ - `taskAnalysis.essence`: Root problem beyond surface symptoms
52
+ - `taskAnalysis.taskType`: Classification of the problem
53
+ - `selectedRules`: Applicable rule sections
54
+ - `warningPatterns`: Patterns to avoid
55
+
56
+ ### 0.4 Reflecting in investigator Prompt
57
+
58
+ **Include the following in investigator prompt**:
59
+ 1. Problem essence (`taskAnalysis.essence`)
60
+ 2. Key applicable rules summary (from selectedRules)
61
+ 3. Investigation focus (investigationFocus): Convert warningPatterns to "points prone to confusion or oversight in this investigation"
62
+ 4. **For change failures, additionally include**:
63
+ - Detailed analysis of the change content
64
+ - Commonalities between cause change and affected area
65
+ - Determination of whether the change is a "correct fix" or "new bug" with comparison baseline selection
66
+
67
+ ## Diagnosis Flow Overview
68
+
69
+ ```
70
+ Problem -> investigator -> verifier -> solver --+
71
+ ^ |
72
+ +-- confidence < high ---------+
73
+ (max 2 iterations)
74
+
75
+ confidence=high reached -> Report
76
+ ```
77
+
78
+ **Context Separation**: Pass only structured output to each step. Each step starts fresh with the data only.
79
+
80
+ ## Execution Steps
81
+
82
+ Register the following and execute:
83
+
84
+ ### Step 1: Investigation (investigator)
85
+
86
+ Spawn investigator agent: "Comprehensively collect information related to the following phenomenon. Phenomenon: [Problem reported by user]. Problem essence: [taskEssence]. Investigation focus: [investigationFocus]. Applicable rules: [selectedRules summary]."
87
+
88
+ **Expected output**: Evidence matrix, comparison analysis results, causal tracking results, list of unexplored areas, investigation limitations
89
+
90
+ ### Step 2: Investigation Quality Check
91
+
92
+ Review investigation output:
93
+
94
+ **Quality Check** (verify output contains the following):
95
+ - [ ] comparisonAnalysis
96
+ - [ ] causalChain for each hypothesis (reaching stop condition)
97
+ - [ ] causeCategory for each hypothesis
98
+ - [ ] Investigation covering investigationFocus items (when provided)
99
+
100
+ **If quality insufficient**: MUST re-spawn investigator agent specifying missing items
101
+ ENFORCEMENT: Proceeding to verifier with incomplete investigation data produces unreliable conclusions.
102
+
103
+ **design_gap Escalation**:
104
+
105
+ When investigator output contains `causeCategory: design_gap` or `recurrenceRisk: high`:
106
+ 1. **[STOP — BLOCKING]** Present design gap findings to user for confirmation. **CANNOT proceed until user explicitly confirms.**
107
+ 2. Ask user:
108
+ "A design-level issue was detected. How should we proceed?"
109
+ - A: Attempt fix within current design
110
+ - B: Include design reconsideration
111
+ 3. If user selects B, pass `includeRedesign: true` to solver
112
+
113
+ Proceed to verifier once quality is satisfied.
114
+
115
+ ### Step 3: Verification (verifier)
116
+
117
+ Spawn verifier agent: "Verify the following investigation results. Investigation results: [Investigation output]"
118
+
119
+ **Expected output**: Alternative hypotheses (at least 3), Devil's Advocate evaluation, final conclusion, confidence
120
+
121
+ **Confidence Criteria**:
122
+ - **high**: No uncertainty affecting solution selection or implementation
123
+ - **medium**: Uncertainty exists but resolvable with additional investigation
124
+ - **low**: Fundamental information gap exists
125
+
126
+ ### Step 4: Solution Derivation (solver)
127
+
128
+ Spawn solver agent: "Derive solutions based on the following verified conclusion. Causes: [verifier's conclusion.causes]. Causes relationship: [causesRelationship: independent/dependent/exclusive]. Confidence: [high/medium/low]."
129
+
130
+ **Expected output**: Multiple solutions (at least 3), tradeoff analysis, recommendation and implementation steps, residual risks
131
+
132
+ **Completion condition**: confidence=high
133
+
134
+ **When not reached**:
135
+ 1. Return to Step 1 with uncertainties identified by solver as investigation targets
136
+ 2. Maximum 2 additional investigation iterations
137
+ 3. After 2 iterations without reaching high, present user with options:
138
+ - Continue additional investigation
139
+ - Execute solution at current confidence level
140
+
141
+ ### Step 5: Final Report Creation
142
+
143
+ **Prerequisite**: confidence=high achieved
144
+
145
+ After diagnosis completion, report to user in the following format:
146
+
147
+ ```
148
+ ## Diagnosis Result Summary
149
+
150
+ ### Identified Causes
151
+ [Cause list from verification results]
152
+ - Causes relationship: [independent/dependent/exclusive]
153
+
154
+ ### Verification Process
155
+ - Investigation scope: [Scope confirmed in investigation]
156
+ - Additional investigation iterations: [0/1/2]
157
+ - Alternative hypotheses count: [Number generated in verification]
158
+
159
+ ### Recommended Solution
160
+ [Solution derivation recommendation]
161
+
162
+ Rationale: [Selection rationale]
163
+
164
+ ### Implementation Steps
165
+ 1. [Step 1]
166
+ 2. [Step 2]
167
+ ...
168
+
169
+ ### Alternatives
170
+ [Alternative description]
171
+
172
+ ### Residual Risks
173
+ [solver's residualRisks]
174
+
175
+ ### Post-Resolution Verification Items
176
+ - [Verification item 1]
177
+ - [Verification item 2]
178
+ ```
179
+
180
+ ## Completion Criteria
181
+
182
+ - [ ] Spawned investigator and obtained evidence matrix, comparison analysis, and causal tracking
183
+ - [ ] Performed investigation quality check and re-ran if insufficient
184
+ - [ ] Spawned verifier and obtained confidence level
185
+ - [ ] Spawned solver
186
+ - [ ] Achieved confidence=high (or obtained user approval after 2 additional iterations)
187
+ - [ ] Presented final report to user
@@ -0,0 +1,7 @@
1
+ interface:
2
+ display_name: "recipe-diagnose"
3
+ short_description: "Structured investigation and solution derivation"
4
+ default_prompt: "Use $recipe-diagnose to investigate: "
5
+
6
+ policy:
7
+ allow_implicit_invocation: false
@@ -0,0 +1,127 @@
1
+ ---
2
+ name: recipe-front-build
3
+ description: "Execute frontend tasks in autonomous execution mode using task-executor-frontend and quality-fixer-frontend."
4
+ ---
5
+
6
+ ## Required Skills [LOAD BEFORE EXECUTION]
7
+
8
+ 1. [LOAD IF NOT ACTIVE] `coding-rules` -- coding standards
9
+ 2. [LOAD IF NOT ACTIVE] `testing` -- test strategy and quality gates
10
+ 3. [LOAD IF NOT ACTIVE] `ai-development-guide` -- AI development patterns
11
+ 4. [LOAD IF NOT ACTIVE] `subagents-orchestration-guide` -- agent coordination and workflow flows
12
+
13
+ ## Orchestrator Definition
14
+
15
+ **Core Identity**: "I am not a worker. I am an orchestrator." (see subagents-orchestration-guide skill)
16
+
17
+ **Execution Protocol**:
18
+ 1. **Spawn agents for all work** -- your role is to invoke sub-agents, pass data between them, and report results
19
+ 2. **Follow the 4-step task cycle exactly**: task-executor-frontend -> escalation check -> quality-fixer-frontend -> commit
20
+ 3. **Enter autonomous mode** when user provides execution instruction with existing task files -- this IS the batch approval
21
+ 4. **Scope**: Complete when all tasks are committed or escalation occurs
22
+
23
+ **CRITICAL**: MUST run quality-fixer-frontend before every commit.
24
+ ENFORCEMENT: Commits without quality-fixer-frontend approval are invalid and MUST be reverted.
25
+
26
+ Work plan: $ARGUMENTS
27
+
28
+ ## Pre-execution Prerequisites
29
+
30
+ ### Task File Existence Check
31
+ Check for work plans in docs/plans/ and task files in docs/plans/tasks/.
32
+
33
+ ### Task Generation Decision Flow
34
+
35
+ Analyze task file existence state and determine the action required:
36
+
37
+ | State | Criteria | Next Action |
38
+ |-------|----------|-------------|
39
+ | Tasks exist | .md files in tasks/ directory | User's execution instruction serves as batch approval -> Enter autonomous execution immediately |
40
+ | No tasks + plan exists | Plan exists but no task files | Confirm with user -> spawn task-decomposer |
41
+ | Neither exists | No plan or task files | Error: Prerequisites not met |
42
+
43
+ ## Task Decomposition Phase (Conditional)
44
+
45
+ When task files don't exist:
46
+
47
+ ### 1. User Confirmation
48
+ ```
49
+ No task files found.
50
+ Work plan: docs/plans/[plan-name].md
51
+
52
+ Generate tasks from the work plan? (y/n):
53
+ ```
54
+
55
+ ### 2. Task Decomposition (if approved)
56
+ Spawn task-decomposer agent: "Read work plan at docs/plans/[plan-name].md and decompose into atomic tasks. Output: Individual task files in docs/plans/tasks/. Granularity: 1 task = 1 commit = independently executable"
57
+
58
+ ### 3. Verify Generation
59
+ Verify generated task files exist in docs/plans/tasks/.
60
+
61
+ ## Pre-execution Checklist
62
+
63
+ - [ ] Confirmed task files exist in docs/plans/tasks/
64
+ - [ ] Identified task execution order (dependencies)
65
+ - [ ] **Environment check**: Can I execute per-task commit cycle?
66
+ - If commit capability unavailable -> Escalate before autonomous mode
67
+ - Other environments (tests, quality tools) -> Subagents will escalate
68
+
69
+ ## Task Execution Cycle (4-Step Cycle) - Frontend Specialized
70
+
71
+ **MANDATORY EXECUTION CYCLE**: `task-executor-frontend -> escalation check -> quality-fixer-frontend -> commit`
72
+
73
+ ### Structured Response Specification
74
+ Each sub-agent responds in JSON format:
75
+ - **task-executor-frontend**: status, filesModified, testsAdded, readyForQualityCheck
76
+ - **integration-test-reviewer**: status (approved/needs_revision/blocked), requiredFixes
77
+ - **quality-fixer-frontend**: status, checksPerformed, fixesApplied, approved
78
+
79
+ ### Execution Flow for Each Task
80
+
81
+ For EACH task, YOU MUST:
82
+ 1. **Register tasks**: Register work steps. Always include: first "Confirm skill constraints", final "Verify skill fidelity"
83
+ 2. **Spawn task-executor-frontend agent**: "Task file: docs/plans/tasks/[filename].md Execute frontend implementation"
84
+ 3. **CHECK task-executor-frontend response**:
85
+ - `status: "escalation_needed"` or `"blocked"` -> STOP and escalate to user
86
+ - `testsAdded` contains `*.int.test.ts` or `*.e2e.test.ts` -> Spawn integration-test-reviewer agent: "Review integration tests in [test-files]"
87
+ - `needs_revision` -> Return to step 2 with `requiredFixes`
88
+ - `approved` -> Proceed to step 4
89
+ - `readyForQualityCheck: true` -> Proceed to step 4
90
+ 4. **Spawn quality-fixer-frontend agent**: "Execute all frontend quality checks and fixes"
91
+ 5. **COMMIT on approval**: After `approved: true` from quality-fixer-frontend -> Execute git commit. Use `changeSummary` for commit message.
92
+
93
+ **CRITICAL**: MUST monitor ALL structured responses WITHOUT EXCEPTION and ENSURE every quality gate is passed.
94
+ ENFORCEMENT: Proceeding past a failed quality gate invalidates all subsequent work.
95
+
96
+ ## Sub-agent Invocation Constraints
97
+
98
+ **MANDATORY suffix for ALL sub-agent prompts**:
99
+ ```
100
+ [SYSTEM CONSTRAINT]
101
+ This agent operates within build skill scope. Use orchestrator-provided rules only.
102
+ ```
103
+
104
+ Autonomous sub-agents require scope constraints for stable execution. MUST append this constraint to every sub-agent prompt.
105
+ ENFORCEMENT: Sub-agent prompts missing the constraint suffix MUST be re-issued with the constraint appended.
106
+
107
+ VERIFY approval status before proceeding. Once confirmed, INITIATE autonomous execution mode.
108
+
109
+ **[STOP -- BLOCKING]** Upon detecting ANY requirement changes, halt execution immediately.
110
+ **CANNOT proceed until user explicitly confirms the change scope.**
111
+
112
+ ## Completion Criteria
113
+
114
+ - [ ] Task files verified in docs/plans/tasks/
115
+ - [ ] Task execution order identified with dependencies
116
+ - [ ] Environment check completed (commit capability confirmed)
117
+ - [ ] All tasks executed through 4-step cycle (task-executor-frontend -> check -> quality-fixer-frontend -> commit)
118
+ - [ ] System constraint suffix appended to all sub-agent prompts
119
+ - [ ] All quality gates passed
120
+ - [ ] All tasks committed or escalation completed
121
+
122
+ ## Output Example
123
+ Frontend implementation phase completed.
124
+ - Task decomposition: Generated under docs/plans/tasks/
125
+ - Implemented tasks: [number] tasks
126
+ - Quality checks: All passed (Lighthouse, bundle size, tests)
127
+ - Commits: [number] commits created
@@ -0,0 +1,7 @@
1
+ interface:
2
+ display_name: "recipe-front-build"
3
+ short_description: "Autonomous frontend task execution with quality gates"
4
+ default_prompt: "Use $recipe-front-build to start building frontend: "
5
+
6
+ policy:
7
+ allow_implicit_invocation: false
@@ -0,0 +1,90 @@
1
+ ---
2
+ name: recipe-front-design
3
+ description: "Execute from requirement analysis to frontend design document creation including UI Spec."
4
+ ---
5
+
6
+ **Context**: Dedicated to the frontend design phase.
7
+
8
+ ## Required Skills [LOAD BEFORE EXECUTION]
9
+
10
+ 1. [LOAD IF NOT ACTIVE] `documentation-criteria` -- document quality standards
11
+ 2. [LOAD IF NOT ACTIVE] `implementation-approach` -- implementation methodology
12
+ 3. [LOAD IF NOT ACTIVE] `subagents-orchestration-guide` -- agent coordination and workflow flows
13
+
14
+ ## Orchestrator Definition
15
+
16
+ **Core Identity**: "I am not a worker. I am an orchestrator."
17
+
18
+ **Execution Method**:
19
+ - Requirement analysis -> performed by requirement-analyzer
20
+ - UI Specification creation -> performed by ui-spec-designer
21
+ - Design document creation -> performed by technical-designer-frontend
22
+ - Document review -> performed by document-reviewer
23
+
24
+ Orchestrator spawns agents and passes structured data between them.
25
+
26
+ ## Scope Boundaries
27
+
28
+ **Included in this skill**:
29
+ - Requirement analysis with requirement-analyzer
30
+ - UI Specification creation with ui-spec-designer (prototype code inquiry included)
31
+ - ADR creation (if architecture changes, new technology, or data flow changes)
32
+ - Design Doc creation with technical-designer-frontend
33
+ - Document review with document-reviewer
34
+
35
+ **Responsibility Boundary**: This skill completes with frontend design document (UI Spec/ADR/Design Doc) approval. Work planning and beyond are outside scope.
36
+
37
+ Requirements: $ARGUMENTS
38
+
39
+ ## Execution Flow
40
+
41
+ ### Step 1: Requirement Analysis Phase
42
+ Considering the deep impact on design, first engage in dialogue to understand the background and purpose of requirements:
43
+ - What problems do you want to solve?
44
+ - Expected outcomes and success criteria
45
+ - Relationship with existing systems
46
+
47
+ Once requirements are moderately clarified:
48
+ - Spawn requirement-analyzer agent: "Requirements: [user requirements] Execute requirement analysis and scale determination"
49
+
50
+ **[STOP -- BLOCKING]** Review requirement analysis results and address question items.
51
+ **CANNOT proceed until user explicitly confirms the requirement analysis.**
52
+
53
+ ### Step 2: UI Specification Phase
54
+ After requirement analysis approval, ask the user about prototype code:
55
+
56
+ **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."
57
+
58
+ **[STOP -- BLOCKING]** Wait for user response about prototype code availability.
59
+ **CANNOT proceed until user responds.**
60
+
61
+ Then create the UI Specification:
62
+ - Spawn ui-spec-designer agent: "Create UI Spec [from PRD at [path] if PRD exists]. [Prototype code is at [user-provided path]. Place prototype in docs/ui-spec/assets/{feature-name}/ | No prototype code available.]"
63
+ - Spawn document-reviewer agent: "doc_type: UISpec target: [ui-spec path] Review for consistency and completeness"
64
+
65
+ **[STOP -- BLOCKING]** Present UI Spec for user approval.
66
+ **CANNOT proceed until user explicitly approves the UI Spec.**
67
+
68
+ ### Step 3: Design Document Creation Phase
69
+ Create appropriate design documents according to scale determination:
70
+ - For ADR: Spawn technical-designer-frontend agent: "Create ADR for [technical decision]"
71
+ - For Design Doc: Spawn technical-designer-frontend agent: "Create Design Doc based on requirements. UI Spec is at [ui-spec path]. Inherit component structure and state design from UI Spec."
72
+ - Spawn document-reviewer agent: "Review [document path] for consistency and completeness"
73
+
74
+ **[STOP -- BLOCKING]** Present design alternatives and trade-offs, obtain user approval.
75
+ **CANNOT proceed until user explicitly approves the design document.**
76
+
77
+ ENFORCEMENT: Every stop point MUST be respected. Skipping user approval invalidates the entire workflow.
78
+
79
+ ## Completion Criteria
80
+
81
+ - [ ] Requirement analysis completed and approved
82
+ - [ ] UI Specification created and approved
83
+ - [ ] Design document created and approved
84
+ - [ ] All document reviews passed
85
+
86
+ ## Output Example
87
+ Frontend design phase completed.
88
+ - UI Specification: docs/ui-spec/[feature-name]-ui-spec.md
89
+ - Design document: docs/design/[document-name].md or docs/adr/[document-name].md
90
+ - Approval status: User approved
@@ -0,0 +1,7 @@
1
+ interface:
2
+ display_name: "recipe-front-design"
3
+ short_description: "Frontend requirements to design docs"
4
+ default_prompt: "Use $recipe-front-design to design a frontend feature: "
5
+
6
+ policy:
7
+ allow_implicit_invocation: false