GitHubで2,000スター超えのリポジトリKhazP/vibe-coding-prompt-templateが公開している「50分でMVPを作るフレームワーク」を解説する。無計画にAIに書かせてスパゲッティコードになった経験がある人に特におすすめ。
このフレームワークの思想
バイブコーディングの失敗の多くは「計画なしにAIにコードを書かせる」から始まる。このテンプレートはAIとの会話フェーズ→IDEでの実装フェーズを明確に分離する。
フェーズ1:市場調査プロンプト(10-15分)
part1-deepresearch.mdの核心:
I want to build [製品名]. Research:
1. Who are the main competitors?
2. What are their key features and pricing?
3. What do users complain about in reviews?
4. What gap exists that I could fill?Summarize findings in a table. Be specific with data, not vague.
このステップで「作っても誰も使わないもの」を事前に排除する。
フェーズ2:PRD(製品要件書)作成プロンプト(10-15分)
Based on the research, write a Product Requirements Document for an MVP.
Include:
– Problem statement (1 paragraph)
– Target user (specific persona, not everyone)
– Core features (3 max for MVP)
– Out of scope (what we are NOT building)
– Success metricsKeep it under 1 page. No feature creep.
「Out of scope」の明示がポイント。AIはスコープを広げたがる。
フェーズ3:技術設計プロンプト(10-15分)
Based on this PRD, recommend a tech stack for a solo developer.
Requirements:
– Must be deployable in 1 day
– Minimize infrastructure complexity
– Choose boring technology over cutting-edgeFor each choice, explain WHY over alternatives.
Output as a decision table with: Technology | Chosen | Alternatives | Reason.
フェーズ4:AGENTS.md / CLAUDE.md生成(5分)
フェーズ1-3の出力をもとに、AIに設定ファイルを自動生成させる:
Based on everything we discussed, generate a CLAUDE.md file for this project.
Include:
– Tech stack with versions
– Development commands (install, dev, test, build)
– Code style rules specific to our choices
– Absolute constraints (NEVER do X)
– Ask-first rules (Ask before doing Y)
フェーズ5:実装開始(10-15分)
CLAUDE.mdをリポジトリに置いてから、Claude Codeに最初の指示を送る:
Read CLAUDE.md. Propose Phase 1 implementation plan. Wait for my approval before writing any code.
「Wait for my approval」が重要。承認フローを入れることで、AIが暴走する前に修正できる。
v2.0での変更点(2025年12月)
KhazPが12月に公開したv2.0では、AGENTS.mdを258行から57行(-77%)に削減。「短い方がAIが確実に読む」という実証から来た変更。また、Cursor / Windsurf / Cline / Claude Code / Gemini CLIの5ツールに対応した。
まとめ:計画なしのバイブコーディングは「ギャンブル」
このフレームワークを使うと、コーディング開始時点で「何を作るか」「どう作るか」「AIに何をさせないか」がすべて決まっている。AIに書かせながら考えるより、事前に5-10分多く計画するだけで、完成までの時間が大幅に短縮される。
