From agent-workflows
Spawns N agents for competitive problem decomposition using distinct lenses (user journey, data flow, failure domain, team boundary, deployment unit); synthesizes comparisons, convergence analysis, and recommended framing.
npx claudepluginhub sjarmak/agent-workflowsThis skill uses the workspace's default tool permissions.
Competitive Problem Decomposition. Spawns N independent agents, each proposing a DIFFERENT decomposition of a problem into subproblems using a distinct structural lens. One decomposes by user journey, another by data flow, another by failure domain, another by team boundary, another by deployment unit. Synthesizes into a comparison of decomposition strategies with convergence analysis and a rec...
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.
Competitive Problem Decomposition. Spawns N independent agents, each proposing a DIFFERENT decomposition of a problem into subproblems using a distinct structural lens. One decomposes by user journey, another by data flow, another by failure domain, another by team boundary, another by deployment unit. Synthesizes into a comparison of decomposition strategies with convergence analysis and a recommended framing.
$ARGUMENTS — format: [N] [path/to/problem.md or inline description] where N is optional decomposition-lens count (default: 5, min 3, max 7)
Extract:
If the input is missing or unclear, ask the user to clarify before proceeding.
If a file path is given: read it and extract the key goals, constraints, stakeholders, technical context, and scope.
If inline: parse the problem description.
Prepare a problem brief that includes:
Present the problem brief 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 gets the same problem brief and a unique decomposition lens — a structural perspective through which to break the problem apart.
Select N from the following (rotate starting selection across invocations to avoid bias; always include a mix of user-facing and system-facing lenses):
Each agent MUST produce:
subagent_type: "general-purpose" (they may need web search or codebase exploration for context)Agent prompt template (customize the lens per agent):
You are a systems analyst decomposing a problem using a specific structural lens.
## Problem Brief
{problem_brief}
## Your Decomposition Lens: {lens_name}
{lens_description}
## Instructions
Decompose the problem using ONLY your assigned lens. Your output must be a complete decomposition tree — not a list of topics, but a structured breakdown where every node has children and every leaf is a concrete, actionable subproblem.
Be SPECIFIC. Reference actual components, stakeholders, and constraints from the problem brief. Do not produce a generic decomposition that could apply to any problem.
## Output Format
### Decomposition: {lens_name}
#### Rationale
[2-3 sentences: why this lens is a good fit for THIS specific problem]
#### Decomposition Tree
- **[Subproblem 1 Name]**: [one-sentence description]
- **[1.1 Name]**: [description]
- **[1.1.1 Name]**: [description]
- **[1.2 Name]**: [description]
- **[1.2.1 Name]**: [description]
- **[Subproblem 2 Name]**: [one-sentence description]
- **[2.1 Name]**: [description]
- ...
[Continue for all top-level subproblems. Go 2-3 levels deep.]
#### Dependency Map
- [Subproblem X] must precede [Subproblem Y] because [reason]
- [Subproblem A] and [Subproblem B] can proceed in parallel because [reason]
[List all critical ordering constraints]
#### What This Decomposition Makes Easy
- [Specific question or task that becomes straightforward]
- ...
#### What This Decomposition Makes Hard
- [Specific concern that gets scattered or buried]
- ...
#### Blind Spots
- [What this decomposition systematically hides or under-weights]
- ...
After ALL agents return, produce the following synthesis:
| Lens | Top-Level Subproblems | Depth | Parallelizable? | Strength | Weakness |
|---|
One row per decomposition. Keep entries concise.
Subproblems that appear across multiple decompositions, possibly under different names. For each convergence point:
These are the highest-confidence subproblems. They should appear in any implementation plan.
Subproblems or concerns that appeared in only ONE decomposition. For each:
| Concern | User Journey | Data Flow | Failure Domain | Team Boundary | Deployment Unit | API Surface | Temporal |
|---|
Mark each cell: "Addressed", "Partial", or "Blind spot". Only include columns for lenses that were actually used. This table reveals which concerns require combining lenses.
Based on the analysis, recommend ONE of the following:
For the recommendation, explain:
For each decomposition, include a 2-3 sentence summary of its most distinctive contribution.
Save the full output to a file fracture_{slugified_topic}.md in the working directory.
Present the comparison table, convergence points, and recommended decomposition to the user. Ask:
Suggest next steps based on the pipeline:
/diverge to explore solution approaches within the chosen decomposition/brainstorm on the most ambiguous subproblems/premortem on the recommended framing before proceedingSits before /diverge as a framing step. The question /fracture answers is "how should we structure this problem?" — only after that is answered should you ask "how should we solve it?"
/brainstorm (explore) -> /fracture (frame) -> /diverge (solve) -> /converge (decide)
Also useful after /distill when a large artifact reveals a complex problem that needs structural decomposition before action.