AGENT SKILL

parallel-subagents

Orchestrate multiple §2.3 subagents within a single CL concurrently (W-11 / v1.10 §24). Distinct from W-10 — W-10 is CL-level concurrency; W-11 is within-CL agent-level parallelism. Reads `userConfig.max_parallel_subagents` (default 1 = sequential; opt-in N≥2) and §2.7 sectioned-lock contract. Per-subagent token-cost telemetry rolls into H-12 with `subagent_id` tag preserved.

License 许可
Apache-2.0
最近更新
2026-11-09
Stars
★ 0
Forks
0

01 前言 Front Matter

name
parallel-subagents
description
Orchestrate multiple §2.3 subagents within a single CL concurrently (W-11 / v1.10 §24). Distinct from W-10 — W-10 is CL-level concurrency; W-11 is within-CL agent-level parallelism. Reads `userConfig.max_parallel_subagents` (default 1 = sequential; opt-in N≥2) and §2.7 sectioned-lock contract. Per-subagent token-cost telemetry rolls into H-12 with `subagent_id` tag preserved.

03 SKILL.md 正文

parallel-subagents — W-11 / v1.10 §24

Architecture §15 W-11: "Parallel subagent orchestrator skills/parallel-subagents/SKILL.md + coordinator subagent agents/parallel-coordinator.md (sonnet, prompt_id parallel-coordinator): orchestrates multiple §2.3 subagents within a single CL concurrently."

When this skill fires

  • Operator (or a CL workflow step) decides to fan out to multiple subagents in one phase.
  • userConfig.max_parallel_subagents: <N> controls fan-out cap:
    • 1 (default) → sequential dispatch
    • >=2 → parallel dispatch up to N concurrent

Lock-section integration (§2.7)

Concurrent subagents claiming overlapping lock sections serialize via lock acquisition; non-overlapping subagents run in parallel.

Example: two reviewer subagents both wanting rubric write → second serializes behind first. A reviewer writing to rubric and a code- critic writing to compliance-report → run in parallel.

Token budget

userConfig.parallel_budget_tokens: <N> (default unbounded). Coordinator refuses parallel execution when total estimated tokens exceed the budget.

Consolidated finding set

Coordinator emits a single consolidated finding set to W-3 workflow state. Deduplication key: rule_id + file + line (per the architecture).

Telemetry

Per-subagent token cost is preserved with subagent_id tag in H-12 rollups; cost report dimensions (--by=subagent) surface this.

Orthogonality to W-10

W-10 (CL-level concurrency, §2.23) and W-11 (subagent-level parallelism) are orthogonal. A single CL with max_parallel_subagents: 4 runs 4 subagents in parallel; two CLs each with max_parallel_subagents: 4 (allowed by W-10) run up to 8 subagents total, gated by per-profile parallel-budget.

04 同仓库更多 Skills

drumfiend21
drumfiend21/claude-tdd-pro

test-first-extract

Use when the user asks to EXTRACT or RELOCATE existing code into its own file, module, or component ("extract X", "split out Y", "pull Z into its own file", "decompose god-file"). NOT for net-new features (use tdd-feature-build) or behavior changes (use fix-bug). Enforces the 9-step extraction with isolated unit tests + integration regression tests as a two-tier safety net.

★ 0
drumfiend21
drumfiend21/claude-tdd-pro

tdd-feature-build

Use when the user describes a NEW feature to add ("add X to Y", "implement Z", "build a feature that…", "make it possible to…"). Enforces TDD — failing test first, minimum code to pass, refactor. Refuses to ship code without a test that demonstrably catches its absence. Does NOT trigger on bug fixes (use bug-fix-discipline) or refactors (use test-first-extract). Will ask 1-3 clarifying questions before writing any code; safe to delegate from /feature command.

★ 0
drumfiend21
drumfiend21/claude-tdd-pro

sync

Multi-machine git-backed sync of local TDD Pro state via the `tdd-pro-sync` branch. Use when operators run claude-tdd-pro on more than one machine and want their FAILURE-LOG, decisions, audit checkpoints, workflow state, operator-curated URL registries, operator/community trees, and paywalled attestations to follow them between hosts.

★ 0
drumfiend21
drumfiend21/claude-tdd-pro

strict-component-tests

Use when writing or reviewing test files. Enforces strict assertions that actually catch regressions (getByRole, exact counts, jest-dom matchers) in contrast to permissive tests (queryAllByText length > 0) that pass against broken UIs. References QUALITY-BAR.md for the canonical strictness rules.

★ 0
drumfiend21
drumfiend21/claude-tdd-pro

spec

暂无简介

★ 0
drumfiend21
drumfiend21/claude-tdd-pro

spec-first

Use when the user describes a non-trivial feature or system that should be specified in writing before any code is written. Pattern from Geoffrey Huntley's "Ralph" loop, OpenSpec, intent-driven.dev, and Kent Beck's "augmented coding" framing — specs+tests are the durable artifact, code is the disposable one. Produces a Markdown spec document that the user reviews; only after approval does any code get written (typically via tdd-feature-build or /feature).

★ 0