Skip to content
Testing
Skill

/toggle-tdd

Turn the TDD enforcement hooks on or off, or check which they currently are. Use when the user says anything like 'turn off the tests', 'disable the TDD hooks', 'stop checking my tests', 'I don't want this enforced right now', 'turn testing back on', 're-enable the TDD stuff',

From plugin
e2e-testing
159 skills2 hooks
Install
$ npx -y skills add burhankhatri/e2e-testing --skill toggle-tdd --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/toggle-tdd

Context preview

The summary Claude sees to decide when to auto-load this skill.

Turn the TDD enforcement hooks on or off, or check which they currently are. Use when the user says anything like 'turn off the tests', 'disable the TDD hooks', 'stop checking my tests', 'I don't want this enforced right now', 'turn testing back on', 're-enable the TDD stuff',

SKILL.md

toggle-tdd.SKILL.md
name: toggle-tdd
description: "Turn the TDD enforcement hooks on or off, or check which they currently are. Use when the user says anything like 'turn off the tests', 'disable the TDD hooks', 'stop checking my tests', 'I don't want this enforced right now', 'turn testing back on', 're-enable the TDD stuff', or asks whether the hooks are currently on or off. Also covers /toggle-tdd."

Toggle TDD Enforcement

The user wants to switch the reminder hook and the test-checking hook on, off, or wants to know which they currently are. Just do it — don't explain the mechanism unless asked.

bash ~/.claude/hooks/toggle.sh off      # user wants it off
bash ~/.claude/hooks/toggle.sh on       # user wants it back on
bash ~/.claude/hooks/toggle.sh status   # user is asking, not telling

Run the one that matches what they asked for, then report the single line it prints back — don't add anything else unless they ask.

If the command fails because the file doesn't exist, the hooks were never installed on this machine. Tell the user that plainly and point them at `bash install.sh` in this repo.

Ships withe2e-testing

A set of 8 global skills for Claude Code that enforce disciplined, test-driven agentic development. Install once, use in any project.

Get the whole plugin

Other skills on e2e-testing.