Building a real website with Claude Code: AGENTS.md, templates and a form that works
In short: start Claude Code from a template repository instead of a blank folder, keep the template's rules in an
AGENTS.mdfile that Claude Code reads on its own, and give the contact form a real form ID as a separate step. The free BootForm templates ship with their form pointing at a placeholder, so it receives nothing until you replace it. One command,/bootform:add-contact-form, creates the form after a single browser sign-in (no API key) and puts its ID in the page.
Ask Claude Code for "a portfolio site" in an empty folder and you get one. It builds, it looks fine on npm run dev, and it is wrong in ways nobody sees until it's live: links that 404 once it is deployed, styles that quietly lose to the framework's own, and a contact form that posts to nowhere. This post shows the setup that avoids all three, using a real portfolio as the example.
Why a site built from a blank folder breaks quietly
Three things go wrong, and none of them shows up as an error.
The output drifts. A site generated from scratch comes out different on every run, so there is nothing to test against and no way to fix a mistake once for good. Ask twice, get two sites.
Framework defaults win. VitePress, for example, assumes you are writing documentation. Leave a page on its default layout: doc and your landing page gets a docs sidebar and a table of contents. An agent that doesn't know this produces a docs site wearing a marketing headline.
The failures are silent. A few real ones, all found while building the BootForm templates:
- In VitePress, a
<router-link>wrapping a heading and a paragraph rendered as an empty<!---->comment in the built HTML: no content, no error, no build warning. - A raw
<a href="/work/">works innpm run devand 404s on GitHub Pages, because a project site is served from a subpath and the dev server never uses it. - A Tailwind class like
border-gray-300on an input can lose to an unlayered CSS reset and render as if it weren't there.
And then the form. A static site has no server, so there is nowhere for a form to send anything. Left alone, an agent writes action="/contact" or an address it made up, and every message is lost.
An agent can't learn these from one run. They have to be written down where it will read them every time, and that is what AGENTS.md is for.
What AGENTS.md is, and how Claude Code reads it
AGENTS.md is a plain markdown file at the root of a repository that tells a coding agent how to work in that repository: its conventions, its traps, and what not to touch. It is the same idea as a README, written for the agent instead of the visitor.
Claude Code reads it on its own, as long as the repository has no CLAUDE.md. From the Claude Code memory docs: "By default, Claude reads AGENTS.md only when you have no CLAUDE.md in your working directory or above it." Reading it directly needs Claude Code v2.1.277 or later.
| Your repository has | What Claude Code reads |
|---|---|
AGENTS.md, no CLAUDE.md | AGENTS.md |
AGENTS.md and a CLAUDE.md | only CLAUDE.md, unless it imports AGENTS.md |
CLAUDE.md with an @AGENTS.md line | AGENTS.md first, then the rest of CLAUDE.md |
If you already keep a CLAUDE.md, add one line at the top of it so both files count:
@AGENTS.md
## Claude Code only
Anything that applies to Claude Code alone goes below the import.The BootForm templates ship an AGENTS.md and no CLAUDE.md, so they work in Claude Code (and in other coding agents) without any of this.
What belongs in it
The rules worth writing are the ones an agent would break without noticing. A good entry says what to do, why, and how the rule was confirmed, so the agent doesn't "fix" it later. A few lines from the vitepress-portfolio template's AGENTS.md, shortened:
**Every page needs `layout: home` or `layout: page` in its frontmatter.
Never leave a marketing page on VitePress's default `layout: doc`.**
**`<router-link>` looked like the right tool for a card wrapping block-level
content and isn't.** ... rendered as empty `<!---->` comment placeholders in the
built HTML, no visible content, no error, no build warning. Use `withBase()`
directly, and verify by grepping the built `dist/` HTML for the real `href`.
**Adding a new case study means adding one `.md` file under `docs/work/` with
`title`, `description`, `image` and `order` frontmatter, and nothing else.**Notice what is not there: no generic advice like "write clean code". Every line is a fact about this repository that cost someone an afternoon once.
Start from a template, not a blank folder
A site template is a finished, working site in a repository you copy and change. It turns "build me a site" into "change this working site", which an agent does far more reliably. The BootForm templates are free (MIT) and each one carries its own AGENTS.md:
| Template | You get |
|---|---|
| vitepress-marketing | A company or product site: home page, pricing, blog |
| vitepress-portfolio | Case studies in a generated grid and a hire-me contact page |
| vitepress-blog | A post list, tags, RSS, authors and search |
| vitepress-villa | Rooms, a gallery, a local guide and a booking enquiry form |
Each one has a finished contact form in the page, with every field, the styling and the spam trap in place. What it doesn't have is a form ID. The form's action is https://f.bootform.com/__YOUR_FORM_ID__, a placeholder, so it receives nothing yet. That is on purpose: a BootForm form ID works as the claim to the form, so a real ID printed in a public template would send every copy's messages to whoever claimed it first. You add your own ID as a step, covered below.
Step by step: a portfolio with Claude Code
This builds a portfolio from vitepress-portfolio and ends with a contact form that delivers to your inbox. You need Claude Code, Node.js 20 or later, and the GitHub CLI (gh) signed in, since the first step creates a repository for you.
1. Install the plugins
site-skills is a Claude Code plugin marketplace with two plugins: vitepress, which starts and grows a site from the templates, and bootform, which makes the form work. In Claude Code:
/plugin marketplace add BootForm/site-skills
/plugin install vitepress@site-skills
/plugin install bootform@site-skillsThe skills are thin on purpose. They don't generate a site; they know which template to start from and tell Claude to read that template's AGENTS.md before changing anything.
2. Start the site
/vitepress:portfolio-site my name is Maya, I'm a product designer in PortlandClaude creates your repository from the template (gh repo create ... --template BootForm/vitepress-portfolio), reads its AGENTS.md, then puts your name, nav and brand colour in and replaces the example case studies with yours. Each case study is one markdown file, and the home page and the Work page both pick it up without another edit.

3. Grow it
Describe what you want, or use a command:
/vitepress:add-section a three-tier pricing section on the home page
/vitepress:add-collection books, with the author and year on each card
/vitepress:theme make it dark green, with a serif font for headings
/vitepress:icons my Instagram and LinkedIn in the headerSections come from site-sections, written to survive VitePress's own styles; theme checks the contrast of the colour you pick.
4. Make the form work
At this point the contact page looks finished and still loses every message, because its action holds __YOUR_FORM_ID__. Run:
/bootform:add-contact-formThis is the step that turns the template's form into one that works:
MCP (Model Context Protocol) is the standard way an AI agent connects to an outside service's tools. Here it lets Claude Code create and configure forms in your BootForm account.
- You sign in once, in the browser. The plugin connects to BootForm's MCP server. The first time, Claude Code asks you to authenticate: run
/mcp, pick bootform, choose Authenticate, sign in to BootForm (or create a free account) and click Allow. There is no API key to copy or paste, and you stay signed in. - Claude creates a real form in your account and puts its ID in the page's
action, keeping the hidden spam-trap field as it is. - Claude asks where messages should go. For email, BootForm sends a confirmation link to that address; you click it, and from then on each message arrives there. On paid plans the same step can add Slack or a webhook.

We sent exactly this message from a copy of the template while writing this post. It arrived in the form's BootForm inbox a few seconds later.
5. Check it, then deploy
Before you trust it:
- run
npm run build, and check__YOUR_FORM_ID__no longer appears anywhere underdocs/; - open the built site and look at it in light and dark mode (a passing build is not a page that looks right);
- send yourself a test message from the contact page and see it arrive.
Then push. The template's GitHub Actions workflow builds and deploys to GitHub Pages once you set Settings, Pages, Source to GitHub Actions. If you name the repository something other than vitepress-portfolio, change base in docs/.vitepress/config.mts to match, or the deployed site comes out unstyled.
Three ways to get the form ID
The plugin is the shortest path, not the only one. Every way ends with the same thing: your own form ID in the form's action.
With the bootform plugin | By hand, from the template's README | From the dashboard | |
|---|---|---|---|
| How | /bootform:add-contact-form | Generate a random UUID, paste it in, send a test, claim it | Create a form at app.bootform.com and copy its ID |
| Account | Signed in once in the browser | Only when you claim it | Yes |
| API key | No | No | No |
| Where messages go | Set up in the same step | Set when you claim it | Set in the dashboard |
| Watch out for | Run it before the site goes live | Use a fresh random ID, never one printed in a doc; unclaimed messages are held 48 hours | Nothing extra |
The by-hand way is in each template's README (step 3): BootForm's UUID generator gives you an ID, the form works straight away, and you claim it with a free account to start receiving what was sent. It suits anyone using another agent or no agent at all.
Not using Claude Code?
The templates don't depend on it. AGENTS.md is a plain file any coding agent can read, and every skill's steps are readable markdown in the site-skills repository, so you can follow them by hand. BootForm's MCP server also works with Cursor, VS Code, ChatGPT and other MCP clients, with the same browser sign-in.
Frequently asked questions
Does Claude Code read AGENTS.md?
Yes, from v2.1.277, when the repository has no CLAUDE.md in the working directory or above it. If it does have one, put an @AGENTS.md line in that CLAUDE.md and Claude reads AGENTS.md first, then the rest.
Do the templates come with a working contact form?
They come with a finished form whose action points at a placeholder, https://f.bootform.com/__YOUR_FORM_ID__, so it receives nothing until you put your own form ID there. /bootform:add-contact-form does that for you, or you can paste an ID in by hand.
Do I need a BootForm API key?
No. The MCP server doesn't take API keys. You sign in to BootForm in the browser once and click Allow, and you can disconnect it any time under Settings, Connected Apps.
What does this cost?
The templates and plugins are free (MIT). GitHub Pages hosts a public repository's site for free. BootForm's free plan includes 250 submissions a month for the whole account, with unlimited forms and email delivery. Claude Code itself needs a Claude plan.
Does the form part work on other frameworks?
Yes. /bootform:add-contact-form works on any site, not just VitePress: Astro, Hugo, Jekyll, Next.js or plain HTML. The framework guides show the same form by hand.
What should my own AGENTS.md say?
The rules an agent would break without noticing: the framework default you've turned off, the link or base-path trap, the file that must not be edited, how to add one more item. Say why, and how you confirmed it. Leave out anything a competent developer would do anyway.
Where to go next
- site-skills: the plugins, with every skill's steps.
- Starter templates: all of them, including a one-page business site and a first website with no installs.
- MCP and AI agents: everything an agent can do in BootForm once it's connected, from adding a destination to fixing spam.
- A fast website with a blog, search and a contact form, hosted free: the same kind of site, built in the browser with no agent at all.
