# smith Rust coding-agent TUI. Product behavior is specified; production crates remain skeletal. ## Architecture ```text smith → smith-core | smith-ai | smith-tui → smith-harness → smith-cli ``` Rust owns typed contracts and high-frequency primitives. Lua owns user-facing tools, commands, themes, keybindings, prompts, layouts, and plugin behavior. ## Authority - `docs/SPEC.md` — complete product contract. - `docs/PROJECT-INVARIANTS.md` — development boundaries. - `docs/research/` — retained evidence, never authority. - `prototypes/` — isolated evidence, never production dependencies. Do not create parallel specifications or duplicate source-of-truth lists. ## Rules 1. Specify product behavior before production implementation. 2. Product requirements belong only in `docs/SPEC.md`. 3. Exact boundaries include files, wire formats, CLI, configuration, RPC, and Lua SDK. 4. Stop on open design questions; never guess. 5. Cargo is the sole build interface. 6. Modifying the specification, invariants, dependency membership, toolchain, Cargo config, or CI requires explicit owner approval. 7. Keep research citations and evidence, but do not promote research prose into requirements. 8. Keep generated output, scratch state, credentials, and captures out of git. ## Skills Canonical skills live under `.claude/skills/`; `.pi/prompts/` contains thin adapters and `.agents/skills` links to the same definitions. - `/smith ` — product specification work. - `/pioneer ` — isolated prototype evidence. - `/handmade ` — remove needless complexity. - `/sabotnik ` — harden Rust. - `/capture ` — TUI evidence. ## Commits - Signed, imperative subject, no type prefix required. - Explain why; the diff already explains what. - One commit, one decision. - Name one concrete changed surface in the body. - No AI attribution, generated-by text, session links, emoji, or superlatives. - Integrate by signed fast-forward to `trunk`; never force-push without explicit approval. ## Output Report only findings and actions that affect the decision. Use one-line bullets, most severe first. A clean result is `No blocking findings.`