From tdd-guardian
Initialize workspace TDD Guardian config and enable strict hooks for test/coverage enforcement.
How this skill is triggered — by the user, by Claude, or both
Slash command
/tdd-guardian:initThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create `.claude/tdd-guardian/config.json` using project-appropriate commands.
Create .claude/tdd-guardian/config.json using project-appropriate commands.
testCommandcoverageCommandmutationCommand (optional)enforceOnTaskCompleted — run gates automatically on task completionblockCommitWithoutFreshGate — block commit/push/publish without fresh gatesfalse (non-blocking). Skills, agents, and slash commands still work — only automatic blocking is opt-in.Default config template:
{
"enabled": true,
"enforceOnTaskCompleted": false,
"blockCommitWithoutFreshGate": false,
"gateFreshnessMinutes": 120,
"bypassEnv": "TDD_GUARD_BYPASS",
"preflightCommand": "",
"testCommand": "pnpm test",
"coverageCommand": "pnpm test -- --coverage",
"coverageSummaryPath": "coverage/coverage-summary.json",
"coverageThresholds": {
"lines": 100,
"functions": 100,
"branches": 100,
"statements": 100
},
"coverageMode": "absolute",
"smartStaleness": true,
"requireMutation": false,
"mutationCommand": ""
}
"absolute" (default): must meet configured thresholds"no-decrease": blocks only if coverage decreased from recorded baseline (useful for projects with pre-existing coverage gaps)When smartStaleness: true (default), stale gate timestamps are allowed if no source files have changed since the last gate pass. This prevents unnecessary re-runs when stepping away from the project.
If project is not Node-based, replace commands with project-native equivalents.
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
npx claudepluginhub xiaolai/claude-plugin-marketplace --plugin tdd-guardian