From agent-workflows
Builds pipelines chaining workflow skills for a goal by spawning parallel agents with stances like speed, risk, and thoroughness optimized. Use for complex multi-step dev tasks.
npx claudepluginhub sjarmak/agent-workflowsThis skill uses the workspace's default tool permissions.
Workflow Pipeline Builder. A meta-workflow that takes a goal and designs which existing workflow skills to chain together, in what order, with what parameters. Spawns agents to independently propose different workflow compositions for the same goal. The only workflow that operates on the WORKFLOW LAYER rather than the problem layer. Produces a recommended pipeline with rationale.
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.
Workflow Pipeline Builder. A meta-workflow that takes a goal and designs which existing workflow skills to chain together, in what order, with what parameters. Spawns agents to independently propose different workflow compositions for the same goal. The only workflow that operates on the WORKFLOW LAYER rather than the problem layer. Produces a recommended pipeline with rationale.
$ARGUMENTS — format: [N] "goal description" where N is optional pipeline-proposal count (default: 3, min 2, max 5)
Extract:
If the goal is missing or unclear, ask the user to clarify before proceeding.
Before spawning agents, classify the goal along five dimensions. For each dimension, assign a rating and a one-sentence justification:
| Dimension | Rating | Justification |
|---|---|---|
| Novelty | Low / Medium / High | How much prior art exists for this kind of problem? |
| Urgency | Low / Medium / High | How time-sensitive is delivery? |
| Risk Level | Low / Medium / High | What is the blast radius if the solution is wrong? |
| Team Size | Solo / Small (2-4) / Large (5+) | How many people will execute? |
| Reversibility | Easy / Moderate / Hard | How costly is it to undo decisions made during implementation? |
Prepare a goal analysis brief that includes:
Present the goal analysis 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 receives the goal analysis brief plus a unique optimization stance — the lens through which they design their pipeline. Assign stances 1 through N from this pool:
Each agent MUST receive the full skill catalog (below) and use ONLY skills from this list:
SKILL CATALOG (19 skills):
brainstorm — Constrained divergent ideation with shape-uniqueness enforcement
diverge — Multi-perspective parallel research from independent angles
converge — Structured debate and refinement via agent teams
premortem — Prospective failure narratives to surface risks before building
stress-test — Parallel adversarial attack surface analysis
diverge-prototype — Parallel prototyping in isolated worktrees
crossbreed — Structural recombination of existing prototypes or designs
scaffold — Build-order planning via competing sequencing strategies
distill — Progressive compression and essence extraction from large artifacts
bisect — Binary search for root cause of a regression or failure
entangle — Dependent co-design of coupled systems
constraint-inversion — What-if constraint removal to find hidden possibilities
fracture — Competitive problem decomposition into subproblems
replicate — Independent verification by reimplementation
contract — Specification generation from examples
diffuse — Blast radius impact mapping for changes
migrate — Parallel migration strategy exploration
focus — Single-task execution loop (plan→execute→simplify→review→close) with Beads context tracking
compose — (this skill) Recursive pipeline composition for sub-goals
Each agent MUST produce:
Agent prompt template (customize the stance per agent):
You are a workflow architect. Given a goal, you design which workflow skills to chain together, in what order, with what parameters.
## Goal Analysis
{goal_analysis_brief}
## Your Optimization Stance: {stance_name}
{stance_description}
Motto: "{motto}"
## Skill Catalog
{skill_catalog}
Design a complete workflow pipeline for this goal using your assigned optimization stance. Select skills ONLY from the catalog above. Order them to best serve your stance given this goal's characteristics (novelty, urgency, risk, team size, reversibility).
IMPORTANT:
- You may use any subset of skills — you do NOT need to use all of them.
- You may use the same skill more than once if it serves different purposes at different pipeline stages.
- You may use "compose" recursively ONLY if the goal has a clearly identified sub-goal that itself warrants pipeline planning. Do NOT use "compose" as the first step of a top-level pipeline — it is for delegating sub-goal planning, not for re-planning the current goal.
- Every skill you include must have a clear justification for its position in the sequence.
## Output Format
Return your pipeline in this exact structure:
### Pipeline: {pipeline_name}
**Optimization stance:** {stance_name} — "{motto}"
#### Ordered Skill Sequence
| Step | Skill | Arguments | Output Artifact | Why Here |
|------|-------|-----------|-----------------|----------|
| 1 | {skill} | {args} | {output} | {rationale} |
| 2 | ... | ... | ... | ... |
#### What This Pipeline Optimizes For
{1-2 sentences}
#### What This Pipeline Sacrifices
{1-2 sentences}
#### Goal Dimension Fit
- Novelty ({rating}): {how pipeline handles it}
- Urgency ({rating}): {how pipeline handles it}
- Risk ({rating}): {how pipeline handles it}
- Team Size ({rating}): {how pipeline handles it}
- Reversibility ({rating}): {how pipeline handles it}
#### Estimated Duration
{range estimate with assumptions}
Use subagent_type: "general-purpose" and do NOT use worktrees (pipeline design only, no code).
After ALL agents return, produce a unified comparison:
| Dimension | Pipeline A | Pipeline B | Pipeline C | ... |
|---|---|---|---|---|
| Total skills used | ... | ... | ... | |
| Estimated duration | ... | ... | ... | |
| First skill | ... | ... | ... | |
| Last skill before implementation | ... | ... | ... | |
| Risk mitigation steps | ... | ... | ... | |
| Divergent exploration steps | ... | ... | ... | |
| Unique skills (not in other pipelines) | ... | ... | ... |
Skills that appear in ALL proposed pipelines. These are high-confidence inclusions — every optimization stance agreed they are necessary for this goal. For each consensus skill:
Skills that appear in SOME but not all pipelines. For each:
Skills that appear in ONLY ONE pipeline. For each:
Synthesize a recommended pipeline that combines the best insights from all proposals. For each step in the recommended pipeline:
| Step | Skill | Arguments | Rationale | Source |
|---|---|---|---|---|
| 1 | {skill} | {args} | {why this skill at this position} | {which pipeline(s) informed this choice} |
| 2 | ... | ... | ... | ... |
Include:
Save the full analysis to the working directory as compose_{slugified_topic}.md.
Present the recommended pipeline and comparison analysis to the user. Then ask:
If the user confirms, begin executing the recommended pipeline by invoking the first skill with its proposed arguments.
This skill operates at the meta-level, above all other skills. It sits before any other skill as a routing and planning layer:
goal → /compose (design the pipeline) → /skill-1 → /skill-2 → ... → done
It is the only skill that reasons about WHICH skills to use rather than solving the problem directly. It can be invoked at the start of any non-trivial project, or mid-project when the remaining work needs re-planning.