Researcher v2.0 (USACF Research Generator)
Voice-to-research engineering for Claude Code. Transform rough questions into executable USACF swarm configurations.
Changelog
| Version |
Changes |
| v2.0 |
Full USACF integration: algorithm selection, claude-flow commands, adversarial review, fact-checking, memory namespaces |
| v1.0 |
Initial version based on Reprompter v4.1 |
Purpose
Turn your rough research questions into complete, executable multi-agent research prompts using the USACF framework.
The Problem:
- Research questions are often vague and unstructured
- Manual setup of research swarms is tedious
- Missing adversarial review leads to blind spots
- No systematic algorithm selection
The Solution:
Smart interview → USACF super-prompt with all phases, agents, and commands.
Process (4 steps)
Step 1: Receive raw input
Accept the user's rough research question (dictated, typed messily, or incomplete).
Trigger words: research, investigate, deep dive, analyze, research this
Step 2: Complexity detection
Auto-detect complexity to select algorithm:
- Simple (< 20 words, single topic) → CoT, 1-3 agents
- Medium (branching, comparison) → ToT, 4-8 agents
- Complex (comprehensive, multi-domain) → GoT, 9-15 agents
Step 3: Smart interview (gather user input)
Gather:
- Research Title - Name for this research
- Subject - What we're researching
- Subject Type - Product / Software / Business / Process / Organization
- Research Type - Competitive / Gap / Technical / Due Diligence / Market
- Objectives - What to find out (1-20, one per line)
- Constraints - Focus areas, limitations (optional)
- Depth - CoT / ToT / GoT
- Output - Brief / Full Report / Action Plan / Raw
Step 4: Generate USACF super-prompt + score
Generate complete executable configuration with:
- Initialization commands
- All phase agents (Discovery, Analysis, Adversarial, Synthesis)
- Memory operations
- Final report generator
- Quality score comparison
CRITICAL: MUST GENERATE COMPLETE SUPER-PROMPT
After interview completes, you MUST immediately:
- Select algorithm (CoT/ToT/GoT) based on complexity
- Generate full USACF super-prompt with ALL phases
- Include claude-flow commands for every operation
- Add adversarial review agents (red-team, fact-checker)
- Show quality score (before/after comparison)
- Offer to execute or copy
WRONG: Generate simple prompt without agents
RIGHT: Generate full USACF config with all phases, agents, memory ops
Algorithm selection matrix
| Complexity |
Algorithm |
Topology |
Agents |
When to Use |
| Simple |
Chain-of-Thought (CoT) |
Star |
1-3 |
"What is X?" Single topic |
| Medium |
Tree-of-Thought (ToT) |
Hierarchical |
4-8 |
"Compare X vs Y" Branching |
| Complex |
Graph-of-Thought (GoT) |
Mesh/Hive |
9-15+ |
"Comprehensive analysis" |
Complexity Indicators:
- Simple: Single topic, factual question, < 20 words
- Medium: "compare", "vs", "evaluate", "options"
- Complex: "comprehensive", "gaps and opportunities", multiple domains
USACF phases (all required for complex research)
Phase 0: Initialization
npx claude-flow@alpha init --force
npx claude-flow@alpha swarm init --topology {topology} --max-agents {N}
npx claude-flow@alpha memory store "session/config" '{...}' --namespace search
Phase 0.5: Meta-analysis
- Step-back prompting (principles, criteria)
- Self-ask decomposition (15-20 questions)
- Research planning (ReWOO)
Phase 1: Discovery (Parallel)
- component-identifier
- hierarchy-analyzer
- interface-mapper
- flow-tracer
Phase 2: Analysis (Parallel)
- 6 gap hunters (quality, performance, security, structural, capability, UX)
- 4 risk analysts (FMEA, edge cases, vulnerabilities, reliability)
Phase 2.5: Adversarial review (critical)
- red-team-reviewer: Challenge ALL findings
- fact-checker: RAG verification with web_search
- coordinator: Integrate feedback, update confidence
Phase 3: Synthesis (Parallel)
- quick-win-generator (0-3 months)
- strategic-generator (3-12 months)
- transformational-generator (12-36 months)
- pareto-optimizer (multi-objective portfolios)
Phase 4: Final report
- Ultra-brief (3 sentences)
- Executive summary
- Top 10 findings with confidence
- Recommended actions by horizon
- Limitations & uncertainties
Memory namespace convention
All agents store to namespaced memory:
# Session
session/config # Research configuration
# Meta
meta/principles # Core principles
meta/questions # Decomposed questions
meta/research-plan # Planned tasks
# Discovery
discovery/components # Identified components
discovery/hierarchy # Structural map
discovery/interfaces # APIs/contracts
discovery/flows # Data/control flows
# Gaps
gaps/quality # Quality gaps
gaps/performance # Performance gaps
gaps/security # Security gaps
# Risks
risks/fmea # Failure mode analysis
risks/edge-cases # Edge cases
risks/vulnerabilities # Security vulnerabilities
# Adversarial
adversarial/critiques # Red team challenges
adversarial/fact-check # Verified claims
# Opportunities
opportunities/quick-wins # 0-3 month wins
opportunities/strategic # 3-12 month plays
opportunities/transformational # 12-36 month bets
opportunities/pareto-recommendation # Optimal portfolio
# Output
output/final-report # Comprehensive report
Quality scoring
Always show before/after metrics:
| Dimension |
Before |
After |
Change |
| Clarity |
X/10 |
X/10 |
+X% |
| Algorithm Selection |
0/10 |
10/10 |
+∞ |
| Agent Design |
0/10 |
9/10 |
+∞ |
| Memory Ops |
0/10 |
10/10 |
+∞ |
| Adversarial |
0/10 |
9/10 |
+∞ |
| Fact Checking |
0/10 |
8/10 |
+∞ |
| Overall |
X/10 |
9+/10 |
+2000%+ |
Example
Before (rough input):
"look into what solana is doing with AI and how we compare"
After (USACF super-prompt):
# USACF Research: Solana AI Competitive Analysis
## Configuration
- Algorithm: ToT (medium complexity - comparison)
- Topology: Hierarchical
- Agents: 8
- Output: Executive Brief
## Phase 0: Initialization
[claude-flow init commands]
## Phase 1: Discovery
[4 parallel agents with memory stores]
## Phase 2: Analysis
[Gap hunters + risk analysts]
## Phase 2.5: Adversarial
[Red team + fact checker]
## Phase 3: Synthesis
[Opportunity generators + pareto optimizer]
## Phase 4: Report
[Final report generator]
Quality: 1.2/10 → 9.3/10 (+675%)
Tips for best results
- Be specific about competitors - Name them in the input
- Mention constraints early - "focus on Q1", "executive-level"
- State objectives - Even rough ones help
- Say "expand" - For full interview on simple queries
- Say "quick" - To skip interview for simple research
Comparison: Reprompter vs Researcher
| Aspect |
Reprompter |
Researcher |
| Trigger |
"reprompt" |
"research" / "researcher" |
| Purpose |
General prompts |
Research prompts |
| Output |
Structured prompt |
USACF swarm config |
| Agents |
None |
8-15 parallel agents |
| Memory |
No |
Full namespace system |
| Adversarial |
No |
Red team + fact checker |
| Algorithm |
No |
CoT/ToT/GoT selection |
1---
2name: research-reprompter
3description: |
4 Transform rough research questions into executable USACF research prompts.
5 Use when user says "research", "research this", "investigate", "deep dive",
6 "researcher", or pastes a research topic. Generates complete multi-agent swarm
7 configuration with algorithm selection, claude-flow commands, and adversarial review.
8compatibility: |
9 Full features require Claude Code with claude-flow installed (npx claude-flow@alpha).
10 Core prompt generation works on all Claude surfaces.
11metadata:
12 source: https://skillmd.com/skills/modbender/research-reprompter
13 version: 2.0.0
14---
15
16# Researcher v2.0 (USACF Research Generator)
17
18> **Voice-to-research engineering for Claude Code. Transform rough questions into executable USACF swarm configurations.**
19
20## Changelog
21
22| Version | Changes |
23|---------|---------|
24| **v2.0** | Full USACF integration: algorithm selection, claude-flow commands, adversarial review, fact-checking, memory namespaces |
25| v1.0 | Initial version based on Reprompter v4.1 |
26
27## Purpose
28
29Turn your rough research questions into complete, executable multi-agent research prompts using the USACF framework.
30
31**The Problem:**
32- Research questions are often vague and unstructured
33- Manual setup of research swarms is tedious
34- Missing adversarial review leads to blind spots
35- No systematic algorithm selection
36
37**The Solution:**
38Smart interview → USACF super-prompt with all phases, agents, and commands.
39
40---
41
42## Process (4 steps)
43
44### Step 1: Receive raw input
45Accept the user's rough research question (dictated, typed messily, or incomplete).
46
47**Trigger words:** `research`, `investigate`, `deep dive`, `analyze`, `research this`
48
49### Step 2: Complexity detection
50**Auto-detect complexity to select algorithm:**
51- Simple (< 20 words, single topic) → CoT, 1-3 agents
52- Medium (branching, comparison) → ToT, 4-8 agents
53- Complex (comprehensive, multi-domain) → GoT, 9-15 agents
54
55### Step 3: Smart interview (gather user input)
56Gather:
571. **Research Title** - Name for this research
582. **Subject** - What we're researching
593. **Subject Type** - Product / Software / Business / Process / Organization
604. **Research Type** - Competitive / Gap / Technical / Due Diligence / Market
615. **Objectives** - What to find out (1-20, one per line)
626. **Constraints** - Focus areas, limitations (optional)
637. **Depth** - CoT / ToT / GoT
648. **Output** - Brief / Full Report / Action Plan / Raw
65
66### Step 4: Generate USACF super-prompt + score
67Generate complete executable configuration with:
68- Initialization commands
69- All phase agents (Discovery, Analysis, Adversarial, Synthesis)
70- Memory operations
71- Final report generator
72- Quality score comparison
73
74---
75
76## CRITICAL: MUST GENERATE COMPLETE SUPER-PROMPT
77
78**After interview completes, you MUST immediately:**
79
801. **Select algorithm** (CoT/ToT/GoT) based on complexity
812. **Generate full USACF super-prompt** with ALL phases
823. **Include claude-flow commands** for every operation
834. **Add adversarial review agents** (red-team, fact-checker)
845. **Show quality score** (before/after comparison)
856. **Offer to execute or copy**
86
87```text
88WRONG: Generate simple prompt without agents
89RIGHT: Generate full USACF config with all phases, agents, memory ops
90```
91
92---
93
94## Algorithm selection matrix
95
96| Complexity | Algorithm | Topology | Agents | When to Use |
97|------------|-----------|----------|--------|-------------|
98| Simple | Chain-of-Thought (CoT) | Star | 1-3 | "What is X?" Single topic |
99| Medium | Tree-of-Thought (ToT) | Hierarchical | 4-8 | "Compare X vs Y" Branching |
100| Complex | Graph-of-Thought (GoT) | Mesh/Hive | 9-15+ | "Comprehensive analysis" |
101
102**Complexity Indicators:**
103- Simple: Single topic, factual question, < 20 words
104- Medium: "compare", "vs", "evaluate", "options"
105- Complex: "comprehensive", "gaps and opportunities", multiple domains
106
107---
108
109## USACF phases (all required for complex research)
110
111### Phase 0: Initialization
112```bash
113npx claude-flow@alpha init --force
114npx claude-flow@alpha swarm init --topology {topology} --max-agents {N}
115npx claude-flow@alpha memory store "session/config" '{...}' --namespace search
116```
117
118### Phase 0.5: Meta-analysis
119- Step-back prompting (principles, criteria)
120- Self-ask decomposition (15-20 questions)
121- Research planning (ReWOO)
122
123### Phase 1: Discovery (Parallel)
124- component-identifier
125- hierarchy-analyzer
126- interface-mapper
127- flow-tracer
128
129### Phase 2: Analysis (Parallel)
130- 6 gap hunters (quality, performance, security, structural, capability, UX)
131- 4 risk analysts (FMEA, edge cases, vulnerabilities, reliability)
132
133### Phase 2.5: Adversarial review (critical)
134- **red-team-reviewer**: Challenge ALL findings
135- **fact-checker**: RAG verification with web_search
136- **coordinator**: Integrate feedback, update confidence
137
138### Phase 3: Synthesis (Parallel)
139- quick-win-generator (0-3 months)
140- strategic-generator (3-12 months)
141- transformational-generator (12-36 months)
142- pareto-optimizer (multi-objective portfolios)
143
144### Phase 4: Final report
145- Ultra-brief (3 sentences)
146- Executive summary
147- Top 10 findings with confidence
148- Recommended actions by horizon
149- Limitations & uncertainties
150
151---
152
153## Memory namespace convention
154
155All agents store to namespaced memory:
156
157```bash
158# Session
159session/config # Research configuration
160
161# Meta
162meta/principles # Core principles
163meta/questions # Decomposed questions
164meta/research-plan # Planned tasks
165
166# Discovery
167discovery/components # Identified components
168discovery/hierarchy # Structural map
169discovery/interfaces # APIs/contracts
170discovery/flows # Data/control flows
171
172# Gaps
173gaps/quality # Quality gaps
174gaps/performance # Performance gaps
175gaps/security # Security gaps
176
177# Risks
178risks/fmea # Failure mode analysis
179risks/edge-cases # Edge cases
180risks/vulnerabilities # Security vulnerabilities
181
182# Adversarial
183adversarial/critiques # Red team challenges
184adversarial/fact-check # Verified claims
185
186# Opportunities
187opportunities/quick-wins # 0-3 month wins
188opportunities/strategic # 3-12 month plays
189opportunities/transformational # 12-36 month bets
190opportunities/pareto-recommendation # Optimal portfolio
191
192# Output
193output/final-report # Comprehensive report
194```
195
196---
197
198## Quality scoring
199
200**Always show before/after metrics:**
201
202| Dimension | Before | After | Change |
203|-----------|--------|-------|--------|
204| Clarity | X/10 | X/10 | +X% |
205| Algorithm Selection | 0/10 | 10/10 | +∞ |
206| Agent Design | 0/10 | 9/10 | +∞ |
207| Memory Ops | 0/10 | 10/10 | +∞ |
208| Adversarial | 0/10 | 9/10 | +∞ |
209| Fact Checking | 0/10 | 8/10 | +∞ |
210| **Overall** | **X/10** | **9+/10** | **+2000%+** |
211
212---
213
214## Example
215
216**Before (rough input):**
217> "look into what solana is doing with AI and how we compare"
218
219**After (USACF super-prompt):**
220
221```markdown
222# USACF Research: Solana AI Competitive Analysis
223
224## Configuration
225- Algorithm: ToT (medium complexity - comparison)
226- Topology: Hierarchical
227- Agents: 8
228- Output: Executive Brief
229
230## Phase 0: Initialization
231[claude-flow init commands]
232
233## Phase 1: Discovery
234[4 parallel agents with memory stores]
235
236## Phase 2: Analysis
237[Gap hunters + risk analysts]
238
239## Phase 2.5: Adversarial
240[Red team + fact checker]
241
242## Phase 3: Synthesis
243[Opportunity generators + pareto optimizer]
244
245## Phase 4: Report
246[Final report generator]
247
248Quality: 1.2/10 → 9.3/10 (+675%)
249```
250
251---
252
253## Tips for best results
254
255- **Be specific about competitors** - Name them in the input
256- **Mention constraints early** - "focus on Q1", "executive-level"
257- **State objectives** - Even rough ones help
258- **Say "expand"** - For full interview on simple queries
259- **Say "quick"** - To skip interview for simple research
260
261---
262
263## Comparison: Reprompter vs Researcher
264
265| Aspect | Reprompter | Researcher |
266|--------|------------|------------|
267| **Trigger** | "reprompt" | "research" / "researcher" |
268| **Purpose** | General prompts | Research prompts |
269| **Output** | Structured prompt | USACF swarm config |
270| **Agents** | None | 8-15 parallel agents |
271| **Memory** | No | Full namespace system |
272| **Adversarial** | No | Red team + fact checker |
273| **Algorithm** | No | CoT/ToT/GoT selection |