plugins/teams/skills/refinement/SKILL.md
Transform ambiguous specs into implementable work items through live adversarial debate using Agent Teams. Evolves dm-work:dialectical-refinement from sequential pipeline to simultaneous multi-agent debate. Use for l/xl complexity tasks.
npx skillsauth add rbergman/dark-matter-marketplace refinementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Team-based adversarial spec refinement using Agent Teams. This evolves dm-work:dialectical-refinement from sequential pipeline to live debate.
The original dialectical-refinement runs 5 sequential phases (Analyst->Proposer->Advocate->Scope Lock->Judge) where each phase sees only the previous output. This prevents self-reinforcing mistakes but loses the back-and-forth of genuine argument. With Agent Teams, debaters are persistent -- the Advocate can push back on the Proposer while the Proposer is still formulating, creating richer adversarial tension.
| Complexity | Mechanism | |-----------|-----------| | xs/s | Skip refinement entirely | | m | Use dm-work:dialectical-refinement (2-phase, lightweight) | | l/xl | Use refinement (full debate) |
| Role | Teammate | Model | Purpose | |------|----------|-------|---------| | Analyst | Teammate 1 | haiku | Surface ambiguity, identify gaps, tag protected items | | Proposer | Teammate 2 | opus | Propose simplifications and cuts with confidence levels | | Advocate | Teammate 3 | opus | Challenge cuts, defend scope, suggest cheap additions | | Judge | Lead | opus | Moderate debate, enforce scope lock, synthesize final spec |
Same as dm-work:dialectical-refinement — Core Workflow, Agent Primitives, User-Requested Features, Token Efficiency, Structured Output. Tag these early; Proposer does not propose cutting them.
Same as dialectical-refinement for compatibility:
## Introduction
[What + Why in 2-3 sentences]
## Scope
[What's being built]
## Acceptance Criteria
[Testable outcomes]
## Out of Scope
[Explicit boundaries]
## Appendix A: Project Context (if needed)
[Token-efficient big picture: ~100-200 words max]
development
Initialize a new repository with standard scaffolding - git, gitignore, AGENTS.md, justfile, mise, beads, and timbers. Use when starting a new project or setting up an existing repo for Claude Code workflows.
data-ai
Activate at session start when using Agent Teams for complex multi-agent work. Establishes team lead role with delegation protocols, teammate spawning, model selection, and beads integration. You coordinate the team; teammates implement.
data-ai
Use when creating a worktree, setting up a worktree, starting feature work that needs isolation, or before executing implementation plans. Covers git worktree creation under .worktrees/, gitignore setup, beads integration, and merge guardrails.
data-ai
Activate when you are a delegated subagent (not the orchestrator). Establishes subagent protocol with terse returns, details to history/, file ownership boundaries, and escalation rules. You implement; orchestrator reviews and commits.