Socratic Question Trees
Six domain-specific question trees for --socratic mode in /zerg:brainstorm.
Each tree uses branch IDs (Q1, Q2a, Q2b, etc.) to link options to follow-up questions.
Domain: Auth & Authorization
Keywords: auth, login, session, jwt, oauth, password, token, 2fa
Q1: Who are your users and how will they authenticate?
- a) Internal employees — corporate SSO/LDAP integration likely required -> Q2a
- b) Public consumers — self-registration with email/social login -> Q2b
- c) API clients (machine-to-machine) — service accounts with key-based auth -> Q2c
(Other -> LLM follow-up)
Q2a: What identity provider will you federate with?
- a) Active Directory / LDAP — on-prem directory, SAML or OIDC bridge needed -> Q3a
- b) Okta / Auth0 / Azure AD — managed IdP, faster setup but vendor lock-in -> Q3a
- c) Custom internal IdP — full control but high maintenance burden -> Q3b
(Other -> LLM follow-up)
Q2b: How should sessions be managed after login?
- a) Stateless JWT — scalable but harder to revoke mid-session -> Q3a
- b) Server-side sessions (Redis/DB) — easy revocation but adds infra dependency -> Q3a
- c) Short-lived tokens + refresh tokens — balanced security/UX trade-off -> Q3b
(Other -> LLM follow-up)
Q2c: What credential type will API clients use?
- a) API keys — simple but no built-in expiration or scoping -> Q3b
- b) OAuth2 client credentials — standard, supports scopes and rotation -> Q3a
- c) mTLS certificates — strongest auth but complex certificate management -> Q3b
(Other -> LLM follow-up)
Q3a: What authorization model fits your access patterns?
- a) Role-based (RBAC) — simple, suits most apps with fixed permission sets -> Q4
- b) Attribute-based (ABAC) — flexible, handles complex contextual rules -> Q4
- c) Permission-based (ACL) — granular per-resource control, can get unwieldy -> Q4
(Other -> LLM follow-up)
Q3b: What are your token/key storage and rotation requirements?
- a) Auto-rotate on schedule — reduces exposure window, needs automation -> Q4
- b) Manual rotation on demand — simpler but prone to stale credentials -> Q4
(Other -> LLM follow-up)
Q4: What level of multi-factor authentication is needed?
- a) None — acceptable for low-risk internal tools -> END
- b) Optional MFA (TOTP/SMS) — user choice, improves security posture -> Q5
- c) Mandatory MFA for all users — strongest protection, higher onboarding friction -> Q5
(Other -> LLM follow-up)
Q5: How will you handle account recovery when MFA is lost?
- a) Backup codes generated at enrollment — self-service, must be stored securely -> END
- b) Admin-assisted reset — secure but creates support burden -> END
- c) Secondary verification (email/phone) — convenient but weaker than primary MFA -> END
(Other -> LLM follow-up)
Domain: API Design
Keywords: api, rest, graphql, endpoint, route, http
Q1: What API style best fits your client needs?
- a) REST — well-understood, strong caching, best for CRUD-heavy services -> Q2a
- b) GraphQL — flexible queries, reduces over-fetching, adds schema complexity -> Q2b
- c) gRPC — high performance, strong typing, best for internal service-to-service -> Q2c
(Other -> LLM follow-up)
Q2a: How will you version your REST API?
- a) URL path versioning (/v1/) — explicit, easy to route, clutters URLs -> Q3a
- b) Header-based versioning — clean URLs but less discoverable -> Q3a
- c) No versioning (additive changes only) — simplest but limits breaking changes -> Q3a
(Other -> LLM follow-up)
Q2b: How will you manage your GraphQL schema evolution?
- a) Deprecation annotations + sunset period — gradual, client-friendly -> Q3a
- b) Schema stitching / federation — scales across teams but adds orchestration -> Q3b
- c) Monolithic schema with strict review — simple governance, bottleneck risk -> Q3a
(Other -> LLM follow-up)
Q2c: How will clients consume your gRPC service?
- a) Direct gRPC clients (internal only) — fastest, requires proto sharing -> Q3b
- b) gRPC-Web gateway for browser clients — broader reach, adds proxy layer -> Q3a
- c) REST transcoding via gRPC-Gateway — dual protocol support, extra maintenance -> Q3a
(Other -> LLM follow-up)
Q3a: How should the API handle pagination for list endpoints?
- a) Cursor-based — stable for real-time data, no page-skip support -> Q4
- b) Offset/limit — simple, allows page jumping, inconsistent under writes -> Q4
- c) Keyset pagination — performant at scale, requires sortable key -> Q4
(Other -> LLM follow-up)
Q3b: How will you authenticate API requests?
- a) Bearer tokens (JWT/opaque) — stateless verification, standard OAuth2 flow -> Q4
- b) API keys in headers — simple for server-to-server, no user context -> Q4
- c) Session cookies — works for same-origin browser clients, needs CSRF protection -> Q4
(Other -> LLM follow-up)
Q4: What error response strategy will you use?
- a) RFC 7807 Problem Details — standardized, machine-parseable, widely supported -> Q5
- b) Custom error envelope — full control but clients must learn your format -> Q5
- c) HTTP status codes + plain message — minimal, sufficient for simple APIs -> Q5
(Other -> LLM follow-up)
Q5: What rate limiting strategy protects your API?
- a) Fixed window per API key — simple to implement, allows burst at window edges -> END
- b) Sliding window / token bucket — smoother traffic, slightly more complex -> END
- c) Tiered limits by plan/role — monetization-friendly, requires plan management -> END
(Other -> LLM follow-up)
Domain: Data Pipeline
Keywords: data, pipeline, etl, streaming, batch, warehouse, analytics
Q1: What is your data processing latency requirement?
- a) Batch (hourly/daily) — simpler ops, higher latency, cost-efficient -> Q2a
- b) Near real-time (seconds to minutes) — micro-batch or streaming with windowing -> Q2b
- c) Real-time (sub-second) — event streaming, highest infra complexity -> Q2b
(Other -> LLM follow-up)
Q2a: What are your primary data sources?
- a) Relational databases (CDC/dumps) — structured, use change data capture for freshness -> Q3a
- b) Flat files (CSV/JSON/Parquet) — simple ingestion, schema drift risk -> Q3a
- c) Third-party APIs — rate-limited, needs retry/backoff logic -> Q3b
(Other -> LLM follow-up)
Q2b: What streaming platform will you use?
- a) Kafka — highest throughput, strong ecosystem, operational overhead -> Q3a
- b) Cloud-managed (Kinesis/Pub-Sub/EventHub) — less ops, vendor-coupled -> Q3a
- c) Redis Streams — lightweight, good for moderate volume, limited durability -> Q3b
(Other -> LLM follow-up)
Q3a: Where does transformation logic run?
- a) SQL-based (dbt/Spark SQL) — accessible to analysts, limited for complex logic -> Q4
- b) Python/Scala (Spark/Beam) — full flexibility, requires engineering skills -> Q4
- c) ELT in warehouse (transform after load) — leverages warehouse compute, simpler pipeline -> Q4
(Other -> LLM follow-up)
Q3b: How will you handle schema evolution and data quality?
- a) Schema registry with compatibility checks — prevents breaking changes upstream -> Q4
- b) Contract testing between producer/consumer — catches drift early, needs CI integration -> Q4
- c) Validate on read (schema-on-read) — flexible but pushes errors downstream -> Q4
(Other -> LLM follow-up)
Q4: Where will processed data land?
- a) Cloud data warehouse (BigQuery/Snowflake/Redshift) — optimized for analytics queries -> Q5
- b) Data lake (S3/GCS + catalog) — cheapest storage, requires query engine on top -> Q5
- c) Operational database (Postgres/Mongo) — low-latency reads, not ideal for heavy analytics -> Q5
(Other -> LLM follow-up)
Q5: How will you monitor pipeline health?
- a) Row count + freshness checks (dbt tests / Great Expectations) — catches data issues -> END
- b) End-to-end latency + throughput metrics (Datadog/Prometheus) — catches infra issues -> END
- c) Data observability platform (Monte Carlo/Soda) — unified view, additional cost -> END
(Other -> LLM follow-up)
Domain: UI/Frontend
Keywords: ui, frontend, react, vue, angular, component, css, design
Q1: What framework fits your team and project needs?
- a) React — largest ecosystem, flexible architecture, steeper learning curve -> Q2a
- b) Vue — gentle learning curve, opinionated defaults, smaller talent pool -> Q2a
- c) Angular — batteries-included, strong typing, heavier bundle baseline -> Q2a
- d) No framework (vanilla/HTMX) — minimal JS, fast initial load, limited interactivity -> Q2b
(Other -> LLM follow-up)
Q2a: What rendering strategy serves your content best?
- a) Client-side rendering (SPA) — rich interactivity, poor SEO without extra work -> Q3a
- b) Server-side rendering (Next/Nuxt) — good SEO + fast first paint, server cost -> Q3a
- c) Static site generation — fastest delivery, only works for content that rarely changes -> Q3b
- d) Hybrid (per-route choice) — optimal per page, more build complexity -> Q3a
(Other -> LLM follow-up)
Q2b: How will you handle dynamic interactions?
- a) HTMX / server-rendered partials — progressive enhancement, minimal JS -> Q3b
- b) Web components — framework-agnostic, encapsulated, limited tooling -> Q3b
(Other -> LLM follow-up)
Q3a: How will you manage client-side state?
- a) Built-in (useState/Pinia/NgRx) — framework-native, sufficient for most apps -> Q4
- b) External store (Redux/Zustand/MobX) — predictable, adds boilerplate -> Q4
- c) Server state library (TanStack Query/SWR) — cache-first, reduces client state -> Q4
(Other -> LLM follow-up)
Q3b: Will you adopt an existing design system or build custom?
- a) Existing system (MUI/Tailwind/Shadcn) — fast start, customization limits -> Q4
- b) Custom design system — full brand control, significant upfront investment -> Q4
(Other -> LLM follow-up)
Q4: What are your accessibility requirements?
- a) WCAG 2.1 AA (standard compliance) — covers most legal/ethical requirements -> Q5
- b) WCAG 2.1 AAA (strict compliance) — highest standard, constrains design choices -> Q5
- c) Best-effort (semantic HTML + ARIA basics) — minimum viable, may miss edge cases -> Q5
(Other -> LLM follow-up)
Q5: How will you test the UI?
- a) Unit + integration (Vitest/Jest + Testing Library) — fast feedback, limited visual coverage -> END
- b) E2E (Playwright/Cypress) — real browser, slower but catches integration bugs -> END
- c) Visual regression (Chromatic/Percy) — catches unintended style changes -> END
(Other -> LLM follow-up)
Domain: Infrastructure
Keywords: infra, deploy, ci, cd, docker, kubernetes, cloud, aws, gcp
Q1: Where will your application be hosted?
- a) Major cloud provider (AWS/GCP/Azure) — full service catalog, learning curve -> Q2a
- b) PaaS (Vercel/Railway/Fly.io) — minimal ops, limited customization -> Q2b
- c) Self-hosted / on-prem — full control, full responsibility for everything -> Q2a
(Other -> LLM follow-up)
Q2a: What compute model fits your workload?
- a) Containers (ECS/GKE/AKS) — portable, consistent environments, orchestration overhead -> Q3a
- b) Serverless functions (Lambda/Cloud Functions) — auto-scale to zero, cold start latency -> Q3b
- c) VMs (EC2/Compute Engine) — maximum control, manual scaling and patching -> Q3a
(Other -> LLM follow-up)
Q2b: What is your deployment trigger?
- a) Git push to main — simple, fast iteration, needs strong branch protection -> Q3b
- b) Manual promotion through environments — controlled, slower, audit-friendly -> Q3a
(Other -> LLM follow-up)
Q3a: What does your CI/CD pipeline need to include?
- a) Build + test + deploy (standard) — covers basics, sufficient for most teams -> Q4
- b) Build + test + security scan + deploy + smoke test — comprehensive, slower pipeline -> Q4
- c) Build + test + canary deploy + auto-rollback — progressive delivery, complex setup -> Q4
(Other -> LLM follow-up)
Q3b: How will you handle environment configuration?
- a) Environment variables (12-factor) — simple, works everywhere, no versioning -> Q4
- b) Secrets manager (Vault/AWS SM/GCP SM) — audited, rotatable, adds dependency -> Q4
- c) Config files per environment — explicit, versioned, risk of secret leakage in repo -> Q4
(Other -> LLM follow-up)
Q4: What monitoring and observability do you need?
- a) Metrics + logs (Prometheus/Grafana/ELK) — standard stack, self-hosted or managed -> Q5
- b) Full observability (metrics + logs + traces) — deeper insight, higher cost/complexity -> Q5
- c) Managed APM (Datadog/New Relic) — turnkey, expensive at scale -> Q5
(Other -> LLM follow-up)
Q5: What is your scaling and disaster recovery strategy?
- a) Horizontal auto-scaling + multi-AZ — handles load spikes, resilient to AZ failure -> END
- b) Multi-region active-passive — disaster recovery, adds data replication complexity -> END
- c) Multi-region active-active — highest availability, hardest to implement correctly -> END
(Other -> LLM follow-up)
Domain: General
Keywords: (fallback for unmatched domains)
Q1: What type of problem are you solving?
- a) Building a new product/feature — greenfield, maximum design freedom -> Q2a
- b) Improving an existing system — must work within current constraints -> Q2b
- c) Migrating or replacing a system — continuity critical, risk management key -> Q2b
(Other -> LLM follow-up)
Q2a: What is the scope of this project?
- a) Single service or module — focused, can ship independently -> Q3a
- b) Multi-service system — needs coordination, API contracts, shared infra -> Q3a
- c) Full platform / product — large scope, phased delivery recommended -> Q3b
(Other -> LLM follow-up)
Q2b: What are the biggest pain points with the current system?
- a) Performance / scalability — need measurement before optimization -> Q3a
- b) Maintainability / tech debt — refactoring scope must be bounded -> Q3a
- c) Missing features / capability gaps — prioritization framework needed -> Q3b
(Other -> LLM follow-up)
Q3a: Who are the primary users of this system?
- a) Internal team members — known users, direct feedback loop -> Q4
- b) External customers (B2C) — large scale, UX-critical, support cost matters -> Q4
- c) Business clients (B2B) — SLA-driven, integration requirements, enterprise features -> Q4
(Other -> LLM follow-up)
Q3b: How will you prioritize what to build first?
- a) User impact (highest value first) — customer-centric, needs usage data -> Q4
- b) Technical risk (hardest problems first) — de-risks early, delays visible progress -> Q4
- c) Dependencies (unblock others first) — optimizes team throughput -> Q4
(Other -> LLM follow-up)
Q4: What are your primary constraints?
- a) Timeline (fixed deadline) — scope must flex, cut features not corners -> Q5
- b) Budget (limited resources) — maximize ROI, prefer managed services -> Q5
- c) Team size / skills — scope to capabilities, plan for learning curve -> Q5
(Other -> LLM follow-up)
Q5: How will you measure success?
- a) Quantitative metrics (latency, throughput, conversion) — measurable, needs instrumentation -> END
- b) User satisfaction (NPS, task completion rate) — meaningful, harder to measure -> END
- c) Business outcomes (revenue, cost reduction) — ultimate measure, lagging indicator -> END
(Other -> LLM follow-up)
1---2name: socratic-question-trees3description: Six domain-specific question trees for --socratic mode in /zerg:brainstorm. Each tree uses branch IDs (Q1, Q2a, Q2b, etc.) to link options to follow-up questions.4---5# Socratic Question Trees67Six domain-specific question trees for `--socratic` mode in `/zerg:brainstorm`.8Each tree uses branch IDs (Q1, Q2a, Q2b, etc.) to link options to follow-up questions.910---1112### Domain: Auth & Authorization13Keywords: auth, login, session, jwt, oauth, password, token, 2fa1415**Q1**: Who are your users and how will they authenticate?16 - a) Internal employees — corporate SSO/LDAP integration likely required -> Q2a17 - b) Public consumers — self-registration with email/social login -> Q2b18 - c) API clients (machine-to-machine) — service accounts with key-based auth -> Q2c19 (Other -> LLM follow-up)2021**Q2a**: What identity provider will you federate with?22 - a) Active Directory / LDAP — on-prem directory, SAML or OIDC bridge needed -> Q3a23 - b) Okta / Auth0 / Azure AD — managed IdP, faster setup but vendor lock-in -> Q3a24 - c) Custom internal IdP — full control but high maintenance burden -> Q3b25 (Other -> LLM follow-up)2627**Q2b**: How should sessions be managed after login?28 - a) Stateless JWT — scalable but harder to revoke mid-session -> Q3a29 - b) Server-side sessions (Redis/DB) — easy revocation but adds infra dependency -> Q3a30 - c) Short-lived tokens + refresh tokens — balanced security/UX trade-off -> Q3b31 (Other -> LLM follow-up)3233**Q2c**: What credential type will API clients use?34 - a) API keys — simple but no built-in expiration or scoping -> Q3b35 - b) OAuth2 client credentials — standard, supports scopes and rotation -> Q3a36 - c) mTLS certificates — strongest auth but complex certificate management -> Q3b37 (Other -> LLM follow-up)3839**Q3a**: What authorization model fits your access patterns?40 - a) Role-based (RBAC) — simple, suits most apps with fixed permission sets -> Q441 - b) Attribute-based (ABAC) — flexible, handles complex contextual rules -> Q442 - c) Permission-based (ACL) — granular per-resource control, can get unwieldy -> Q443 (Other -> LLM follow-up)4445**Q3b**: What are your token/key storage and rotation requirements?46 - a) Auto-rotate on schedule — reduces exposure window, needs automation -> Q447 - b) Manual rotation on demand — simpler but prone to stale credentials -> Q448 (Other -> LLM follow-up)4950**Q4**: What level of multi-factor authentication is needed?51 - a) None — acceptable for low-risk internal tools -> END52 - b) Optional MFA (TOTP/SMS) — user choice, improves security posture -> Q553 - c) Mandatory MFA for all users — strongest protection, higher onboarding friction -> Q554 (Other -> LLM follow-up)5556**Q5**: How will you handle account recovery when MFA is lost?57 - a) Backup codes generated at enrollment — self-service, must be stored securely -> END58 - b) Admin-assisted reset — secure but creates support burden -> END59 - c) Secondary verification (email/phone) — convenient but weaker than primary MFA -> END60 (Other -> LLM follow-up)6162---6364### Domain: API Design65Keywords: api, rest, graphql, endpoint, route, http6667**Q1**: What API style best fits your client needs?68 - a) REST — well-understood, strong caching, best for CRUD-heavy services -> Q2a69 - b) GraphQL — flexible queries, reduces over-fetching, adds schema complexity -> Q2b70 - c) gRPC — high performance, strong typing, best for internal service-to-service -> Q2c71 (Other -> LLM follow-up)7273**Q2a**: How will you version your REST API?74 - a) URL path versioning (/v1/) — explicit, easy to route, clutters URLs -> Q3a75 - b) Header-based versioning — clean URLs but less discoverable -> Q3a76 - c) No versioning (additive changes only) — simplest but limits breaking changes -> Q3a77 (Other -> LLM follow-up)7879**Q2b**: How will you manage your GraphQL schema evolution?80 - a) Deprecation annotations + sunset period — gradual, client-friendly -> Q3a81 - b) Schema stitching / federation — scales across teams but adds orchestration -> Q3b82 - c) Monolithic schema with strict review — simple governance, bottleneck risk -> Q3a83 (Other -> LLM follow-up)8485**Q2c**: How will clients consume your gRPC service?86 - a) Direct gRPC clients (internal only) — fastest, requires proto sharing -> Q3b87 - b) gRPC-Web gateway for browser clients — broader reach, adds proxy layer -> Q3a88 - c) REST transcoding via gRPC-Gateway — dual protocol support, extra maintenance -> Q3a89 (Other -> LLM follow-up)9091**Q3a**: How should the API handle pagination for list endpoints?92 - a) Cursor-based — stable for real-time data, no page-skip support -> Q493 - b) Offset/limit — simple, allows page jumping, inconsistent under writes -> Q494 - c) Keyset pagination — performant at scale, requires sortable key -> Q495 (Other -> LLM follow-up)9697**Q3b**: How will you authenticate API requests?98 - a) Bearer tokens (JWT/opaque) — stateless verification, standard OAuth2 flow -> Q499 - b) API keys in headers — simple for server-to-server, no user context -> Q4100 - c) Session cookies — works for same-origin browser clients, needs CSRF protection -> Q4101 (Other -> LLM follow-up)102103**Q4**: What error response strategy will you use?104 - a) RFC 7807 Problem Details — standardized, machine-parseable, widely supported -> Q5105 - b) Custom error envelope — full control but clients must learn your format -> Q5106 - c) HTTP status codes + plain message — minimal, sufficient for simple APIs -> Q5107 (Other -> LLM follow-up)108109**Q5**: What rate limiting strategy protects your API?110 - a) Fixed window per API key — simple to implement, allows burst at window edges -> END111 - b) Sliding window / token bucket — smoother traffic, slightly more complex -> END112 - c) Tiered limits by plan/role — monetization-friendly, requires plan management -> END113 (Other -> LLM follow-up)114115---116117### Domain: Data Pipeline118Keywords: data, pipeline, etl, streaming, batch, warehouse, analytics119120**Q1**: What is your data processing latency requirement?121 - a) Batch (hourly/daily) — simpler ops, higher latency, cost-efficient -> Q2a122 - b) Near real-time (seconds to minutes) — micro-batch or streaming with windowing -> Q2b123 - c) Real-time (sub-second) — event streaming, highest infra complexity -> Q2b124 (Other -> LLM follow-up)125126**Q2a**: What are your primary data sources?127 - a) Relational databases (CDC/dumps) — structured, use change data capture for freshness -> Q3a128 - b) Flat files (CSV/JSON/Parquet) — simple ingestion, schema drift risk -> Q3a129 - c) Third-party APIs — rate-limited, needs retry/backoff logic -> Q3b130 (Other -> LLM follow-up)131132**Q2b**: What streaming platform will you use?133 - a) Kafka — highest throughput, strong ecosystem, operational overhead -> Q3a134 - b) Cloud-managed (Kinesis/Pub-Sub/EventHub) — less ops, vendor-coupled -> Q3a135 - c) Redis Streams — lightweight, good for moderate volume, limited durability -> Q3b136 (Other -> LLM follow-up)137138**Q3a**: Where does transformation logic run?139 - a) SQL-based (dbt/Spark SQL) — accessible to analysts, limited for complex logic -> Q4140 - b) Python/Scala (Spark/Beam) — full flexibility, requires engineering skills -> Q4141 - c) ELT in warehouse (transform after load) — leverages warehouse compute, simpler pipeline -> Q4142 (Other -> LLM follow-up)143144**Q3b**: How will you handle schema evolution and data quality?145 - a) Schema registry with compatibility checks — prevents breaking changes upstream -> Q4146 - b) Contract testing between producer/consumer — catches drift early, needs CI integration -> Q4147 - c) Validate on read (schema-on-read) — flexible but pushes errors downstream -> Q4148 (Other -> LLM follow-up)149150**Q4**: Where will processed data land?151 - a) Cloud data warehouse (BigQuery/Snowflake/Redshift) — optimized for analytics queries -> Q5152 - b) Data lake (S3/GCS + catalog) — cheapest storage, requires query engine on top -> Q5153 - c) Operational database (Postgres/Mongo) — low-latency reads, not ideal for heavy analytics -> Q5154 (Other -> LLM follow-up)155156**Q5**: How will you monitor pipeline health?157 - a) Row count + freshness checks (dbt tests / Great Expectations) — catches data issues -> END158 - b) End-to-end latency + throughput metrics (Datadog/Prometheus) — catches infra issues -> END159 - c) Data observability platform (Monte Carlo/Soda) — unified view, additional cost -> END160 (Other -> LLM follow-up)161162---163164### Domain: UI/Frontend165Keywords: ui, frontend, react, vue, angular, component, css, design166167**Q1**: What framework fits your team and project needs?168 - a) React — largest ecosystem, flexible architecture, steeper learning curve -> Q2a169 - b) Vue — gentle learning curve, opinionated defaults, smaller talent pool -> Q2a170 - c) Angular — batteries-included, strong typing, heavier bundle baseline -> Q2a171 - d) No framework (vanilla/HTMX) — minimal JS, fast initial load, limited interactivity -> Q2b172 (Other -> LLM follow-up)173174**Q2a**: What rendering strategy serves your content best?175 - a) Client-side rendering (SPA) — rich interactivity, poor SEO without extra work -> Q3a176 - b) Server-side rendering (Next/Nuxt) — good SEO + fast first paint, server cost -> Q3a177 - c) Static site generation — fastest delivery, only works for content that rarely changes -> Q3b178 - d) Hybrid (per-route choice) — optimal per page, more build complexity -> Q3a179 (Other -> LLM follow-up)180181**Q2b**: How will you handle dynamic interactions?182 - a) HTMX / server-rendered partials — progressive enhancement, minimal JS -> Q3b183 - b) Web components — framework-agnostic, encapsulated, limited tooling -> Q3b184 (Other -> LLM follow-up)185186**Q3a**: How will you manage client-side state?187 - a) Built-in (useState/Pinia/NgRx) — framework-native, sufficient for most apps -> Q4188 - b) External store (Redux/Zustand/MobX) — predictable, adds boilerplate -> Q4189 - c) Server state library (TanStack Query/SWR) — cache-first, reduces client state -> Q4190 (Other -> LLM follow-up)191192**Q3b**: Will you adopt an existing design system or build custom?193 - a) Existing system (MUI/Tailwind/Shadcn) — fast start, customization limits -> Q4194 - b) Custom design system — full brand control, significant upfront investment -> Q4195 (Other -> LLM follow-up)196197**Q4**: What are your accessibility requirements?198 - a) WCAG 2.1 AA (standard compliance) — covers most legal/ethical requirements -> Q5199 - b) WCAG 2.1 AAA (strict compliance) — highest standard, constrains design choices -> Q5200 - c) Best-effort (semantic HTML + ARIA basics) — minimum viable, may miss edge cases -> Q5201 (Other -> LLM follow-up)202203**Q5**: How will you test the UI?204 - a) Unit + integration (Vitest/Jest + Testing Library) — fast feedback, limited visual coverage -> END205 - b) E2E (Playwright/Cypress) — real browser, slower but catches integration bugs -> END206 - c) Visual regression (Chromatic/Percy) — catches unintended style changes -> END207 (Other -> LLM follow-up)208209---210211### Domain: Infrastructure212Keywords: infra, deploy, ci, cd, docker, kubernetes, cloud, aws, gcp213214**Q1**: Where will your application be hosted?215 - a) Major cloud provider (AWS/GCP/Azure) — full service catalog, learning curve -> Q2a216 - b) PaaS (Vercel/Railway/Fly.io) — minimal ops, limited customization -> Q2b217 - c) Self-hosted / on-prem — full control, full responsibility for everything -> Q2a218 (Other -> LLM follow-up)219220**Q2a**: What compute model fits your workload?221 - a) Containers (ECS/GKE/AKS) — portable, consistent environments, orchestration overhead -> Q3a222 - b) Serverless functions (Lambda/Cloud Functions) — auto-scale to zero, cold start latency -> Q3b223 - c) VMs (EC2/Compute Engine) — maximum control, manual scaling and patching -> Q3a224 (Other -> LLM follow-up)225226**Q2b**: What is your deployment trigger?227 - a) Git push to main — simple, fast iteration, needs strong branch protection -> Q3b228 - b) Manual promotion through environments — controlled, slower, audit-friendly -> Q3a229 (Other -> LLM follow-up)230231**Q3a**: What does your CI/CD pipeline need to include?232 - a) Build + test + deploy (standard) — covers basics, sufficient for most teams -> Q4233 - b) Build + test + security scan + deploy + smoke test — comprehensive, slower pipeline -> Q4234 - c) Build + test + canary deploy + auto-rollback — progressive delivery, complex setup -> Q4235 (Other -> LLM follow-up)236237**Q3b**: How will you handle environment configuration?238 - a) Environment variables (12-factor) — simple, works everywhere, no versioning -> Q4239 - b) Secrets manager (Vault/AWS SM/GCP SM) — audited, rotatable, adds dependency -> Q4240 - c) Config files per environment — explicit, versioned, risk of secret leakage in repo -> Q4241 (Other -> LLM follow-up)242243**Q4**: What monitoring and observability do you need?244 - a) Metrics + logs (Prometheus/Grafana/ELK) — standard stack, self-hosted or managed -> Q5245 - b) Full observability (metrics + logs + traces) — deeper insight, higher cost/complexity -> Q5246 - c) Managed APM (Datadog/New Relic) — turnkey, expensive at scale -> Q5247 (Other -> LLM follow-up)248249**Q5**: What is your scaling and disaster recovery strategy?250 - a) Horizontal auto-scaling + multi-AZ — handles load spikes, resilient to AZ failure -> END251 - b) Multi-region active-passive — disaster recovery, adds data replication complexity -> END252 - c) Multi-region active-active — highest availability, hardest to implement correctly -> END253 (Other -> LLM follow-up)254255---256257### Domain: General258Keywords: (fallback for unmatched domains)259260**Q1**: What type of problem are you solving?261 - a) Building a new product/feature — greenfield, maximum design freedom -> Q2a262 - b) Improving an existing system — must work within current constraints -> Q2b263 - c) Migrating or replacing a system — continuity critical, risk management key -> Q2b264 (Other -> LLM follow-up)265266**Q2a**: What is the scope of this project?267 - a) Single service or module — focused, can ship independently -> Q3a268 - b) Multi-service system — needs coordination, API contracts, shared infra -> Q3a269 - c) Full platform / product — large scope, phased delivery recommended -> Q3b270 (Other -> LLM follow-up)271272**Q2b**: What are the biggest pain points with the current system?273 - a) Performance / scalability — need measurement before optimization -> Q3a274 - b) Maintainability / tech debt — refactoring scope must be bounded -> Q3a275 - c) Missing features / capability gaps — prioritization framework needed -> Q3b276 (Other -> LLM follow-up)277278**Q3a**: Who are the primary users of this system?279 - a) Internal team members — known users, direct feedback loop -> Q4280 - b) External customers (B2C) — large scale, UX-critical, support cost matters -> Q4281 - c) Business clients (B2B) — SLA-driven, integration requirements, enterprise features -> Q4282 (Other -> LLM follow-up)283284**Q3b**: How will you prioritize what to build first?285 - a) User impact (highest value first) — customer-centric, needs usage data -> Q4286 - b) Technical risk (hardest problems first) — de-risks early, delays visible progress -> Q4287 - c) Dependencies (unblock others first) — optimizes team throughput -> Q4288 (Other -> LLM follow-up)289290**Q4**: What are your primary constraints?291 - a) Timeline (fixed deadline) — scope must flex, cut features not corners -> Q5292 - b) Budget (limited resources) — maximize ROI, prefer managed services -> Q5293 - c) Team size / skills — scope to capabilities, plan for learning curve -> Q5294 (Other -> LLM follow-up)295296**Q5**: How will you measure success?297 - a) Quantitative metrics (latency, throughput, conversion) — measurable, needs instrumentation -> END298 - b) User satisfaction (NPS, task completion rate) — meaningful, harder to measure -> END299 - c) Business outcomes (revenue, cost reduction) — ultimate measure, lagging indicator -> END300 (Other -> LLM follow-up)