In short: start Claude Code from a template repository instead of a blank folder, keep the template's rules in an AGENTS.md file 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.
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:
<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 href="https://dev.to/work/"> works in npm run dev and 404s on GitHub Pages, because a project site is served from a subpath and the dev server never uses it.border-gray-300 on 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.
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 , noCLAUDE.md |
AGENTS.md |
AGENTS.md and aCLAUDE.md |
only CLAUDE.md , unless it importsAGENTS.md |
CLAUDE.md with an@AGENTS.md line |
AGENTS.md first, then the rest ofCLAUDE.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.
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.
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.
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.
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-skills
The 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.
/vitepress:portfolio-site my name is Maya, I'm a product designer in Portland
Claude 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.
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 header
Sections come from site-sections, written to survive VitePress's own styles; theme checks the contrast of the colour you pick.
At this point the contact page looks finished and still loses every message, because its action holds __YOUR_FORM_ID__. Run:
/bootform:add-contact-form
This 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.
/mcp, pick action, keeping the hidden spam-trap field as it is.
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.
Before you trust it:
npm run build, and check __YOUR_FORM_ID__ no longer appears anywhere under docs/;
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.
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.
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.
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.
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.
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.
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.
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.
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.
I build BootForm, the form backend used in this post. I wrote this article with help from AI (Claude) and checked every step and claim against the product myself. It first appeared on the BootForm blog.