/tdd-guardian:probe [optional lane name]from tdd-guardian
Dry-runs every configured test lane to verify commands resolve and discover tests, without executing any suites. Accepts an optional lane name to probe a single lane.
Ships in tdd-guardian. Installing the plugin adds it to Claude Code.
Verify that every configured lane actually resolves. Runs no test suites.
A lane written from manifest inspection is a guess. /tdd-guardian:init probes before writing config, but configs drift — a dependency is removed, a script is renamed, a test directory moves. This command re-verifies on demand, cheaply, before a gate run finds out the expensive way.
Follow ${CLAUDE_PLUGIN_ROOT}/commands/shared/load-config.md. Stop on missing or disabled config. Surface every validation warning — they describe ways the gate can silently do nothing.
If $ARGUMENTS names a lane, probe only that one. Reject an unknown name by listing the configured lane names. With no argument, probe every lane.
Use the lane's probeCommand if set. Otherwise infer one from the lane's command using the probe table in ${CLAUDE_PLUGIN_ROOT}/commands/shared/detect-tooling.md and the per-ecosystem files in the tdd-guardian:tooling-catalog skill.
If no probe is available for that runner, mark the lane unprobeable and say so plainly. Do not substitute the real test command — this command must never run a suite.
Timeout 120000 ms. Capture exit code and output.
| Outcome | Verdict | Meaning |
|---|---|---|
| Exit 0, non-empty listing | verified | Resolves and discovers tests |
| Exit 0, empty listing, lane has never had tests | bootstrap | Greenfield — expected, not a defect |
| Exit 0, empty listing, lane has had tests | empty | Discovery broke, or the tests were deleted |
| Exit 127, or "command not found" | unresolved | Runner not installed |
| Non-zero with a config error | unresolved | Runner config is broken |
| No probe available | unprobeable | Cannot verify cheaply; say so |
Read ever_had_tests from .claude/tdd-guardian/state.json to tell bootstrap from empty. They look identical at the probe and mean opposite things: one is a brand-new project behaving as designed, the other is a regression. Diagnosing a greenfield repo as "your glob is wrong" sends the user hunting for a bug that does not exist.
Extract a test count from the listing where the format allows it. Report — rather than guessing.
For each lane, also verify without running anything:
coverage: "include" lanes have a non-empty coverageSummaryPath, and no two lanes share one.setupCommand's binary exists (command -v <first token>), without starting services.timeoutMs is consistent with the trigger — over 15 minutes on taskCompleted is a misconfiguration.requireMutation is paired with a resolvable mutationCommand.# Lane Probe — {N verified / M total}
**Workspace**: {pwd}
**Config**: `.claude/tdd-guardian/config.json` (schema v{n})
| Lane | Verdict | Tests found | Trigger | Coverage | Probe |
|------|---------|-------------|---------|----------|-------|
| unit | verified | 148 | taskCompleted, commit | include | `pnpm exec vitest list` |
| integration | verified | 22 | commit | include | `pytest --collect-only -q` |
| e2e | empty | 0 | push | none | `npx playwright test --list` |
## Findings
{One entry per non-verified lane, with the exact failing output and the fix.}
### e2e — discovers zero tests
`npx playwright test --list` exits 0 but lists nothing.
The config's `testDir` is `./tests/e2e`, which does not exist; the specs are in `./e2e`.
Fix: correct `testDir` in `playwright.config.ts`, or change the lane command to `npx playwright test e2e/`.
## Configuration warnings
{Validation warnings from load-config, plus the static checks from Step 5.}
## Verdict
{All lanes verified → "All lanes resolve and discover tests."}
{Otherwise → "N lane(s) will fail at gate time. Fix before relying on the gates."}
command — that is /tdd-guardian:gate.setupCommand; only check that its binary exists.ever_had_tests in state; report bootstrap for a greenfield lane and empty for a regression, and never give the greenfield case a broken-glob diagnosis.What the command file sets; muted values are Claude Code's defaults
inherit7-day visitors to each command page
npx claudepluginhub xiaolai/tdd-guardian-for-claude --plugin tdd-guardian16 commands in this plugin
/audit-coverageDispatch the tdd-coverage-auditor agent to run the coverage command, compare against thresholds, and list uncovered branches with proposed tests./audit-mutationDispatch the tdd-mutation-auditor agent to run mutation testing and list surviving mutants. Skips cleanly if `requireMutation=false` or the tool is not installed./design-testsDispatch 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./gateRun 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./implementDispatch the tdd-implementer agent for ONE work item — red, green, refactor — then verify with the project's test command./initDetect 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.Other plugins' commands for the same job