/metaswarm:start runs instead · from metaswarm
Coordinates a multi-agent swarm (BEADS) to autonomously handle GitHub Issues from creation to merged PR. Activates when starting tracked development work or when the user mentions metaswarm.
This skill never runs in Claude Code
It ships in metaswarm at skills/, but /metaswarm:start (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
This skill coordinates a swarm of specialized AI agents to autonomously handle GitHub Issues from creation to merged PR.
# User triggers via any of:
@beads start #123
/beads-start 123
bd ready # Show tasks ready to work
bd list # Show all tasks
bd stats # Show project statistics
bd doctor # Check system health
| Agent | Role | Spawned When |
|---|---|---|
| Issue Orchestrator | Main coordinator per Issue | Issue receives agent-ready label |
| Codebase Researcher | Code facts with file:line citations; context check of research reports | Orchestrator creates research task |
| Deep Researcher (two arms) | Design research on two models, merged | New user-facing feature or capability |
| Citation Checker | Checks every citation in a research report | After each research report, before planning |
| Architect Agent | Implementation planning | Research complete |
| Product Manager Agent | Use case & user benefit review | Design review gate (parallel) |
| Designer Agent | UX/API design review | Design review gate (parallel) |
| Security Design Agent | Security threat modeling | Design review gate (parallel) |
| CTO Agent | TDD readiness & plan review | Design review gate (parallel) |
| UX Reviewer Agent | User flows, UI states, integration wiring | Design review gate (parallel) |
| Coder Agent | TDD implementation | Design review gate approved |
| Adversarial Reviewer | Internal code review | Implementation complete |
| Security Auditor | Security review (code) | Implementation complete |
| Release Engineer Agent | Safe delivery from merge through production | QA approves PR, PR reaches merge readiness |
| PR Shepherd | PR lifecycle management | PR created |
See ./agents/ directory for detailed agent definitions.
For project-sized features (brainstorming sized the work as a project and committed its design doc; see ./guides/workflow-enforcement.md), an automatic Design Review Gate ensures quality before implementation:
Project-Sized Design Doc Committed
│
▼
┌─────────────────────────────────────────────────┐
│ DESIGN REVIEW GATE │
│ │
│ Spawns 6 reviewers in PARALLEL: │
│ • PM Agent (use cases, user benefit) │
│ • Architect Agent (technical architecture) │
│ • Designer Agent (UX/API design) │
│ • Security Design Agent (threat model) │
│ • UX Reviewer (user flows, integration WUs) │
│ • CTO Agent (TDD readiness) │
│ │
│ ALL SIX must approve to proceed │
└─────────────────────────────────────────────────┘
│
├── Any NEEDS_REVISION? → Iterate on design (severity-gated, cap 10 rounds)
│
ALL APPROVED
│
▼
Create BEADS Epic → Begin Implementation
Load the brainstorming-extension skill at the start of brainstorming, not only after the commit: its assumption ledger, confirmation rule and Common misreadings checklist apply to every brainstorming session regardless of size, before any design is presented or committed.
For a user-facing feature or a new major capability, the extension's "Research before options" step spawns dual-arm deep research (deep-researcher and deep-researcher-second, lenses chosen per the kind of work) alongside a codebase-researcher before options are presented, then a citation-checker and a context check on each report that feeds the design (see ./guides/research-selection.md).
The gate is automatically triggered when brainstorming writes and commits a project-sized design doc (see ./guides/workflow-enforcement.md):
docs/plans/*-design.md or docs/superpowers/specs/*-design.md/review-design <path-to-design.md>| Agent | Focus Areas |
|---|---|
| Product Manager | Use case clarity, user benefits, scope, success metrics |
| Architect | Service architecture, dependencies, patterns, integration |
| Designer | API design, UX flows, developer experience, consistency |
| Security Design | Threat modeling, auth/authz, data protection, OWASP Top 10 |
| UX Reviewer | User flows, text wireframes, integration WUs, empty/error states |
| CTO | TDD readiness, codebase alignment, completeness, risks |
./guides/delivery-scope.md): only blocker: yes findings keep the loop going; minor/nit findings become follow-ups. A Clarify signal (the user is needed or the reviews are not converging) stops the loop for a Clarification reportSee the design-review-gate skill for full details.
When multiple Claude Code sessions are active on the same repository (e.g., parallel worktrees), metaswarm automatically enters Team Mode. In Team Mode, agents behave as persistent teammates with context retention across sessions and direct inter-agent messaging for coordination. Mode detection is automatic based on the presence of concurrent sessions.
For the full Team Mode protocol — including message routing, context sharing, and conflict resolution — see ./guides/agent-coordination.md.
Once an implementation plan is written, it passes through the Plan Review Gate before it is presented. In full orchestration that is before the Design Review Gate, which then reviews the plan; on the brainstorming path the Design Review Gate has already reviewed the design doc (see ./guides/workflow-enforcement.md). Three adversarial reviewers validate the plan independently:
| Reviewer | Focus |
|---|---|
| Feasibility | Technical viability, dependency risks, resource constraints |
| Completeness | Missing work units, untested edge cases, gaps in Definition of Done |
| Scope & Alignment | Plan stays within issue scope, aligns with codebase conventions |
All 3 must APPROVE before the plan proceeds. See the plan-review-gate skill for the full skill definition.
After design review approval, implementation follows the 4-phase execution loop per work unit. This replaces the previous linear "implement then review" flow with rigorous independent validation and adversarial review.
Trust nothing. Verify everything. Review adversarially.
Before submitting to the Design Review Gate, the orchestrator runs a pre-flight checklist covering architecture, dependency graph, API contracts, security, UI/UX, and external dependencies. This catches structural issues (missing service layer, wrong dependency graph, oversized WUs) before spending agent cycles on review.
For each work unit (a discrete, spec-driven change with DoD items):
.coverage-thresholds.json). Never trust subagent self-reports. Quality gates are blocking state transitions, not advisory.adversarial-review-rubric.md. When external tools are configured, cross-model review ensures the writer is always reviewed by a different AI model (see External Tools section below).SERVICE-INVENTORY.md and Project Context Document.On FAIL: fix → re-validate → spawn fresh reviewer (role type roleType("adversarial-reviewer"); severity-gated iteration, cap 10 rounds; see ./guides/delivery-scope.md → escalate to human when the rule says so). There is NO path from FAIL to COMMIT without passing through the retry loop.
For simple tasks, the standard linear flow (implement → code review → PR) works fine.
Work Unit Decomposition: Break the implementation plan into discrete work units, each with:
Independent Validation: The orchestrator runs tsc, eslint, and vitest directly — it does NOT ask the coding subagent "did the tests pass?" and accept the answer.
Adversarial Review: Fundamentally different from collaborative code review. The reviewer is an independent auditor checking spec compliance, not a helpful colleague suggesting improvements. Binary PASS/FAIL verdict. Evidence required (file:line references).
Fresh Reviewer Rule: On re-review after FAIL, a NEW reviewer instance (role type roleType("adversarial-reviewer")) is spawned with no memory of the previous review. This prevents anchoring bias.
Human Checkpoints: Planned pauses at critical boundaries (schema changes, security code, first use of new patterns). The orchestrator waits for explicit human approval before continuing.
Final Comprehensive Review: After all work units pass, a cross-unit review catches integration issues that per-unit reviews miss.
See orchestrated-execution skill for the complete pattern, including work unit structure, parallel execution, recovery protocol, and anti-patterns.
When external AI CLI tools are configured (.metaswarm/external-tools.yaml), the orchestrator can delegate implementation and review tasks to OpenAI Codex CLI and Google Gemini CLI. This enables cost savings through cheaper models and cross-model adversarial review that eliminates single-model blind spots.
External tools slot directly into the existing 4-phase execution loop:
The orchestrator adapts based on tool availability:
| Available Tools | Escalation Chain | Max Attempts |
|---|---|---|
| Both Codex + Gemini | A(2) → B(2) → Claude(1) → user | 5 |
| One tool only | Tool(2) → Claude(1) → user | 3 |
| No tools | Claude → user (existing behavior) | unchanged |
Each escalated model receives the previous model's branch as a reference. See the external-tools skill for the full skill definition.
/external-tools-health
Checks installation, authentication, and reachability of all configured adapters.
The visual-review skill enables agents to take screenshots of web pages, presentations, and UIs using Playwright for visual inspection. This bridges the gap where agents cannot see rendered output.
The skill is triggered when tasks involve visual output (web UIs, Reveal.js presentations, landing pages, email templates). It captures screenshots at configurable viewport sizes, and agents analyze them for layout, typography, colors, spacing, and content issues.
npx playwright install chromium
For remote/headless environments, the skill serves screenshots via HTTP file server so users can view them in their local browser.
See the visual-review skill for the complete workflow.
GitHub Issue #123 (agent-ready label)
│
▼
┌─────────────────────────────────────┐
│ Issue Orchestrator │
│ Creates BEADS epic, delegates work │
└─────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Research Phase │
│ Codebase Researcher explores code; │
│ citation + context checks follow │
└─────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Planning Phase │
│ Architect Agent creates plan │
└─────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Plan Review Gate │
│ 3 adversarial reviewers: │
│ Feasibility, Completeness, │
│ Scope & Alignment │
│ ALL 3 must approve │
└─────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ External Dependency Detection │
│ Scans spec for API keys/creds │
│ Prompts user to configure them │
└─────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Plan Validation (Pre-Flight) │
│ Architecture, deps, API contracts │
│ Security, UI/UX, external deps │
└─────────────────────────────────────┘
│
▼
┌──────────────────────────────────────────────────────────────────────────┐
│ DESIGN REVIEW GATE (PARALLEL) │
│ │
│ ┌─────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌────────┐ ┌───────┐ │
│ │ PM │ │ Architect│ │ Designer │ │ Security │ │UX Revw.│ │ CTO │ │
│ │(users) │ │ (tech) │ │ (UX/API) │ │ (threats)│ │(flows) │ │ (TDD) │ │
│ └─────────┘ └──────────┘ └──────────┘ └──────────┘ └────────┘ └───────┘ │
│ │
│ ALL SIX must approve (severity-gated iteration, cap 10 rounds) │
└──────────────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Work Unit Decomposition │
│ Break plan into work units w/ DoD │
│ Build dependency graph │
└─────────────────────────────────────┘
│
▼
┌───────────────────────────────────────────────────────────────┐
│ ORCHESTRATED EXECUTION LOOP (per work unit) │
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────────┐ ┌──────┐ │
│ │IMPLEMENT │───→│ VALIDATE │───→│ ADVERSARIAL │──→│COMMIT│ │
│ │(Coder) │ │(Orchest.)│ │ REVIEW │ │ │ │
│ └──────────┘ └──────────┘ └──────┬───────┘ └──────┘ │
│ ▲ │ FAIL │
│ └─────────────────────────────────┘ │
│ │
│ Trust nothing. Verify everything. Review adversarially. │
└───────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Final Comprehensive Review │
│ Cross-unit integration check │
│ Full test suite + type check │
└─────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Pre-PR /self-reflect (required │
│ instruction review, one decision │
│ request, edits in the same commit) │
└─────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ PR Creation │
│ gh pr create │
│ → then /pr-shepherd <pr-number> │
└─────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ PR Shepherd (Automatic) │
│ Monitors CI, handles reviews, │
│ resolves threads automatically │
└─────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Human Approval & Merge │
└─────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Release Engineer │
│ Pre-merge verify → merge → CI → │
│ deploy → post-deploy QA → release │
└─────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Close Epic (optional post-merge │
│ learnings follow-up) │
└─────────────────────────────────────┘
GTG is the final merge gate. It consolidates CI status, comment classification, and thread resolution into a single deterministic check. Agents should use it as the primary readiness signal:
# Check if PR is ready to merge
gtg <PR_NUMBER> --format json \
--exclude-checks "Merge Ready (gtg)" \
--exclude-checks "CodeRabbit" \
--exclude-checks "Cursor Bugbot" \
--exclude-checks "claude"
Statuses: READY (merge), ACTION_REQUIRED (fix comments), UNRESOLVED_THREADS (resolve threads), CI_FAILING (fix CI). The action_items array tells agents exactly what to fix.
GTG reports, agents act: GTG does not resolve threads or fix code. After addressing feedback, agents must resolve threads themselves via the GraphQL mutation documented in handle-pr-comments.md (Section 3: Resolving Review Threads). GTG will report READY on the next check once threads are resolved.
If the CI check is stale: gh workflow run gtg.yml -f pr_number=<PR_NUMBER>
Every PR gets the same cycle, however it was created:
/self-reflect first, with its required instruction review. In a subagent, return the "Instruction changes proposed" list to the parent before the PR; the main session asks and commits the approved editsgh pr create and a proper title/body/pr-shepherd <pr-number># Create epic for GitHub Issue
bd create "Feature: User Auth" --type epic --external-ref gh-123
# Create task under epic
bd create "Research auth patterns" --type task --parent bd-abc123
# Add dependency
bd dep add <blocked-task> <blocking-task>
# Update status
bd update <task-id> --status open|in_progress|blocked|closed
# Close with reason
bd close <task-id> --reason "Completed successfully"
# Show ready (unblocked) tasks
bd ready --json
# List all tasks under epic
bd list --parent <epic-id>
# Show blocked tasks
bd blocked
# Show task details
bd show <task-id> --json
# Waiting for human input
bd label add <task-id> waiting:human
# Waiting for CI
bd label add <task-id> waiting:ci
# Agent failed, needs intervention
bd label add <task-id> agent:failed
# Review iteration tracking
bd label add <task-id> review:iteration-1
# Check version-control status (branch and uncommitted changes)
bd vc status
# If a Dolt remote is configured: pull updates (local-only workspaces need no sync)
bd dolt pull
# If a Dolt remote is configured: push your changes (local-only workspaces need no sync)
bd dolt push
# Export to JSONL
bd export
# Check Issue has agent-ready label
gh issue view 123 --json labels | jq '.labels[].name' | grep agent-ready
# Get Issue details
ISSUE=$(gh issue view 123 --json title,body,number)
# Create epic linked to Issue
bd create "$(echo $ISSUE | jq -r .title)" --type epic --external-ref gh-123 --json
gh issue comment 123 --body "🤖 Agent claiming this issue. BEADS epic created."
Use the Task tool to spawn the Issue Orchestrator agent:
Task({
subagent_type: roleType("issue-orchestrator"),
description: "Issue Orchestrator for #123",
prompt: `You are the ISSUE ORCHESTRATOR agent.
Read the agent definition at:
./agents/issue-orchestrator.md
Your task:
- Epic ID: <epic-id>
- GitHub Issue: #123
- Begin the orchestration workflow
Follow the workflow phases exactly as specified.
- Before gh pr create, RETURN the "Instruction changes proposed" list from /self-reflect Step 7 and stop. Do not ask the user and do not apply instruction edits.`,
});
Handling the return: the Issue Orchestrator is a subagent and cannot ask the user. When it returns the "Instruction changes proposed" list, the main session asks it as one decision request (see Decision requests in guides/delivery-scope.md), unless the list is none, because ..., which needs no instruction question. If the orchestrator also returned candidate learnings, still run /self-reflect Step 4 approval and Step 5 storage and commit them inside that orchestrator's worktree (git -C <worktree-path> ..., on its branch) before PR creation. If you are yourself a subagent, relay the list upward until it reaches the main session. Then commit the approved edits with the knowledge-base updates inside that orchestrator's worktree (git -C <worktree-path> ..., on its branch), and resume or message the orchestrator so it creates the PR. If the main session must hand off without an answer, the items stay unapplied and are listed in the PR body as open questions.
./guides/delivery-scope.md)Every ask to the user uses the decision-request format: lettered options (A, B, C) under numbered questions (reply 1 A 2 C), each with its pros and cons, the recommended option marked, and why it is recommended (see Decision requests in ./guides/delivery-scope.md). The Agent Request below, the Clarification report and the Review Escalation report all use those option blocks. Questions that only collect a fact are exempt.
Severity-rule escalations never use this template. When a review gate escalates (the 10-round cap, or a recurring or disputed blocker), still mark the task waiting (bd update <task-id> --status blocked and bd label add <task-id> waiting:human), then post the Review Escalation report from the Escalation template in ./guides/delivery-scope.md instead. Its options are Revise, Clarify the requirement / re-brainstorm, Narrow scope, Defer and Cancel, and any revised or narrowed work gets a fresh review round that it must pass. A Clarify signal (rule line 2) uses the Clarification report from the Clarify section of the same guide instead: run the misunderstanding analysis first, then wait for the user's answer. "Keep going" never defaults a needs_user question. There is no @beads approve for an escalated review gate: escalation never approves, and a Clarification never approves either.
For triggers 1-4:
# Mark task as waiting
bd update <task-id> --status blocked
bd label add <task-id> waiting:human
# Post to GitHub Issue
gh issue comment <number> --body "$(cat <<'EOF'
## 🤖 Agent Request: <type>
**Task**: <task-id>
**Decision 1**: <clear question>
### Options
Every ask to the user uses the decision-request format (see Decision requests in `./guides/delivery-scope.md`): lettered options A, B, C (never numbers), each with pros and cons, and Why recommended on the recommended option only.
**Option A: <name>** (Recommended)
<one line on what it does>
- Pros: ...
- Cons: ...
- Why recommended: <tied to the user's goals or constraints>
**Option B: <name>**
<one line on what it does>
- Pros: ...
- Cons: ...
Reply with the decision number and a letter, like `1 A`. If there's no answer: <what proceeds meanwhile, and what waits>.
---
Reply: `@beads approve <task-id>` or `@beads respond <task-id> <option>`
EOF
)"
@beads approve unblocks a task waiting on triggers 1-4. It is never for an escalated review gate, which passes only by a fresh review round.
# Approve a blocked task
@beads approve bd-abc123
# Respond with choice
@beads respond bd-abc123 "Use option A"
# Request changes
@beads request-changes bd-abc123 "Need more error handling"
# Defer to later
@beads defer bd-abc123 "Discuss in Monday standup"
Every subagent_type below is a role type resolved per Role type resolution.
// A new user-facing feature: the Codebase Researcher and both deep-research arms, in parallel
// (code-only work needs only the Codebase Researcher; a small design may use one deep arm)
const reports = await Promise.all([
Task({
subagent_type: roleType("codebase-researcher"),
description: "Research for issue #123",
prompt: researcherPrompt,
}),
Task({
subagent_type: roleType("deep-researcher"),
description: "Deep research for issue #123",
prompt: deepBrief,
}),
Task({
subagent_type: roleType("deep-researcher-second"),
description: "Deep research (second arm) for issue #123",
prompt: deepBrief,
}),
]);
// The research feeds the plan, so check every report first: citation check, then context check
const corrected = [];
for (const report of reports) {
const citationCheck = await Task({
subagent_type: roleType("citation-checker"),
description: "Citation check for issue #123",
prompt: citationBrief + report, // names the directories the report cites outside the repo
});
const contextCheck = await Task({
subagent_type: roleType("codebase-researcher"),
description: "Context check for issue #123",
prompt: contextCheckBrief + report + citationCheck,
});
corrected.push(applyCorrections(report, citationCheck, contextCheck)); // the orchestrator does this
}
const correctedFindings = merge(corrected); // the corrected reports are merged into one set of findings
// Then spawn the Architect with the corrected findings, never the raw report
const planResult = await Task({
subagent_type: roleType("planner"),
description: "Planning for issue #123",
prompt: architectPrompt + correctedFindings,
});
// Spawn Code Review and Security Audit in parallel
const [reviewResult, securityResult] = await Promise.all([
Task({
subagent_type: roleType("adversarial-reviewer"),
description: "Code review for #123",
prompt: codeReviewPrompt, // role: code reviewer, stated in the prompt
}),
Task({
subagent_type: roleType("adversarial-reviewer"),
description: "Security audit for #123",
prompt: securityAuditPrompt, // role: security auditor, stated in the prompt
}),
]);
ALL agents MUST prime their context before starting ANY work. This prevents bad assumptions and ensures alignment with established patterns.
Use /prime (metaswarm knowledge priming). It filters the knowledge base (.beads/knowledge/*.jsonl) with jq, by keyword (over each fact and its tags), by file (over its affected files) and by work type (over its fact type):
/prime # MUST FOLLOW rules + gotchas
/prime src/lib/services/ src/api/routes/ # files you'll modify
/prime authentication jwt # a topic
/prime planning # work type: planning, implementation, review, research
/prime <topic> <files> <work-type> # combined (most thorough)
See commands/prime.md for the exact jq filters. /prime reports the relevant facts categorized as:
After compaction or in a new session with an active plan: if bd is installed, bd prime (bd context); then read .beads/plans/active-plan.md and .beads/context/*.md; then /prime for knowledge. Also check .beads/context/review-history/ for a non-closed file: it is an interrupted review gate. Resume that gate at its next round, and if its status is clarify-pending, re-ask the pending questions instead of iterating.
Run self-reflection to extract learnings. Its instruction review (proposed changes to CLAUDE.md, agent and skill prompts, and metaswarm itself, asked as one decision request) is required and never skipped, and approved edits are committed with the knowledge base updates:
# Fetch recent PR comments (metaswarm-specific GitHub integration)
GITHUB_TOKEN=$(gh auth token) npx tsx scripts/beads-fetch-pr-comments.ts --days 7
# Use self-reflect skill to evaluate and add learnings
/self-reflect
Or spawn Knowledge Curator agent. It runs before the PR, stores nothing, and RETURNS its candidate learnings with the "Instruction changes proposed" list from the /self-reflect Step 7 instruction review. A Task subagent cannot ask the user, so before the PR the parent session approves the candidates (/self-reflect Step 4), stores the approved ones (Step 5) and the parent session asks the instruction decision request (none for a none, because ... list), and commits the stored learnings with the approved edits:
Task({
subagent_type: roleType("knowledge-curator-agent"),
description: "Extract learnings from epic",
prompt: `Review completed epic <epic-id> and extract learnings.
FIRST: Run \`/prime\` (metaswarm knowledge priming) for review work on this epic.
Then analyze:
- What patterns were used?
- What gotchas were discovered?
- What should future agents know?
Do not store anything yourself: RETURN the candidate learnings to the parent session, which approves them (/self-reflect Step 4), stores the approved ones (Step 5) and commits them.
Then run the /self-reflect Step 7 instruction review and RETURN the "Instruction changes proposed" list with the candidates. Do not ask the user and do not apply any instruction change; the parent session does both.`,
});
For large epics, orchestrators can spawn sub-orchestrators. The pattern:
Epic (Issue Orchestrator)
├── Sub-Epic A (Sub-Orchestrator)
│ ├── Task A1
│ └── Task A2
├── Sub-Epic B (Sub-Orchestrator)
│ ├── Task B1
│ └── Task B2
└── Integration Task (blocked by A + B)
When to decompose: If an epic has more than 5-7 tasks or spans multiple domains (e.g., frontend + backend + schema), split into sub-epics.
# Create sub-epics under parent epic
bd create "Sub-Epic: API layer" --type epic --parent <parent-epic-id>
bd create "Sub-Epic: UI components" --type epic --parent <parent-epic-id>
# Each sub-epic gets its own orchestrator
# The parent orchestrator coordinates completion
Each sub-epic's orchestrator follows the same workflow (research → plan → review → implement → PR) independently. The parent orchestrator monitors progress and coordinates the final integration.
Before closing an epic, verify ALL:
.coverage-thresholds.jsonSERVICE-INVENTORY.md updated with all new services/factories/modules# Check task status
bd show <task-id> --json
# Check for orphaned agent
# If agent failed, reset and retry
bd update <task-id> --status open
bd label remove <task-id> agent:failed
# Run doctor to detect
bd doctor
# If found, restructure dependencies
bd dep remove <task1> <task2>
# Check version-control status (branch and uncommitted changes)
bd vc status
# Force export
bd export
# If a Dolt remote is configured: pull the latest (local-only workspaces need no sync)
bd dolt pull
skills/start/ # This skill (main orchestration)
├── SKILL.md # This file
├── agents/ # Agent definitions
│ ├── issue-orchestrator.md # Main coordinator (runs 4-phase loop)
│ ├── codebase-researcher.md # Codebase exploration (file:line facts)
│ ├── deep-researcher.md # Design research (lenses, history, web)
│ ├── citation-checker.md # Mechanical citation check of research reports
│ ├── researcher.md # Deprecated alias for codebase-researcher
│ ├── architect-agent.md # Implementation planning
│ ├── product-manager-agent.md # Use case & user benefit review
│ ├── designer-agent.md # UX/API design review
│ ├── security-design-agent.md # Security threat modeling
│ ├── ux-reviewer-agent.md # User flows, UI states, integration wiring
│ ├── cto-agent.md # TDD readiness review
│ ├── coder.md # TDD implementation
│ ├── adversarial-reviewer.md # Internal code review (collaborative + adversarial modes)
│ ├── security-auditor-agent.md # Security review (implementation)
│ ├── release-engineer-agent.md # Merge → deploy → verify → release
│ └── pr-shepherd-agent.md # PR lifecycle management
├── guides/ # Development guides
│ ├── agent-coordination.md # Team Mode, inter-agent messaging
│ ├── git-workflow.md # Branch naming, commit conventions
│ ├── testing-patterns.md # TDD workflow, mock strategies
│ ├── coding-standards.md # Language idioms, naming conventions
│ ├── worktree-development.md # Parallel development with worktrees
│ └── build-validation.md # Pre-push checks, CI pipeline
├── rubrics/ # Review rubrics
│ ├── plan-review-rubric.md # Used by CTO Agent
│ ├── code-review-rubric.md # Used by Adversarial Reviewer (collaborative mode)
│ ├── adversarial-review-rubric.md # Used by Adversarial Reviewer (adversarial mode)
│ ├── security-review-rubric.md # Used by Security Auditor Agent
│ ├── ux-review-rubric.md # Used by UX Reviewer Agent
│ └── release-engineering-rubric.md # Used by Release Engineer Agent
└── references/ # Reference docs for other tools
├── codex-tools.md # OpenAI Codex CLI reference
├── cursor-tools.md # Cursor tools reference
└── opencode-tools.md # OpenCode tools reference
skills/orchestrated-execution/ # 4-phase execution loop pattern
└── SKILL.md
skills/design-review-gate/ # Design review gate orchestrator
└── SKILL.md
skills/brainstorming-extension/ # Hooks brainstorming to review gate
└── SKILL.md
skills/plan-review-gate/ # 3 adversarial reviewers validate plans
└── SKILL.md
skills/external-tools/ # External AI tool delegation
├── SKILL.md
├── adapters/
│ ├── _common.sh # Shared adapter helpers (14 functions)
│ ├── codex.sh # OpenAI Codex CLI adapter
│ └── gemini.sh # Google Gemini CLI adapter
└── rubrics/
└── external-tool-review-rubric.md # Used by cross-model adversarial review
skills/visual-review/ # Playwright-based visual review
└── SKILL.md
commands/ # Slash commands (invoked as /metaswarm:command-name)
├── start-task.md # /metaswarm:start-task
├── prime.md # /metaswarm:prime
├── review-design.md # /metaswarm:review-design
├── self-reflect.md # /metaswarm:self-reflect
├── pr-shepherd.md # /metaswarm:pr-shepherd
├── handle-pr-comments.md # /metaswarm:handle-pr-comments
├── create-issue.md # /metaswarm:create-issue
└── metaswarm-setup.md # /metaswarm:metaswarm-setup
templates/ # Project scaffolding templates
├── CLAUDE.md # Full CLAUDE.md template for new projects
├── CLAUDE-append.md # Metaswarm section to append to existing CLAUDE.md
├── UI-FLOWS.md # User flow and wireframe documentation template
├── gitignore # Standard Node.js/TypeScript ignores
├── SERVICE-INVENTORY.md # Service/factory/module tracking template
└── ci.yml # CI pipeline template
.beads/ # Runtime state (in user's project)
├── beads.db # SQLite database
├── issues.jsonl # Issue/task data
└── knowledge/ # Curated learnings
├── codebase-facts.jsonl
├── patterns.jsonl
└── anti-patterns.jsonl
agents/adversarial-reviewer.md (opens in a new tab)agents/architect-agent.md (opens in a new tab)agents/citation-checker.md (opens in a new tab)agents/codebase-researcher.md (opens in a new tab)agents/coder.md (opens in a new tab)agents/cto-agent.md (opens in a new tab)agents/customer-service-agent.md (opens in a new tab)agents/debugger.md (opens in a new tab)agents/deep-researcher-second.md (opens in a new tab)agents/deep-researcher.md (opens in a new tab)agents/design-reviewer.md (opens in a new tab)agents/designer-agent.md (opens in a new tab)agents/issue-orchestrator.md (opens in a new tab)agents/knowledge-curator-agent.md (opens in a new tab)agents/mechanical-coder.md (opens in a new tab)agents/metrics-agent.md (opens in a new tab)agents/plan-reviewer.md (opens in a new tab)agents/planner.md (opens in a new tab)agents/pr-shepherd-agent.md (opens in a new tab)agents/product-manager-agent.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 skills in this plugin
/brainstorming-extensionLoads the assumption ledger and misreadings checklist at the start of brainstorming, and enforces the design review gate when a project-sized design doc is committed — bridges superpowers:brainstorming into the metaswarm quality pipeline/create-issueCreate comprehensive GitHub issues with TDD plans, acceptance criteria, and agent instructions for autonomous PR lifecycle management/design-review-gateAutomatic review gate that runs when brainstorming commits a project-sized design doc - spawns PM, Architect, Designer, Security, UX Reviewer and CTO agents in parallel, iterates under the severity rule until all approve or it escalatesmetaswarm@metaswarm-marketplace is listed by dsifry/metaswarm-marketplace — review the source before installing
npx claudepluginhub dsifry/metaswarm-marketplace --plugin metaswarmOther plugins' skills for the same job