The 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.
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: api. Run it in a new session.
The context pack is spec/SPEC.md, design/SCREENS.md, data-model.mdx,
system-design.mdx, and each interface's API client and mocks (paths from
sixloom layout --json).
contracts/openapi.yaml, OpenAPI 3.1)examples. The preview is final, so the contract follows it, not the other
way round. Check that the data model can serve every one of them.operationId, a summary, and a description whose
last line is the trace marker sxl: F-003.AC1, F-003.AC2. The API reference
renders the marker, so pasting an ID into the docs search finds the
endpoint. The IDs never appear in paths, parameters or payloads.{ code, message, fields? }, with
documented code values per operation. 422 is for validation, 409 for
conflicts, 403 for permission, 404 for not found.example on every request and response schema. The examples
double as mock fixtures and test data.security: [] at the root explicitly, and every
API declares info.license. Without them, Redocly's default rules fail.npx @redocly/cli lint contracts/openapi.yaml, with no errors
allowed."gen:api": "npx -y openapi-typescript@7 <contract path relative to the interface> -o <api_client>/schema.d.ts".
Run it through npx, not as a devDependency, because its peer range
lags behind new TypeScript majors.progenitor or openapi-generator (rust); Go: oapi-codegen;
Python: datamodel-code-generator; Dart: openapi-generator (dart-dio).offline) stay a
client-side union, not contract enums.scripts/check-mocks.mjs and point it at the interface's mocks. It
runs the real handlers through msw/node.check-mocks, which is part of ci-fast. The gate fails on undocumented
statuses, so it can never pass vacuously.sync), and it updates the spec as well. List every
decision in the gate.The engine comes from sixloom.toml docs.engine. Load the matching skill:
sxl-docs-fumadocs, sxl-docs-docusaurus or sxl-docs-starlight. It
scaffolds docs/, wires Mermaid, and generates the API reference pages from
contracts/openapi.yaml.
docs/ already holds the data-model and system-design pages and
docs/diagrams/, and every scaffolder refuses a non-empty directory. So:
mv docs .docs-pages, scaffold, copy .docs-pages/<content>/. into the new
content directory and .docs-pages/diagrams into docs/, then delete
.docs-pages. Rename the template's site title and repo links to the
product's.
Required pages, in this sidebar order:
SPEC.md "Why"), with a link
to the preview.just dev, environment
variables (names and purpose only, never values), and the seed data.AGENTS.md), where each kind of change goes, and the loom workflow.spec/CHANGELOG.md.Pages are .mdx. Keep prose short. A newcomer should be able to read the
whole site in 30 minutes.
This loom also changes the interfaces (types, fixtures) and adds scripts/,
so end it with sixloom loom end api --all.
Run just docs, then ask:
/sxl-test-suites in a new session (needs the preview loom approved too).
What SKILL.md sets; muted values are Claude Code's defaults
/sixloom:sxl-api-docsfrom sixloom
npx claudepluginhub datamonsterr/sixloom --plugin sixloom15 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.