--- name: ecommerce-build-from-brief description: 'Build a full ecommerce project from .ai/STORE-BRIEF.md. Use for generating the FastAPI backend, React or Next.js frontend, admin panel, AGENTS.md, and delivery plan from a normalized brief file.' argument-hint: 'Optionally mention which parts to build first if .ai/STORE-BRIEF.md already exists' --- # Ecommerce Build From Brief ## When to use - Building a new ecommerce project after requirements have been normalized. - Continuing implementation from an approved .ai/STORE-BRIEF.md. - Generating storefront, backend, and admin scope from a single source of truth. ## Preconditions - .ai/STORE-BRIEF.md should exist. - If it is missing, create it first using the ecommerce brief preparation workflow unless the user explicitly wants both steps in one run. ## Required workflow 1. Read .ai/STORE-BRIEF.md first. 2. Create or update `AGENTS.md` from the brief before application code. 3. Before any serious backend or frontend modification, create a timestamped snapshot under .backup/ and keep that folder append-only. 4. Validate that the brief covers the sections in [build checklist](./assets/build-checklist.md). 5. Establish a scalable folder structure for backend and frontend before adding large amounts of code. 6. Build backend contracts and schema first. 7. Build storefront flows next. 8. Build admin panel or back office after the storefront contracts are stable. 9. Finish with QA states, responsive behavior, motion, and asset handling. ## Constraints - Do not contradict .ai/STORE-BRIEF.md without surfacing the conflict. - Do not skip admin scope unless the brief explicitly excludes it. - Do not leave core commerce flows as placeholders when the brief already defines them. - Keep models, services, config, routing, UI, and integration code in dedicated folders instead of mixing layers. ## References - [build checklist](./assets/build-checklist.md)