# How to build a website with Codex or Claude Code and Fimo.

https://designxdevelop.com/writing/build-a-website-with-codex-claude-code-and-fimo/

Use Codex or Claude Code to build the site in a Git repo. Connect it to Fimo so the people responsible for the site can review changes, edit the fields they own, and run site checks. Here’s how that applies to the Design X Develop site.

## Build one page in your repo.

Start with one page and give the agent its audience, the action you want visitors to take, and the content the team should be able to update. Ask for the route, layout, metadata, and a local check you can rerun before you share it.

DXD uses Astro for the page templates and TypeScript for the project and service data. The site prerenders those pages, including the HTML that search engines and other crawlers read.

```
Build the new Astro page using the existing layout and styles.
Add its title and description, and check the mobile layout.
List the content fields the team may need to edit after launch.
```

![Codex CLI help excerpt showing prompt syntax and the exec, review, MCP, and plugin commands](https://neighbouring-chocolate-gopher-c7bb37df08.fimo.site/uploads/2026/12/02/4GIczKJj-dxd-guide-codex-cli.webp)

Codex CLI help. Run codex in the project directory to start an interactive session and paste the page brief.

![Claude Code CLI help excerpt showing interactive prompt syntax and the non-interactive print option](https://neighbouring-chocolate-gopher-c7bb37df08.fimo.site/uploads/2026/12/02/iG69E8Lw-dxd-guide-claude-code-cli.webp)

Claude Code CLI help. Run claude in the project directory and use the interactive session to review the proposed changes.

## Connect the repo to Fimo.

For an existing site, run the link command from the application checkout with your project ID from Fimo Studio. Ask your coding agent to load the current Fimo skills and apply the guide for your framework. Connect Fimo through its plugin or MCP when the agent needs site context.

DXD’s Astro config uses the Fimo integration for hosted previews. GitHub remains the source repo and Cloudflare serves the live site. The Fimo preview routes contact submissions to a Cloudflare Worker. Check where your own routes, forms, and redirects run before changing hosts.

```
npx fimo@latest link YOUR_PROJECT_ID
npx fimo@latest skills get fimo-cli
npx fimo@latest skills get fimo-code --ref frameworks/astro
```

- [Fimo setup and developer docs](https://fimo.ai/developers)

## Make specific content editable.

Pick fields someone regularly needs to change, such as a headline, a team photo, or a case study summary. Define those fields in a Fimo schema and bind the template to them. Give the editor access to a preview and have them make a real update before handoff.

DXD’s project and service records currently live in the repo. Fimo supplies media used on the site and can provide Studio editing for fields you connect to it. Prerendered pages need a rebuild for content changes to reach visitors.

## Review a preview before publishing.

Run the repo’s checks, then use Fimo to deploy a branch preview. The deploy command commits pending changes and pushes the branch to Fimo. Review the working tree first so the preview contains the changes you intend to share.

Open the changed page at phone and desktop widths, follow the main links, and test any forms the preview connects. Check the title, description, and canonical URL before you publish.

On DXD, npm run verify runs Astro’s type checks, Vitest, Fimo validation, and the Astro build. A Fimo preview gives someone outside the repo a page to review. Publishing to the live host is a separate step.

```
git status --short
npm run verify
npx fimo@latest deploy -m "Add the new page"
```

![Fimo Studio with the main branch selected, the Preview tab open, and the page picker set to Home](https://neighbouring-chocolate-gopher-c7bb37df08.fimo.site/uploads/2026/12/02/YZkBVqsq-dxd-guide-fimo-preview.webp)

Fimo Studio. Select a branch, open Preview, then use the page picker to choose the route you want to review.

![DXD’s homepage in iPhone Safari, with the mobile navigation and both project links visible](https://neighbouring-chocolate-gopher-c7bb37df08.fimo.site/uploads/2026/12/02/Gt4DR2eE-dxd-guide-iphone-safari.webp)

The live DXD homepage in iPhone Safari. Check the same controls in your branch preview before publishing.

## Give lightweight research and checks to Fimo.

Use Fimo for lightweight work such as checking links, watching search visibility, or pulling together a shortlist of topics. Ask for the query, supporting evidence, and a brief when it finds a new page opportunity. At DXD, we take selected briefs into our own agent for deeper research, writing, and implementation.

This guide started that way. Fimo surfaced a shortlist of topics for the DXD site, and the page work happened in the Astro checkout.

- [When to use Fimo agents or your own agent](https://designxdevelop.com/writing/fimo-work-routing/)
- [Code review skills for the next change](https://designxdevelop.com/writing/code-review-skills-for-claude-code-and-codex/)
