/super-gsd:sg-toggle-tdd [on|off] - 'on' enables TDD, 'off' disables it, empty flips the current state.from super-gsd
Toggle the sg-tdd stage on or off in the super-gsd workflow. Flips super_gsd.tdd_mode in .planning/config.json so sg-next / sg-status / the stop hook include or skip TDD verification after execute. Accepts on|off, or no argument to flip.
Ships in super-gsd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
<execution_context> Self-contained. Reads and writes .planning/config.json only. Does not touch HANDOFF.md or any other workflow file. </execution_context>
1. **Parse the desired state from $ARGUMENTS.** ```bash ARG=$(printf '%s' "$ARGUMENTS" | tr '[:upper:]' '[:lower:]' | tr -d '[:space:]') case "$ARG" in on|enable|true) DESIRED="on" ;; off|disable|false) DESIRED="off" ;; "") DESIRED="toggle" ;; *) echo "Unknown argument '$ARGUMENTS'. Use: on | off | (empty to toggle)."; exit 1 ;; esac ```Read-modify-write config.json (macOS compatible — node only, no jq).
The underlying flag is tdd_mode (non-inverted: TDD ON ⇒ tdd_mode=true). The effective post-implementation sequence is printed for confirmation.
RESULT=$(DESIRED="$DESIRED" node -e '
const fs=require("fs"), path=require("path");
const p=path.join(process.cwd(),".planning","config.json");
let cfg={};
try{cfg=JSON.parse(fs.readFileSync(p,"utf-8"));}catch(e){cfg={};}
cfg.super_gsd=cfg.super_gsd||{};
const cur=!!cfg.super_gsd.tdd_mode;
const d=process.env.DESIRED;
let val; if(d==="on")val=true; else if(d==="off")val=false; else val=!cur;
cfg.super_gsd.tdd_mode=val;
fs.mkdirSync(path.dirname(p),{recursive:true});
fs.writeFileSync(p, JSON.stringify(cfg,null,2)+"\n");
const tdd=val, sr=!!cfg.super_gsd.skip_review, sl=!!cfg.super_gsd.skip_learn;
const seq=["execute"]; if(tdd)seq.push("tdd"); if(!sr)seq.push("review"); if(!sl)seq.push("learn"); seq.push("ship");
process.stdout.write((val?"on":"off")+"\t"+seq.join(" → "));
' 2>/dev/null)
if [ -z "$RESULT" ]; then echo "Failed to update .planning/config.json"; exit 1; fi
STATE=$(printf '%s' "$RESULT" | cut -f1)
PATHSEQ=$(printf '%s' "$RESULT" | cut -f2)
echo "tdd:$STATE"
echo "path:$PATHSEQ"
Report the new state in the user's language.
Surface the result as prose in the user's input language. Keep the command token sg-tdd, the flag name tdd_mode, and the stage sequence tokens (execute → … → ship) verbatim in English.
STATE=on: tell the user the sg-tdd stage is now enabled (runs after execute).STATE=off: tell the user the sg-tdd stage is now skipped (the default).path: so the user can confirm.
<success_criteria>
super_gsd.tdd_mode is flipped relative to its current value (absent treated as false).on/off, tdd_mode is set to true/false respectively, regardless of prior value (idempotent)..planning/config.json is created if absent.execute → … → ship sequence are reported in the user's language, with command/flag/stage tokens verbatim.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gyuha/super-gsd --plugin super-gsd25 skills in this plugin
/sg-cleanupUse this to archive accumulated phase directories from completed milestones — delegates to gsd-cleanup, then displays a table of what was archived./sg-completeComplete a phase (bare number → delegates to sg-phase) or close a milestone (vX.Y, or the current milestone when no argument) via gsd-complete-milestone./sg-executeUse this when the phase plan is ready and implementation should begin — packages PLAN/REQ/SC and hands off to Superpowers via superpowers:executing-plans./sg-exploreUse this when you need a map of the current codebase structure — invokes gsd-map-codebase to analyse and document the project layout./sg-healthUse this when something feels broken or before onboarding — diagnoses GSD, Superpowers, hooks, HANDOFF.md, and STATE.md installation line by line./sg-learnUse this when a phase is complete and you want to extract patterns and lessons from the session — delegates to sg-retro for structured retrospective.