vibe-coding-prompt-template

agent
SUMMARY

Templates and workflow for generating PRDs, Tech Designs, and MVP and more using LLMs for AI IDEs

README.md

Vibe-Coding Workflow

A practical AI workflow for shipping MVPs

Turn an idea into an MVP with structured prompts, agent docs, and AI-assisted coding workflows.

Used on projects like vibeworkflow.app, moneyvisualiser.com, caglacabaoglu.com, and RealDex App.

MIT License PRs Welcome Stars Issues

Claude Gemini ChatGPT Cursor VS Code


Table of contents


Built with this workflow

This repo documents the workflow behind a handful of shipped projects. The goal is simple: do the thinking upfront, hand clean context to your tools, and keep the build phase moving.

Project What it is
vibeworkflow.app An interactive web app built around the same structured vibe-coding workflow documented here.
moneyvisualiser.com A money visualization website that visualized money in a 3D environment.
caglacabaoglu.com A production portfolio and gallery site built with the same PRD-to-agent execution approach.
alpyalay.org/realdex A mobile app built on React Native that lets you catch animals, and put them in a Pokemon-like collection.

Maintained by Alp Yalay.


Workflow overview

The process moves through five stages, from idea validation to working code:

flowchart LR
    subgraph Phase1[" "]
        A[💡 Idea]
    end

    subgraph Phase2["Research"]
        B[📊 Market Analysis]
    end

    subgraph Phase3["Define"]
        C[📋 PRD]
    end

    subgraph Phase4["Design"]
        D[🏗️ Tech Design]
    end

    subgraph Phase5["Generate"]
        E[🤖 AGENTS.md]
    end

    subgraph Phase6["Build"]
        F[🚀 MVP]
    end

    A --> B --> C --> D --> E --> F

    style A fill:#667eea,stroke:#667eea,color:#fff
    style B fill:#764ba2,stroke:#764ba2,color:#fff
    style C fill:#f093fb,stroke:#f093fb,color:#fff
    style D fill:#4facfe,stroke:#4facfe,color:#fff
    style E fill:#00f2fe,stroke:#00f2fe,color:#000
    style F fill:#43e97b,stroke:#43e97b,color:#000

Claude Code Skills Vibe-Coding Website


Quick start and the 5 steps

TL;DR: run research, turn it into a PRD, choose the stack, generate your agent files, then build in small passes.

Phase 1: thinking through the product

Do the first three steps in ChatGPT, Claude.ai, Gemini, or any other chat tool. You do not need a repo yet.

Step 1 Deep Research

Check whether the idea is worth building - 20-30 min

This step gives you a quick read on demand, competitors, and whether the scope looks realistic.

  1. Open part1-deepresearch.md and copy all of its contents.
  2. Paste it into your preferred AI platform Chat (like Claude.ai, ChatGPT, or Gemini) and press Enter.
  3. The AI will ask you a few questions about your idea. Answer them truthfully in the chat.
  4. The AI will generate a comprehensive research document based on your answers.
  5. Save the output into a local file named research-[YourAppName].txt or simply keep this chat open for Step 2.

Tip: if your chat tool supports web search, turn it on so the stats and competitor references are current.

Step 2 Product Requirements (PRD)

Write down what the MVP actually needs to do - 15-20 min

This turns the rough idea into a scope you can build against.

  1. Copy the contents of part2-prd-mvp.md.
  2. Option A (Same Chat): If you kept your chat open, paste the prompt right below the Deep Research output.
  3. Option B (New Chat): Start a fresh chat, paste your saved research-[YourAppName].txt content, and then paste the Part 2 prompt below it.
  4. Press Enter, answer any clarifying questions the AI asks, and let it generate your requirements.
  5. Save the final output as PRD-[YourAppName]-MVP.md.

Step 3 Technical Design

Pick a stack you can actually ship with - 15-20 min

This step helps you choose the stack and decide where to keep things simple.

  1. Copy the contents of part3-tech-design-mvp.md.
  2. Paste it into your ongoing conversation (or into a new one, making sure to attach the PRD-[YourAppName]-MVP.md from Step 2 as context).
  3. The AI will ask questions regarding your budget, timeline, and complexity tolerance.
  4. Discuss the trade-offs it presents (e.g., full-code vs. no-code builder).
  5. Once a stack is decided, save the output as TechDesign-[YourAppName]-MVP.md.

Phase 2: execution in your IDE

Move into Cursor, VS Code with Copilot, Claude Code, or your preferred coding setup. This is where the project becomes code.

Step 4 Set up the agent files

Create the docs and instructions your coding agent will rely on - 1-2 min

This step fills out AGENTS.md and the supporting docs from your PRD and tech design.

  1. Click "Use this template" in GitHub (or clone this repository locally).
  2. Open this cloned repository folder in your AI IDE (like Cursor or VS Code).
  3. Upload/move the formatting documents you saved (PRD.md and TechDesign.md) into your IDE.
  4. Open the AI Chat inside your IDE, type: "Read part4-notes-for-agent.md, follow its instructions, and set up my workspace."
  5. The agent should copy the boilerplates from /templates/ into your project root and fill in the placeholders using your PRD and tech design.

Step 5 Build with AI Agent

Build the MVP in small, reviewable chunks - 1-3 hrs

Choose your development environment and start iterating:

  1. Ensure your newly generated AGENTS.md and configuration files are physically in the project folder.
  2. Give your agent its first command:

    "Read AGENTS.md, propose a Phase 1 plan, wait for my approval, and then build it step by step."

  3. Treat the agent like a junior developer. Ask it to stop after each major feature, explain the diff, and run tests where possible.
  4. Repeat the loop until your MVP is complete:

Recommended Loop:

╭──────────────╮      ╭──────────────╮      ╭──────────────╮
│   📝 Plan    │ ───>│  ⚡ Execute │ ───>│  🔍 Verify  │
│  (Approve)   │      │  (One Feat)  │      │    (Test)    │
╰──────────────╯      ╰──────────────╯      ╰──────────────╯
       ▲                                           │
       └───────────────────────────────────────────┘

Prerequisites and tools

You need a modern browser, a few hours, and enough comfort with files and copy-paste to move between tools. You do not need to be an experienced developer.

Platform selection guide

Focus Area Recommended Tools
Fast Prototype (Full-stack) Lovable (Includes Agent/Plan mode, DB, Auth)
Production-Ready Frontend v0 (Vercel-native, exact Next.js/React components)
Learning / Sandbox Coding Cursor (Dynamic Context) or VS Code with Copilot
Complex Logic / Multi-Agent Claude Code (Agent Teams) or GitHub Copilot CLI
Budget-Limited Gemini CLI (Free) + VS Code

Note: I would not use this workflow as-is for native hardware work, heavily regulated products, or safety-critical systems.


Advanced agent practices

1. Artifact-first memory and compaction

To avoid context overload, let the agent write things down instead of trying to keep everything in one giant chat:

  • Compaction and handoffs: Use native compaction (/compact in Copilot CLI, Claude Code logic) instead of hard resets. When you switch sessions, have the agent write a 001-spec.md or recap.md and load only that file into the new chat.
  • Dynamic context (Cursor): Let the agent save findings into real files instead of burying them in chat history.
  • If you must restart, attach AGENTS.md, PRD.md, and your latest spec file.
2. Multi-agent orchestration and plugins
  • Agent teams: Tools like Claude Code support multiple agents working in parallel. Treat them like assigned roles, not magic.
  • Plan before edit: Ask for an approved plan from the lead agent before the execute agent starts changing files. It cuts down on silent regressions.
  • Keep AGENTS.md as the source of truth, then add tool-specific plugins or .cursor/rules/ to seamlessly extend capabilities.
3. Model strategy matrix

Use model families instead of pinned version names. It ages better as models get swapped underneath you.

Strategy Primary Families Best For Speed
Speed-first Gemini Flash, Claude Sonnet Fast prototyping, broad iteration High
Balanced Claude Sonnet, Gemini Pro Daily coding, debugging, planning Med-High
Depth-first Claude Opus, Gemini Pro Deep reasoning, complex refactors Medium
4. Agent observability

When an agent ignores instructions or behaves inconsistently:

  1. Check which instructions/rules/hooks were loaded.
  2. Confirm tool permissions and blocked actions.
  3. Verify the active session context was not reset.
  4. Re-run with explicit instruction order: "Read AGENTS.md, then agent_docs/, then execute."

Project structure and deployment

Recommended project skeleton

your-app/
├── 📁 docs/
│   ├── research-YourApp.txt
│   ├── PRD-YourApp-MVP.md
│   └── TechDesign-YourApp-MVP.md
├── 📁 agent_docs/
│   └── tech_stack.md, project_brief.md, testing.md
├── 📄 AGENTS.md                  # Universal AI instructions (The Master Contract)
├── 📁 specs/                     # Agent handoff artifacts (e.g. 001-feature-spec.md)
├── 📁 .cursor/rules/             # Cursor rules (preferred)
└── 📁 src/                       # Your application code

Deployment and security

Once the MVP works, do a final pass on secrets, auth, and basic abuse protections before you deploy:

  1. Security Pass: Check dependencies, secrets, auth paths, and rate limits.
  2. Push & Deploy:
    • Vercel For Next.js, React, frontend apps.
    • Cloudflare For Static sites, edge functions.

Common pitfalls and troubleshooting

Avoid these mistakes
Pitfall Solution
Skipping discovery work Run the Part 1 research prompt first
Letting agents ship code alone Review the diff and run tests before merging
Publishing auto-generated UIs Test accessibility and security before launch
Forcing one tool to do everything Mix tools, IDE + terminal + builder usually works better
Agent troubleshooting
Problem Solution
"AI ignores my docs" Say: "First read AGENTS.md, PRD, and TechDesign. Summarize key requirements before coding."
"Code doesn't match PRD" Say: "Re-read the PRD section on [feature], list acceptance criteria, then refactor."
"AI is overcomplicating" Add to config: "Prioritize MVP scope. Offer the simplest working implementation."
"Deployment failing" Request: "Walk through deployment checklist, verify env vars, then run health check."

Monthly update cadence

This template is maintained monthly. Review tool deprecations, refresh model-family references, and update agent capability notes when the ecosystem shifts.

Contributing

Contributors Forks

PRs and issues are welcome. If you adapt this workflow, add a new tool setup, or ship something interesting with it, that is useful context for everyone else too. See .github/CONTRIBUTING.md for guidelines.


License

Released under the MIT License.


If this workflow helps you ship something real, open an issue or PR and show what changed.

Created by @alpyalay and improved through community contributions.

Back to Top

Reviews (0)

No results found