Skip to content
New: Customize your theme with an AI assistant. Read the guide

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.

FileRead byWhat it contains
AGENTS.mdOpenAI Codex, Cursor, Windsurf, GitHub Copilot, and other tools that follow the AGENTS.md conventionThe 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.mdAny assistant you point to itStep-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.mdClaude CodeImports AGENTS.md, then a short list of the most important rules
GEMINI.mdGemini CLIThe same as CLAUDE.md, for Gemini
.github/copilot-instructions.mdGitHub CopilotA short summary that points to AGENTS.md and SKILLS.md
.cursor/rules/theme-architecture.mdcCursorThe architecture rules, with a pointer to AGENTS.md
.windsurf/rules/theme-architecture.mdWindsurfThe 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.

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

AI that can open your files

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.

Chat assistants

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.

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.

Ready? Go to the Prompt Library for copy-paste prompts.

Type something to search...