# Detailed procedure Use the input contract in SKILL.md; resolve its required information before dependent actions. Input: actual backend objective and existing repository; not for unrelated UI work or a tiny fix in an established implementation. Read policy, project design.json, relevant architecture/ADRs and actual manifests. Preserve existing source and use codebase-onboarding when ownership is unclear. For missing or changed choices invoke design-interview. Ask about backend stack, boundaries/layers versus domain modeling, CRUD/CQRS, events, distributed coordination, database, entity source, validation, API/auth and tests. Reuse confirmed answers; do not ask for settled decisions. Require `python3 .claude/framework/design.py check` to pass before dependent scaffolding. Custom stacks require verified installed/official contracts; there is no universal package/API support claim. Use architecture-design to turn choices into justified boundaries and necessary ADRs. Load only relevant backend profiles (aspnet-core, go-echo, java-spring, node-typescript or python-fastapi), plus database/messaging guidance only as needed. Backend-only work must not generate a frontend from a combined profile. Select versions from actual manifests or document proposals; dependency installation still requires approval. Entity mode determines behavior: dummy -> small clearly fictional entities/seeds; requirements -> actual use cases/invariants; schema -> inspect the supplied file and preserve keys, relationships, nullability and constraints; existing-code -> inspect and reuse actual models; none -> no generated models. No persistence does not prohibit request/domain models. Pin inspected schema content in details.schema_sha256; changed content requires reinspection. Missing/contradictory schema is a blocker for dependent generation. Never connect to a database, execute SQL or create destructive migrations just because a schema was supplied. Generate the smallest usable slice in the agreed structure, with contracts, persistence boundaries and failure handling as applicable. Implement only selected CQRS/event/saga mechanisms, including real compensation/idempotency/retry semantics where required; do not create decorative empty distributed layers. Validation mode controls generated application checks; no-validation is a recorded omission, not permission to disable security or database integrity. If tests are deferred, report NOT_IMPLEMENTED and do not claim passed tests. Inspect diffs, run authorized actual build/test checks, seek independent eng-reviewer review of significant work, and update STATE.md/ROADMAP.md, project decisions and setup docs. Outputs: actual scoped backend files, tests where selected, exact execution evidence, omissions, remaining blockers and next action. No blanket production-ready or schema-compatibility claim.