The sixloom test-suite loom, the first step of the build. It generates the acceptance suites before implementation (one e2e test per acceptance criterion and interface, in the interface's own test tool, proven green against the preview, plus contract and integration tests per API operation, red until implemented), the backend skeleton and unit-test harness, the justfile, and fast, cached, parallel GitHub Actions CI. It then locks the acceptance tests. Use when the preview and API looms are approved, or when the user says "/sxl-test-suites", "generate tests", or "set up CI".
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.
Follow the sxl-loom protocol. Loom ID: tests. It starts once the
api loom is approved (the preview was approved before it). Run it in a new
session. The context pack is spec/SPEC.md, design/SCREENS.md,
contracts/openapi.yaml, every interface's PREVIEW.md and
system-design.mdx (ADRs only). Read the folders from sixloom layout --json.
Load sxl-tdd for the test-quality rules. Pick the e2e tool by interface kind:
| Interface kind | E2E tool | AC in the test name |
|---|---|---|
| web, desktop (Electron) | Playwright (playwright-cli skill); start from the verified templates in files/ | test('F-001.AC1 shows …') |
| TUI | the framework harness: Ratatui TestBackend, Textual Pilot, Bubble Tea teatest, Ink ink-testing-library; or the real binary in a pseudo-terminal | fn f001_ac1_shows_tasks() / def test_f001_ac1_… / func TestF001AC1… |
| CLI | run the built binary with the mock or real API; assert stdout and the exit code | same naming |
| mobile | Maestro or Detox against the Expo/Flutter build | flow name starts with the AC ID |
sixloom tests lock and sixloom trace read JS/TS, Rust, Python and Go
tests. They map names such as f001_ac1_… back to F-001.AC1, and they treat
.skip, #[ignore], @pytest.mark.skip and t.Skip as disabling a test.
If a language needs its tests inside its own package (a Rust TUI's
crates/tui/tests/acceptance), add that folder to [tests] locked in
sixloom.toml.
For web, pin @playwright/test to the version of the browsers you have
(npx playwright --version).
| Tier | Location | One test per | Must be, at loom end |
|---|---|---|---|
| E2E | tests/e2e/<interface-id>/… | acceptance criterion × interface | green against the preview (mock mode) |
| Contract | tests/contract/<operationId>.spec.ts | operation × documented status | red (API returns 501) |
| Integration | tests/integration/ | key flow across endpoints | red |
| Unit | inside each interface and service folder | written during the build | harness only, plus 1 example |
test('F-003.AC2 shows an error when the name is empty', …).
sixloom trace reads these titles.data-testid="<screen>.<control>", role, or label.
Never use CSS structure or text that the copy may change.open(scenario). In
mock mode it is ?sxl=<scenario>. In real mode it resets state through a
test-only seam (POST /api/__test/reset, registered only when
NODE_ENV=test, and never in the contract), seeds through the public API,
and forces server errors with page.route. The fixture switches on
E2E_MODE=mock|real, so the same file runs in both modes.reuseExistingServer silently runs the "real" suite against a leftover
mock server.waitForTimeout. Wait for a locator or a response.just e2e-mock). Every
test must pass. A failing test means the test is wrong or the preview is
missing behavior. In the second case, fix the preview or raise a change
record. Then break the behavior on purpose for 2–3 tests and confirm that
they fail, as a check that they assert something.For each operation and each documented status, send the request and assert
the status code and the body against the contract schema (ajv). Use the
examples from openapi.yaml as inputs. The contract is the oracle; never
copy the implementation's output.
Scaffold every service from sixloom layout in its recorded folder, with the
stack from the ADRs. Generate a route for
every operation that returns 501 { code: "not_implemented" }, a /api/health
route (the Playwright webServer waits on it), the test-only reset seam, the
database migration tooling with an empty first migration, the seed script, and
one passing example unit test. Now just ci-fast runs end to end, and every
contract test fails for the right reason. Check it:
npx playwright test --project=contract | grep Received shows only 501.
End this loom with sixloom loom end tests --all.
Copy justfile.template to justfile and fill in the
commands for the chosen stack. Copy ci.yml.template to
.github/workflows/ci.yml. CI calls only just targets, so local and
CI behavior are identical. The template already has these properties:
changes job filters by path. Web and API jobs
run only when their files change. Lint, typecheck and unit run in parallel
jobs, not sequentially.concurrency.sixloom tests verify job fails if a locked test was
weakened.just command that reproduces them locally.When every e2e test is green on the preview and every contract test is red for the right reason, run:
sixloom tests lock # fingerprints every folder in [tests] locked into .sixloom/tests.lock
Locking hashes each test's normalized assertions. The build may then repair
selectors and waits, but not change what a test asserts (see sxl-build).
sixloom trace show every must AC with at least one e2e test?not_implemented and not for another
reason?/sxl-build in a new session. It runs autonomously.
ci.yml.template (opens in a new tab)files/contract/contract.ts (opens in a new tab)files/contract/example.spec.ts (opens in a new tab)files/e2e/example.spec.ts (opens in a new tab)files/e2e/fixtures.ts (opens in a new tab)files/playwright.config.ts (opens in a new tab)justfile.template (opens in a new tab)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-test-suitesfrom sixloom
npx claudepluginhub datamonsterr/sixloom --plugin sixloom