Swarm Architect
Conductor integration. This is the Plan stage of the conductor's github-delivery modality
(see conductor-core §4): swarm-architect plans → github-next-wave-orchestrator dispatches →
ship-battery.mjs gates (fail-closed) → loop-feedback.mjs closes. resolve-task.mjs resolves each
swarm task to its capability cluster + human/copilot lane. The full runbooks, playbooks,
schemas, machine-readable specs, OpenViking memory, Superset workspaces, and Copilot-bootstrap
templates live in the source repo ~/.../thoughtseed/swarm-architect-skill/ — load them from there
for production runs; this spoke is the condensed on-demand version.
Use this skill to design execution-ready engineering plans from specs, architecture docs, and repo context.
This is not a lightweight checklist generator. It is a full orchestration workflow.
1) Session Start: Interactive Discovery (Mandatory)
Before generating tasks, run a short discovery dialogue to lock planning depth and delivery constraints.
Capture at minimum:
- Planning depth: lean / standard / deeply detailed
- Delivery mode: prototype, production, or hardening
- CI/CD expectations: none / basic / production-grade
- Release model: single milestone or phased rollout
- Quality bar: testing depth, observability, performance, security requirements
- Team topology: solo / small squad / multi-squad
- External constraints: deadline, compliance, platform constraints
Do not skip discovery unless all values are explicitly provided in the request.
2) Inputs to Load
Load all available planning context, prioritizing:
DesignSpec.md
ProjectArchitecture.md
.context/architecture/overview.md
.context/architecture/patterns.md
.context/auth/overview.md
.context/testing.md
.context/workflows.md
.context/errors.md
.context/api/headers.md
.context/feature-flags.md
.context/performance.md
.context/monitoring.md
.context/ui/patterns.md
If user asks to process all context docs, enumerate and include all .context/** files relevant to requirements and constraints.
3) Plan Size and Structure Rules
Minimum granularity
- Minimum total tasks: 70
- Default target: 80 tasks
- Expand beyond 80 for large scope; never compress by hiding complexity
Required hierarchy
- Top-level: Phases
- Phase 1 must be split into multiple Waves
- Each Wave must include multiple Swarms (parallel work clusters)
- Swarms should be dependency-aware and independently executable where possible
Dependency discipline
- Define explicit dependencies across tasks
- Preserve execution order where needed (schema → API → UI, auth → protected routes, etc.)
- Maximize parallelism only when dependencies permit
4) Required Task Schema (Per Task)
Each task must include:
id (stable string)
title (short, action-oriented)
area (frontend | backend | data | infra | qa | product)
owner_role (e.g., Frontend Eng, Backend Eng, DevOps, QA)
est_hours (numeric)
dependencies (array of task IDs)
deliverable (one sentence)
acceptance (testable one sentence)
validation (how completion is proven: tests/logs/metrics/checks)
Recommended effort range: 4–16 hours for most tasks.
5) Orchestration Policy (Enforced)
A. Plan-node default
- Any non-trivial work (3+ steps or architecture decisions) starts in planning mode
- If execution drifts or fails, stop and re-plan
- Include verification work in plan scope, not just build work
B. Parallel/swarm strategy
- Use independent swarms for independent tracks
- One tactical focus per swarm (avoid mixed-goal swarms)
- Keep cross-swarm dependency contracts explicit
C. Verification before done
- Never mark done without evidence
- Require concrete proof: tests, logs, status checks, metrics, or diff validation
D. Elegance gate (balanced)
- For non-trivial changes, challenge the design for cleaner alternatives
- Replace brittle hacks with robust solutions when justified
- Avoid over-engineering simple fixes
E. Autonomous bug-fix behavior
- For bug reports: diagnose from failing evidence, fix root cause, verify, then close
6) GitHub Issue Synchronization + Dispatch Compatibility
When task planning completes (or when waves advance):
- Create/update GitHub issues mapped to phase/wave/swarm and task IDs
- Preserve task dependencies in issue relationships/comments/checklists
- Update issue states as execution progresses
When dispatch-based orchestration is requested:
- Use dispatch-compatible flows to create/update issue batches
- Confirm repo scope and branch/reference context before dispatch
- Post concise completion summaries back to linked issues/PRs
7) Planning Artifacts
Maintain these artifacts throughout planning/execution:
tasks/todo.md → checklist grouped by Phase → Wave → Swarm
tasks/lessons.md → user-correction-derived guardrails to prevent repeat mistakes
Execution tracking protocol:
- Write plan checklist first
- Confirm/align with user
- Mark items complete progressively
- Summarize milestone progress
- Add wave-level review notes
- Persist lessons from feedback
8) Output Contract
When presenting a Swarm Architect plan, include in order:
- Discovery summary
- Assumptions and constraints
- Phase map
- Detailed Phase 1 Wave/Swarm layout
- Full task list (70–80+)
- Dependency rationale
- Verification strategy
- GitHub sync + dispatch strategy
- Risks and fallback plan
9) Mini Cookbook References
Use these quick recipes when available in the active runtime:
dispatching-parallel-agents for swarm-level parallelization
using-superpowers for skill-selection discipline before action
- GitHub issue/PR workflow recipes for synchronization and status transitions
10) Upgrade Controls (Strict Defaults)
Apply these defaults unless the user explicitly overrides them:
- Target task count: 80 (hard default)
- Phase 1 wave count: minimum 3 waves
- Swarms per wave: minimum 2 swarms
- Swarm scope rule: one primary concern per swarm (API, UI, Data, Infra, QA)
- Verification quota: each wave must include dedicated validation tasks
- CI/CD inclusion: include at least baseline pipeline tasks when delivery is production or hardening
If constraints require deviations, document "why" in assumptions.
11) Definition of Done
A Swarm Architect plan is done only when:
- discovery is complete,
- structure includes phases/waves/swarms,
- tasks are 70–80+ and schema-complete,
- dependencies are coherent,
- verification strategy is explicit,
- and GitHub synchronization approach is defined.
1---2name: swarm-architect3description: Upgraded planning protocol for large-scale delivery plans: interactive discovery, 80-task default granularity, phase→wave→swarm orchestration, and dispatch-aware GitHub synchronization. USE WHEN you need a production-grade, heavily parallelized execution plan (70–80+ tasks) decomposed into phases, waves, and independently runnable swarms with explicit dependencies and verification gates.4---56# Swarm Architect78> **Conductor integration.** This is the **Plan** stage of the conductor's `github-delivery` modality9> (see `conductor-core` §4): swarm-architect plans → `github-next-wave-orchestrator` dispatches →10> `ship-battery.mjs` gates (fail-closed) → `loop-feedback.mjs` closes. `resolve-task.mjs` resolves each11> swarm task to its capability cluster + `human`/`copilot` lane. The **full** runbooks, playbooks,12> schemas, machine-readable specs, OpenViking memory, Superset workspaces, and Copilot-bootstrap13> templates live in the source repo `~/.../thoughtseed/swarm-architect-skill/` — load them from there14> for production runs; this spoke is the condensed on-demand version.1516Use this skill to design execution-ready engineering plans from specs, architecture docs, and repo context.1718This is not a lightweight checklist generator. It is a full orchestration workflow.1920---2122## 1) Session Start: Interactive Discovery (Mandatory)2324Before generating tasks, run a short discovery dialogue to lock planning depth and delivery constraints.2526Capture at minimum:27- Planning depth: **lean / standard / deeply detailed**28- Delivery mode: prototype, production, or hardening29- CI/CD expectations: none / basic / production-grade30- Release model: single milestone or phased rollout31- Quality bar: testing depth, observability, performance, security requirements32- Team topology: solo / small squad / multi-squad33- External constraints: deadline, compliance, platform constraints3435Do not skip discovery unless all values are explicitly provided in the request.3637---3839## 2) Inputs to Load4041Load all available planning context, prioritizing:42- `DesignSpec.md`43- `ProjectArchitecture.md`44- `.context/architecture/overview.md`45- `.context/architecture/patterns.md`46- `.context/auth/overview.md`47- `.context/testing.md`48- `.context/workflows.md`49- `.context/errors.md`50- `.context/api/headers.md`51- `.context/feature-flags.md`52- `.context/performance.md`53- `.context/monitoring.md`54- `.context/ui/patterns.md`5556If user asks to process all context docs, enumerate and include all `.context/**` files relevant to requirements and constraints.5758---5960## 3) Plan Size and Structure Rules6162### Minimum granularity63- Minimum total tasks: **70**64- Default target: **80 tasks**65- Expand beyond 80 for large scope; never compress by hiding complexity6667### Required hierarchy68- Top-level: **Phases**69- **Phase 1 must be split into multiple Waves**70- Each Wave must include **multiple Swarms** (parallel work clusters)71- Swarms should be dependency-aware and independently executable where possible7273### Dependency discipline74- Define explicit dependencies across tasks75- Preserve execution order where needed (schema → API → UI, auth → protected routes, etc.)76- Maximize parallelism only when dependencies permit7778---7980## 4) Required Task Schema (Per Task)8182Each task must include:83- `id` (stable string)84- `title` (short, action-oriented)85- `area` (`frontend` | `backend` | `data` | `infra` | `qa` | `product`)86- `owner_role` (e.g., Frontend Eng, Backend Eng, DevOps, QA)87- `est_hours` (numeric)88- `dependencies` (array of task IDs)89- `deliverable` (one sentence)90- `acceptance` (testable one sentence)91- `validation` (how completion is proven: tests/logs/metrics/checks)9293Recommended effort range: **4–16 hours** for most tasks.9495---9697## 5) Orchestration Policy (Enforced)9899### A. Plan-node default100- Any non-trivial work (3+ steps or architecture decisions) starts in planning mode101- If execution drifts or fails, stop and re-plan102- Include verification work in plan scope, not just build work103104### B. Parallel/swarm strategy105- Use independent swarms for independent tracks106- One tactical focus per swarm (avoid mixed-goal swarms)107- Keep cross-swarm dependency contracts explicit108109### C. Verification before done110- Never mark done without evidence111- Require concrete proof: tests, logs, status checks, metrics, or diff validation112113### D. Elegance gate (balanced)114- For non-trivial changes, challenge the design for cleaner alternatives115- Replace brittle hacks with robust solutions when justified116- Avoid over-engineering simple fixes117118### E. Autonomous bug-fix behavior119- For bug reports: diagnose from failing evidence, fix root cause, verify, then close120121---122123## 6) GitHub Issue Synchronization + Dispatch Compatibility124125When task planning completes (or when waves advance):126- Create/update GitHub issues mapped to phase/wave/swarm and task IDs127- Preserve task dependencies in issue relationships/comments/checklists128- Update issue states as execution progresses129130When dispatch-based orchestration is requested:131- Use dispatch-compatible flows to create/update issue batches132- Confirm repo scope and branch/reference context before dispatch133- Post concise completion summaries back to linked issues/PRs134135---136137## 7) Planning Artifacts138139Maintain these artifacts throughout planning/execution:140- `tasks/todo.md` → checklist grouped by Phase → Wave → Swarm141- `tasks/lessons.md` → user-correction-derived guardrails to prevent repeat mistakes142143Execution tracking protocol:1441. Write plan checklist first1452. Confirm/align with user1463. Mark items complete progressively1474. Summarize milestone progress1485. Add wave-level review notes1496. Persist lessons from feedback150151---152153## 8) Output Contract154155When presenting a Swarm Architect plan, include in order:1561. Discovery summary1572. Assumptions and constraints1583. Phase map1594. Detailed Phase 1 Wave/Swarm layout1605. Full task list (70–80+)1616. Dependency rationale1627. Verification strategy1638. GitHub sync + dispatch strategy1649. Risks and fallback plan165166---167168## 9) Mini Cookbook References169170Use these quick recipes when available in the active runtime:171- `dispatching-parallel-agents` for swarm-level parallelization172- `using-superpowers` for skill-selection discipline before action173- GitHub issue/PR workflow recipes for synchronization and status transitions174175---176177## 10) Upgrade Controls (Strict Defaults)178179Apply these defaults unless the user explicitly overrides them:180181- Target task count: **80** (hard default)182- Phase 1 wave count: **minimum 3 waves**183- Swarms per wave: **minimum 2 swarms**184- Swarm scope rule: one primary concern per swarm (API, UI, Data, Infra, QA)185- Verification quota: each wave must include dedicated validation tasks186- CI/CD inclusion: include at least baseline pipeline tasks when delivery is production or hardening187188If constraints require deviations, document "why" in assumptions.189190---191192## 11) Definition of Done193194A Swarm Architect plan is done only when:195- discovery is complete,196- structure includes phases/waves/swarms,197- tasks are 70–80+ and schema-complete,198- dependencies are coherent,199- verification strategy is explicit,200- and GitHub synchronization approach is defined.