Swarm manager workshop

From Vrooli/Vrooli · View interactive version

Swarm manager workshop is an AI agent skill from the GitHub repository Vrooli/Vrooli. Run one workshop round for a backlog item of any kind. Analyze gaps in the current implementation plan, generate targeted decisions and informational items to fill those gaps, self-assess readiness ac

How to use this skill

Skill file

Workshop: Iterative Plan Refinement

Purpose

Run one workshop round for a backlog item of any kind. Analyze gaps in the current implementation plan, generate targeted decisions and informational items to fill those gaps, self-assess readiness across 5 dimensions, and update the draft plan based on accumulated user responses.

Input Context

Required reading: prompt-manager skill read swarm-manager-backlog-tools — folder structure, artifact schemas, and CLI commands for reading/writing backlog files.

Required reading: prompt-manager skill read implementation-plan-authoring — canonical plan structure, mandatory sections, convergence patterns, quality gates, and guardrails for plan.md.

Required reading: prompt-manager skill read plan-skill-discovery — methodology for discovering and embedding relevant skills into the plan

Scope

In scope:

Out of scope:

Output Requirements

All writes via CLI using --stdin with a heredoc:

swarm-manager backlog file-upload --kind {{ITEM_KIND}} --name {{ITEM_NAME}} --path <path> --stdin <<'EOF'
<content>
EOF

Every Round Produces

  1. workshop/round-{{ROUND_NUMBER}}.json — the round file (see schema below)
  2. plan.md — updated implementation plan (create if first round, update if subsequent)

Workshop Round Schema

{
  "round": {{ROUND_NUMBER}},
  "generated_at": "<ISO-8601 timestamp>",
  "mode": "workshop",
  "pending_synthesis": false,
  "readiness": {
    "problem_clarity": 0,
    "scope_defined": 0,
    "approach_solid": 0,
    "testable": 0,
    "risk_awareness": 0
  },
  "items": [
    {
      "id": "d1",
      "type": "decision",
      "topic": "Authentication approach",
      "context": "Why this matters and what was found",
      "options": [
        {"key": "A", "label": "OAuth with Google", "rationale": "Lowest effort, covers 90% of users", "recommended": true},
        {"key": "B", "label": "JWT with custom auth", "rationale": "More control, offline support"},
        {"key": "C", "label": "Other", "rationale": "Provide your own approach"}
      ],
      "selected": null,
      "freeform": null,
      "notes": null
    },
    {
      "id": "i1",
      "type": "info",
      "text": "Found that the middleware already handles session management"
    }
  ],
  "plan_updates": "Brief description of what plan sections were created or updated this round"
}

Every workshop-generated round must set "mode": "workshop" and "pending_synthesis": false. Swarm Manager flips pending_synthesis to true only after the user saves fully-answered decisions.

Item Types

| Type | Purpose | User Action |

|------|---------|-------------|

| decision | A decision point with multiple lettered options for the user to choose from. The agent presents researched alternatives with rationale for each. | Select an option (A, B, C...) or choose "Other" and provide freeform input. Optional notes. |

| info | Share a finding, observation, or important context | Read-only — no action needed |

Decision Item Guidelines

Readiness Dimensions

Score each dimension honestly from 0-3 based on the CURRENT state of the plan:

| Dimension | What It Measures | 0 | 1 | 2 | 3 |

|-----------|-----------------|---|---|---|---|

| problem_clarity | Is the problem/goal well understood? | No information | Vague idea | Clear problem, some unknowns | Fully understood, well-articulated |

| scope_defined | Are boundaries and non-goals defined? | No acceptance criteria set | Target area identified in description/plan but no acceptance_allow patterns | acceptance_allow defined, covers planned changes | Both acceptance_allow and acceptance_deny defined, plan changes align with globs |

| approach_solid | Is there a clear implementation strategy? | No approach | General direction | Concrete strategy, some details TBD | Detailed phased plan with dependencies |

| testable | Do we know how to verify success? | No test plan | Vague success criteria | Specific test cases identified | Complete test plan with acceptance criteria |

| risk_awareness | Are blockers and unknowns identified? | Not considered | Some risks noted | Key risks with mitigations | Comprehensive risk matrix |

Scoring rules:

Implementation Plan Format

The plan.md file structure, mandatory sections, convergence patterns, quality gates, and guardrails are defined by the implementation-plan-authoring skill (loaded via required reading above). Follow that skill exactly when creating or updating plan.md.

Workshop-specific notes:

Instructions

You are running workshop round {{ROUND_NUMBER}} for a swarm-manager backlog item.

Item context:

Processing Steps

  1. Read all available context

```bash

swarm-manager backlog get --kind {{ITEM_KIND}} --name {{ITEM_NAME}}

swarm-manager backlog files --kind {{ITEM_KIND}} --name {{ITEM_NAME}}

```

Then read each available artifact:

```bash

swarm-manager initiatives get --name {{ITEM_INITIATIVE}}

swarm-manager initiatives files --name {{ITEM_INITIATIVE}}

```

Read any files present (orchestration summaries, decision logs, strategy docs). Use initiative context to align decisions with the broader initiative goals and understand how this item relates to sibling items.

  1. Analyze prior rounds (if ROUND_NUMBER > 1)

Review all prior workshop rounds. For each:

  1. Auto-populate acceptance fields

Read acceptance_allow and acceptance_deny from spec.json:

  1. Identify plan gaps

Compare the current plan against the 5 readiness dimensions:

  1. Discover relevant skills

Apply the plan-skill-discovery methodology to find domain-relevant skills:

Kind-specific required skills (always include in plan's Required Reading):

| Item Kind | Required Skill | Why |

|-----------|---------------|-----|

| idea | scenario-generation | Scenario scaffolding, PRD/requirements tooling, ecosystem-manager integration |

| fix | scientific-debugging | Hypothesis-driven root cause analysis, experiment design, regression test planning |

For execute and chore kinds, no kind-specific skill is required — discovery is sufficient. Research items use swarm-manager-workshop-research and are not handled by this skill.

When the item kind matches a row above, embed that skill in plan.md's Required Reading in addition to whatever discovery finds. This is not optional — it ensures operational knowledge is always available to the executing agent.

Suggested skills from the item creator:

{{#if SUGGESTED_SKILLS}}

This item includes suggested skills from the agent that created it: {{SUGGESTED_SKILLS}}

Read these skills before proceeding: prompt-manager skill read {{SUGGESTED_SKILLS}}

These are additive — include them in plan.md's Required Reading alongside kind-specific required skills AND whatever plan-skill-discovery finds. Do NOT skip discovery just because suggested skills exist. The suggested skills provide domain context from the creating agent; discovery finds additional relevant skills the creator may not have considered.

{{/if}}

On round 1 (full discovery):

a. Classify the work using the item's kind, title, description, and tags

b. Decompose into 2-5 focused concepts. For example, for a fix item titled "SQLite migration fails on large tables":

c. Run unified discovery with all concepts:

```bash

prompt-manager discover "<concept-1>" "<concept-2>" "<concept-3>" --complexity moderate

```

d. Read top candidates from the discover output:

```bash

prompt-manager skill read <id-1> <id-2> <id-3> -output combined

```

e. Assess relevance autonomously — include only skills that will materially improve the plan

f. Embed discovered skills as Required Reading entries in plan.md (alongside any kind-specific required skills from above)

On subsequent rounds (conditional re-discovery):

Use discovered knowledge:

  1. Generate workshop items

Based on the gaps identified, produce a focused set of items:

Target counts by item kind:

| Kind | Decisions | Info | Focus |

|------|-----------|------|-------|

| idea | 4-7 | 0-2 | Scope, feasibility, architecture, user value |

| fix | 2-4 | 1-2 | Reproduction, root cause, fix strategy, regression risk |

| execute | 3-5 | 0-1 | Requirements clarity, decomposition, verification |

| chore | 2-4 | 0-1 | Scope boundaries, approach, completion criteria |

> Note: Research items use swarm-manager-workshop-research instead of this skill.

Quality rules:

  1. Score readiness

Evaluate each dimension honestly based on the current state of the plan AFTER incorporating answers from prior rounds. Use the scoring rubric above.

  1. Update plan.md

Incorporate all settled information into the plan:

```bash

swarm-manager backlog file-upload --kind {{ITEM_KIND}} --name {{ITEM_NAME}} --path plan.md --stdin <<'EOF'

<updated plan content>

EOF

```

  1. Write the round file

```bash

swarm-manager backlog file-upload --kind {{ITEM_KIND}} --name {{ITEM_NAME}} --path workshop/round-{{ROUND_NUMBER}}.json --stdin <<'EOF'

<round JSON>

EOF

```

Use zero-padded 3-digit round numbers: round-001.json, round-002.json, etc.

  1. Verify outputs

```bash

swarm-manager backlog files --kind {{ITEM_KIND}} --name {{ITEM_NAME}}

```

Confirm both plan.md and workshop/round-{{ROUND_NUMBER}}.json were created.

Readiness Progression Guidance

As rounds progress, your focus should shift:

| Rounds Completed | Primary Focus |

|-----------------|---------------|

| 0 (first round) | Problem clarity, initial scope, gather requirements, skill discovery |

| 1-2 | Approach selection, technical context, scope refinement |

| 3-4 | Testing strategy, risk identification, implementation details |

| 5+ | Polish, edge cases, final validation criteria |

When to suggest readiness: If all dimensions are at 2+ and you believe the plan is solid enough for execution, include an info item noting: "This plan appears ready for execution. Consider reviewing and queuing." Do not inflate scores to reach this point — the system applies a boost formula that accounts for thoroughness over multiple rounds.

Anti-Patterns

Troubleshooting

| Problem | Solution |

|---------|----------|

| file-get returns 404 for plan.md | Normal on first round — create the scaffold |

| file-get returns 404 for workshop/ | Normal on first round — create the directory with round-001.json |

| Prior round has unresolved decisions | Still pending — don't re-present, they're waiting for user input |

| All readiness dimensions already at 3 | Unusual but possible — generate minimal items focused on edge cases, or note readiness in an info item |

| Conflicting information between sources | Apply source authority: user answers > accepted proposals > plan.md > research > spec.json > archive |

| Very large workshop history | Focus on the latest 2-3 rounds and the settled decisions from earlier rounds |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.