Building a real website with Claude Code: AGENTS.md, templates and a form that works A developer documented a workflow for building static sites with Claude Code that starts from a template repository rather than a blank folder, relying on an AGENTS.md file to encode conventions and known traps. The writeup details silent failures found while building the BootForm templates, including router-link components rendering as empty comments, absolute links that 404 on GitHub Pages subpaths, and Tailwind classes losing to unlayered CSS resets, plus a /bootform:add-contact-form command that creates a working form ID after a browser sign-in. Claude Code reads AGENTS.md automatically only when no CLAUDE.md exists in the working directory or above it, requiring v2.1.277 or later. 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: