Most AI-assisted projects don't fail because the model is bad. They fail because the architecture is fuzzy, the rules aren't written down, prompts are too big, and nobody is documenting what shipped. This guide is the workflow we use to keep that from happening.
§Before you start
AI coding tools work best when the architecture is clear, the rules are structured, the prompts are focused, and the development is iterative. They fail when you ask them to do everything at once.
- ●Build feature-by-feature.
- ●Use vertical slices (DB → API → UI in one go).
- ●Maintain strict project rules.
- ●Document continuously — even one line per slice.
- ●Keep prompts focused on a single outcome.
§Recommended stacks
Pick one stable stack and stay consistent. The exact choice matters less than the discipline of not switching mid-build.
Frontend
- 01Next.jsApp Router, RSC, the default for new SaaS work.
- 02Tailwind CSSUtility-first styling AI tools handle well.
- 03shadcn/uiCopy-in components, easy to extend.
- 04TremorDashboards and charts on top of Tailwind.
Backend
- 01FastAPIPython, typed, great for AI-heavy APIs.
- 02ConvexReactive backend with realtime built in.
- 03LaravelIf your team is already in PHP.
Database
- 01PostgreSQLDefault for almost everything.
- 02MongoDBWhen the data really is document-shaped.
- 03SupabasePostgres + auth + storage in one place.
Auth
- 01ClerkDrop-in auth with great Next.js DX.
- 02Auth.jsOpen-source, BYO providers.
- 03Supabase AuthBundled with Supabase Postgres.
AI coding tools
- 01CursorAI-first editor with codebase context.
- 02Claude CodeTerminal-first agent for repo-wide work.
- 03AntigravityAI-assisted workspace + MCP integration.
- 04WindsurfAgentic editor from Codeium.
- 05TraeLightweight AI IDE.
UI-first / prototyping tools
- 01LovableGenerate full UIs from prompts.
- 02v0Vercel's generative React UI tool.
- 03Bolt.newFull-stack prototypes in the browser.
- 04Figma MakeGenerative design inside Figma.
Boilerplates
- 01TaxonomyNext.js + shadcn reference build.
- 02ShipFastPaid Next.js SaaS starter.
- 03WaspDeclarative full-stack framework.
§Step 1 — Lock the foundation
Before generating any code, write down the stack, the database, the auth provider, the UI library, and the folder structure. Pin them.
Frontend: Next.js + Tailwind + shadcn/ui
Backend: FastAPI
Database: PostgreSQL
Auth: Clerk§Step 2 — Write AI rules
AI coding tools need explicit project rules or your code quality drifts, the folder structure goes feral, and APIs become inconsistent. Drop a .cursor/rules/ folder at the repo root and seed it with files for naming, styling, APIs, project context, error handling, database, and auth.
mkdir -p .cursor/rules
touch .cursor/rules/{naming,styling,api-conventions,project-context,error-patterns,database-rules,auth-rules}.mdcExample rule files
- Use PascalCase for components
- Use camelCase for variables
- Use kebab-case for folders
- Use descriptive filenames- Always use async/await
- Validate all inputs (Zod)
- Never trust frontend data
- Use consistent API response shapes§Step 3 — Generate a PRD
The PRD becomes the source of truth for developers, AI tools, architecture, and feature planning. A good PRD prevents the AI from inventing.
- ●User roles
- ●Complete user flows
- ●Entities + permissions
- ●Validations + error states
- ●Edge cases
- ●UI behavior + API behavior
- ●Admin functionality
- ●Mobile behavior
- ●Integrations
§Step 4 — Vertical slice plan
Never build the whole app at once. Each slice goes Database → Backend logic → API → Frontend UI → Validation → Testing. Start with auth, then core CRUD, then advanced workflows.
1. Authentication
2. User Profile CRUD
3. Dashboard
4. Payments
5. Notifications
6. Admin PanelShipped it but want a second pair of eyes on your copy, DNS, or email deliverability? bitroot.club does a $0 launch review for anyone who followed this guide. →