# Customize Covena With AI

## Customize Covena With AI

**Skill level:** Beginner · **Works with:** Claude, Cursor, GitHub Copilot, Gemini, Windsurf, Codex, ChatGPT, and any other assistant

Covena is set up so an AI assistant can change it without guessing. Three things make that work:

1. **Content is separate from code.** Almost every change is an edit to a Markdown, TOML, or JSON file: site settings in `src/config/config.toml`, practice areas in `src/content/practice-areas/`, attorneys in `src/content/attorneys/`, fees in `src/content/fees/` and `src/content/sections/<language>/fees-fixed-fees.md`. AI tools are good at this kind of edit.
2. **Content files explain themselves.** Section files list their other layouts and their options in comments, and each homepage file lists its section blocks at the top. The assistant can read what is possible instead of inventing it.
3. **The theme ships instruction files for AI tools.** They describe the folder structure and the rules for changing it. Most AI coding tools load them when you open the project folder.

### The AI Instruction Files In Covena
Covena ships four instruction files at the top of the theme folder and three in hidden folders. Folders that start with a dot (`.github/`, `.cursor/`, `.windsurf/`) are hidden by default in Finder and File Explorer, but your code editor shows them. You don't need to edit any of these files.

| File                                    | Read by                                                        | What it contains                                                                 |
| --------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| `AGENTS.md`                             | OpenAI Codex, Cursor, Windsurf, GitHub Copilot, and other tools that follow the `AGENTS.md` convention | The full rules: commands, project map, content model, sections and page blocks, header and menus, quick exit, styling, RTL, languages, motion, forms, and what to check |
| `SKILLS.md`                             | Any assistant you point to it                                  | Step-by-step recipes: add a section or page, use another layout, reorder a homepage, edit a collection, edit menus, add or remove a language, rebrand, add an icon, replace sample content, change motion, verify |
| `CLAUDE.md`                             | Claude Code                                                    | Imports `AGENTS.md`, then a short list of the most important rules              |
| `GEMINI.md`                             | Gemini CLI                                                     | The same as `CLAUDE.md`, for Gemini                                              |
| `.github/copilot-instructions.md`       | GitHub Copilot                                                 | A short summary that points to `AGENTS.md` and `SKILLS.md`                       |
| `.cursor/rules/theme-architecture.mdc`  | Cursor                                                         | The architecture rules, with a pointer to `AGENTS.md`                            |
| `.windsurf/rules/theme-architecture.md` | Windsurf                                                       | The same rules for Windsurf                                                      |

The `.vscode/` folder holds editor settings and the recommended extensions (Astro, TOML, and Tailwind CSS), not AI rules.

Chat assistants in a browser (ChatGPT, Claude, Gemini) can't read your folder. You paste `AGENTS.md` into the conversation yourself. See [AI Workflow](/covena/ai-customization/ai-workflow/).

These files tell an assistant to:

- keep editable text, links, images, and options in `src/content/`, not in components
- make every change in every language: each language folder, `src/i18n/<lang>.json`, and `src/config/menu.<lang>.json`
- write internal links without a language prefix (`/fees/`, never `/fr/fees/`)
- use another section layout by importing its component in the page file, since `options.layout` is only a label
- reuse `Button.astro`, `Icons.astro`, and `OptimizedImage.astro`, and the colour tokens in `src/styles/theme.css`
- use logical classes (`ms-`, `pe-`, `text-start`) so every page works right to left
- never invent reviews, ratings, results, client names, awards, press, fees, or a regulator number
- keep the results disclaimer and the quick exit button working
- check changed pages at about 375 px and 1280 px wide, in every language, and run `npm run astro-check`

### Two Ways To Work With AI
<CardGrid>
  <Card title="AI that can open your files" icon="laptop">
    Cursor, Windsurf, Claude Code, GitHub Copilot in VS Code, Gemini CLI, Codex.
    Open the Covena project folder in the tool and describe the change. It reads
    the instruction files, edits the files, and can run the checks. This is the
    way to work when a change touches more than one file.
  </Card>
  <Card title="Chat assistants" icon="comment">
    ChatGPT, Claude, or Gemini in the browser. They can't see your project, so
    you paste `AGENTS.md` and the file you want changed, then copy the answer
    back. Fine for rewriting text, one file at a time.
  </Card>
</CardGrid>

### What AI Does Well In Covena
- Putting your firm name, phone, email, address, and opening hours in the right files (`config.toml`, `src/i18n/<lang>.json`, and the office files)
- Rewriting practice area pages, attorney profiles, and insights posts from notes you give it, in every language
- Adding or removing practice areas, industries, attorneys, offices, and careers roles, with the menus updated to match
- Swapping a section's layout, reordering homepage sections, or hiding a section on one page
- Replacing the sample offices with yours
- Translating the site, adding a language, or removing one
- Explaining an error message and fixing it

### What To Check Yourself
- **Facts about your firm.** AI writes convincing copy, and it can invent results, client quotes, ratings, review counts, awards, years of experience, and qualifications. The firm in the demo, its 12 attorneys, the results, the reviews, the 4.9 rating, the awards, and the press mentions are all made up. Check every name, number, and claim before you publish.
- **Results.** Every result page and card shows the disclaimer from `results.disclaimer` in `src/i18n/<lang>.json`. Make sure the assistant didn't remove it, and that each outcome you publish is real and allowed by your regulator's rules.
- **Fees.** The fixed fees, hourly rates, and timescales on `/fees/` and Home 3 are samples. Give the assistant your real figures, or ask it to list the sample ones for you to replace.
- **The regulator line.** `src/content/pages/<language>/regulatory-information.md` has the placeholder "[Regulator], number [000000]". Only you can fill it in.
- **Phone numbers and addresses.** The sample numbers are in UK ranges set aside for TV and film, and the emails use `example.com`. Search the project for `7946`, `496 0`, and `example.com` when you think you're done.
- **Legal pages.** The privacy policy, terms, disclaimer, and accessibility statement are written for the demo firm. Have them reviewed for yours.
- **Translations.** The French and Arabic text was translated for the demo. Have a native speaker read any text an assistant translates for you, too.
- **Longer text.** A firm name, button label, or menu item longer than the sample can wrap or crowd the header. Check the header and the hero at phone width and at 1024 px.
- **Forms.** Send one message from each form on the live site and check that it arrives.

<Aside type="tip" title="Five rules for good results">
  1. One task per request. "Change the Home 1 hero" works better than "redo the site".
  2. Name the file when you know it. Every page in these docs tells you which one.
  3. Say what must stay the same: "keep every key, slug, and option, only change the text".
  4. Ask for every language, or say which languages you use.
  5. Save a checkpoint first (a git commit or a copy of the folder), so any change can be undone.
</Aside>

Ready? Go to the [Prompt Library](/covena/ai-customization/prompt-library/) for copy-paste prompts.