Getting Started with Bolt
How to Structure Prompts for Maximum Bolt Output Quality
The difference between a mediocre Bolt build and a production-quality one is almost entirely in how you prompt. Learn the structures that consistently produce better results.
Why Prompt Structure Matters More in Bolt Than in Chat AI
When you prompt a chat AI like Claude, a vague output costs you time reading an unhelpful response. When you prompt Bolt vaguely, it costs you the time to undo, regenerate, and re-integrate code across potentially dozens of files. The iteration cost is higher — which makes upfront structure more valuable.
The Bolt Prompt Framework
A strong initial Bolt prompt contains five elements:
1. Application Type and Purpose
Tell Bolt what kind of application this is and what it does in one clear sentence.
Build a React + Supabase task management application where users can
create projects, add tasks, assign due dates, and mark tasks complete.2. Tech Stack Specification
Bolt supports multiple stacks. Specify yours explicitly — especially if you have preferences for CSS framework, state management, or backend.
Tech stack:
- React 18 with TypeScript
- Tailwind CSS for styling
- Supabase for database and authentication
- React Router for navigation
- Lucide React for icons3. Feature List
List every feature the application needs. Be specific about behavior, not just presence.
Features:
- User registration and login (email/password via Supabase Auth)
- Dashboard showing all projects with task counts and completion percentage
- Create/edit/delete projects with title, description, and color
- Create/edit/delete tasks within a project with title, due date, priority (low/medium/high), and assignee
- Mark tasks complete with a checkbox; completed tasks show with strikethrough
- Filter tasks by status (all/active/complete) and priority
- Responsive layout that works on mobile and desktop4. Design Constraints
Give Bolt visual direction — color scheme, layout style, spacing preferences. You don't need to be a designer to give useful input here.
Design:
- Clean, minimal interface with a white background and slate gray sidebar
- Blue (#2563EB) as primary action color
- Cards with subtle shadows for project and task containers
- Sans-serif typography, generous padding
- No gradients, no dark mode required5. Explicit Exclusions
Tell Bolt what NOT to build. This prevents it from generating features you don't want and keeps the initial build focused.
Do not include:
- Team/multi-user collaboration features (single user only for now)
- File attachments
- Comments on tasks
- Email notificationsPutting It Together: A Complete Initial Prompt
Build a React + Supabase task management application where users can
create projects, add tasks to projects, and track progress.
TECH STACK:
- React 18 with TypeScript
- Tailwind CSS
- Supabase (database + auth)
- React Router v6
- Lucide React icons
FEATURES:
- Email/password authentication (login and register screens)
- Dashboard: list of all projects with task completion percentage
- Project detail page: list tasks, filter by status/priority
- Add/edit/delete projects (title, description, hex color)
- Add/edit/delete tasks (title, due date, priority: low/medium/high)
- Mark tasks complete via checkbox
- Protected routes (redirect to login if unauthenticated)
DESIGN:
- White background, slate-700 sidebar
- Primary color: blue-600
- Rounded card components with ring-1 ring-gray-200 borders
- Clean, minimal, no decorative gradients
DO NOT INCLUDE:
- Multi-user collaboration
- File uploads
- Email notifications
- Dark modeIterative Prompt Patterns
After the initial build, every subsequent prompt should be scoped to one concern at a time:
Too broad:
Fix the styling, add sorting to the task list, and also handle the error
when a user tries to create a project without a title.Better — three separate prompts:
1. Add sorting to the task list — sort by due date ascending by default,
with a dropdown to switch to sort by priority or creation date.
2. Add validation to the project creation form: the title field is required.
Show an inline error message "Project title is required" below the field
if the user submits without a title.
3. The task card padding feels too tight on mobile. Increase the vertical
padding inside task cards to py-4 on all screen sizes.Scoped prompts produce cleaner diffs and are far easier to review and undo if something goes wrong.
Key Takeaways
- A complete initial prompt with app type, stack, features, design, and exclusions prevents the most common rework
- Iterate with scoped, single-concern prompts rather than bundling multiple changes
- Be specific about behavior ("filter tasks by status with three tabs: All, Active, Complete") not just presence ("add filtering")
- Specify what you do NOT want — this is as valuable as specifying what you do want
---
Try It Yourself: Take an application idea you have. Write a complete initial Bolt prompt using all five elements: application type, tech stack, feature list, design constraints, and explicit exclusions. Compare your prompt against the framework — what did you leave out?