/toycrane-skills:tddfrom toycrane-skills
Guides test-first development: write failing tests before implementation, reproduce bugs as failing tests, and design from acceptance criteria. Activates on TDD, red-green-refactor, or test requests.
Ships in toycrane-skills. 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.
Read when SKILL.md points to them.
Write each new behavior's test before that behavior exists and see it fail first. Several tests may come before one implementation that makes them pass; work one test at a time only when the user asks for that or for red-green-refactor.
Read GLOSSARY.md, then use docs/decisions/README.md to load only the decision
subjects relevant to the behavior under test. If code, spec, and a decision
contract conflict at the decision level, surface the conflict instead of
silently choosing one. Use current terms in test names and public interfaces.
When implement hands over work, it names the active outcome, the acceptance
criteria to prove by automated tests, the approved references that apply to
it, and the spec as design context. Build only that outcome; the spec does not
authorize later outcomes. Invoked on its own,
derive the expected behavior from the user's request, and for a bug, from the
reported wrong behavior.
Design from the whole outcome before writing code. Write no code that no criterion or named reason below requires.
Every handed acceptance criterion gets a test. Any further test names what it protects: a reproduced bug, a risk in logic the criteria do not reach, or existing behavior the change touches. Do not write a test that can name none of these. A handed criterion that no automated test can prove goes back with the reason. A criterion about the quality of LLM output that varies run to run is one of these: a test against a mocked model call proves only the code around the model, so test that code and hand the criterion back.
A seam is the public boundary where a test observes behavior without reaching into internals.
Reuse an existing seam before creating one. Create a seam only for a stable use case or domain concept, not an implementation helper whose name may change. Select seams from the agreed behavior and existing public interfaces, prioritizing critical paths and complex logic.
Resolve technical uncertainty through repository evidence. Ask the user only when the expected behavior remains unclear or proceeding would change the agreed product contract.
Keep the observed failing assertion output, expected against actual, for the hand-back.
Make a failing test pass by changing the implementation. Never delete, skip, or weaken a test to reach green. To change a test after it has run against the implementation, cite the line of the approved contract or the user's request that shows the test was wrong.
Before finishing, find and run the existing tests that cover code the change touches.
Test behavior through public interfaces so internal refactoring does not break tests. Use specification-style names that state the capability under test.
Mock only at system boundaries such as external APIs, time, and randomness; prefer a real test database over a mocked one.
Refactor only while the tests stay green. This skill opens no review of its own: reviewing the finished diff belongs to whatever workflow owns it, or to a review the user runs.
Hand back:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub toy-crane/skills --plugin toycrane-skills28 skills in this plugin
/add-env-keyGet a key the user must issue or supply, such as an API key, token, or password, into the project's .env file without the value passing through chat or the model's context. Opens the vendor's issuance page, collects the value through the secret-env mod's input pane when the session has it, and otherwise opens the file in the user's editor with the key line ready. Use when work needs such a key that the project does not have yet, or when the user asks to add, set, or put an API key or token into .env./add-stack-contextAudit and establish current agent context for the technologies that define a project's stack. Use when setting up a project for agent work, after selecting or adding a framework, library, developer tool, or hosted service, or when entering an existing project whose agent context has not been audited./audit-evalsAudit a project's LLM eval regression suite from its committed cell history, report cells whose most recent 10 trials all passed, checks with identical recent histories, cells that flip after graduating, and cells that always fail, then propose demoting the recently always-passing cells to the lower tier and apply only the demotions the user approves. Use when the user asks which eval cells still earn their run, why a regression run costs so much, or to slim, prune, or demote a regression suite./babysit-prWatch one open GitHub pull request through CI and review bots until it is ready to merge or needs a person, fixing confirmed findings and failing checks, answering and resolving review threads, and rerunning infrastructure flakes. Use when a pull request has just been opened or updated and its checks, bot review comments, or merge conflicts need answering, or when asked to babysit, watch, shepherd, or get a PR green or ready. Does not merge; `merge` and `implement` invoke it before merging or handing off./babysit-specsRevise active `docs/specs/SLUG/` specs so they match what has shipped since they were written. Use when earlier work has landed and queued specs may now rest on stale assumptions, acceptance criteria, constraints, terms, or prototypes, or when implementation reports a spec as stale before changing source. Takes one or more spec folders, or every folder under `docs/specs/` when none is named. Do not use to shape a new spec from a problem and direction, which belongs to `shape-idea`, or to reconcile durable project context and retire shipped folders, which belongs to `maintain-project-context`./build-prototypeBuild a complete dummy-data HTML prototype or a temporary comparison of up to three alternatives for a specific user situation. Use to settle a screen-based product before implementation or resolve a visual or interaction decision during shaping or prototype review. Do not use for production implementation or CLI, terminal, or voice interfaces.