0Pricing
Vibe Coding · レッスン

最初のバージョンを生成する

AIに動作する出発点を作らせます。

「最初のバージョンを生成する」はCoddyKit上の無料Vibe Codingレッスンです。 これはレッスン2/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはVibe Coding学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Vibe Codingコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

Time to Build for Real

You have a buildable idea. Now comes the magic moment of vibe coding: you hand that idea to an AI and watch it produce a working first version — often in seconds.

In this lesson you'll learn how to feed your prompt to tools like v0, Bolt, Lovable, or Cursor, what to expect from the output, and how to react when version one isn't perfect (it usually isn't — and that's fine).

Pick Your Builder

Different tools, same idea: describe, generate, preview. Here's a quick map for your first build:

  • v0 — great for generating polished UI from a prompt.
  • Bolt / Lovable — describe a whole app, get a live, editable project in the browser.
  • Replit — build and run in the browser, full coding environment with AI.
  • Cursor / Claude Code — AI that writes files right in a real code editor.

For your very first app, a browser app-builder like Bolt or Lovable is the friendliest place to start.

Paste Your Prompt

Generating the first version is as simple as pasting your build prompt into the tool's chat box and hitting send. Use the full prompt you shaped in the last lesson — what it is, who uses it, what they do, and the vibe.

Here's a complete first-version prompt you could drop into Bolt or v0 right now.

Build a single web page "Daily Water Tracker".

The user can:
- See a big counter starting at 0
- Tap a "+1 Glass" button to add a glass
- Tap a "Reset" button to set it back to 0
- See a short encouraging message when they reach 8 glasses

Style: clean and modern, centered card, soft blue colors, big friendly buttons.
Keep it as one self-contained page.

What 'First Version' Really Means

The first version is a starting point, not the finish line. AI gives you something that runs and roughly matches your words. It will get most of it right and a few things "off."

That's the whole vibe-coding loop: generate → look → ask for changes → repeat. Don't expect perfection on shot one. Expect something to react to, which is far faster than starting from a blank page.

Read the Result Before Reacting

When the AI finishes, resist the urge to immediately retype your whole prompt. First, actually look at what it made:

  • Does the main thing work? (Does the button do anything?)
  • Is the layout roughly right?
  • What's missing or wrong compared to your prompt?

This quick review tells you exactly what to ask for next — which you'll learn in lesson 3. For now, generating and seeing output is the win.

A Look at What Got Generated

From the water-tracker prompt, the AI writes the logic for you. You won't type this — but seeing it builds your confidence about what your words become.

Run this to watch the counter logic in action, exactly the kind of code AI produces from your prompt.

let glasses = 0;
const goal = 8;

function addGlass() {
  glasses += 1;
  if (glasses >= goal) return glasses + " glasses — goal reached! Great job!";
  return glasses + " glasses so far. Keep going!";
}

function reset() { glasses = 0; return "Reset to 0."; }

console.log(addGlass());
console.log(addGlass());
for (let i = 0; i < 6; i++) addGlass();
console.log(addGlass());

When the First Version Looks Wrong

Sometimes the AI misreads you. The counter starts at the wrong number, the colors are off, or a button is missing. This is normal and easy to fix.

Don't scrap everything. Note the gap between what you wanted and what you got — that gap is your next instruction. A first version that's 70% right is a great first version.

What I wanted: counter starts at 0, blue theme, two buttons.
What I got:     counter starts at 1, gray theme, only +1 button.

Next instruction will simply close those gaps. No restart needed.

If It Won't Run At All

Occasionally the first version errors out or shows a blank screen. Don't panic — and don't try to read the error yourself yet. Just tell the AI plainly.

Most builder tools let you paste the error or click "Fix" and the AI repairs its own code. You'll go deep on this in the Debugging course later.

The app shows a blank white screen and nothing happens when I click the button.

Here's the error from the console:
[paste the red error text here]

Please fix it so the button adds 1 to the counter, and tell me in one line what was wrong.

Generate Variations to Explore

A superpower of AI builders: you can ask for several versions at once to explore options before committing. Great for design when you're not sure what you want.

This turns the first version into a menu instead of a single guess.

Generate 3 different visual styles for this water tracker:
1. Calm pastel and minimal
2. Bold and colorful with big rounded buttons
3. Dark mode with neon accents

Keep the same features in all three. I'll pick one to continue with.

Keep What Works

Once you have a first version you like, lock it in before changing things. In browser builders, this might mean saving a version or noting the current state.

This way, if a later change breaks something, you can return to a known-good point. Vibe coding moves fast — having a save point keeps fast from becoming reckless.

Your First-Version Checklist

Before you call the first version done enough to start tweaking, run this quick checklist:

  • The page loads without errors.
  • The main action works (the key button does something).
  • The layout is roughly what you described.
  • You know the 1-3 things you want to change next.

Check those off and you're ready for the next lesson: asking for changes by chatting.

Quick Check

Your AI builder produced a first version that works but has the wrong colors and is missing one button. What's the best next move?

Recap: You Generated Version One

You learned how to turn your prompt into a real, running first version. Remember:

  • Paste your full prompt into a builder like Bolt, Lovable, v0, or Replit.
  • The first version is a starting point — expect ~70% right.
  • Review before reacting: note what works and what's off.
  • If it breaks, paste the error and let the AI fix itself.
  • Save a good version before making big changes.

Next: shaping that first version into exactly what you want — just by chatting.

よくある質問

「最初のバージョンを生成する」レッスンは無料ですか?

はい。「最初のバージョンを生成する」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Vibe Codingコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Vibe Codingコースには全4レッスンが含まれています。

「最初のバージョンを生成する」で何を学びますか?

AIに動作する出発点を作らせます。 ブラウザで直接実行するハンズオンコードでVibe Codingを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

Vibe Codingを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのVibe Codingは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン2/4です。

「最初のバージョンを生成する」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このVibe Codingレッスンでコードを書いて実行できますか?

はい。すべてのVibe Codingレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. アイデアを説明する
  2. 最初のバージョンを生成する
  3. 変更を依頼する
  4. プレビューして実行する
← Vibe Codingに戻る