A repeatable framework for planning, building, and launching apps efficiently
Overview
This guide captures the integral steps recommended for planning and building an app from start to finish. It is organized into sequential phases, each with a focused checklist and a decision gate. Work through the phases in order; do not skip ahead. The goal is faster delivery with less rework and minimal wasted credits.
The framework assumes a backend-as-a-service platform (entities, auth, integrations, workflows, hosting) paired with a React + Tailwind frontend. Adapt the specifics to your stack, but keep the sequencing.
Checklist
Read the entire guide once before starting any build.
Copy the Project Brief template (final section) into a new document for each project.
Treat every phase's decision gate as a hard checkpoint, not a suggestion.
Resist building features beyond the current phase's scope.
Phase 1 — Discovery & Requirements
Before writing any code or creating entities, define what you are building and for whom. A weak discovery phase is the single largest source of rework and credit waste later.
Checklist
State the problem in one sentence.
Identify the primary user persona and their core need.
List the 3-5 features that form the minimum viable product (MVP). Everything else is deferred.
Note any compliance, privacy, or regional constraints up front (e.g. data residency, age gates, payment provider availability).
Define what 'done' looks like for the MVP, in measurable terms.
Decision Gate
Gate: Can you describe the app's core value in one sentence and list its MVP features without hedging? If not, keep refining before moving on.
Phase 2 — Planning & Architecture
Map the data model, user journeys, and integration points. Decisions made here are expensive to reverse later, so invest the time to get them right.
Checklist
List every entity (data model) the app needs and the key fields for each. Do not over-model — start with what the MVP screens require.
Decide which entities are user-owned, admin-managed, or public, and note the access rule for each (this becomes Row-Level Security).
Sketch the user journey: landing → auth → onboarding → core loop → supporting pages.
List external services the app must connect to (payments, email, AI, calendars, etc.) and whether a built-in integration or connector exists for each.
Identify which logic belongs in backend functions vs. frontend vs. workflows. Rule of thumb: if it touches secrets, external APIs, or scoring, it belongs server-side.
Decide the authentication strategy (email/password, social providers, SSO) and whether the app is public or gated.
Decision Gate
Gate: Do you have a written entity list with access rules, a sketched user journey, and a named integration plan for every external service? If any is missing, stay here.
Phase 3 — Design & UX
Establish the visual system and key screen layouts before implementation. Designing while coding slows you down and burns credits on rework.
Checklist
Define the design tokens: primary/accent colors, typography roles (heading, body, display), border radius, and spacing rhythm.
Choose a component library (e.g. shadcn/ui) and commit to it; do not mix component systems.
Wireframe the core loop screens (dashboard, primary action, results) at mobile and desktop widths.
Plan loading, empty, and error states for every data-driven screen — these are not optional.
Note accessibility requirements (contrast, text size, focus indicators) and plan them as tokens, not afterthoughts.
Decision Gate
Gate: Can you describe the visual system (colors, fonts, radius) and sketch the core loop screens? If the look is undecided, do not start building pages.
Phase 4 — Implementation
Build in vertical slices: one entity, its access rules, its backend logic, and its frontend screen — fully wired and working — before moving to the next. A few working slices beat many half-built ones.
Checklist
Create entity schemas with RLS rules in the same pass. An entity without access rules is open to everyone.
Build auth and onboarding first; every later flow depends on a known user.
Build the core loop next (the primary value action and its result). This is what users come for.
Put external-API and secret-touching logic in backend functions. Keep the frontend for presentation and client-callable uploads only.
Wire every button and flow end-to-end: data persists, lists refresh after changes, navigation works. No stubs.
Batch related file creation in a single pass — entities, pages, and components that don't depend on each other go together.
Decision Gate
Gate: Can a real user complete the core loop from sign-up to result without hitting a dead end or a stub? If not, the MVP is not done — keep building the slice.
Phase 5 — Integrations & Automation
Add external services and automated workflows only after the core loop works. Each integration is a new surface for failure, so add them one at a time and verify each.
Checklist
Prefer built-in integrations and connectors over custom code. Check what exists before writing a backend function.
For payments: set up the provider, wire checkout, and verify the webhook updates the entity — do not trust client-side success alone.
For AI features: scope each call (prompt length, output size, item count) and prefer the lightest model that does the job.
For workflows: author the trigger and the first action, test the run, then add branching and delays.
Store secrets via the platform secrets mechanism; never hardcode keys in code.
Decision Gate
Gate: Does each integration work end-to-end with real (test) data, including its failure path? An untested webhook or AI call will fail silently in production.
Phase 6 — Testing & Validation
Test the actual user flow, not individual components in isolation. The most common bugs live in the seams between steps.
Checklist
Walk through the full journey as a new user: register → onboard → core action → result → secondary pages.
Test the same journey as a second user to confirm data isolation (RLS) works.
Test every error path: failed payment, expired session, empty data, network error.
Verify on mobile and desktop widths.
Check that loading and empty states render, not just the happy path.
Decision Gate
Gate: Has a fresh user completed the full journey without you intervening? If you had to explain or click around a bug, it is not ready.
Phase 7 — Launch & Iteration
Publish, monitor, and iterate. Ship the MVP, then add deferred features in priority order — one slice at a time.
Checklist
Publish the app and verify the production URL works end-to-end.
Set up analytics and monitor the first real users' paths.
Collect the deferred feature list and rank by user impact, not by what is easiest to build.
Iterate in vertical slices: one feature, fully wired, before the next.
Re-run the Phase 6 gate after every meaningful change.
Decision Gate
Gate: Are real users completing the core loop, and are you tracking where they drop off? Launch is the start of iteration, not the end.
Credit & Cost Efficiency
Credits and platform budget are consumed by AI calls, data operations, and build iterations. These habits keep consumption low without slowing delivery.
Checklist
Plan before prompting: a written brief and entity list means fewer AI round-trips.
Batch file creation — create all independent files in one pass, not one per message.
Use server-side filtering, counting, and aggregation instead of loading records to compute in the frontend.
Prefer the lightest AI model that completes the task; reserve heavy models for genuinely complex reasoning.
Reuse existing backend functions and integrations; do not create duplicates.
Scope AI prompts: bound input size, output count, and item count before the call.
Test the end-to-end flow before adding scope. Half-built features consume credits without delivering value.
Fix the root cause, not the symptom — patching symptoms leads to repeated cycles.
Decision Gate
Gate: Are you measuring credits per feature, not just per session? If you cannot estimate a feature's cost, you cannot control it.
Project Brief Template
Copy this into a new document for each project. Fill every field before starting Phase 1.