AGENT SKILL

concurrent-cl

暂无简介

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

03 SKILL.md 正文

concurrent-cl — W-10 / §2.23

Architecture §15 W-10: "Concurrent CL gate skills/concurrent-cl/SKILL.md

  • hooks/scripts/concurrent-cl-gate.sh (PreToolUse on /spec, /feature, and /architect): enforces §2.23 by reading active CL envelopes from .claude-tdd-pro/active-sessions/<session_id>.json."

When this skill fires

  • PreToolUse on /spec, /feature, /architect (per W-10 hook wiring).
  • Operator runs /cl-status (the companion command shipped alongside).
  • Concurrency is opt-in. Two activation paths:
    1. userConfig.allow_concurrent_cls: true in .claude-tdd-pro/.
    2. Per-invocation --concurrent flag on /spec, /feature, /architect.

Session envelope shape

Each active CL writes one envelope at .claude-tdd-pro/active-sessions/<session_id>.json on start; the envelope is removed on CL completion or abort.

{
  "session_id": "<unique>",
  "phases": ["E", "F"],
  "state_subsections": ["commits", "spec_path"],
  "lock_sections": ["rubric", "profiles"],
  "source_folders": ["google-jsguide/no-eval.yaml"],
  "branch": "feat/<name>"
}

Disjoint-ness contract (§2.23)

Two or more CLs MAY execute concurrently when ALL of:

  1. (a) Disjoint phase set — no two CLs author specs or implementation for the same phase ID.
  2. (b) Disjoint workflow-state subsections (per §2.15) — each CL mutates only its own envelope.
  3. (c) Disjoint lock sections (per §2.7) — no two CLs hold concurrent writes on the same _locks.<section>.
  4. (d) Disjoint source-folder ownership — no two CLs author rules in the same generated-code-quality-standards/<source-namespace>/<file>.yaml.
  5. (e) Disjoint commit branches — never on the same branch.

Overlap on any condition → reject the second CL with the offending resource printed.

Cross-references

  • hooks/scripts/concurrent-cl-gate.sh — the actual gate
  • /cl-status (commands/cl-status.sh) — list running CLs
  • §2.23 — the contract (full text)
  • §11 H-3 — sectioned advisory locks
  • §2.15 — workflow state envelope shape

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