From dm-team
Run team-based adversarial refinement on a bead or spec using Agent Teams debate
npx claudepluginhub rbergman/dark-matter-marketplace --plugin dm-teambead ID or spec file path# /refine Run team-based adversarial spec refinement. Arguments: $ARGUMENTS ## Protocol ### 1. Parse Target - Bead ID -> `bd show <id>` - File path -> read file - No args -> check conversation for current spec context ### 2. Assess Complexity - **xs/s** -> "This doesn't need refinement. Proceed to implementation." - **m** -> "Medium complexity -- using 2-phase dm-work:dialectical-refinement instead." Run /dm-work:refine. - **l/xl** -> Proceed with team refinement. ### 3. Gather Context Read target spec, related files, existing beads for the project. ### 4. Create Team Spawn Agent...
/refineRefines existing CLI harness for software at <software-path> by analyzing gaps in coverage and adding new commands/tests, optionally focusing on specific features.
/refineRefines existing cli-anything-web CLI: performs gap analysis, records new traffic, implements missing endpoints, updates tests and REPL help.
/refineRefines an existing writer skill by analyzing additional writing samples and updating the voice profile. Provide path to skill directory.
/refineRuns iterative refinement loop to improve project quality toward a goal, with max iterations, target condition, and semicolon-separated DoD criteria.
/refineAnalyzes existing PRD for gaps using a section checklist, generates markdown gap analysis, and refines via targeted interactive questions.
/refineRefines an existing plan by loading it, applying changes like updated requirements or solutions, showing before/after comparison, and saving the updated plan.
Run team-based adversarial spec refinement.
Arguments: $ARGUMENTS
bd show <id>Read target spec, related files, existing beads for the project.
Spawn Agent Team with Analyst (haiku), Proposer (opus), Advocate (opus). Lead acts as Judge.
Execute the debate protocol as described in the refinement skill:
Synthesized spec in standard format:
## Introduction
## Scope
## Acceptance Criteria
## Out of Scope
## Appendix A: Project Context (if needed)
If input was a bead, update with refined spec, add refined label.
Dismiss teammates after synthesis is complete.