Build or Rebuild Your Website With an AI Coding Agent
You don't need to be a developer to rebuild your website. You need to learn how to direct an AI coding agent, a tool that runs in your terminal, reads and writes the files of your site, and makes changes when you describe what you want in plain language.
This course teaches the workflow: you decide, the agent builds, you review. That loop is the whole game. By the end you'll have a faster, cleaner, more findable site, and a repeatable process for keeping it that way.
How to use this course
Go in order
Each lesson produces something the next one builds on.
Do the work
Every lesson ends with a checkpoint. Don't move on until you hit it.
Steal the prompts
Each lesson has example prompts. Adapt the [bracketed] parts and paste them to your agent.
Direct, don't code
Learn to ask clearly, review what comes back, and say "not quite, change this."
Want a coach that builds it with you?
Install the Build Marketing Labs Website Coach right inside Claude Code. It walks you through this whole course in your own terminal, decides nothing without your OK, and saves a checkpoint at every step.
~/.claude/agents/ folder@website-coach and say helloA one-command marketplace install (/plugin install) is coming soon.
Download & install Claude Code
Goal: Get the AI coding agent running on your computer so you can start talking to it. Pick the path that matches you. This takes about 5 minutes.
Choose how you want to install
Prefer clicking to typing? The Claude Desktop app gives you Claude Code without a terminal. Download it, sign in, and open the folder you want to work in.
After installing, open the app, sign in with your Claude account, and point it at a new empty folder for your website. That empty folder is your project, Lesson 1 explains why.
Open the Terminal app, then paste this and press Return:
curl -fsSL https://claude.ai/install.sh | bash
When it finishes, start the agent by typing:
claude
The first time, it opens your browser to sign in. Works on macOS 13+, Ubuntu, Debian, and WSL.
Open PowerShell, then paste this and press Enter:
irm https://claude.ai/install.ps1 | iex
When it finishes, start the agent by typing:
claude
Tip: installing Git for Windows is optional but recommended.
Already have Node.js 18+? Install the global package:
npm install -g @anthropic-ai/claude-code
Then start it from inside your project folder:
claude
Do not use sudo with this command.
Confirm it worked
In your terminal, run this. If you see a version number, you're ready.
claude --version
Watch it once before you start
A short walkthrough makes the terminal far less intimidating. This beginner-friendly tutorial shows the whole setup and first session:
Want the official path? Anthropic's free Claude Code 101 course and the Quickstart docs go deeper.
Claude Code is installed, claude --version shows a version, and you've signed in.
Set Up Your Workshop
Goal: A working environment, a safety net, and the single habit that makes everything else easier.
Key ideas
🗂️ The agent works inside a folder
Your whole site lives in one project folder on your computer. The agent can see every file in it, edit them, and create new ones. You point the agent at the folder and start talking.
💾 Save points are your safety net
Use version control (a system that snapshots your project at each step). Every time something works, you save a checkpoint. If the agent ever breaks something, you roll back to the last good state in seconds. This removes all fear from experimenting, you can never permanently break anything.
⭐ The context file is your most important habit
Create a plain-text file in your project (a "project instructions" or "context" file) that tells the agent how your site works: your goals, your tone of voice, your page structure, your design rules, your dos and don'ts. The agent reads this every time. Without it, you repeat yourself constantly. With it, the agent stays consistent and on-brand. This one file is the difference between a frustrating experience and a great one.
Do this
Prompts to try
"I'm rebuilding my website from scratch in this folder. Before we write anything, help me set up version control and make an initial checkpoint. Explain each step simply."
"Create a project context file. In it, capture these facts about my site: [what the site is for], [who it's for], [the tone I want, e.g. warm and direct], [the main pages I expect], and [any design preferences]. Keep it short and practical so you can re-read it before every change."
Watch out for
- Don't let the agent run wild on day one. Ask it to explain steps as it goes so you learn the moves.
- Commit a checkpoint often. After anything that works. "Working" is a save point.
You have a project folder, version control on with one checkpoint, and a context file describing your site.
Map Before You Build
Goal: A clear plan, so building is assembly instead of guesswork.
The biggest mistake is jumping straight to "make me a homepage." A good rebuild starts with a map. The agent is excellent at helping you make one.
Key ideas
📥 Bring what you already have
Give Claude your real materials before it plans anything. The more true context it has, the more on-brand and on-strategy the rebuild will be.
- Your old site: have Claude read and index every page so nothing important gets lost.
- A vision or strategy doc: point Claude to it so the new site reflects where you are going, not just where you have been.
- Brand guidelines: point to them or upload them so your voice, colors, and logo stay consistent.
- Connect your docs: turn on the Google Drive connector in the Claude app so Claude can read these directly, or just download the files into your project folder.
🔍 Audit what exists
Before replacing your site, understand it. What pages do you have? What's outdated, redundant, or unclear? What actually earns its place?
🎯 Define the job of the site
Every page should have one job and one main action you want a visitor to take. If you can't name the action, the page isn't ready.
✂️ Decide keep / rewrite / cut
Go through your existing content and sort every piece into one of three buckets. Most sites are improved more by cutting than by adding.
⚡ Pick a simple, fast foundation
For most sites, a personal site, a small business, a portfolio, a blog, a lightweight static setup is the right answer. It's fast, cheap to host, secure, and easy for the agent to work with. Let the agent recommend the simplest thing that meets your needs, and push back if it suggests something heavier than necessary.
Do this
Prompts to try
"Read every page of my current website at [address] and index what each page covers, so we don't lose anything important in the rebuild."
"Connect to my Google Drive and read [my vision doc] and [my brand guidelines]. Use them as the source of truth for our goals, voice, and colors. If you can't connect, tell me how to turn the connector on or what to upload."
"Here's my current website: [paste the address or describe each page]. Review it and give me a plain list of every page, what each one is trying to do, and where it's weak, outdated, or confusing."
"Help me design a sitemap for the new version. My goals are [goals]. The main action I want visitors to take is [action]. Propose a tight set of pages, fewer is better, and tell me what to cut."
"Before we build anything, write a step-by-step build plan and a recommended simple, fast technical setup. Explain the trade-offs in plain language and don't over-engineer it. I'll approve the plan before you start."
Watch out for
- Fewer pages, done well. Resist the urge to recreate every old page.
- Always make the agent plan first. "Plan, then I approve, then build" is a rule, not a suggestion. It catches bad ideas before they cost you time.
You have a sitemap, a keep/rewrite/cut list, and an approved build plan saved as a checkpoint.
Build the Skeleton and the Pages
Goal: A real, clickable site running on your computer that you can see and click through.
Now you build, but in small, reviewable steps, not one giant leap.
Key ideas
🧱 Build the shell once, reuse it everywhere
Start with the parts every page shares: the header, the navigation, the footer, the overall layout. Get these right once and every page inherits them. Consistency comes for free.
📄 Build one page at a time
Homepage first, then the next most important page, and so on. After each one, look at it before moving on.
🔁 The review loop is the skill
This is the rhythm you'll use forever:
- Ask for a specific, small change.
- Read what the agent changed (it will show you).
- Look at the result in your browser.
- Say what's right and what's wrong.
- Save a checkpoint when it's good.
🎨 Design with restraint
Good-looking sites usually do less: a couple of fonts, generous spacing, a small color palette, clear hierarchy. Tell the agent your taste and ask it to keep things clean rather than busy.
Do this
Prompts to try
"Build the shared layout first: a header with navigation, a footer, and a clean overall structure that every page will use. Style it [simple and modern / warm and editorial / minimal]. Show me before applying."
"Now build the homepage from our plan. Keep the design clean, limited colors, generous spacing, clear hierarchy. Let me see it running locally so I can react."
"Run the site so I can preview it in my browser, and tell me the address to open."
"On the homepage, [make the headline bigger / tighten the spacing / move the call-to-action up]. Show me the change before saving."
Watch out for
- Read the changes. You don't need to understand every line, but skim what changed so nothing surprising slips in.
- Small steps beat big ones. One clear request at a time. If a result is messy, roll back and ask again more specifically.
- Preview constantly. Looking at the real thing in your browser tells you more than any description.
The full site runs on your computer, every page is clickable, and you've saved a checkpoint of the working build.
Make It Findable
Goal: A site that both search engines and AI assistants can understand, trust, and recommend.
A beautiful site nobody finds is a hobby. This lesson is where most people stop, which is exactly why it's your advantage.
Key ideas
🏅 Credibility is content
Search engines and AI tools reward content that demonstrates real experience and expertise. Write like someone who has actually done the thing. Include who you are and why you're qualified. Add author/bio information on pages where it matters. First-hand experience, specifics, and a clear human behind the words all build trust.
📝 On-page basics, done right
Each page needs a clear title, a short description that summarizes it, sensible headings, descriptive text on images, and clean, readable web addresses. These are small and boring and they matter a lot. The agent can add them across the whole site quickly.
🧩 Structured data
This is hidden, machine-readable information that tells search engines and AI exactly what a page is, an article, a person, a business, a product, an event. It helps them display and cite your content correctly. Ask the agent to add the right type to each page.
🤖 The technical files that let crawlers in
A few small files do heavy lifting:
- A sitemap, a list of all your pages so crawlers find everything.
- A crawler-rules file, tells automated visitors what they may and may not access.
- An AI-instructions file, a newer, plain-text file that tells AI assistants what your site is, who's behind it, and how to understand your most important content. As people increasingly find businesses through AI assistants instead of search, this is becoming a real edge. Most sites don't have one yet.
🔗 Connect your pages
Link related pages to each other in the body text. It helps visitors, and it helps crawlers understand which pages are most important.
Do this
Prompts to try
"Review the writing on [page]. Help me make it show genuine first-hand experience and expertise, more specific, more credible, less generic. Then add a short author/credibility section."
"Go through every page and add a clear title, a concise description, proper headings, descriptive text for each image, and clean readable web addresses. List what you changed."
"Add the appropriate structured data to each page, for example, mark up [the homepage as a business], [bios as people], [articles as articles]. Explain what each one does."
"Create three things: a sitemap of all pages, a crawler-rules file, and an AI-instructions file that explains what this site is, who's behind it, and what our most important pages are, so AI assistants can understand and cite us accurately."
Watch out for
- Don't fake credibility. Write true, specific things. Hollow claims hurt you.
- Descriptions are summaries, not slogans. One honest sentence about what the page actually contains.
- This is the differentiator. The AI-instructions file and proper structured data are where you pull ahead of competitors who stopped at "it looks nice."
Every page has proper titles, descriptions, and structured data; your sitemap, crawler-rules, and AI-instructions files exist; key pages show real credibility; and it's all saved.
Ship It and Keep It Alive
Goal: A live site on the real internet, plus a simple routine for updating it forever.
Key ideas
🚀 Publishing is its own step
"Working on my computer" and "live for the world" are different. You'll move your site to a hosting service (several good ones are free for small sites), connect your own web address, and confirm everything works in public.
✅ Check quality before and after launch
Two things to verify: performance (does it load fast?) and accessibility (can people using assistive technology, or just a phone in sunlight, actually use it?). The agent can test both and fix most issues it finds.
📊 See what's happening
Add a privacy-respecting analytics tool so you know what pages people visit and where they come from, including, increasingly, whether they arrived via an AI assistant.
🔁 The maintenance loop is the same loop
Updating your live site uses the exact rhythm from Lesson 3: describe the change, review it, preview it, save a checkpoint, publish. Once you've done it twice it's muscle memory. Your site stops being a frozen thing you're afraid to touch and becomes something you improve casually.
Do this
Prompts to try
"Walk me through publishing this site to a free hosting service, step by step, in plain language. I'll do the clicking; you tell me exactly what to do."
"Help me connect my own web address, [yourdomain], to the live site."
"Test the live site for loading speed and accessibility. Give me a short list of issues ranked by impact, then fix the ones you can."
"Add a simple, privacy-friendly analytics tool so I can see visitors and where they come from."
"I want to change [something small] on the live site. Make the change, show me, let me preview it, and then walk me through publishing it."
Watch out for
- Test the live version, not just the local one. Click through it after publishing.
- Keep saving checkpoints. Same safety net, forever.
- Small and frequent wins. A site you tweak monthly beats a rebuild every three years.
Your site is live at your own address, it's fast and accessible, analytics are running, and you've successfully made and published one post-launch edit on your own.
You're done, here's what you actually learned
The website is the deliverable. The workflow is the prize:
Direct, don't code
You describe outcomes; the agent produces them.
Plan before building
Map first, build second.
Keep a context file
One file that keeps the agent aligned to you.
Review every change, save often
Small steps, real safety net, zero fear.
Findability is part of building
Build for search and for AI, not as an afterthought.
Maintain with the loop you built with
Your site is now a living thing.
Use this exact process for the next thing you build, too. It doesn't only work for websites.
Popular questions
These come straight from what other learners are asking the Course Helper. The list grows on its own as more questions come in.
One-page quick reference
| Lesson | You produce | The core habit |
|---|---|---|
| 1, Workshop | Project folder, save points, context file | Set up a safety net before you build |
| 2, Map | Sitemap, keep/cut list, approved plan | Plan first, approve, then build |
| 3, Build | A clickable site on your computer | Small change → review → preview → save |
| 4, Findable | SEO, structured data, AI-instructions file | Credibility and discoverability are content |
| 5, Ship | A live, fast, measured site | Maintain with the loop you built with |
Ready to start?
Scroll back to Step 1, install the agent, and make your first checkpoint. The hardest part is opening the terminal once.
Go to Step 1 →