# Guided project and backend design Use `/project-kickoff ` for a new application, `/design-interview` to focus on choices, or `/backend-scaffold ` for backend generation. `/architecture-design` turns confirmed choices into justified boundaries and necessary ADRs. These are native skills, not new Claude Code commands implemented by the helper scripts. The interview asks at most three questions at a time, using available native question UI or numbered options in chat. It explains a recommendation and trade-off, reuses choices already supplied, and waits for answers before dependent generation. A timeout, preselected option or recommendation is not confirmation. Explicit delegation is recorded as delegation; it is not represented as a fictitious user click. Settled decisions are not re-asked for every feature. ## Choice groups | Dimension | Available options | |---|---| | Scope | Backend only, full stack, worker | | Backend | ASP.NET Core, Go/Echo, Java/Spring, Node/TypeScript, Python/FastAPI, another named stack | | Deployment | Monolith, modular monolith, independent microservices | | Module structure | Layered, clean/hexagonal, vertical slices, custom/existing | | Domain model | Simple CRUD, explicit domain rules, DDD | | Commands/queries | Conventional CRUD, CQRS sharing persistence, CQRS with read projections | | Communication | Synchronous, event-driven, hybrid | | Event transport | In-process, RabbitMQ, Azure Service Bus, Kafka, another inspected transport | | Transactions | Local or independent distributed participants | | Distributed coordination | No saga/explicit alternative, orchestration, choreography | | Persistence | PostgreSQL, SQL Server, MySQL, SQLite, MongoDB, in-memory, none, another store | | Model source | Fictional dummy entities, actual requirements, supplied schema, existing code, no models | | Application validation | Request+domain, request-only, domain-only, no generated validation | | API | REST/OpenAPI, GraphQL, gRPC, none | | Authentication | OIDC/JWT, session/cookie, none, existing/custom | | Delivery strategy | Vertical usable slices, horizontal layer-first foundation, hybrid; separate from module architecture | | Tests | Unit+targeted integration, unit, extend existing suite, defer implementation | Choices are separate axes, not a single exclusive pattern menu: layered code can use domain modeling; CQRS does not force independent services or event sourcing. Event-driven communication does not automatically imply a saga. Ask saga questions only for workflows with independent transaction participants, then identify failure and compensation requirements. No persistence can still require request/domain models; choose no models explicitly when appropriate. The maintained source is `.claude/framework/design-options.json`. Custom stacks/transports are permitted as explicit named choices, with official/installed contracts inspected before implementation. This is not a claim that every possible backend is tested or that packages/services can be installed without approval. ## Saved choices The skill writes `docs/project/design.json`, starting from `.claude/framework/templates/project/design.example.json`: ```json { "schema_version": 1, "choices": {"module_architecture": "layered", "domain_model": "ddd"}, "confirmed": {"module_architecture": "layered", "domain_model": "ddd"}, "confirmed_details": {}, "details": {"notes": "Record actual preference/delegation sources and unresolved recommendations here."} } ``` This abbreviated example is intentionally incomplete. Confirmations bind to exact option values: changing an answer while retaining an old confirmation is rejected. Records remain self-reported data, not proof of actual conversation events or semantic approval. Unknown option ids, stale conditional choices, cyclic catalog conditions and some explicit contradictions are rejected. The helper does not know every possible architectural incompatibility. ```sh python3 .claude/framework/design.py interview --section foundation python3 .claude/framework/design.py interview --section structure python3 .claude/framework/design.py check ``` These commands are read-only; the skill or user writes answers. Sections are foundation, structure, behavior, data, backend and delivery. `interview` prints eligible unanswered/unconfirmed questions and supporting details; it does not display a live UI itself. `check` returns 2 for missing/unconfirmed details, 1 for invalid data/path/contradictions, and 0 for structurally recorded choices. Its output always leaves semantic design and application correctness NOT_VERIFIED. `project.py check` also reports pending design choices when a design file exists; older projects without one are not silently treated as having answered an interview. ## Provided schemas and dummy entities For schema-based modeling, supply `details.schema_path` as a sanitized repository-local artifact (`.sql`, `.json`, `.yaml`, `.yml`, `.prisma`, `.dbml` or `.md`). The skill must inspect the actual dialect, keys, constraints, relationships and nullability before mapping. Pin the inspected artifact's lowercase SHA-256 in `details.schema_sha256`; the checker reports the current hash. Missing or changed hashes keep the design pending. A pin identifies content; it is not a semantic review certificate. No SQL, database connection, reverse-engineering command or migration runs merely because a schema is supplied. Missing files block schema-dependent generation; there is no fallback to invented/dummy tables. In dummy mode generated entities and sample records are fictional and identified as fixtures. Existing-code mode preserves actual models. With no persistence, schema-derived or dummy request/domain models remain possible without generating a database provider. ## Validation and generation boundaries “No generated application validation” is a real selectable option. It does not remove existing authentication, authorization, parsing safety or database constraints, nor does it mean security tests passed. Domain-only/request-only choices preserve their stated omissions. Deferring test implementation is reported as NOT_IMPLEMENTED. The backend skill generates only the selected structure and mechanisms, then inspects/builds/tests using actual authorized project commands where available. A questionnaire response does not approve packages, credentials, cloud provisioning or destructive operations. Pattern references checked for this design: [Microsoft CQRS pattern](https://learn.microsoft.com/en-us/azure/architecture/patterns/cqrs), [Microsoft Saga pattern](https://learn.microsoft.com/en-us/azure/architecture/patterns/saga), [Microsoft event-driven architecture](https://learn.microsoft.com/en-us/azure/architecture/guide/architecture-styles/event-driven). Native skill naming/selection follows [Claude Code skills](https://code.claude.com/docs/en/skills). These sources do not certify a generated application. Custom detail acknowledgments are stored as confirmed_details mapping detail id to its exact text (custom backend/structure, participants, projection plan or schema path). Missing detail acknowledgments stay pending; changed text cannot reuse an old acknowledgment. These are still self-reported records, not proof of actual conversation events.