Test-driven development for sixloom builds. It runs a red → green loop in vertical slices at seams already fixed by the API contract and the locked acceptance tests, and it follows the locked-test rules. Use when implementing a slice in sxl-build, fixing a bug from sxl-patch, or whenever the user wants test-first work, red-green-refactor, or integration tests.
Ships in sixloom. 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.
Ported from Matt Pocock's
tddskill (MIT, see LICENSE). The sixloom changes: the seams are fixed by the approved contract instead of being agreed per session, the loop is driven by locked acceptance tests, and the rules for locked tests are added. tests.md and mocking.md are upstream, unchanged.
TDD is the red → green loop. This skill is the reference that makes that loop produce tests worth keeping. Every section applies on every cycle.
Read GLOSSARY.md or the spec's own words first, so that test names and
interface vocabulary match the domain language. Respect the ADRs in
system-design.mdx.
Tests verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't. A good test reads like a specification: "user can checkout with valid cart" tells you exactly what capability exists, and it survives refactors because it doesn't care about internal structure.
See tests.md for examples and mocking.md for mocking guidelines. Mock at system boundaries only (external APIs, time, randomness), never your own modules.
A seam is the public boundary you test at. In a sixloom project the seams are already agreed, because the humans approved them at the gates:
| Seam | Defined by | Tests |
|---|---|---|
| The UI as a user sees it | SCREENS.md and the preview | locked e2e |
| The HTTP API | contracts/openapi.yaml | locked contract and integration |
| Service or module boundaries inside an app | ADRs in system-design.mdx | unit, written in the loop |
Unit tests go at the highest internal seam that isolates the logic (usually the service function an operation calls), never at private helpers. If a new internal seam is needed, put it at the highest point you can and note it in the PR body. You do not need to ask, because it does not change any approved contract.
examples, or a known literal.A file listed in .sixloom/tests.lock is a contract with the humans.
skip, only, fixme or fail; inflate a timeout to hide
slowness.test and continue with another slice. sixloom tests verify runs in
CI and will fail the PR anyway.What SKILL.md sets; muted values are Claude Code's defaults
15 skills in this plugin
/diagnosing-bugsDiagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow./grillingGrill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases./sixloomThe entry point for sixloom. The user drives the whole framework from the chat, and you run the `sixloom` CLI for them. Use whenever the user says "sixloom …" or "/sixloom …" (init, status, next, spec, design, preview, data model, system design, api, tests, build, patch, validate, done, approve), asks where the project stands, or asks to move to the next step. The user never has to open a terminal./sxl-api-docsThe sixloom API and documentation loom. It writes the OpenAPI contract (contracts/openapi.yaml) from the spec, data model and system design, reconciles it with the preview's mocks, and scaffolds a GitBook-style docs site (Fumadocs, Docusaurus or Starlight) with the API reference, architecture pages, install guide and codebase tour that a newcomer reads first. Use after the system design is approved, when the user says "API docs", "/sxl-api-docs", "documentation site", or asks for an OpenAPI spec./sxl-buildThe sixloom autonomous build loom. With the preview and the API docs as the goal and the locked test suites as the stop condition, it implements the product in vertical slices with TDD, runs parallel subagents in separate git worktrees, opens a PR per slice, waits for CI to go green, merges, and repeats until every locked test passes against the real backend. It then runs sxl-validate. Use when the tests loom is approved, or when the user says "/sxl-build", "build it", "implement everything", or "run the autonomous loop"./sxl-data-modelThe sixloom data model loom (data-first design). It derives entities, attributes, relationships, constraints and lifecycle states from spec/SPEC.md and the approved preview's data needs, and writes a reviewable data-model.mdx page with a rendered ER diagram, one table per entity, and a traceability table. Use after the preview is approved, when the user says "data model", "/sxl-data-model", "design the database", or asks for entities, an ERD or a schema./sixloom:sxl-tddfrom sixloom
npx claudepluginhub datamonsterr/sixloom --plugin sixloom