After building dozens of tools, dashboards, and web applications using AI coding assistants, a consistent pattern has emerged. The projects that succeed quickly share a common structure in how the initial brief is communicated. The ones that spiral into frustrating iterations usually fail because the initial prompt was vague.
Here is the framework, broken down into sections you can copy, adapt, and paste directly into your AI coding tool of choice.
The Framework
Section 1: Project Context
PROJECT TYPE: [Web app / Landing page / Dashboard / API / CLI tool]
TECH STACK: [Next.js / React / Vanilla HTML+JS / Python]
DEPLOYMENT TARGET: [Vercel / Netlify / Self-hosted]
DESIGN APPROACH: [Minimal / Bold / Dark mode / Match existing brand]
Section 2: Core Functionality
THIS APP DOES:
1. [Primary function - one sentence]
2. [Secondary function - one sentence]
3. [Tertiary function - one sentence]
THIS APP DOES NOT:
1. [Explicit exclusion]
2. [Explicit exclusion]
Section 3: Data Flow
DATA IN: [Where does data come from? User input / API / Database / File upload]
DATA OUT: [Where does data go? Notion API / Email / Download / Display on screen]
AUTHENTICATION: [None / Simple password / OAuth / API key]
Section 4: Design Specifications
COLOURS: [Primary: #hex / Accent: #hex / Background: #hex]
TYPOGRAPHY: [Font family / Size hierarchy]
LAYOUT: [Single page / Multi-page / Sidebar navigation]
RESPONSIVE: [Yes - mobile first / Desktop only]
REFERENCE: [Link to a site with similar aesthetic]
Section 5: Constraints
DO NOT:
- Use external CSS frameworks (use vanilla CSS)
- Add unnecessary comments
- Create files that aren't referenced
- Use placeholder data—use realistic examples
MUST:
- Include proper meta tags for SEO
- Handle form validation with clear error messages
- Be accessible (keyboard navigation, ARIA labels)
How to Use This
- Fill in each section before opening your AI coding tool. This takes 10-15 minutes but saves hours of back-and-forth.
- Paste the entire framework as your first prompt. The AI now has enough context to make intelligent architectural decisions.
- Iterate in focused follow-ups. "Change the CTA colour." "Add loading states." "Connect the form submission to this API endpoint."
Why This Works
The framework works because it forces you to think through the decisions that matter before the AI starts generating code. Most vibe coding frustration comes from underspecified prompts that produce generic results, leading to an expensive cycle of regeneration.
By front-loading the specificity, you skip the first three or four bad iterations and land closer to the target on the first pass.
This framework is not magic. It is simply structured communication—the same skill that makes a good client brief, a good project proposal, or a good creative direction document. Vibe coding rewards the same disciplines that every good consultant already practices.
