ace-handbook 0.19.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. checksums.yaml +7 -0
  2. data/.ace-defaults/handbook/config.yml +4 -0
  3. data/.ace-defaults/nav/protocols/guide-sources/ace-handbook.yml +19 -0
  4. data/.ace-defaults/nav/protocols/tmpl-sources/ace-handbook.yml +10 -0
  5. data/.ace-defaults/nav/protocols/wfi-sources/ace-handbook.yml +19 -0
  6. data/CHANGELOG.md +362 -0
  7. data/LICENSE +21 -0
  8. data/README.md +42 -0
  9. data/Rakefile +12 -0
  10. data/exe/ace-handbook +6 -0
  11. data/handbook/guides/ai-agent-integration.g.md +625 -0
  12. data/handbook/guides/atom-pattern.g.md +371 -0
  13. data/handbook/guides/changelog.g.md +333 -0
  14. data/handbook/guides/cli-dry-cli.g.md +276 -0
  15. data/handbook/guides/cli-support-cli.g.md +277 -0
  16. data/handbook/guides/coding-standards/ruby.md +41 -0
  17. data/handbook/guides/coding-standards/rust.md +19 -0
  18. data/handbook/guides/coding-standards/typescript.md +20 -0
  19. data/handbook/guides/coding-standards.g.md +134 -0
  20. data/handbook/guides/debug-troubleshooting.g.md +62 -0
  21. data/handbook/guides/error-handling/ruby.md +29 -0
  22. data/handbook/guides/error-handling/rust.md +59 -0
  23. data/handbook/guides/error-handling/typescript.md +38 -0
  24. data/handbook/guides/error-handling.g.md +207 -0
  25. data/handbook/guides/meta/agents-definition.g.md +823 -0
  26. data/handbook/guides/meta/guides-definition.g.md +322 -0
  27. data/handbook/guides/meta/markdown-definition.g.md +210 -0
  28. data/handbook/guides/meta/tools-definition.g.md +159 -0
  29. data/handbook/guides/meta/workflow-instructions-definition.g.md +367 -0
  30. data/handbook/guides/mono-repo-patterns.g.md +92 -0
  31. data/handbook/guides/multi-agent-research.g.md +251 -0
  32. data/handbook/guides/performance/ruby.md +25 -0
  33. data/handbook/guides/performance/rust.md +48 -0
  34. data/handbook/guides/performance/typescript.md +32 -0
  35. data/handbook/guides/performance.g.md +211 -0
  36. data/handbook/guides/prompt-caching.g.md +83 -0
  37. data/handbook/guides/quality-assurance/ruby.md +33 -0
  38. data/handbook/guides/quality-assurance/rust.md +41 -0
  39. data/handbook/guides/quality-assurance/typescript.md +49 -0
  40. data/handbook/guides/quality-assurance.g.md +222 -0
  41. data/handbook/guides/strategic-planning.g.md +69 -0
  42. data/handbook/guides/troubleshooting/ruby.md +21 -0
  43. data/handbook/guides/troubleshooting/rust.md +20 -0
  44. data/handbook/guides/troubleshooting/typescript.md +36 -0
  45. data/handbook/guides/workflow-context-embedding.g.md +286 -0
  46. data/handbook/skills/as-handbook-init-project/SKILL.md +34 -0
  47. data/handbook/skills/as-handbook-manage-agents/SKILL.md +35 -0
  48. data/handbook/skills/as-handbook-manage-guides/SKILL.md +35 -0
  49. data/handbook/skills/as-handbook-manage-workflows/SKILL.md +35 -0
  50. data/handbook/skills/as-handbook-parallel-research/SKILL.md +29 -0
  51. data/handbook/skills/as-handbook-perform-delivery/SKILL.md +35 -0
  52. data/handbook/skills/as-handbook-review-guides/SKILL.md +32 -0
  53. data/handbook/skills/as-handbook-review-workflows/SKILL.md +32 -0
  54. data/handbook/skills/as-handbook-synthesize-research/SKILL.md +29 -0
  55. data/handbook/skills/as-handbook-update-docs/SKILL.md +35 -0
  56. data/handbook/skills/as-release/SKILL.md +50 -0
  57. data/handbook/skills/as-release-bump-version/SKILL.md +28 -0
  58. data/handbook/skills/as-release-rubygems-publish/SKILL.md +58 -0
  59. data/handbook/skills/as-release-update-changelog/SKILL.md +28 -0
  60. data/handbook/templates/completed-work-documentation.md +59 -0
  61. data/handbook/templates/cookbooks/cookbook.template.md +237 -0
  62. data/handbook/templates/research-comparison.template.md +175 -0
  63. data/handbook/workflow-instructions/handbook/init-project.wf.md +629 -0
  64. data/handbook/workflow-instructions/handbook/manage-agents.wf.md +379 -0
  65. data/handbook/workflow-instructions/handbook/manage-guides.wf.md +294 -0
  66. data/handbook/workflow-instructions/handbook/manage-workflows.wf.md +292 -0
  67. data/handbook/workflow-instructions/handbook/parallel-research.wf.md +328 -0
  68. data/handbook/workflow-instructions/handbook/perform-delivery.wf.md +267 -0
  69. data/handbook/workflow-instructions/handbook/research.wf.md +247 -0
  70. data/handbook/workflow-instructions/handbook/review-guides.wf.md +348 -0
  71. data/handbook/workflow-instructions/handbook/review-workflows.wf.md +299 -0
  72. data/handbook/workflow-instructions/handbook/synthesize-research.wf.md +429 -0
  73. data/handbook/workflow-instructions/handbook/update-docs.wf.md +338 -0
  74. data/lib/ace/handbook/atoms/provider_registry.rb +70 -0
  75. data/lib/ace/handbook/cli/commands/status.rb +36 -0
  76. data/lib/ace/handbook/cli/commands/sync.rb +36 -0
  77. data/lib/ace/handbook/cli.rb +51 -0
  78. data/lib/ace/handbook/models/skill_document.rb +25 -0
  79. data/lib/ace/handbook/molecules/skill_projection.rb +54 -0
  80. data/lib/ace/handbook/organisms/provider_syncer.rb +106 -0
  81. data/lib/ace/handbook/organisms/skill_inventory.rb +54 -0
  82. data/lib/ace/handbook/organisms/status_collector.rb +181 -0
  83. data/lib/ace/handbook/version.rb +7 -0
  84. data/lib/ace/handbook.rb +28 -0
  85. metadata +227 -0
@@ -0,0 +1,292 @@
1
+ ---
2
+ doc-type: workflow
3
+ title: Manage Workflow Instructions
4
+ purpose: Documentation for ace-handbook/handbook/workflow-instructions/handbook/manage-workflows.wf.md
5
+ ace-docs:
6
+ last-updated: 2026-03-12
7
+ last-checked: 2026-03-21
8
+ ---
9
+
10
+ # Manage Workflow Instructions
11
+
12
+ ## Goal
13
+
14
+ Create, update, and maintain workflow instruction files following established standards and patterns. This meta-workflow
15
+ guides handbook maintainers through the systematic creation of self-contained, well-structured workflow instructions
16
+ that leverage embedded templates and comply with project conventions.
17
+
18
+ ## Prerequisites
19
+
20
+ * Understanding of workflow instruction principles and standards
21
+ * Access to handbook guides and workflow standards
22
+ * Knowledge of existing workflow patterns
23
+ * Access to template embedding system
24
+
25
+ ## Project Context Loading
26
+
27
+ * Load workflow standards: `ace-handbook/handbook/guides/meta/workflow-instructions-definition.g.md`
28
+ * Load markdown standards as needed from `ace-handbook/handbook/guides/meta/markdown-definition.g.md`
29
+ * Load a current workflow example via `ace-bundle wfi://handbook/review-workflows`
30
+ * Load a current maintenance example via `ace-bundle wfi://handbook/update-docs`
31
+
32
+ ## Process Steps
33
+
34
+ 1. **Define Workflow Scope and Purpose:**
35
+ * Identify the specific process or goal the workflow will address
36
+ * Determine the target audience (human developers, AI agents, or both)
37
+ * Define clear boundaries: what the workflow includes and excludes
38
+ * Gather requirements from users or project needs
39
+ 2. **Design Workflow Structure:**
40
+ * Plan the workflow sections following the standard format:
41
+ * `## Goal` - Clear, single-sentence objective
42
+ * `## Prerequisites` - Required conditions and knowledge
43
+ * `## Project Context Loading` - Files to load for context
44
+ * `## Process Steps` - Detailed step-by-step instructions
45
+ * `## Success Criteria` - Validation and completion checks
46
+ * Design embedded content strategy (templates, examples, commands)
47
+ * Plan for self-containment without external dependencies
48
+ 3. **Gather and Prepare Content:**
49
+ * Collect relevant templates from `templates/` if applicable
50
+ * Prepare example commands and patterns
51
+ * Identify common error scenarios and solutions
52
+ * Gather technology-specific examples if needed
53
+ 4. **Create Workflow File:**
54
+ * Create file in `workflow-instructions/` with `.wf.md` extension
55
+ * Use verb-first naming convention (e.g., `create-api-docs.wf.md`)
56
+ * Implement standard workflow structure:
57
+
58
+ # Workflow Title
59
+
60
+ ## Goal
61
+ [Single sentence describing the objective]
62
+
63
+ ## Prerequisites
64
+ * [Required condition 1]
65
+ * [Required condition 2]
66
+
67
+ ## Project Context Loading
68
+ * Load [context file 1]: `path/to/file`
69
+ * Load [context file 2]: `path/to/file`
70
+
71
+ ## Process Steps
72
+
73
+ 1. **Step Name:**
74
+ * [Detailed instruction]
75
+ * [Example or command]
76
+
77
+ ## Success Criteria
78
+ * [Completion check 1]
79
+ * [Completion check 2]
80
+ {: .language-markdown}
81
+ 5. **Embed Templates and Content:**
82
+ * Use the template embedding format for reusable content:
83
+
84
+ <templates>
85
+ <template path="path/to/template.md">
86
+ [Template content here]
87
+ </template>
88
+ </templates>
89
+ {: .language-markdown}
90
+
91
+ * **IMPORTANT: Dual Template Editing Required**
92
+ * When modifying embedded templates, you MUST update BOTH:
93
+ 1. The source template file (e.g., `templates/*/template.md`)
94
+ 2. The embedded template in the workflow instruction file
95
+ * This ensures consistency between the source and embedded versions
96
+ * Use template synchronization tools when available to maintain alignment
97
+ * Embed common commands and examples directly in process steps
98
+ * Include technology-agnostic patterns with specific examples
99
+ * Provide error handling and troubleshooting guidance
100
+ 6. **Validate Workflow Standards Compliance:**
101
+ * Verify all required sections are present and complete
102
+ * Check for self-containment (no external dependencies)
103
+ * Ensure clear, actionable instructions
104
+ * Validate embedded templates follow proper format
105
+ * Test that examples and commands are accurate
106
+ 7. **Test and Refine:**
107
+ * Review workflow with intended users
108
+ * Test instructions by following them step-by-step
109
+ * Verify embedded templates and examples work correctly
110
+ * Refine language for clarity and conciseness
111
+ * Ensure consistency with existing workflow patterns
112
+ 8. **Integration and Documentation:**
113
+ * Update workflow instructions README.md if needed
114
+ * Add workflow to appropriate category in documentation
115
+ * Consider cross-references with related guides or workflows
116
+ * Run template synchronization if embedded templates are used
117
+
118
+ ## Embedded Templates and Examples
119
+
120
+ ### Basic Workflow Template Structure
121
+
122
+ # [Action Verb] [Object/Target]
123
+
124
+ ## Goal
125
+
126
+ [Single sentence describing what this workflow achieves]
127
+
128
+ ## Prerequisites
129
+
130
+ * [Specific requirement 1]
131
+ * [Specific requirement 2]
132
+ * [Knowledge or access requirement]
133
+
134
+ ## Project Context Loading
135
+
136
+ * Load [description]: `path/to/relevant/file`
137
+ * Load [description]: `path/to/other/file`
138
+
139
+ ## Process Steps
140
+
141
+ 1. **[Action Step Name]:**
142
+ * [Specific instruction with details]
143
+ * [Example command or pattern]
144
+
145
+ **Validation:**
146
+ * [How to verify this step succeeded]
147
+
148
+ 2. **[Next Step Name]:**
149
+ * [Continue with logical progression]
150
+
151
+ ## Success Criteria
152
+
153
+ * [Measurable outcome 1]
154
+ * [Measurable outcome 2]
155
+ * [Quality check]
156
+
157
+ ## Error Handling
158
+
159
+ **[Common Error Scenario]:**
160
+ * **Symptoms:** [What the user sees]
161
+ * **Solution:** [How to resolve]
162
+
163
+ ## Usage Example
164
+
165
+ > "[Example user request or scenario]"
166
+ {: .language-markdown}
167
+
168
+ ### Technology-Agnostic Command Examples
169
+
170
+ When including commands that vary by technology stack:
171
+
172
+ ### Run Tests
173
+ - Ruby: `bundle exec rspec`
174
+ - Node.js: `npm test`
175
+ - Python: `pytest`
176
+ - Rust: `cargo test`
177
+
178
+ ### Install Dependencies
179
+ - Ruby: `bundle install`
180
+ - Node.js: `npm install`
181
+ - Python: `pip install -r requirements.txt`
182
+ - Rust: `cargo build`
183
+ {: .language-markdown}
184
+
185
+ ### Embedded Test Pattern
186
+
187
+ For workflows that include validation steps:
188
+
189
+ * [Action step]
190
+ > TEST: [Test Name]
191
+ > Type: [Pre-condition Check | Action Validation | Post-condition Check]
192
+ > Assert: [What should be true]
193
+ > Command: [Command to verify] || [Alternative command]
194
+ {: .language-markdown}
195
+
196
+ ## Quality Standards
197
+
198
+ ### Content Quality
199
+
200
+ * **Clarity:** Use simple, direct language
201
+ * **Completeness:** Include all necessary steps and context
202
+ * **Accuracy:** Verify all commands and examples work
203
+ * **Consistency:** Follow established patterns and terminology
204
+
205
+ ### Structure Quality
206
+
207
+ * **Self-contained:** No external dependencies required
208
+ * **Logical flow:** Steps build upon each other naturally
209
+ * **Modular:** Clear separation between different phases
210
+ * **Actionable:** Each step produces a measurable outcome
211
+
212
+ ### Technical Quality
213
+
214
+ * **Template compliance:** Follow embedding standards
215
+ * **File naming:** Use verb-first .wf.md convention
216
+ * **Cross-references:** Accurate links to related content
217
+ * **Version control:** Proper git handling for new files
218
+
219
+ ## Success Criteria
220
+
221
+ * Workflow file created with proper naming and structure
222
+ * All required sections present and complete
223
+ * Embedded content follows template standards
224
+ * Instructions are clear, actionable, and self-contained
225
+ * No external dependencies or broken references
226
+ * Quality review completed and issues addressed
227
+ * Integration with existing documentation complete
228
+
229
+ ## Common Patterns
230
+
231
+ ### Planning-Heavy Workflows
232
+
233
+ For complex processes requiring significant upfront analysis:
234
+
235
+ 1. Include substantial planning steps
236
+ 2. Use embedded tests for validation
237
+ 3. Break execution into clear phases
238
+ 4. Provide rollback or error recovery
239
+
240
+ ### Batch Processing Workflows
241
+
242
+ For operations on multiple items:
243
+
244
+ 1. Include item selection/filtering logic
245
+ 2. Provide progress tracking mechanisms
246
+ 3. Handle partial failures gracefully
247
+ 4. Include summary and reporting steps
248
+
249
+ ### Creation Workflows
250
+
251
+ For generating new content:
252
+
253
+ 1. Embed relevant templates directly
254
+ 2. Include file naming conventions
255
+ 3. Provide directory structure guidance
256
+ 4. Include validation and quality checks
257
+
258
+ ## Renaming a Skill or Workflow
259
+
260
+ When renaming a workflow, update workflow references first. When renaming a skill, treat it as a
261
+ provider-agent and `ace-assign` discovery concern rather than a general markdown usage path.
262
+
263
+ 1. **SkillPromptBuilder** — grep for the old name in runner code:
264
+ ```bash
265
+ grep -r "ace:old-name" ace-test-runner-e2e/lib/
266
+ ```
267
+ Update `build_skill_prompt` and `build_tc_skill_prompt` in
268
+ `ace-test-runner-e2e/lib/ace/test/end_to_end_runner/atoms/skill_prompt_builder.rb`.
269
+
270
+ 2. **Provider projections** — verify provider integration packages still resolve the renamed skill:
271
+ ```bash
272
+ rg -n "<skill-dir-name>|old-name" ace-handbook ace-handbook-integration-* ace-assign
273
+ ```
274
+ Update projection docs and any provider metadata that still reference the old name.
275
+
276
+ 3. **Handbook references** — grep for old name across all workflow instructions:
277
+ ```bash
278
+ grep -r "ace:old-name" ace-*/handbook/
279
+ ```
280
+
281
+ 4. **Tests** — run the runner unit tests to confirm no remaining string drift:
282
+ ```bash
283
+ ace-test ace-test-runner-e2e
284
+ ```
285
+
286
+ > **Why this matters**: `SkillPromptBuilder` hardcodes the skill name as a string.
287
+ > A rename without updating this file causes 100% E2E test failures with "Unknown error"
288
+ > because Claude Code receives a reference to a non-existent skill.
289
+
290
+ ## Usage Example
291
+
292
+ > "Create a workflow instruction for automating database migrations in our Ruby on Rails application"
@@ -0,0 +1,328 @@
1
+ ---
2
+ doc-type: workflow
3
+ title: Parallel Research Workflow
4
+ purpose: Documentation for ace-handbook/handbook/workflow-instructions/handbook/parallel-research.wf.md
5
+ ace-docs:
6
+ last-updated: 2026-03-12
7
+ last-checked: 2026-03-21
8
+ ---
9
+
10
+ # Parallel Research Workflow
11
+
12
+ ## Goal
13
+
14
+ Set up and execute parallel research across multiple AI agents, producing consistent outputs ready for synthesis.
15
+
16
+ ## Prerequisites
17
+
18
+ - Clear research question or topic defined
19
+ - Access to multiple AI agents (e.g., Claude Code, Gemini CLI, Codex CLI)
20
+ - Output folder for research results
21
+ - Understanding of multi-agent research principles (see `guide://multi-agent-research`)
22
+
23
+ ## Project Context Loading
24
+
25
+ - Load multi-agent research guide: `ace-bundle guide://multi-agent-research`
26
+ - Check existing research folder structure if continuing previous work
27
+
28
+ ## High-Level Execution Plan
29
+
30
+ ### Phase 1: Setup
31
+ - [ ] Define research question clearly
32
+ - [ ] Select agents (quality > diversity)
33
+ - [ ] Create shared context and materials
34
+ - [ ] Prepare consistent prompt template
35
+
36
+ ### Phase 2: Dispatch
37
+ - [ ] Create output folder structure
38
+ - [ ] Launch parallel research with identical prompts
39
+ - [ ] Assign unique timestamps to each agent
40
+
41
+ ### Phase 3: Monitor
42
+ - [ ] Track agent completion
43
+ - [ ] Handle failures/retries
44
+ - [ ] Collect all outputs
45
+
46
+ ### Phase 4: Cross-Review
47
+ - [ ] Distribute reports to all agents
48
+ - [ ] Each agent reviews peer reports
49
+ - [ ] Collect enhanced reports
50
+
51
+ ### Phase 5: Handoff
52
+ - [ ] Verify all outputs collected
53
+ - [ ] Prepare for synthesis phase
54
+ - [ ] Invoke synthesize-research workflow
55
+
56
+ ## Process Steps
57
+
58
+ ### Phase 1: Setup
59
+
60
+ 1. **Define Research Question**
61
+ - Write a clear, specific research question
62
+ - Define the scope and boundaries
63
+ - List expected deliverables (report, guides, workflows, etc.)
64
+ - Identify any constraints or requirements
65
+
66
+ 2. **Select Agents**
67
+
68
+ Follow quality > diversity principle:
69
+ - Each agent should be capable of completing the task solo
70
+ - Prefer agents with complementary strengths
71
+ - Avoid adding weak agents just for diversity
72
+
73
+ **Recommended configurations:**
74
+ | Research Type | Suggested Agents |
75
+ |---------------|------------------|
76
+ | Code analysis | Claude, Codex, Gemini |
77
+ | Technical docs | Claude, Gemini |
78
+ | Architecture | Claude, Gemini, GPT-4 |
79
+
80
+ 3. **Create Shared Context**
81
+ - Gather all relevant background materials
82
+ - Prepare codebase context if needed
83
+ - Document any prior research or decisions
84
+ - Create shared reference materials
85
+
86
+ 4. **Prepare Prompt Template**
87
+
88
+ Use the embedded template below for consistency:
89
+
90
+ ### Phase 2: Dispatch
91
+
92
+ 1. **Create Output Folder Structure**
93
+ ```
94
+ {task}/research/
95
+ ├── context/ # Shared materials
96
+ │ ├── background.md
97
+ │ └── references/
98
+ └── agents/ # Will contain agent outputs
99
+ ```
100
+
101
+ 2. **Generate Timestamps**
102
+ - Use `ace-b36ts` or similar for unique IDs
103
+ - Format: `{6-char-timestamp}-{agent-name}`
104
+ - Example: `8ous1t-claude`, `8ous2a-gemini`
105
+
106
+ 3. **Launch Parallel Research**
107
+ - Send identical prompts to each agent
108
+ - Include shared context materials
109
+ - Specify output location and format
110
+ - Start agents in parallel when possible
111
+
112
+ 4. **Record Launch Details**
113
+ ```markdown
114
+ ## Research Launch Log
115
+ | Agent | Model | Timestamp | Status |
116
+ |-------|-------|-----------|--------|
117
+ | Claude | claude-3-opus | 8ous1t | launched |
118
+ | Gemini | gemini-pro | 8ous2a | launched |
119
+ | Codex | gpt-4 | 8ous3b | launched |
120
+ ```
121
+
122
+ ### Phase 3: Monitor
123
+
124
+ 1. **Track Completion**
125
+ - Check each agent's progress
126
+ - Note any errors or failures
127
+ - Record completion times
128
+
129
+ 2. **Handle Failures**
130
+ - If an agent fails, assess cause
131
+ - Retry with adjusted parameters if needed
132
+ - Document any issues for future reference
133
+
134
+ 3. **Collect Outputs**
135
+ - Verify each agent produced expected deliverables
136
+ - Move outputs to standard locations:
137
+ ```
138
+ {task}/research/
139
+ ├── {ts1}-{agent1}-report.md
140
+ ├── {ts1}-{agent1}-supplementary/
141
+ ├── {ts2}-{agent2}-report.md
142
+ ├── {ts2}-{agent2}-supplementary/
143
+ └── ...
144
+ ```
145
+
146
+ ### Phase 4: Cross-Review
147
+
148
+ 1. **Distribute Reports**
149
+ - Each agent receives all other agents' reports
150
+ - Include original shared context for reference
151
+
152
+ 2. **Execute Cross-Review**
153
+ - Use the cross-review prompt template below
154
+ - Each agent identifies:
155
+ - Points of agreement
156
+ - Points of disagreement
157
+ - Gaps in other reports
158
+ - Improvements to incorporate
159
+
160
+ 3. **Collect Enhanced Reports**
161
+ - Each agent produces updated report
162
+ - Updates should include attribution for borrowed ideas
163
+ - Save as `{ts}-{agent}-report-enhanced.md`
164
+
165
+ ### Phase 5: Handoff
166
+
167
+ 1. **Verify Completeness**
168
+ - All agents have submitted reports
169
+ - Cross-review phase completed
170
+ - Enhanced reports collected
171
+
172
+ 2. **Prepare Synthesis Folder**
173
+ ```
174
+ {task}/research/
175
+ ├── {ts1}-{agent1}-report.md
176
+ ├── {ts1}-{agent1}-report-enhanced.md
177
+ ├── {ts1}-{agent1}-supplementary/
178
+ ├── {ts2}-{agent2}-report.md
179
+ ├── {ts2}-{agent2}-report-enhanced.md
180
+ ├── {ts2}-{agent2}-supplementary/
181
+ └── synthesis/ # Ready for next phase
182
+ ```
183
+
184
+ 3. **Load Synthesis Workflow**
185
+ - Run `ace-bundle wfi://handbook/synthesize-research`
186
+ - Continue with the research folder prepared in this workflow
187
+
188
+ ## Embedded Templates
189
+
190
+ ### Research Prompt Template
191
+
192
+ ```markdown
193
+ ## Research Task
194
+
195
+ **Topic**: {topic}
196
+
197
+ **Research Question**: {clear research question}
198
+
199
+ **Scope**:
200
+ - In scope: {what to include}
201
+ - Out of scope: {what to exclude}
202
+
203
+ **Expected Outputs**:
204
+ 1. Main research report (comprehensive findings)
205
+ 2. Supplementary artifacts as appropriate:
206
+ - Guides (`.g.md`) for conceptual knowledge
207
+ - Workflows (`.wf.md`) for procedural instructions
208
+ - Templates for reusable structures
209
+
210
+ ## Context
211
+
212
+ {shared context materials}
213
+
214
+ ## Deliverables Format
215
+
216
+ ### Report Structure
217
+ 1. Executive Summary
218
+ 2. Methodology
219
+ 3. Findings (organized by theme)
220
+ 4. Recommendations
221
+ 5. References
222
+
223
+ ### File Naming
224
+ - Report: `{timestamp}-{agent}-report.md`
225
+ - Artifacts: `{timestamp}-{agent}-supplementary/{artifact-name}`
226
+
227
+ ## Quality Expectations
228
+ - Comprehensive coverage of topic
229
+ - Evidence-based findings with sources
230
+ - Actionable recommendations
231
+ - Clear structure and organization
232
+ ```
233
+
234
+ ### Cross-Review Prompt Template
235
+
236
+ ```markdown
237
+ ## Cross-Review Task
238
+
239
+ You have completed initial research on: {topic}
240
+
241
+ Your report: {path to your report}
242
+
243
+ ## Peer Reports
244
+
245
+ Below are reports from peer agents. Review them to:
246
+ 1. Identify agreements (increases confidence)
247
+ 2. Note disagreements (requires resolution)
248
+ 3. Find gaps in your report that peers covered
249
+ 4. Identify unique insights worth incorporating
250
+
251
+ ### Agent A Report
252
+ {content or path}
253
+
254
+ ### Agent B Report
255
+ {content or path}
256
+
257
+ ## Your Task
258
+
259
+ 1. **Document Agreements**
260
+ - List 3-5 key points all reports agree on
261
+
262
+ 2. **Document Disagreements**
263
+ - List any conflicting claims or recommendations
264
+ - Evaluate which position seems stronger and why
265
+
266
+ 3. **Identify Gaps**
267
+ - What did peer reports cover that yours missed?
268
+ - What unique insights do peers offer?
269
+
270
+ 4. **Enhance Your Report**
271
+ - Incorporate valuable insights from peers
272
+ - Credit sources: "As noted by [Agent X]..."
273
+ - Address any gaps identified
274
+ - Strengthen weak areas based on peer feedback
275
+
276
+ 5. **Output Enhanced Report**
277
+ - Save as: `{timestamp}-{agent}-report-enhanced.md`
278
+ - Include attribution for borrowed ideas
279
+ ```
280
+
281
+ ## Success Criteria
282
+
283
+ - All selected agents completed research
284
+ - Outputs follow consistent format
285
+ - Cross-review phase completed
286
+ - Enhanced reports collected
287
+ - Research folder ready for synthesis
288
+ - No critical failures unaddressed
289
+
290
+ ## Error Handling
291
+
292
+ **Agent Failure:**
293
+ - Document the failure with error details
294
+ - Assess if retry is worthwhile
295
+ - If agent cannot complete, proceed with remaining agents
296
+ - Note reduced agent count in synthesis
297
+
298
+ **Inconsistent Outputs:**
299
+ - If outputs don't match expected format, request correction
300
+ - Document any deviations for synthesis phase
301
+
302
+ **Time Constraints:**
303
+ - If time-limited, prioritize initial reports over cross-review
304
+ - Cross-review can be abbreviated or skipped if necessary
305
+ - Document any shortcuts taken
306
+
307
+ ## Usage Examples
308
+
309
+ ### Basic Usage
310
+ ```bash
311
+ ace-bundle wfi://handbook/parallel-research
312
+ ```
313
+
314
+ ### With Agent Selection
315
+ ```bash
316
+ ace-bundle wfi://handbook/parallel-research
317
+ ```
318
+
319
+ ### Full Specification
320
+ ```bash
321
+ ace-bundle wfi://handbook/parallel-research
322
+ ```
323
+
324
+ ## Related Resources
325
+
326
+ - [Multi-Agent Research Guide](guide://multi-agent-research) - When and why to use multi-agent research
327
+ - [Synthesize Research Workflow](wfi://handbook/synthesize-research) - Next phase after parallel research
328
+ - [Research Comparison Template](tmpl://research-comparison) - Template for synthesis phase