skills/tdd/SKILL.md
RED/GREEN TDD — write a failing test first (Phase 1), then fix (Phase 2). Enforces strict phase separation.
npx skillsauth add api-haus/my-claude-workflow tddInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Three strict phases. Never blend them. The argument is the plan or description of the bug/feature.
If plan mode is active when this skill is invoked, you MUST embed the full TDD rules below into the plan file itself. Skill context is wiped on the plan→execution transition — the executing agent will only see the plan file. Structure the plan as follows:
## TDD Rules (enforced) section at the top of the plan. Copy the Phase 1, Phase 2, Phase 3, Rules, and checklist sections verbatim into this block.## Phase 1: RED — what test to write, where, why it must fail, and the exact run command. No production code changes described here.## Phase 2: ROOT CAUSE — analyze RED output, trace the code path, identify the exact root cause. No code changes — only investigation. Present findings to user.## Phase 3: GREEN — the minimal production code fix derived from root cause analysis. Include verification commands.The executing agent must be able to follow TDD discipline from the plan file alone.
Goal: a test that fails and proves the problem exists. This proves the bug is real and reproducible — it does NOT explain why it happens. Understanding "why" is Phase 2's job.
Goal: understand why the bug happens. Phase 1 proved it exists — Phase 2 explains it. No code changes.
Goal: minimal production code change that makes the test pass.
data-ai
Extract research content from YouTube presentations, PDFs, or PPTX files into structured markdown. Dispatches each pass to a dedicated sub-agent (research-extractor / research-vision / research-refiner) so per-deck vision passes scale to hundreds of slides without bloating the parent context.
development
Build, run, and analyze Unity profiler data with perf-report-style call-stack attribution
documentation
Write a handoff prompt for a future session. A handoff is a continuation-link — minimal context plus a kickoff line the user can copy-paste. Never a diagnosis, never an investigation script, never a prescribed deliverable.
testing
Multi-agent orchestration mode. The orchestrator never reads, edits, runs, or tests directly — it scopes work, runs a re-implementation audit, presents a freeform method brief with grounded recommendations, then dispatches every step to sub-agents through shared context files at `docs/orchestrate/<topic>/`. Use when invoked via /delegate, when the user asks to orchestrate or coordinate multi-agent work, or when the task explicitly calls for delegation.