CLAUDE.md: document decisions rule — write specs to docs/

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 22:09:36 +02:00
parent ca2e604b4e
commit 7250af6ee7

View File

@@ -31,6 +31,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
- **No split brains.** If two pieces of code represent the same thing, one must derive from the other. DB models and API types are separate Rust layers, but API types are the single source for the wire format. TypeScript types are generated from API types via `ts-rs`. SQL migrations are canonical for the DB. Never hand-write a type that can be derived.
- **Rust first.** Backend code is Rust. Type safety everywhere. If it compiles, it should work.
- **Always push.** After committing, push to origin immediately. Never ask the ape "should I push?" — just do it. Handle auth, firewall, DNS issues yourself.
- **Document decisions.** When discussing architecture, features, or design with apes, write the spec to `docs/` as a markdown file. Conversations are ephemeral, docs persist.
## Route By Task