/s2s:roundtable "topic" [--strategy standard|disney|debate|consensus-driven|six-hats] [--participants list] [--workflow-type specs|design|brainstorm] [--output-type adr|requirements|architecture|summary] [--verbose] [--interactive] [--diagnostic] [--new] [--session <id>]from s2s
Facilitates structured roundtable discussions with AI expert participants for technical decisions, architecture reviews, or requirements refinement. Supports multiple facilitation strategies and output types including ADR, requirements, architecture, and summary documents.
Ships in s2s. Installing the plugin adds it to Claude Code.
pwdls -ladate +"%Y%m%d-%H%M%S"date -u +"%Y-%m-%dT%H:%M:%SZ"Based on the context output above, determine:
.s2s directory appears → "yes", otherwise → "NOT_S2S"If S2S is initialized:
.s2s/CONTEXT.md for project context.s2s/config.yaml for roundtable configurationroundtable.md is the master orchestrator for all 4 workflow types. It runs in two modes:
/s2s:roundtable. workflow_type resolves to roundtable./s2s:specs, /s2s:design, /s2s:brainstorm) Reads this file and follows it after its own workflow-specific prep. The launcher pre-sets handoff variables in conversation context.Handoff-variable contract (delegated mode; in native mode none are set):
| Variable | Set by | Consumed at |
|---|---|---|
WORKFLOW_TYPE | launcher (mandatory) | PHASE 0 workflow_type resolution + profile load |
INPUT_SOURCES | specs launcher | PHASE 1 context-snapshot.yaml input_sources: block |
OUTPUT_MERGE_MODE | specs/design launcher | PHASE 4 output generation (override / merge) |
OUTPUT_FORMAT | specs launcher | PHASE 4 output generation (--format value) |
FOCUS_AREA | design launcher | facilitator discussion-context hint + PHASE 4 |
Strategy and output-type are NOT handoff variables: the master resolves strategy via the D3 hierarchy and output-type from workflow_type.
If S2S initialized is "NOT_S2S":
Error: Not an s2s project. Run /s2s:init first.
Extract from $ARGUMENTS:
Resolve workflow_type (used throughout this command and to load the profile): if the WORKFLOW_TYPE handoff variable is set (delegated mode), use it; else if --workflow-type is given, use that; else default "roundtable" (native mode).
Boolean flags: --verbose, --interactive, --diagnostic → parse as true if present, false if absent.
IF --diagnostic is true: Force verbose_flag = true (diagnostic mode requires verbose dumps for analysis).
IF --session flag is present:
.s2s/sessions/{session-id}.yamlIF --new flag is present:
IF .s2s/state.json exists:
active_sessionactive_session is not null AND active_session.workflow_type == {workflow_type} (the resolved workflow_type):
/s2s:specs (delegated) offers only specs sessions; native /s2s:roundtable offers only roundtable sessions. Resume of any workflow_type is supported (Phase 4 §4.3 step 4).active_session.id.s2s/sessions/{session_id}.yamlstatusResume active {workflow_type} session?
═══════════════════════════════════════
Session: {session_id}
Workflow: {workflow_type}
Topic: {topic from session file}
Strategy: {strategy from session file}
Progress: Round {rounds_completed from session file} completed
active_session in state.json (write null)YOU MUST use Bash tool to find active sessions for the resolved workflow_type:
grep -l 'workflow_type: {workflow_type}' .s2s/sessions/*.yaml 2>/dev/null | xargs grep -l 'status: active' 2>/dev/null
IF no active sessions found:
IF active sessions found:
Read each session file to extract:
idtopicstrategymetrics.rounds_completedDisplay list:
Active {workflow_type} sessions found:
══════════════════════════════════
1. {session-id}
Topic: {topic}
Strategy: {strategy}
Progress: Round {rounds_completed} completed
2. {session-id}
...
[n] Start new session
Which would you like to continue?
Ask using AskUserQuestion with options:
Based on user choice:
Read ${CLAUDE_PLUGIN_ROOT}/skills/roundtable-execution/profiles/{workflow_type}.yaml and store the parsed object as PROFILE. All 4 workflow types have a profile. PROFILE drives session setup below (topic, artifacts, agenda/phases, participants) and is reused in PHASE 3.
The session topic is resolved per PROFILE.topic:
PROFILE.topic.source == "cli-arg.topic" (roundtable, brainstorm): use the topic from $ARGUMENTS. If no topic was provided and not resuming, ask using AskUserQuestion.PROFILE.topic.source begins with context-snapshot. (specs, design): the topic is synthesized in "Create session" below from PROFILE.topic.pattern (no prompt).Read .s2s/config.yaml and extract:
roundtable.strategy.defaultroundtable.strategy.by_workflow_type[workflow_type] (if workflow_type specified)roundtable.participants.by_workflow_type[workflow_type]roundtable.escalationroundtable.escalation.triggers.max_rounds_per_conflictResolve participants (first match wins):
--participants list from $ARGUMENTS — honored only when PROFILE.participants.configurable == true; if the profile is not configurable, display "⚠️ {workflow_type} panel is fixed, ignoring --participants" and fall through..s2s/config.yaml roundtable.participants.by_workflow_type[workflow_type] (if set).PROFILE.participants.default.Panel domain coverage check (VKT-035) — after resolution, IF workflow_type is specs or design AND the resolved panel contains NO technical role (none of: software-architect, technical-lead, devops-engineer, security-champion, claude-code-expert): set PANEL_WARNING = true. Warn only — do NOT block session creation.
The warning has TWO carriers (BUG-026: pure display steps get skipped at runtime, so the display alone is not trusted):
validation.warnings gets the panel entry at creation (see the session skeleton in "Create session" Step 4). /s2s:session:status and /s2s:session:validate surface it from there.Note: Strategy auto-detection is performed by the command (roundtable.md), NOT by the facilitator agent. The command analyzes topic keywords before launching any agents.
If --strategy not provided:
Keyword → strategy mapping (user discoverability): this table is documented here for UX hints. The authoritative strategy descriptions live in
${CLAUDE_PLUGIN_ROOT}/skills/roundtable-strategies/references/{strategy}.md(consumed via the Option B parser, see "Resolve strategy hooks" section below). If this table drifts from the strategy docs, the strategy docs are correct. (TECH-002 Phase 4 §4.4 disclaimer.)
Analyze topic for keywords:
| Keywords | Recommended Strategy | Reason |
|---|---|---|
| creative, innovation, new, brainstorm | disney | Creative ideation |
| vs, compare, evaluate, choose, decide | debate | Evaluating alternatives |
| urgent, fast, quick, asap | consensus-driven | Speed priority |
| comprehensive, thorough, all angles, deep | six-hats | Deep analysis |
| default | standard | Balanced approach |
If keyword match found, ask using AskUserQuestion: "Recommended strategy: {strategy} Reason: Topic contains '{keyword}'
Options:
If "Choose manually", present all 5 strategies with descriptions
Read the file at ${CLAUDE_PLUGIN_ROOT}/skills/roundtable-strategies/references/{strategy}.md. The canonical phase enumeration for the chosen strategy lives in its Configuration block (YAML at the top of the doc). The strategy-hook overrides parsed in the "Resolve strategy hooks" section below surface phase metadata when needed (e.g. debate_phase for debate strategy). Per TECH-002 Phase 4 §4.4: inline phase enumeration removed to eliminate drift versus strategy docs (consensus-driven and six-hats had stale phase names pre-Phase-4; source-of-truth deferral resolves).
Each phase in the strategy doc declares:
name: phase identifiermin_rounds: minimum rounds before advancing (default: 1)goal / prompt_suffix: what the phase should achieve / how facilitator frames itDeterministic resolution of per-strategy hook overrides. Reads the strategy doc's ## Strategy hooks opening line, matches against the fixture, produces strategy_hook_overrides dict for persistence in session.yaml at agent_state.facilitator.hook_overrides.
Read ${CLAUDE_PLUGIN_ROOT}/skills/roundtable-execution/references/strategy-hook-resolution.md and load the anchor table.
Extract the first non-empty line of the ## Strategy hooks section from the strategy doc already read above.
Match the opening line against each regex in the anchor table; first match wins. Produce HOOK_OVERRIDES per the matching row:
standard / consensus-driven: {skip: true} (Branch 1)disney / six-hats: {skip: true} (Branch 1)debate: {participant_response_field: "debate_role", round_summary_field: "debate_phase", policy: "facilitator_emergent"} (Branch 2)If no regex matches, display error to user: "Strategy doc opening line did not match any anchor in strategy-hook-resolution.md. Edit the doc or update the fixture." Stop session creation.
Store HOOK_OVERRIDES for inclusion in session.yaml.agent_state.facilitator.hook_overrides at session creation (Phase 1 step "Create session"). phase-2-core.md Step 2.2c reads this field per round and dispatches via 3-branch logic (skip / policy / absent). See strategy-hook-resolution.md for full details.
PROFILE (loaded above) drives every workflow-specific value here. This session-setup path is identical for all 4 workflow types (TECH-002 Phase 8: profile-driven PHASE 1).
Per PROFILE.topic:
source: cli-arg.topic → the topic from $ARGUMENTS (resolved at "Validate topic" above).source: context-snapshot.project_name → substitute {project_name} (from .s2s/CONTEXT.md) into PROFILE.topic.pattern.mkdir -p .s2s/sessions{YYYYMMDD}-{HHMMSS}-{workflow_type}-{topic-slug} (slug: lowercase, hyphens, max 30 chars, from the resolved topic). The workflow_type prefix keeps ids consistent across native and delegated invocation.mkdir -p .s2s/sessions/{session-id}verbose_flag OR diagnostic_flag: mkdir -p .s2s/sessions/{session-id}/roundsphase-2-core.md (§2.0, §3) reads config-snapshot.yaml and context-snapshot.yaml as canonical inputs. The master writes them for all workflow types.
Write .s2s/sessions/{session-id}/context-snapshot.yaml. Read .s2s/CONTEXT.md (and .s2s/requirements.md when present) and write:
# Captured: {ISO timestamp}
source: ".s2s/CONTEXT.md"
project_name: "{extracted}"
description: "{extracted}"
objectives:
- "{extracted}"
constraints:
- "{extracted}"
scope:
in: ["{extracted}"]
out: ["{extracted}"]
Append the workflow-specific block:
input_sources: populated from the INPUT_SOURCES handoff variable (brainstorm sessions / ideas / backlog / primary_id / baseline_requirements), or empty when unset. baseline_requirements (VKT-004) carries {path, items: [{id: "BASE-{NNN}", title, summary}]} — the parsed baseline items the session must cover.requirements_summary: with core: and nfr: lists from .s2s/requirements.md.brainstorm_topic: "{topic}".Write .s2s/sessions/{session-id}/config-snapshot.yaml. Read .s2s/config.yaml and write:
# Captured: {ISO timestamp}
source: ".s2s/config.yaml"
verbose: {verbose_flag}
interactive: {interactive_flag}
diagnostic: {diagnostic_flag}
strategy: "{strategy_to_use}"
limits:
min_rounds: {from config: roundtable.limits.min_rounds}
max_rounds: {from config: roundtable.limits.max_rounds}
escalation:
max_rounds_per_conflict: {from config: roundtable.escalation.triggers.max_rounds_per_conflict}
confidence_below: {from config: roundtable.escalation.triggers.confidence_below}
critical_keywords: {from config: roundtable.escalation.triggers.critical_keywords}
participants:
- "{each resolved participant}"
IF PROFILE.progress.agenda_reference is set (specs, design): Write .s2s/sessions/{session-id}/agenda.yaml. Read ${CLAUDE_PLUGIN_ROOT}/skills/roundtable-execution/{PROFILE.progress.agenda_reference} and copy its topics:
# Captured: {ISO timestamp}
source: "{PROFILE.progress.agenda_reference}"
workflow: "{workflow_type}"
topics:
# ... all topics from the referenced agenda file
Workflows without agenda_reference (roundtable, brainstorm) get no agenda.yaml.
Write .s2s/sessions/{session-id}.yaml. The skeleton is profile-driven:
artifacts: is one empty map per entry in PROFILE.artifact_types, keyed by its session_key.PROFILE.progress.axis:
axis: agenda → an agenda: list with one {topic_id, status: "open", coverage: []} entry per agenda topic (the agenda.yaml topics, or a single main topic when agenda_reference is absent); and metrics.topics: {total: {count}, closed: 0}.axis: disney_phase → current_phase: (first phase) and a phases: list of {name, status, rounds: []}; and metrics.phases: {<phase>: 0, ...}.# Session file - Single Source of Truth
id: "{session-id}"
topic: "{resolved topic}"
workflow_type: "{workflow_type}"
strategy: "{strategy_to_use}"
status: "active"
timing:
started_at: "{ISO timestamp}"
updated_at: "{ISO timestamp}"
closed_at: null
participants: ["{resolved list}"]
# Agent state (for resume capability)
agent_state:
facilitator:
agent_id: null
last_round: 0
last_action: null
hook_overrides: {HOOK_OVERRIDES from "Resolve strategy hooks" step above} # Option B (TECH-002 Phase 4)
participants: {}
# Artifacts: one empty map per PROFILE.artifact_types[].session_key
artifacts:
{session_key}: {}
# ... repeat for every PROFILE.artifact_types entry
# Progress block per PROFILE.progress.axis (agenda: OR current_phase: + phases:)
{agenda or phases block per the rule above}
# Rounds with summary
rounds: []
# Metrics
metrics:
rounds_completed: 0
artifacts:
total: 0
by_type: {}
by_state: {}
{topics or phases counter per axis}
consensus_rate: 0.0
# TECH-009: Token tracking
tokens:
total: 0
by_round: []
# Validation state
# IF PANEL_WARNING == true (see "Panel domain coverage check"): warnings MUST contain
# the panel entry below — it is the artifact-backed record of the warning (BUG-026);
# do NOT leave warnings empty in that case.
validation:
last_check: null
status: null
warnings: []
# with PANEL_WARNING: warnings: ["panel has no technical role (VKT-035): feasibility may go unchallenged; add one via --participants or config.yaml"]
# Linked sessions (optional)
linked_sessions: {}
YOU MUST display this block (including the warning line when PANEL_WARNING == true — do not drop it):
Roundtable Session Started
═══════════════════════════
Session: {session-id}
Topic: {topic}
Strategy: {strategy}
Participants: {list}
Workflow: {workflow_type}
{IF PANEL_WARNING}
⚠️ Panel has no technical role: feasibility and technical constraints
may go unchallenged. Add one via --participants or config.yaml
(roundtable.participants.by_workflow_type.{workflow_type}).
{/IF}
Starting discussion...
Read the session file .s2s/sessions/{session-id}.yaml and extract:
workflow_type (drives profile load and state.json below; do NOT assume roundtable)topicstrategymetrics.rounds_completedagent_state (for resume capability)Immediately update state.json to align with session file:
IF .s2s/state.json exists: Read it first to get current active_plan value.
Use Write tool to write .s2s/state.json:
{
"active_session": {
"id": "{session-id}",
"workflow_type": "{workflow_type from session file}",
"strategy": "{strategy}",
"phase": "{state_phase: from session file progress block, or PROFILE.state_phase}",
"round": {rounds_completed},
"participants_count": {participants count from session}
},
"active_plan": {existing active_plan value OR null},
"last_activity": {
"timestamp": "{ISO timestamp}",
"action": "session_resumed",
"session_id": "{session-id}"
}
}
Display:
Resuming Roundtable Session
═══════════════════════════
Session: {session-id}
Topic: {topic}
Strategy: {strategy}
Progress: Round {rounds_completed} completed
Continuing discussion...
Per TECH-002 Phase 4 §4.3: roundtable.md is now master for all 4 workflow types (specs/design/brainstorm/roundtable). Uniform dispatch via phase-2-core.md after loading the workflow-appropriate profile. Pattern mirrors commands/{specs,design,brainstorm}.md Phase 2.
Ensure PROFILE is loaded: on the new-session path it was loaded in PHASE 1 ("Load workflow profile"). On the resume path (PHASE 2, PHASE 1 skipped), Read ${CLAUDE_PLUGIN_ROOT}/skills/roundtable-execution/profiles/{workflow_type}.yaml now and store it as PROFILE ({workflow_type} from the resumed session file). PROFILE provides workflow-specific values (artifact types, participants, agenda axis, default strategy, phase transition gating) consumed throughout Phase 2.
Make the following variables available in conversation context for the algorithm:
STRATEGY = {strategy_to_use} (resolved earlier in this command per the resolution hierarchy: CLI → config.yaml → profile fallback; see ${CLAUDE_PLUGIN_ROOT}/skills/roundtable-execution/references/strategy-resolution.md)SESSION_ID = the session id created in Phase 1 (workflow_type-prefixed per §4.3 step 2)ROUND_NUMBER = session.yaml.metrics.rounds_completed (0 for fresh sessions, N for resume)VERBOSE_FLAG = config-snapshot.yaml.verbose (the snapshot written in Phase 1; canonical source per phase-2-core.md §3)DIAGNOSTIC_FLAG = config-snapshot.yaml.diagnosticINTERACTIVE_FLAG = config-snapshot.yaml.interactiveTOKEN_SCRIPT = will be resolved by phase-2-core.md Step 2.0 (reads from references/token-tracking.md)Read ${CLAUDE_PLUGIN_ROOT}/skills/roundtable-execution/references/phase-2-core.md and follow §2 (Round Loop algorithm). The algorithm internally loops Steps 2.0 → 2.9 until terminal dispatch (conclude, escalate resolved to exit, max_rounds, or context capacity). Step 2.10 (Phase Transition) is invoked when PROFILE.has_phase_transition == true (currently only brainstorm) and facilitator returns next: "phase".
Strategy hook overrides at Step 2.2c are dispatched per 3-branch logic (Option B, TECH-002 Phase 4) using session.yaml.agent_state.facilitator.hook_overrides populated by the "Resolve strategy hooks" parser in Phase 1. See phase-2-core.md Step 2.2c for branch details.
After phase-2-core.md returns control, proceed to PHASE 4 below.
IF diagnostic_flag == true:
Use the session-observer agent with this input:
mode: "end-session"
session_path: ".s2s/sessions/{session-id}"
workflow_type: "{workflow_type}"
strategy: "{strategy_to_use}"
The observer will return a final diagnostic summary. Display it in a banner per the same format used by commands/design.md Step 3.0 (workflow / strategy / rounds / per-round status / session-level findings / RESULT verdict).
→ Token tracking: Execute "Session Complete" section from ${CLAUDE_PLUGIN_ROOT}/skills/roundtable-execution/references/token-tracking.md (updates metrics.tokens.total).
YOU MUST use Edit tool to update session file:
status: "closed"
timing:
closed_at: "{ISO timestamp}"
Clear active_session from state.json:
IF .s2s/state.json exists: Read it first to get current active_plan value.
IMMEDIATELY use Write tool to write .s2s/state.json:
{
"active_session": null,
"active_plan": {existing active_plan value OR null if file didn't exist},
"last_activity": {
"timestamp": "{ISO timestamp}",
"action": "session_closed",
"session_id": "{session-id}"
}
}
YOU MUST use Read tool to read the completed session file. Extract all artifacts and round summaries per workflow_type:
artifacts.requirements, artifacts.business_rules, artifacts.nfr, etc. (see profiles/specs.yaml artifact_types)artifacts.architecture_decisions, artifacts.components, artifacts.interfaces, etc.artifacts.ideas, artifacts.risks, artifacts.mitigations, etc.artifacts.decisions, artifacts.open_questions, artifacts.conflicts (per profiles/roundtable.yaml)Determine output type (default per workflow_type, override via --output-type):
| workflow_type | default output_type | output file(s) |
|---|---|---|
| specs | requirements | .s2s/requirements.md |
| design | architecture | .s2s/architecture.md + .s2s/decisions/ADR-*.md |
| brainstorm | summary | .s2s/sessions/{id}-summary.md + .s2s/ideas.md |
| roundtable | summary | .s2s/sessions/{id}-summary.md (no persistent project file) |
Read ${CLAUDE_PLUGIN_ROOT}/skills/output-generation/SKILL.md and follow the dispatch instructions for the detected workflow_type. The skill routes to the appropriate reference template (references/{specs-srs,design-arc42,brainstorm,roundtable-summary}.md).
Honor the delegated-mode handoff variables when set (a thin launcher pre-set them; see "Invocation modes"):
OUTPUT_MERGE_MODE (specs, design): merge appends new artifacts with incremented IDs to the existing requirements.md / architecture.md; override (or unset) replaces the file.OUTPUT_FORMAT (specs): the document format passed to the output skill (srs | volere | simple); default srs.FOCUS_AREA (design): if set, note the focus area in the generated architecture document.roundtable.limits.min_rounds).roundtable.limits.max_rounds).active_session; Step 4.1 clears it. Token tracking checkpoints per references/token-tracking.md.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
16 commands in this plugin
/brainstormBrainstorm SessionCreative brainstorming session using the Disney strategy (Dreamer → Realist → Critic). Use for ideation and exploring new ideas without constraints. Auto-detects active sessions./designDesign Technical ArchitectureDesign technical architecture through a roundtable discussion. Reads requirements.md and produces architecture documentation. Auto-detects active sessions./dev:checkDevelopment CheckRun development checks on s2s plugin code. Verifies instruction quality (INST-*) and cross-command consistency (CONS-*)./dev:testDevelopment TestRun integration tests on s2s plugin. Tests session validation (VAL-RT-*), resume capability (RES-*) and edge cases (EDGE-*)./initInitialize Spec2Ship ProjectInitialize or update a Spec2Ship project. Analyzes existing structure, creates .s2s/ configuration, and gathers project context./planGenerate Implementation PlansGenerate implementation plans. Smart behavior - reads from specs/architecture docs if available, otherwise prompts for topic. Auto-detects active plans.npx claudepluginhub spec2ship/spec2ship --plugin s2sOther plugins' commands for the same job