Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Contributing

Welcome. StitchCraft is built to be easy to change safely: the rules are checked by machines, common changes follow playbooks, and every behaviour has a requirement and a test.

Start here

  1. Read AGENTS.md at the repository root (the short contract for humans and agents) and the architecture map.
  2. Pick a step from the roadmap or an issue labelled good first issue.
  3. Set up: install Rust (the toolchain in rust-toolchain.toml installs itself), then rustup target add wasm32-unknown-unknown. The wasm-goldens gate needs wasm32-wasip1 too, and wasmtime, and cargo xtask ci skips it without them.
  4. Before every push: cargo xtask ci.

Playbooks

ChangePlaybook
Add a stitch typeNew stitch type
Add or change a parameterNew parameter
Add a machine formatNew format
Add a diagnosticNew diagnostic
Review a PRReview checklist
Write docs, messages or help textWriting style

Ground rules

  • Never copy GPL code: Ink/Stitch’s source (GPL-3.0) may be read to understand its behaviour, but nothing from it is copied or transliterated. Write the behaviour into the design docs in your own words and code from them (ADR-0012).
  • No panics, no unsafe, deterministic output — the lints will tell you (guardrails).
  • One roadmap step per PR, its id in the title; requirements and cases first.
  • Docs in the same PR as the behaviour change; never hand-write a parameter’s reference.
  • Be kind. Reviews are about code, not people.