> For the full index of Sherpa pages for agents, see https://www.withsherpa.ai/llms.txt

URL: https://www.withsherpa.ai/docs/repo-layout
Title: How a Sherpa website is put together | Sherpa Docs
Description: Find your way around the code behind a Sherpa website.

[Docs](https://www.withsherpa.ai/docs) For agents and developers

# How a Sherpa website is put together

Find your way around the code behind a Sherpa website.

A Sherpa website is not a locked project inside a builder. It is an Astro codebase your team owns, with pages, components, content and brand notes all in one repository. That is what lets an agent change anything, and what lets you take the site anywhere.

## See it in action

Ask your agent this.

> Give me a tour of how my website is built. What are the main pages, the components they share and the collections behind them? Keep it to what a new teammate needs.

It answers with something like this.

Your site has 14 pages built from about 30 shared components.

- **Pages.** Home, pricing, about, customers, blog and nine more

- **Shared parts.** The header, footer, hero and pricing table appear on most pages

- **From the CMS.** Blog posts, customer stories and the team list

## The stack

A Sherpa website is an Astro project hosted by Sherpa. It is custom code your team owns and can take anywhere.

## Where things are

| Path | What is in it |
| --- | --- |
| `src/pages/` | One file per page or route |
| `src/components/` | Reusable sections and parts |
| `src/styles/` | Shared styles and design tokens |
| `src/assets/` and `public/_sherpa/assets/static/` | Images, fonts and other files |
| `cms/` | CMS collections and entries |
| `.sherpa/knowledge/` | Voice, design system and company notes agents read first |
| `.agents/skills/` | Workflows written for agents |
| `AGENTS.md` | The website's guide for agents |
| `sherpa.experiments.json` | Experiment definitions |

## Good to know

### Changes are branches

A change is a branch of the repository. Publishing merges it and releases the new build. That is why drafts do not collide and every version can be rolled back.

### What agents leave alone

Files under `.github/` are managed by Sherpa and cannot be edited in a change.

## Common questions

### What is a Sherpa website built with?

Astro. It is custom code your team owns and can take anywhere.

### Where does CMS content live?

In `cms/`, in the same repository as the pages and components.

### Where do agents find my brand rules?

In `.sherpa/knowledge/`, with workflows for agents in `.agents/skills/`.

## Example prompts

Each one works as written in Claude or ChatGPT once Sherpa is connected. Swap in your own pages and dates.

### The request from the example

> Give me a tour of how my website is built. What are the main pages, the components they share and the collections behind them? Keep it to what a new teammate needs.

Naming the reader keeps the tour short. You get a map, not a file listing.

### The reach map

> Which components are used on the most pages? Changing those changes the most.

Tells you where a small edit has a big reach.

### The history lesson

> What changed in the pricing page file over the last month, and who changed it?

Your agent can read a file's history, which answers most questions about why a page looks the way it does.

### The spring clean

> Is there anything in this website's code that looks unused or duplicated?

A tidy-up list from something that can read every file.

## For agents

Sherpa MCP tools for this job, in the order they are usually called. `list_files`, `read_file`, `search_files`, `get_file_history`. Work inside a change, and only call submit_change when the person asks to publish. A person presses Publish. Every tool is described in the [MCP reference](https://www.withsherpa.ai/docs/mcp-reference).

## Next

[**Write skills and knowledge files** Give every agent that works on your website the same instructions by writing them down once.](https://www.withsherpa.ai/docs/skills-and-knowledge) [**My agent cannot see Sherpa** Fix a connection when your agent says it has no Sherpa tools or cannot find your website.](https://www.withsherpa.ai/docs/agent-cannot-see-sherpa)
