/code-craft:tddfrom code-craft
Drives a feature or bugfix through the red–green loop: agree the seams, write one failing test, pass it minimally, repeat in vertical slices. Use when the user says "let's do TDD", "write the failing test first", "red-green-refactor", or wants code built test-first. Not for existing untested code (retrofit-tests), a broken test (diagnose-bugs), running a suite, or browser checks (webapp-testing).
Ships in code-craft. 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.
Build requested behavior through observable red → green cycles. The test must prove a product behavior and remain useful when the implementation changes.
Use the existing public interface that exposes the behavior: a function, request handler, command, or user action. The deep-modules discipline helps keep this interface smaller than its implementation. Infer the seam from the request and repository; explain a consequential choice briefly. Ask only when an unresolved requirement would change what correct behavior means.
For example, test that an expired coupon is rejected at checkout. Assert the observable result; do not assert which private helper performed the check.
Expected values come from the requirement, a worked example, or an independent reference. Recomputing the implementation inside the assertion proves nothing. Use controlled substitutes at external boundaries when real dependencies make the test unreliable; avoid mocks that freeze internal call sequences.
Observe the new test fail before the fix and pass after it. Run affected tests and required repository checks. Broaden the run when the change affects shared behavior; do not repeat an unchanged passing suite without a reason.
Report the behavior implemented and verification actually performed. Keep unrelated cleanup out of the patch. Existing behavior that needs a safety net belongs to retrofit-tests; here each cycle introduces or corrects behavior.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub smithdak/skillsmith --plugin code-craft6 skills in this plugin
/codebase-surveyMaps an unfamiliar repository fast: inventory scripts plus parallel subagent scans, synthesized into a path-anchored survey document. Use when the user says "survey this codebase", "help me get oriented in this repo", "map out this project", or has inherited a codebase. Not for judging its structure (architecture-review), a new design (architecture-spec), one bug (diagnose-bugs), or one function./diagnose-bugsFinds the root cause of a bug, flaky test, or regression: reproduce, read the evidence, one hypothesis at a time until the mechanism is proven. Use when the user says "why is this failing", "this test is flaky", "it works on my machine", or hands over a stack trace. Not for writing up a found cause (postmortem), what could fail (failure-mode-analysis), or diff security (security-diff-review)./