{ "schema_version": 1, "questions": [ { "id": "project_type", "section": "foundation", "question": "What are we building?", "options": [ { "value": "backend", "label": "Backend/API only", "tradeoff": "No frontend is generated." }, { "value": "full-stack", "label": "Backend and frontend", "tradeoff": "Plan both application boundaries." }, { "value": "worker", "label": "Worker or integration service", "tradeoff": "HTTP endpoints are optional." } ] }, { "id": "backend", "section": "foundation", "question": "Which backend stack should be used?", "options": [ { "value": "aspnet-core", "label": "ASP.NET Core", "tradeoff": "Inspect the installed .NET/EF versions before selecting APIs." }, { "value": "go-echo", "label": "Go / Echo", "tradeoff": "Inspect go.mod and middleware contracts." }, { "value": "java-spring", "label": "Java / Spring", "tradeoff": "Inspect the project Java/Spring build and versions." }, { "value": "node-typescript", "label": "Node / TypeScript", "tradeoff": "Choose the server framework from actual requirements." }, { "value": "python-fastapi", "label": "Python / FastAPI", "tradeoff": "Inspect Python/Pydantic versions." }, { "value": "other", "label": "Another backend", "tradeoff": "Name the stack; verify its official contracts and record unsupported coverage." } ] }, { "id": "frontend", "section": "foundation", "question": "Which frontend should be generated?", "options": [ { "value": "angular", "label": "Angular", "tradeoff": "Use an inspected compatible version." }, { "value": "vue", "label": "Vue", "tradeoff": "Use existing tooling where present." }, { "value": "react-next", "label": "React / Next.js", "tradeoff": "Decide server/client boundaries." }, { "value": "nuxt", "label": "Nuxt", "tradeoff": "Consider SSR and server routes." }, { "value": "other", "label": "Another frontend", "tradeoff": "Name and verify it before generation." } ], "when": { "project_type": [ "full-stack" ] } }, { "id": "deployment", "section": "structure", "question": "How should application modules be deployed?", "options": [ { "value": "monolith", "label": "Single application", "tradeoff": "Simplest deployment and transaction boundary." }, { "value": "modular-monolith", "label": "Modular monolith", "tradeoff": "Explicit internal ownership within one deployment." }, { "value": "microservices", "label": "Independent services", "tradeoff": "Adds distributed deployment, contract and operations costs." } ] }, { "id": "module_architecture", "section": "structure", "question": "How should code inside modules be organized?", "options": [ { "value": "layered", "label": "Layered architecture", "tradeoff": "Presentation/application/data layers; manage coupling." }, { "value": "clean-hexagonal", "label": "Clean / hexagonal", "tradeoff": "Ports and adapters isolate external dependencies." }, { "value": "vertical-slice", "label": "Vertical slices", "tradeoff": "Organize around use cases; avoid duplicated cross-cutting logic." }, { "value": "custom", "label": "Existing or custom structure", "tradeoff": "Describe and preserve actual boundaries." } ] }, { "id": "domain_model", "section": "structure", "question": "How much domain modeling is justified?", "options": [ { "value": "crud", "label": "Simple CRUD model", "tradeoff": "Use straightforward data-oriented behavior." }, { "value": "domain-rules", "label": "Domain rules without full DDD", "tradeoff": "Explicit business invariants without broad tactical machinery." }, { "value": "ddd", "label": "Domain-driven design", "tradeoff": "Model bounded contexts and aggregates only where requirements justify them." } ] }, { "id": "read_write", "section": "behavior", "question": "How should commands and queries be handled?", "options": [ { "value": "crud", "label": "Conventional CRUD/use cases", "tradeoff": "One model/path where separation adds little value." }, { "value": "cqrs-shared", "label": "CQRS with shared persistence", "tradeoff": "Separate command/query models without requiring separate databases." }, { "value": "cqrs-projections", "label": "CQRS with read projections", "tradeoff": "Define synchronization, consistency and rebuild behavior." } ] }, { "id": "communication", "section": "behavior", "question": "How should components communicate?", "options": [ { "value": "synchronous", "label": "Synchronous calls", "tradeoff": "Direct response and failure handling." }, { "value": "event-driven", "label": "Event-driven", "tradeoff": "Define contracts, delivery, duplicates and observability." }, { "value": "hybrid", "label": "Synchronous plus events", "tradeoff": "Choose which interactions need asynchronous decoupling." } ] }, { "id": "event_transport", "section": "behavior", "question": "What should carry events?", "when": { "communication": [ "event-driven", "hybrid" ] }, "options": [ { "value": "in-process", "label": "In-process module events", "tradeoff": "No cross-process delivery or durability claim." }, { "value": "rabbitmq", "label": "RabbitMQ", "tradeoff": "Define delivery, retries and dead-letter behavior." }, { "value": "azure-service-bus", "label": "Azure Service Bus", "tradeoff": "Cloud/auth provisioning requires separate approval." }, { "value": "kafka", "label": "Kafka", "tradeoff": "Define partitioning, consumer offsets and replay behavior." }, { "value": "other", "label": "Existing/other transport", "tradeoff": "Name and inspect its actual contracts." } ] }, { "id": "transaction_boundary", "section": "behavior", "question": "Does a business workflow span independent transaction participants?", "options": [ { "value": "local", "label": "Single local transaction", "tradeoff": "Do not add a saga just for a local commit." }, { "value": "distributed", "label": "Multiple services/external participants", "tradeoff": "Name participants, failure boundaries and compensation requirements." } ] }, { "id": "saga", "section": "behavior", "question": "How should that distributed workflow be coordinated?", "options": [ { "value": "none", "label": "No saga / explicit alternative", "tradeoff": "Record how partial failure is handled." }, { "value": "orchestrated", "label": "Orchestrated saga", "tradeoff": "An explicit coordinator sequences steps and compensation." }, { "value": "choreographed", "label": "Choreographed saga", "tradeoff": "Participants react to events; trace distributed flow carefully." } ], "when": { "transaction_boundary": [ "distributed" ] } }, { "id": "database", "section": "data", "question": "Which persistence store should be used?", "options": [ { "value": "postgresql", "label": "PostgreSQL", "tradeoff": "Inspect schema dialect and driver versions." }, { "value": "sql-server", "label": "SQL Server", "tradeoff": "Preserve actual constraints and provider behavior." }, { "value": "mysql", "label": "MySQL", "tradeoff": "Verify provider/migration compatibility." }, { "value": "sqlite", "label": "SQLite", "tradeoff": "Consider deployment and concurrency requirements." }, { "value": "mongodb", "label": "MongoDB", "tradeoff": "Model document boundaries and consistency." }, { "value": "in-memory", "label": "In-memory demo storage", "tradeoff": "No durable persistence claim." }, { "value": "none", "label": "No persistence", "tradeoff": "No persistence; request/domain models may still be needed." }, { "value": "other", "label": "Another store", "tradeoff": "Name it and verify official contracts." } ] }, { "id": "model_source", "section": "data", "question": "Where should entity/domain/request models come from, if needed?", "options": [ { "value": "dummy", "label": "Fictional demo entities", "tradeoff": "Clearly mark example entities/seeds; no real user data." }, { "value": "requirements", "label": "Actual domain requirements", "tradeoff": "Derive entities from accepted use cases and invariants." }, { "value": "schema", "label": "A supplied database schema", "tradeoff": "Require and inspect a local data/schema file; no inferred tables or implicit database connection." }, { "value": "existing-code", "label": "Existing entity/model code", "tradeoff": "Inspect and preserve the actual contracts." }, { "value": "none", "label": "No generated models", "tradeoff": "Useful for a worker or deliberately empty boundary; do not generate example entities." } ] }, { "id": "validation", "section": "backend", "question": "What application validation should be generated?", "options": [ { "value": "request-and-domain", "label": "Request validation and domain invariants", "tradeoff": "Boundary errors plus business-rule tests." }, { "value": "request-only", "label": "Request validation only", "tradeoff": "Domain rules remain intentionally ungenerated unless already required." }, { "value": "domain-only", "label": "Domain invariants only", "tradeoff": "Record omitted application-level request validation." }, { "value": "none", "label": "No generated application validation", "tradeoff": "Explicit omission; does not disable auth, parsing safety or database integrity." } ] }, { "id": "api", "section": "backend", "question": "Which API surface is needed?", "options": [ { "value": "rest", "label": "REST / OpenAPI", "tradeoff": "Inspect routing and schema conventions." }, { "value": "graphql", "label": "GraphQL", "tradeoff": "Require a real schema and authorization strategy." }, { "value": "grpc", "label": "gRPC", "tradeoff": "Define protobuf contracts and compatibility." }, { "value": "none", "label": "No public API", "tradeoff": "Appropriate for some workers; do not generate endpoints." } ] }, { "id": "authentication", "section": "backend", "question": "What authentication approach is in scope?", "options": [ { "value": "oidc-jwt", "label": "OIDC / JWT bearer", "tradeoff": "Verify issuer, audience and authorization with installed libraries." }, { "value": "session", "label": "Session/cookie authentication", "tradeoff": "Address session lifecycle and request-forgery protection where applicable." }, { "value": "none", "label": "No application authentication", "tradeoff": "Explicit scoped omission; never imply authorization was tested." }, { "value": "other", "label": "Existing/custom identity", "tradeoff": "Inspect the actual integration; no credential probing." } ] }, { "id": "tests", "section": "delivery", "question": "Which test scope should the first slice include?", "options": [ { "value": "unit-integration", "label": "Unit and targeted integration tests", "tradeoff": "Exercise behavior plus actual boundary failure paths." }, { "value": "unit", "label": "Unit tests first", "tradeoff": "Record missing integration coverage." }, { "value": "existing", "label": "Extend the existing suite", "tradeoff": "Inspect and run the real repository commands." }, { "value": "defer", "label": "Scaffold only; defer test implementation", "tradeoff": "Mark tests NOT_IMPLEMENTED; no passed-test claim." } ] }, { "id": "delivery_strategy", "section": "delivery", "question": "How should implementation work be sliced? This is separate from module architecture.", "options": [ { "value": "vertical", "label": "Vertical slices", "tradeoff": "Deliver one usable end-to-end capability at a time." }, { "value": "horizontal", "label": "Horizontal layers", "tradeoff": "Build shared layers first; demonstrable user value arrives later." }, { "value": "hybrid", "label": "Hybrid", "tradeoff": "Build only necessary foundations, then usable vertical slices." } ] } ] }