一键导入
research-agents
Launch N parallel research agents that explore different improvement approaches, cross-pollinate ideas, and converge on a unified plan
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Launch N parallel research agents that explore different improvement approaches, cross-pollinate ideas, and converge on a unified plan
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Implement a GitHub issue step by step - ask about the branch, the PR target, and the phases first, then run the work and the review cycle with the review-pr skill. Use whenever the user asks to implement, work on, or execute a GitHub issue.
Create a well-structured GitHub issue with duplicate detection, code verification, and auto-labeling. Use whenever the user asks to create, file, open, log, or raise a GitHub issue, in any wording.
Review a GitHub pull request and post one clear review, with inline comments. The default is collaborative - you analyze deeply, explain the changes in simple terms, ask the user about each finding, and post a review that reflects their decisions. Use when the user asks to review a PR. --no-verdict = programmatic COMMENT-only mode that also writes .reviews/<PR_NUMBER>-review.md (used by implement-issue). --autonomous = unattended review that posts a formal verdict.
Root-cause a bug or a failed fix with evidence, not guesses - brainstorm causes, research them in parallel, confirm one with logs before changing code. Use when a reported behavior needs root-causing or a fix attempt has failed.
Rename or refactor a symbol safely by searching every naming-case variant across code, tests, docs, configs, and JSON. Use when renaming any identifier so no reference is missed.
Author or edit AI-facing instruction files in this repo - AGENTS.md, skills under .claude/skills/, subagents under .claude/agents/, and spawned-agent prompts. Covers the prompt-writing rules for current Claude models, the map-not-manual standard for AGENTS.md, the living-document rule, and when and where to persist a new rule. Use when editing any AI-instruction file.
| name | research-agents |
| description | Launch N parallel research agents that explore different improvement approaches, cross-pollinate ideas, and converge on a unified plan |
Launch several research agents in parallel. Each one explores a different angle of improvement for a feature or area. Then they run rounds of cross-pollination (each agent reads what the others found and builds on it) until they converge on one shared recommendation.
$ARGUMENTS contains the target to improve and optional configuration:
TARGET: The feature, area, or system to improve (e.g., "particle simulation performance", "work cards layout", "photo-editor UX")AGENTS: Number of agents to run (default: 4, range: 2-6)ROUNDS: Number of rounds. Default is 2: one independent round, then one cross-pollination round.ANGLES: Comma-separated research angles (optional. If provided, skip the proposal step in Step 3)Before doing anything else, YOU (the orchestrator: the main agent that runs and coordinates the others) must understand what is being improved. Use parallel exploration agents to read the target codebase:
git log --oneline -20 for the target directory)Produce a concise Target Summary that every research agent will receive as shared context.
This is the most important step. The angles determine the entire research direction.
If the user provided --angles: Use those directly, but still present the plan for confirmation.
If the user did NOT provide angles: Propose angles tailored to this specific target based on Step 2.
Think about what dimensions of improvement actually matter for THIS system:
Different systems call for fundamentally different angles:
| System Type | Example Angles |
|---|---|
| Canvas simulation | Physics accuracy, Rendering performance, Visual quality, Memory/GC optimization |
| Web-project game | Game feel/UX, Performance, Code architecture, Accessibility |
| Layout/rendering | DOM performance, Responsive design, Animation smoothness, Semantic structure |
| Data pipeline | Schema design, Loading performance, Caching strategy, Error resilience |
| CSS/styling | Design token usage, Responsive patterns, Animation performance, Consistency |
These are starting points, not templates. The best angles are specific to the actual code you just read.
Present the user with:
Do NOT proceed until the user confirms or adjusts the plan.
Create this structure inside the target directory:
<target-dir>/planning-workspace/
+-- config.md
+-- target-summary.md
+-- agents/
| +-- agent-1-<name>/
| | +-- brief.md
| +-- agent-2-<name>/
| | +-- brief.md
| +-- ...
+-- synthesis/
config.md: Improvement goal, agent roster, rounds, relevant files, consensus criteria.
target-summary.md: Codebase analysis from Step 2.
brief.md per agent: Tailored research mission, 4-6 concrete tasks, relevant files, web search instructions, awareness of other agents.
Launch ALL agents in parallel in a SINGLE message. Each agent uses the research-agent agent definition with this prompt structure:
You are Agent {N}: "{Agent Name}", one of {TOTAL} parallel research agents
exploring improvements to {TARGET}.
YOUR ANGLE: {specific research focus from brief.md}
THE OTHER AGENTS (for awareness):
- Agent 1: {name}, {angle}
- Agent 2: {name}, {angle}
- ...
ROUND: 1 of {ROUNDS} (independent research)
Do NOT read other agents' folders. They are empty.
SHARED CONTEXT:
{path}/planning-workspace/target-summary.md
YOUR BRIEF:
{path}/planning-workspace/agents/agent-{N}-{name}/brief.md
OUTPUT: Write findings to:
{path}/planning-workspace/agents/agent-{N}-{name}/round-1.md
Use this structure:
## Key Findings
(Main discoveries, grounded in code evidence and/or research)
## Concrete Recommendations
For each:
- What: the change
- Why: evidence/reasoning
- How: implementation sketch (file paths, code changes)
- Risk: what could go wrong
- Effort: S/M/L
## Open Questions
## Interactions With Other Agents' Domains
Launch ALL agents again in parallel:
You are Agent {N}: "{Agent Name}".
ROUND: {R} of {ROUNDS} (cross-pollination)
MANDATORY READING (read ALL before writing):
- Your own Round {R-1}: {path}/agents/agent-{N}-{name}/round-{R-1}.md
- All other agents' Round {R-1} outputs
YOUR TASK:
1. Read every other agent's output carefully
2. Identify reinforcements, conflicts, complements
3. Revise recommendations incorporating cross-agent insights
4. Flag remaining disagreements with reasoning
OUTPUT: Write to {path}/planning-workspace/agents/agent-{N}-{name}/round-{R}.md
Structure:
## Revised Recommendations
## Adopted From Other Agents
## Remaining Disagreements
## Consensus Points
## Top 3 Priorities
When to stop early: If "Remaining Disagreements" sections are short/empty and Top 3 priorities are aligned.
Launch ONE synthesis agent (use research-synthesizer agent):
Read ALL outputs from ALL rounds.
Also read target-summary.md.
SYNTHESIS RULES:
- Consensus points go to the top (high confidence)
- Where agents disagree, make a judgment call, and cite which evidence won
- Preserve the BEST specific details (file paths, code snippets, citations)
- Identify synergies between agents' recommendations
- Flag genuine tradeoffs the user must decide
OUTPUT: Write to {path}/planning-workspace/synthesis/final-plan.md
Structure:
## Executive Summary
## High-Confidence Recommendations (Consensus)
## Strategic Recommendations (Synthesized)
## Implementation Roadmap
Phase 1: quick wins
Phase 2: medium effort
Phase 3: larger changes
## Tradeoffs Requiring User Input
## Sources & References
## Agent Contribution Map
After synthesis:
final-plan.md