From agent-workflows
Spawns N independent agents with unique lenses (prior art, UX, risks) to research topics from diverse angles, synthesizes into unified analysis and PRD. For multi-perspective exploration.
npx claudepluginhub sjarmak/agent-workflowsThis skill uses the workspace's default tool permissions.
Multi-perspective divergent research. Spawns N independent agents with uncorrelated context windows to explore a question from different angles, then auto-synthesizes findings into a unified analysis and PRD.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Multi-perspective divergent research. Spawns N independent agents with uncorrelated context windows to explore a question from different angles, then auto-synthesizes findings into a unified analysis and PRD.
$ARGUMENTS — format: [N] "research question or topic" where N is optional (default: 3)
Extract:
If the research prompt is missing or unclear, ask the user to clarify before proceeding.
Before spawning agents, frame the research space. Write a short research brief (3-5 bullet points) that:
Present this to the user and confirm before proceeding. Adjust if the user gives feedback.
Launch all N agents in parallel using the Agent tool. Each agent MUST:
Have a unique research lens — assign each a distinct angle, perspective, or methodology. Examples:
Receive the same research brief but with their unique lens clearly stated
Be instructed to:
Use subagent_type: "general-purpose" (they need web search, file access, etc.)
Do NOT use worktrees (research only, no code changes)
Agent prompt template (customize the lens per agent):
You are a research agent exploring a question from a specific perspective.
## Research Brief
{research_brief}
## Your Lens: {lens_name}
{lens_description}
Explore this question deeply from your assigned perspective. Use web search, read relevant files in the codebase, and reason carefully.
## Output Format
Return your findings in this exact structure:
### Perspective: {lens_name}
#### Key Findings
1. [Finding with supporting evidence or reasoning]
2. ...
(3-5 findings)
#### Concrete Recommendations
1. [Actionable recommendation with rationale]
2. ...
(2-3 recommendations)
#### Open Questions
- [Questions your research surfaced but couldn't resolve]
#### Confidence Assessment
- Overall confidence: [High/Medium/Low]
- What would increase confidence: [specific next steps]
#### Surprise Factor
- [1-2 insights that were unexpected or counterintuitive]
After ALL agents return, produce a unified analysis:
1. Convergence Points Where did multiple agents independently arrive at similar conclusions? These are high-confidence signals.
2. Divergence Points Where did agents disagree or propose conflicting approaches? Highlight the tension and what drives it.
3. Unique Insights Novel findings that came from only one agent's lens but are valuable. Flag the "surprise factor" items.
4. Consolidated Recommendations Merge and prioritize all recommendations. For each:
5. Open Questions & Risks Aggregated unknowns that need resolution before moving to implementation.
6. Per-Agent Highlights For each agent, include a 2-3 sentence summary of their most distinctive contribution.
Based on the synthesis, draft a mini-PRD markdown file:
# PRD: {topic}
## Problem Statement
{1-2 paragraphs from synthesis}
## Goals & Non-Goals
### Goals
- ...
### Non-Goals
- ...
## Requirements
Each requirement MUST include verifiable acceptance criteria — a concrete condition that can be checked by running a command, reading output, or inspecting behavior. "Works correctly" is not verifiable. "Returns 200 with JSON body containing 'id' field" is.
### Must-Have
- Requirement: ...
- Acceptance: {specific, testable condition}
- ...
### Should-Have
- Requirement: ...
- Acceptance: {specific, testable condition}
- ...
### Nice-to-Have
- Requirement: ...
- Acceptance: {specific, testable condition}
- ...
## Design Considerations
{Key tensions and trade-offs from divergence points}
## Open Questions
{From synthesis}
## Research Provenance
{Which lenses contributed, key convergence/divergence summary}
Save the PRD to the working directory as prd_{slugified_topic}.md.
Present the full synthesis AND the PRD path to the user. Ask if they want to refine the PRD before using it with /diverge-prototype.