claudecodex

tdd-guardian

Enforces strict TDD discipline across unit/integration/e2e/contract lanes — specification-strength levels S1-S6 with property tooling, adversarial spec review before implementation, red receipts proving spec/implementation separation, per-path critical thresholds, 9-format coverage merging, and mutation testing

88 on GitHubby xiaolaiv0.10.2ISCupdated 19 days agodeveloper-tools
/

Plugin tdd-guardian from marketplace xiaolai in xiaolai/claude-plugin-marketplace. Commands read from the repo's manifest — 19 days ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (32)

  • tdd-guardian-audit-coverage

    Run the tdd-guardian-coverage-auditor skill to run the coverage command, compare against thresholds, and list uncovered branches with proposed tests.

  • tdd-guardian-audit-mutation

    Run the tdd-guardian-mutation-auditor skill to run mutation testing and list surviving mutants. Skips cleanly if `requireMutation=false` or the tool is not installed.

  • tdd-guardian-coverage-auditor

    Enforce strict coverage gates and identify exact missing coverage scenarios. Use it to check the configured coverage thresholds, or to audit coverage for one file whose new branches may be untested; it runs the coverage lanes and proposes a test for each gap. Not for writing the missing tests (tdd-g

  • tdd-guardian-coverage-gate

    Coverage thresholds plus test quality: coverage without behavioral assertions fails.

  • tdd-guardian-design-tests

    Run the tdd-guardian-test-designer skill to produce a concrete behavior-driven test matrix for a plan. Rejects wiring-only designs. Does NOT write implementation code.

  • tdd-guardian-gate

    Run the lanes bound to a trigger (commit, push, taskCompleted, manual) or a named lane, then evaluate the coverage and mutation gates and refresh gate state. This is how you make a stale gate fresh before committing or pushing.

  • tdd-guardian-implement

    Run the tdd-guardian-implementer skill for ONE work item — red, green, refactor — then verify with the project's test command.

  • tdd-guardian-implementer

    Implement planned work items in small batches with test-first discipline, one work item at a time (for example \"implement WI-2\"): failing tests first, then the minimal implementation, verified after each batch. Not for planning a feature (use tdd-guardian-planner), and not for implementing many wo

  • tdd-guardian-init

    Detect every test lane in this repository — unit, integration, e2e, contract — verify each by dry-run probe, and write `.claude/tdd-guardian/config.json`. Reads CI config first, since that is what maintainers actually run.

  • tdd-guardian-lane-policy

    Test lanes (unit, integration, e2e, contract): what goes where, triggers, coverage.

  • tdd-guardian-mutation-auditor

    Validate test robustness using mutation testing and report every surviving mutant with the test that would kill it, including whether the mutation score meets the kill-rate threshold and whether the mutation tool is installed. Report-only — the implementer writes the tests. Not for checking coverage

  • tdd-guardian-mutation-gate

    Mutation testing gate: per-language tools (Stryker, PIT, mutmut), weak assertions.

  • tdd-guardian-plan

    Break a TDD task into work items, acceptance criteria, and required test targets, using the tdd-guardian planner, and save the plan under .claude/tdd-guardian/. Does NOT write code or tests.

  • tdd-guardian-planner

    Break a request — a new feature or a refactor — into implementation work items with explicit acceptance criteria, risks, and test targets, before any code is written. Not for implementing code (use tdd-guardian-implementer) or for coverage questions (use tdd-guardian-coverage-auditor).

  • tdd-guardian-policy-core

    Core TDD policy: plan-first development, assertion and spec levels, completion gates.

  • tdd-guardian-probe

    Dry-run every configured lane to verify its command resolves and discovers tests, without executing the suites. Read-only; runs no tests and writes no files.

  • tdd-guardian-review-gate

    Findings-first code review: severity order, test-gap findings, test-quality audit.

  • tdd-guardian-review

    Run the tdd-guardian-reviewer skill for a final code + test-quality review. Classifies every expect() call as behavior vs wiring, flags mocked internal modules, and reports missing tests.

  • tdd-guardian-reviewer

    Final reviewer that audits code quality, test quality (wiring vs behavior), and coverage gaps; also use it to flag the wiring-only tests in a specific test file. Report-only. Not for fixing the tests it flags (use tdd-guardian-implementer) or for running coverage (use tdd-guardian-coverage-auditor).

  • tdd-guardian-spec-adversary

    Attack a test matrix before any implementation exists — find the wrong implementation that would pass every case, such as one that skips a state transition or breaks an invariant. Report-only; the designer fixes the matrix. Not for reviewing tests after the code is written (use tdd-guardian-reviewer

  • tdd-guardian-status

    Read-only status report — shows last-run coverage %, mutation score, review verdict, and per-work-item state from `.claude/tdd-guardian/state.json`. Does NOT run any auditor skill, test, or gate.

  • tdd-guardian-test-designer

    Design behavior-driven tests with explicit assertion strategies — success, boundary, invalid-input, edge and concurrency cases, using real fixtures rather than mocking internal modules. Rejects wiring-only test designs. Not for writing implementation code (use tdd-guardian-implementer) or for runnin

  • tdd-guardian-test-matrix

    Test matrix for changed behavior, with an explicit assertion strategy per case.

  • tdd-guardian-tooling-catalog

    Per-language test runners, coverage tools, mutation tools and dry-run probe commands.

  • tdd-guardian-workflow

    Run strict TDD orchestration by chaining the six focused skills: plan → design-tests (with adversarial attack on the matrix) → implement (per WI, with red receipts) → audit-coverage → audit-mutation → review. Halts immediately on any gate failure. No commits before green.

  • coverage-gate

    Coverage thresholds plus test quality: coverage without behavioral assertions fails.

  • lane-policy

    Test lanes (unit, integration, e2e, contract): what goes where, triggers, coverage.

  • mutation-gate

    Mutation testing gate: per-language tools (Stryker, PIT, mutmut), weak assertions.

  • policy-core

    Core TDD policy: plan-first development, assertion and spec levels, completion gates.

  • review-gate

    Findings-first code review: severity order, test-gap findings, test-quality audit.

  • test-matrix

    Test matrix for changed behavior, with an explicit assertion strategy per case.

  • tooling-catalog

    Per-language test runners, coverage tools, mutation tools and dry-run probe commands.

Slash commands (16)

  • /tdd-guardian:audit-coverage

    Dispatch the tdd-coverage-auditor agent to run the coverage command, compare against thresholds, and list uncovered branches with proposed tests.

  • /tdd-guardian:audit-mutation

    Dispatch the tdd-mutation-auditor agent to run mutation testing and list surviving mutants. Skips cleanly if `requireMutation=false` or the tool is not installed.

  • /tdd-guardian:design-tests

    Dispatch the tdd-test-designer agent to produce a concrete behavior-driven test matrix for a plan. Rejects wiring-only designs. Does NOT write implementation code.

  • /tdd-guardian:gate

    Run the lanes bound to a trigger (commit, push, taskCompleted, manual) or a named lane, then evaluate the coverage and mutation gates and refresh gate state. This is how you make a stale gate fresh before committing or pushing.

  • /tdd-guardian:implement

    Dispatch the tdd-implementer agent for ONE work item — red, green, refactor — then verify with the project's test command.

  • /tdd-guardian:init

    Detect every test lane in this repository — unit, integration, e2e, contract — verify each by dry-run probe, and write `.claude/tdd-guardian/config.json`. Reads CI config first, since that is what maintainers actually run.

  • /tdd-guardian:plan

    Dispatch the tdd-planner agent to break a task into work items, acceptance criteria, and required test targets. Does NOT write code or tests.

  • /tdd-guardian:probe

    Dry-run every configured lane to verify its command resolves and discovers tests, without executing the suites. Read-only; runs no tests and writes no files.

  • /tdd-guardian:review

    Dispatch the tdd-reviewer agent for a final code + test-quality review. Classifies every expect() call as behavior vs wiring, flags mocked internal modules, and reports missing tests.

  • /tdd-guardian:shared:detect-tooling

    Shared: detect test lanes, runners, coverage tools, and e2e suites from CI config, manifests, and test topology — then verify each by dry-run probe

  • /tdd-guardian:shared:load-config

    Shared: load .claude/tdd-guardian/config.json, migrate v1 to v2, validate lanes, fail loudly if missing

  • /tdd-guardian:shared:parse-coverage

    Shared: parse and merge coverage across 9 formats — Istanbul, coverage.py, LCOV, Cobertura, JaCoCo, Clover, go-cover, SimpleCov

  • /tdd-guardian:shared:parse-mutation

    Shared: parse mutation testing output into score + survivor list across the Stryker family, PIT, Infection, mutmut, go-mutesting, cargo-mutants, and any tool emitting the mutation-testing-elements schema

  • /tdd-guardian:shared:run-lane

    Shared: execute one lane (setup, command, coverage report, teardown) and classify the outcome, distinguishing runner failure from test failure

  • /tdd-guardian:status

    Read-only status report — shows last-run coverage %, mutation score, review verdict, and per-work-item state from `.claude/tdd-guardian/state.json`. Does NOT run any agent, test, or gate.

  • /tdd-guardian:workflow

    Run strict TDD orchestration by chaining the six focused commands: plan → design-tests (with adversarial attack on the matrix) → implement (per WI, with red receipts) → audit-coverage → audit-mutation → review. Halts immediately on any gate failure. No commits before green.

Subagents (7)

  • tdd-coverage-auditor

    Enforce strict coverage gates and identify exact missing coverage scenarios. Use it to check the configured coverage thresholds, or to audit coverage for one file whose new branches may be untested; it runs the coverage lanes and proposes a test for each gap. Not for writing the missing tests (tdd-i

  • tdd-implementer

    Implement planned work items in small batches with test-first discipline, one work item at a time (for example "implement WI-2"): failing tests first, then the minimal implementation, verified after each batch. Not for planning a feature (use tdd-planner), and not for implementing many work items in

  • tdd-mutation-auditor

    Validate test robustness using mutation testing and report every surviving mutant with the test that would kill it, including whether the mutation score meets the kill-rate threshold and whether the mutation tool is installed. Report-only — the implementer writes the tests. Not for checking coverage

  • tdd-planner

    Break a request — a new feature or a refactor — into implementation work items with explicit acceptance criteria, risks, and test targets, before any code is written. Not for implementing code (use tdd-implementer) or for coverage questions (use tdd-coverage-auditor). <example> Context: User asks to

  • tdd-reviewer

    Final reviewer that audits code quality, test quality (wiring vs behavior), and coverage gaps; also use it to flag the wiring-only tests in a specific test file. Report-only. Not for fixing the tests it flags (use tdd-implementer) or for running coverage (use tdd-coverage-auditor). <example> Context

  • tdd-spec-adversary

    Attack a test matrix before any implementation exists — find the wrong implementation that would pass every case, such as one that skips a state transition or breaks an invariant. Report-only; the designer fixes the matrix. Not for reviewing tests after the code is written (use tdd-reviewer) or for

  • tdd-test-designer

    Design behavior-driven tests with explicit assertion strategies — success, boundary, invalid-input, edge and concurrency cases, using real fixtures rather than mocking internal modules. Rejects wiring-only test designs. Not for writing implementation code (use tdd-implementer) or for running coverag

Hooks (2)

  • PreToolUse

    node "${CLAUDE_PLUGIN_ROOT}/scripts/tdd-guardian/pretool_guard.js"

  • TaskCompleted

    node "${CLAUDE_PLUGIN_ROOT}/scripts/tdd-guardian/taskcompleted_gate.js"

View source on GitHub

More from xiaolai/claude-plugin-marketplace

All 19 plugins →

cc-suite

claude

One plugin to bridge and delegate across Claude Code, Codex CLI, and Antigravity — single-source AGENTS.md, shared skills, mirrored hooks and MCP servers, full Claude↔Codex bidirectional delegation (including Codex reading Claude's session history), a Claude→Grok Build delegation lane over ACP, a bounded read-only Claude→Qwen Code review lane (Safe Mode + Plan mode + sandbox, isolated target copies, verified tool boundary), project-scoped advisor agents, opt-in bridging to more coding agents (Grok Build, opencode, Qwen Code, Kimi CLI) via a tool-profile registry, never-stale model selection (the config records the 'latest' policy), a structured diagnostics engine (enabled-tools-aware health checks with verified auto-repair), and a cross-repo sweep that finds every project on the machine cc-suite has bridged and repairs bridge leftovers in one pass — dead MCP registrations, and skills symlinks left pointing at a pruned plugin version, which SessionStart now also re-points on its own. Supersedes cc-bridge and codex-toolkit.

13 skills · 46 commands · hooks

88

docs-guardian

claudecodex

Documentation freshness, accuracy and coverage checks, plus commit and push guards that resolve the target repository and map outgoing source changes to documentation.

35 skills · 5 commands · 5 agents · hooks

88

nlpm

claudecodex

Natural-Language Programming Manager — score, check, fix, and test NL artifacts across Claude Code, Codex CLI, and Antigravity. Tier-aware scoring with per-tool overlays. v1.0.0 marks the multi-tool branded release: nlpm:conventions splits into universal floor + per-tool overlays (conventions-claude, conventions-codex, conventions-antigravity); the scoring rubric splits Hooks per tool (the three event vocabularies are not 1:1 mappable); new artifact rows for .codex-plugin/plugin.json, .agents/plugins/marketplace.json, agents/openai.yaml sidecars, gemini-extension.json, LSP, monitors. Standalone Python validator (bin/nlpm-check) remains tool-agnostic and Claude-Code-free for pre-commit hooks and CI.

17 skills · 15 commands · 8 agents · hooks

88

english-buddy

claudecodex

English coaching with configurable on-demand and sampled modes, bounded provider calls, literal-preservation checks and progress reports; the original user prompt remains authoritative.

23 skills · 10 commands · 4 agents · hooks

88

mac-it-guy-pro

claudecodex

Personal IT guy for non-technical macOS users — 12 plain-language commands, 4 agents, observation-first onboarding, a machine profile that retires its own stale beliefs by retesting them, a locked and transactional state writer, a PreToolUse guard that blocks destructive shell commands, a toolbox that turns repeated chores into reusable micro-tools and offers automations you did not know to ask for, learning maps built from your own measurements, and answers in your chosen language while everything on disk stays English. Ships a Codex layout with the same hooks. macOS only. 129 assertions.

8 skills · 12 commands · 4 agents · hooks

88

bureau

claude

Turn AI sessions into a maintained, human-reviewed knowledge base: capture sessions to append-only logbooks, compile into consistency-checked cabinet dossiers gated by trust tiers (proposed → verified → canonical), and render an offline gazette (built by the bundled press). A typed review queue (bureau:review) orders the backlog upstream-first and names the exact action per page (approve / reapprove / confirm / resolve / repair); a human applies decisions one at a time or as a reviewed, content-bound, commit-gated batch (approve --from a manifest, or --all with a warning). Record architecture decisions as MADR ADR pages (bureau:adr) with typed supersedes edges — a superseded decision leaves current fact only once the superseding ADR is content-bound approved (ADR-0006). Delegate the review queue to Codex as your representative (bureau:codex-review): it recommends approve/hold, and where a workspace opts the codex authority into trust_policy it commits under --by codex — an honest machine authority, never a human one (ADR-0007). Bulk-approve the whole backlog in one confirmation (bureau:approve-all): the AI shows the batch and confirms, then hands you the single --by human line to fire yourself — it never signs for you. A deterministic recursion engine tracks claim-level dependencies (rests_on + author-anchored spans) via an append-only decision log, per-span revisions, an early-cutoff gate, and an fsck byte-fixpoint — so changing an upstream claim flags every downstream page for review. A live Engine view (bureau:serve) paints three signals onto the board as you edit — dependency freshness (needs-review/stale), artifact currency (a verified file that drifted out from under a claim), and a convergence trend (is the canon settling or thrashing) — and git-backed versioning renders any past board (build --at), diffs two versions, and pins named snapshots. Enable a crew of specialized agents or author your own. Karpathy LLM-wiki pattern + session provenance + a human rev

4 skills · 18 commands · hooks

88

Similar plugins

Matt Pocock's agent skills for real engineering (grilling, spec/ticket flows, TDD, code review, domain modelling and more).

39 skills

mattpocock/skills 323,108

superpowers

claudecodex

Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques

15 skills · hooks

obra/superpowers 316,836

ecc

claudecodex

Harness-native ECC operator layer - 71 agents, 314 skills, 98 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses

200 skills · 98 commands · 71 agents · 1 MCP server · hooks

affaan-m/ECC 302,088

Collection of example skills demonstrating various capabilities including skill creation, MCP building, visual design, algorithmic art, internal communications, web testing, artifact building, Slack GIFs, and theme styling

19 skills

anthropics/skills 193,780

Comprehensive PR review agents specializing in comments, tests, error handling, type design, code quality, and code simplification

1 command · 6 agents

anthropics/claude-code 155,476

agent-skills

claudecodex

Production-grade engineering skills covering every phase of software development: spec, plan, build, verify, review, and ship.

25 skills · 4 agents

addyosmani/agent-skills 116,782

Maintain tdd-guardian?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins19 plugins