Skip to content
Docs: Getting started

How to build a website with Claude Code, step by step

To build a website with Claude Code using Agent2Ship: install the kit into an empty project folder, restart Claude Code, and type /a2s-start. It runs the steps in order (brief, stack, build, design, fact-check, deploy) and stops only for your decisions and one more restart. If you prefer manual control, you can run each /a2s-* command yourself instead. This page walks through every step, including the Windows details that trip people up.

What you need first

  • Claude Code. Works best with a Pro or Max plan. Install it from Anthropic's official setup guide.
  • Node.js 18 or newer. Check with node --version. The installer and the kit's scripts run on Node.
  • Python 3. Needed by the UI UX Pro Max design skill. Check with python --version.
  • A free Cloudflare account for hosting.
  • A domain. The only extra cost besides the kit and your Claude plan. You can build and test first and buy it before going live.

Installing Claude Code on Windows

Anthropic's setup guide gives this command for Windows PowerShell (checked 2026-10-16). It doesn't need Administrator. When it finishes, open a new terminal and run claude --version; a version number means it worked.

(Windows PowerShell)
irm https://claude.ai/install.ps1 | iex

Claude Code needs a Pro, Max, Team, Enterprise or Console account; the free Claude plan doesn't include it. For macOS, Linux, WSL and other install options, follow the official guide.

Step 1: Download and unzip the kit

Get the kit, then unzip it somewhere easy to find, like your Downloads folder.

Get Starter โ€” $4 (โ‚น299 in India)

Step 2: Install the kit into your project folder

Make a new, empty folder for your website and open a terminal in it. The installer copies the kit's .claude/ files into the folder you point it at; . means "the folder I'm in".

Windows (PowerShell)

Put the path in double quotes. Paths with spaces (like C:\Users\Your Name\Downloads) fail without them.

(Windows PowerShell)
node "C:\Users\You\Downloads\agent2ship\install.mjs" .

macOS and Linux

Same idea; change the path to wherever you unzipped the kit.

(Terminal)
node "$HOME/Downloads/agent2ship/install.mjs" .

General form: node path/to/agent2ship/install.mjs path/to/your-project. Running the installer again later updates the kit and never touches your own files (SITE-CONTEXT.md, SITE-BRIEF.md, geo-prompts.txt, briefs, plans, reports).

Step 3: Restart Claude Code and run /a2s-start

Open Claude Code in your project folder (a new session) and type one of these. /a2s-start is the easiest way to start:

  • /a2s-start on its own: it asks whether you want a new site or to improve an existing one, and whether you already have an idea.
  • /a2s-start <your idea> for a new site, starting with research on that idea.
  • /a2s-start <your site's URL> for a site you already have.

It runs the steps in order, saves progress in .claude/agent2ship/JOURNEY.md, and runs the steps between decisions without asking "shall I continue?" each time. Not sure where you are? /a2s-help looks at your project and recommends one next command.

Step 4: Your first site with /a2s-start

For a new site, /a2s-start stops only at these points:

  1. Idea. You pick the idea (skipped if you already know what to build and say so).
  2. Brief. You answer the name and domain questions, then approve the keyword map.
  3. Stack. It stops only if the site isn't ๐ŸŸข free (you choose between cost options) or a decision is needed, such as analytics.
  4. Restart. After Build Phase A installs the design skills and the Astro docs MCP, close Claude Code completely, open it again, start a new session and type /a2s-start again. Claude Code can't restart itself, so this one is up to you.
  5. Design. You pick one of the 3 visual directions, then approve the design plan.
  6. Fact-check. It stops only for claims you need to confirm or test yourself, and gives you a ready test input.
  7. Deploy. It asks your permission before deploying, and hands you the dashboard steps only you can do (domain, redirects, Search Console).

After launch it suggests AdSense only if your Site Brief says the site earns from ads (tool or content sites). Otherwise it moves on to analytics and the weekly growth step. Come back each week with /a2s-start to run that step.

Hit a usage limit or had to restart? Just run /a2s-start again. It resumes from JOURNEY.md and the step's own progress file.

Approve the Astro docs MCP when Claude Code asks about the project's .mcp.json after the restart (it asks once). For screenshot-based design reviews, allow the optional Playwright install (about 150 MB) when asked. Without it, the kit asks you to check the site on desktop and phone yourself.

Alternative: run the commands yourself

Prefer manual control? The individual commands still work. This is the same journey, one command at a time.

Plan the site

  1. /a2s-idea (optional). Skip it if you already know what to build.
  2. /a2s-brief. Name, domain, competitor, keywords and FAQ questions. Optionally, a site whose look you like.
  3. /a2s-stack. Can it run free? ๐ŸŸข free, ๐ŸŸก free with limits, or ๐Ÿ”ด paid, with options.

Build, in two phases with a restart

  1. Run /a2s-build (Phase A). It shows the exact commands to install the design skills and the Astro docs MCP into your project and waits for your approval.
  2. Close Claude Code completely and open it again in a new session. New skills and MCP servers load reliably in a new session. Building in the same session is the main reason sites look basic.
  3. Approve the Astro docs MCP when Claude Code asks about the project's .mcp.json. It asks once.
  4. Run /a2s-build again (Phase B). It builds the site in your project root from the SEO-core Astro template, then the design department (/a2s-design) shows you 3 visual directions to pick from.

Deploy your Claude Code website to Cloudflare

Run /a2s-deploy. It builds the site, runs npx wrangler deploy, guides you through the Cloudflare dashboard (custom domain, Always Use HTTPS, www to root redirect), checks the redirects, 404 page, sitemap and robots.txt with real requests, and sets up Search Console with your sitemap.

Test deploys are kept out of Google: testDeploy: true in src/site.config.ts adds a noindex tag to every page. /a2s-deploy switches it off when your real domain is live.

After launch

  • /a2s-adsense-ready only if the site earns from ads (tool or content sites). For product, landing, SaaS, local-business and portfolio sites, the kit suggests analytics and /a2s-grow instead.
  • /a2s-audit and /a2s-geo-check for a technical and AI-search check of the live site.
  • /a2s-grow once a week.

Next: read how the workflow fits together, or keep troubleshooting open in case something fails.