Your Progress

Stage 1: The Easy Way

Stage 2: Level Up

🚀 VibeCode4Noobs

Build websites by describing what you want. No experience needed.

Start building on your own machine in minutes, then level up to deploying to the world when you're ready.

Get Started ↓

🏠 Stage 1: The Easy Way

Everything you need to start vibe coding on your own machine

1

Install Grok Bot & Grok Build

Get the AI-powered coding tools on your machine

💻 What are Grok Bot and Grok Build?

These are xAI tools that can read your files, write code, run commands, and help you build entire projects through natural conversation. They come in two flavors:

  • Grok Bot (Desktop App) — A graphical teammate you download and install. Great for beginners. Chat, files, computer use, and coding in one place.
  • Grok Build (CLI) — A command-line agent you run in the terminal. More flexible for people who like the command line.

Both do the same job — pick whichever feels more comfortable. You can always switch later.

📦 Prerequisites

  • A computer running macOS, Windows, or Linux
  • An xAI / Grok account (sign in at x.ai)
  • For Grok Build (CLI) only: a terminal. The installer does the rest.
Recommended for Beginners

📥 Download Grok Bot

  1. Go to x.ai/bot
  2. Download the installer for your operating system (Mac, Windows, or Linux)
  3. Run the installer and follow the prompts
  4. Open Grok Bot and sign in with your xAI / Grok account

📁 Open a Project

  1. In Grok Bot, click "Open Folder" or drag a folder onto the window
  2. Select (or create) the folder where you want to build your site
  3. Start typing what you want to build in the chat box at the bottom

The app gives you a familiar chat interface — just like messaging, but you're talking to an AI that can write code.

For Terminal Users

🛠️ Install Grok Build

Open your terminal and run:

Terminal
curl -fsSL https://x.ai/cli/install.sh | bash

📁 Open a Project

Navigate to your project folder and launch Grok Build:

Terminal
cd your-project-folder
grok

On first launch, it will ask you to authenticate. Follow the prompts to sign in with your xAI / Grok account.

💡 Pro Tip

Both Grok Bot and Grok Build read your project files to understand your codebase. Always open or navigate to your project folder first — this gives Grok the context it needs to give you better results.

2

Set Up Browser Tools

Let Grok see and interact with your browser

🔌 What is this?

Grok can connect to extra tools so it isn't stuck in a text box. Browser tools let it open your website, take screenshots, click elements, and read page content.

This means Grok can build your site and visually check its own work, catching layout issues and fixing them without you switching windows.

📦 Setup Steps

  1. Open Grok Bot (easiest) or Grok Build in your project folder
  2. Ask Grok to preview your site in the browser
  3. If it asks to install or connect a browser tool, say yes and follow the prompts
  4. Keep Chrome (or your default browser) installed so Grok has something to drive

🎬 How to Use It

Once connected, just ask Grok to interact with your browser:

You

Open my index.html in Chrome and tell me how it looks

Grok

I'll open your site in Chrome and take a screenshot to review the layout...

Grok can also:

  • Take screenshots and identify visual issues
  • Click buttons and fill forms to test interactivity
  • Read page content to verify text and links
  • Test responsive layouts at different screen sizes

💡 Pro Tip

Browser tools are optional but highly recommended. Without them, you can still build sites — you'll just preview them manually by opening the HTML file in your browser.

3

Create a Smart AGENTS.md

The secret weapon for effective vibe coding

🧠 What is AGENTS.md?

An AGENTS.md file in your project root tells Grok Bot and Grok Build how to behave. Think of it as a set of instructions that makes Grok smarter, more consistent, and aligned with your workflow. It's the difference between a good AI assistant and a great one.

🎯 Why It Matters

  • Consistency — Grok follows the same patterns every time
  • Quality — Enforces best practices and prevents lazy fixes
  • Self-improvement — Grok learns from corrections and gets better
  • Verification — Grok proves things work before marking them done

📖 The Key Sections (click to expand)

📋 Starter AGENTS.md Template

Copy this into a file called AGENTS.md in your project root:

AGENTS.md
# Workflow Orchestration

### 1. Plan Mode Default
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
- If something goes sideways, STOP and re-plan immediately — don't keep pushing
- Use plan mode for verification steps, not just building
- Write detailed specs upfront to reduce ambiguity

### 2. Subagent Strategy
- Use subagents liberally to keep main context window clean
- Offload research, exploration, and parallel analysis to subagents
- For complex problems, throw more compute at it via subagents
- One task per subagent for focused execution

### 3. Self-Improvement Loop
- After ANY correction from the user: update `tasks/lessons.md` with the pattern
- Write rules for yourself that prevent the same mistake
- Ruthlessly iterate on these lessons until mistake rate drops
- Review lessons at session start for relevant project

### 4. Verification Before Done
- Never mark a task complete without proving it works
- Diff behavior between main and your changes when relevant
- Ask yourself: "Would a staff engineer approve this?"
- Run tests, check logs, demonstrate correctness

### 5. Demand Elegance (Balanced)
- For non-trivial changes: pause and ask "is there a more elegant way?"
- If a fix feels hacky: "Knowing everything I know now, implement the elegant solution"
- Skip this for simple, obvious fixes — don't over-engineer
- Challenge your own work before presenting it

### 6. Autonomous Bug Fixing
- When given a bug report: just fix it. Don't ask for hand-holding
- Point at logs, errors, failing tests — then resolve them
- Zero context switching required from the user
- Go fix failing CI tests without being told how

# Task Management

1. **Plan First**: Write plan to `tasks/todo.md` with checkable items
2. **Verify Plan**: Check in before starting implementation
3. **Track Progress**: Mark items complete as you go
4. **Explain Changes**: High-level summary at each step
5. **Document Results**: Add review section to `tasks/todo.md`
6. **Capture Lessons**: Update `tasks/lessons.md` after corrections

# Core Principles

- **Simplicity First**: Make every change as simple as possible. Impact minimal code.
- **No Laziness**: Find root causes. No temporary fixes. Senior developer standards.
- **Minimal Impact**: Changes should only touch what's necessary. Avoid introducing bugs.
4

Start Vibe Coding Locally

No accounts, no deploys — just build stuff

📁 Create a Project Folder

Just make a folder anywhere on your machine. That's your project.

  1. Open Finder (Mac), File Explorer (Windows), or your file manager
  2. Go to where you want your project (e.g. Documents)
  3. Right-click and choose "New Folder"
  4. Name it my-first-site

Then open this folder in Grok Bot by clicking "Open Folder" or dragging it onto the window.

Terminal
mkdir my-first-site
cd my-first-site

🤖 Launch Grok Build

Terminal
grok

In the terminal, run grok. If you already opened the folder in Grok Bot, skip this and type in the chat box. Then just tell Grok what you want in plain English. Grok will create the files, write the code, and you can see the results by opening index.html in your browser.

🔄 The Local Vibe Coding Loop

💬 Describe
🤖 Grok Builds
👀 Preview
🔄 Refine

Preview by opening the file in your browser, or ask Grok to use browser tools

💡 Pro Tip

You don't need GitHub, Cloudflare, or any extra accounts to start building. Just a folder plus Grok Bot or Grok Build. You can always add version control and deployment later when you're ready.

5

Security & Safety Tips

Common mistakes to avoid as a beginner

🚫 Don't Run a Web Server from Your Root Directory

If you ever need to run a local server (like python3 -m http.server), always do it from inside your project folder. Running it from / or your home directory exposes ALL your personal files to anyone on your network.

Do this
cd my-project
python3 -m http.server 8080
NOT this
# DANGER: exposes everything!
cd /
python3 -m http.server 8080

🔐 Never Commit API Keys or Secrets

Don't put your xAI API key, passwords, or tokens directly in your code. If you push to GitHub later, they become public. Instead:

  • Use environment variables or a .env file
  • Add .env to your .gitignore file
  • If you accidentally commit a key, rotate it immediately

👀 Review What Grok Writes

Grok is powerful but not perfect. Always review its output, especially:

  • Shell commands — be cautious of rm -rf, sudo, or anything modifying system files
  • File deletions — make sure it's not removing files you need
  • Package installations — verify package names are correct (typosquatting is real)

📂 Keep Projects Contained

Create a dedicated folder for each project. Don't build sites directly in your Documents, Desktop, or home folder root. This keeps things organized and prevents Grok from accidentally reading or modifying unrelated files.

🛡️ Don't Share Your .grok Folder

Your ~/.grok folder may contain authentication tokens and session data. Never share it, commit it to git, or upload it anywhere.

6

Quick Example — Build a Site in 3 Minutes

Follow along and see vibe coding in action

① Create Your Project Folder

  1. Open Finder (Mac), File Explorer (Windows), or your file manager
  2. Go to where you want your project (e.g. Documents)
  3. Right-click and choose "New Folder"
  4. Name it my-coffee-site

Then open this folder in Grok Bot by clicking "Open Folder" or dragging it onto the window.

Terminal
mkdir my-coffee-site
cd my-coffee-site

② Launch Grok Build

Terminal
grok

If you already opened the folder in Grok Bot, skip this and type in the chat box.

③ Tell Grok What to Build

You

Build me a single-page website for a coffee shop called "Bean There". Include a hero section with a warm brown gradient, a menu section with 6 drinks and prices, an about section, and a contact form. Use clean HTML and CSS, no frameworks.

Grok

I'll create a beautiful coffee shop website for Bean There. Let me plan this out and build it step by step...

④ Preview It

Once Grok is done, open your site:

Option A: Open the file directly
open index.html
Option B: Use browser tools

Open my site in Chrome and tell me how it looks

⑤ Refine It

You

Make the menu cards have rounded corners and a hover shadow effect. Add a dark footer with social media links.

Keep refining until you're happy. Each iteration takes seconds.

⑥ You're Done!

You just built a website by describing what you wanted. No templates, no drag-and-drop builders, no manual coding.

That's it. That's vibe coding.

🚀 Stage 2: Level Up

Ready to share your creation with the world?

7

Set Up GitHub

Version control & collaboration home base

🌐 Why GitHub?

GitHub stores your code in the cloud, tracks every change you make, and connects to services like Cloudflare for automatic deployments. It's the backbone of modern development.

📝 Create Your Account

  1. Go to github.com and sign up
  2. Choose the free plan (it's all you need)
  3. Verify your email address

📁 Create Your First Repository

  1. Click the + button in the top right, then "New repository"
  2. Name it something like my-first-vibe-site
  3. Check "Add a README file"
  4. Click "Create repository"
Recommended for Beginners

🔗 Clone It Locally

In Grok Bot, just tell Grok to set things up:

You

Clone my GitHub repo https://github.com/YOUR-USERNAME/my-first-vibe-site and open it

Grok

I'll clone that repository and set up the project folder for you...

Or use GitHub Desktop: click "Clone a repository", paste your repo URL, and choose where to save it.

🔄 Saving Your Changes

When you're ready to save your work to GitHub, just ask Grok:

You

Commit my changes and push to GitHub

Grok

I'll stage your changes, create a commit, and push to GitHub...

Grok handles all the git commands behind the scenes. You can also use GitHub Desktop to visually see your changes, write a commit message, and click "Push origin".

For Terminal Users

🔗 Clone It Locally

Copy your repo URL and clone it to your machine:

Terminal
git clone https://github.com/YOUR-USERNAME/my-first-vibe-site.git
cd my-first-vibe-site

🔄 Essential Git Commands

These are the commands you'll use daily:

Terminal
# Check what changed
git status

# Stage all changes
git add .

# Commit with a message
git commit -m "describe what you changed"

# Push to GitHub
git push

💡 Pro Tip

Whether you use Grok Bot or Grok Build, Grok can run git commands for you! Just ask: "commit my changes" or "push to GitHub" and it'll handle the rest.

8

Deploy with Cloudflare Pages

Free hosting with automatic deploys

☁️ Why Cloudflare Pages?

Cloudflare Pages gives you free, fast hosting that automatically deploys your site every time you push to GitHub. No server setup, no complex configuration — just push and it's live.

  • Free tier — 500 builds/month, unlimited bandwidth
  • Auto-deploy — push to GitHub and your site updates
  • Global CDN — fast everywhere in the world
  • Free SSL — HTTPS out of the box

📝 Set It Up

  1. Go to dash.cloudflare.com and create a free account
  2. In the sidebar, click "Workers & Pages"
  3. Click "Create" then select the "Pages" tab
  4. Click "Connect to Git"
  5. Authorize Cloudflare to access your GitHub
  6. Select your repository
  7. For a plain HTML site, leave build settings empty
  8. Click "Save and Deploy"

🔄 The Deploy Pipeline

📝 Write Code
📤 Git Push
☁️ Cloudflare Builds
🌍 Site is Live!

💡 Pro Tip

Your site will be available at your-project.pages.dev. You can add a custom domain later in Cloudflare settings if you want.

9

The Full Workflow

Everything connected, from idea to live site

🎯 The Complete Pipeline

Here's what your complete workflow looks like now:

💬 Describe
🤖 Grok Builds
👀 Preview
📤 Git Push
🌍 Live!

💬 Tips for Effective Prompting

  • Be specific — "Add a blue nav bar with logo on left and 3 links on right" beats "add navigation"
  • Describe the vibe — "Make it feel warm and cozy, like a cabin in the woods" works great
  • Iterate — Start broad, then refine: "Make the hero bigger" or "Change the colors to earth tones"
  • Let Grok commit — Say "commit and push" when you're happy with changes
  • Reference examples — "Make it look similar to stripe.com's landing page style"

🎉 You Did It!

You now have the complete vibe coding workflow. Write code by describing what you want, let Grok build it, preview in the browser, push to GitHub, and Cloudflare deploys it automatically.

Welcome to the future of development!