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

Prompt Library

Skill level: Beginner

Copy a prompt, replace the parts in [BRACKETS], and send it to your assistant. Each prompt names the Covena files involved, so it works in AI editors and, with the files pasted in, in chat assistants too.

Get Started

Explain the project to the assistant

Read AGENTS.md and SKILLS.md, then look at src/config/config.toml, src/pages/[...lang]/index.astro,
src/content/homepage/english/-index.md and src/content/sections/english/hero-portrait-navy.md.
Summarize in 10 bullet points how this Astro theme is organized: where text lives, where the
firm's contact details live, how a page picks its sections, header and footer, how a page changes
a section with a named block, and how to use another section layout. Don't change any files yet.

Describe your firm once, then reuse it

Here is my firm. Use it for every copywriting request in this conversation:
- Name: [FIRM NAME]
- Practice areas: [FAMILY, EMPLOYMENT, PROPERTY, IMMIGRATION, ...]
- Clients: [INDIVIDUALS, OWNER-MANAGED BUSINESSES, ...]
- Offices: [CITIES AND ADDRESSES]
- How we charge: [FIXED FEES FOR ..., HOURLY RATES, FREE FIRST CALL OF ... MINUTES]
- Regulator: [REGULATOR AND NUMBER]
- Tone: plain and calm. No hype words, no promises about outcomes.
Never invent results, client quotes, reviews, ratings, awards, press mentions, qualifications or
fees. Confirm with one line, and don't change any files yet.

Firm Details And Brand

Rename the firm and update the contact details

My firm is "[FIRM NAME]", phone [PHONE AS WRITTEN] (dialled as [+COUNTRY CODE AND DIGITS]),
email [EMAIL]. In src/config/config.toml:
- [settings.contactInfo]: set phone and email, keeping the Markdown link format that is there now
("[shown text](tel:...)" and "[shown text](mailto:...)").
- [seo] author: my firm name.
- [site]: set title and logoText to my firm name, and rewrite description for my firm.
In each src/i18n/<lang>.json, set contactInfo.address to "[MAIN ADDRESS]" and contactInfo.hours
to "[OPENING HOURS]", translated, and change the firm name in footer.copyright. Set the same
hours in contactLines.hours in src/content/sections/<language>/contact-split-form.md, which is
where the contact section shows them.
Then search src/content and src/i18n (every language) for "Covena Law" in visible text and
replace it. Don't rename files, slugs or code identifiers. List every file you changed.

Replace the sample offices

We have [NUMBER] offices: [CITY, ADDRESS, PHONE, EMAIL, OPENING HOURS for each]. The office files
are in src/content/offices/<language>/ (london.md, manchester.md, birmingham.md). Edit them to
match my offices, renaming a file if the city changes (the file name is the URL), in every
language folder. Set mapUrl to a Google Maps search link for each address. Keep the attorneys
and practiceAreas lists only for slugs that still exist. If I have fewer offices, delete the
extra files in every language and tell me which menu items and pages linked to them.

Apply my brand colours

My brand colours are: main [HEX] and accent [HEX]. In src/styles/theme.css, set --color-navy
(hero, practice panel, header button, footer) to my main colour and --color-navy-hover to a
slightly lighter shade. Set --color-bronze (accent fills, always with dark text) to my accent and
--color-bronze-deep to a darker shade of it that has at least 4.5:1 contrast on #FFFFFF and on
--color-cream, because it is used for text and links. Keep every variable name. Tell me the
values you chose and their contrast ratios.

Change the fonts

Replace Onest (the main font, --font-primary) with [GOOGLE FONT], in the weights 400 and 500.
Edit src/config/fonts.json only: keep the cssVariable values, the fallback and the other two
fonts (Instrument Serif for the accent word, IBM Plex Sans Arabic for Arabic pages). Then tell me
to restart npm run dev.

Use my logo

The header and footer draw the Covena mark in src/layouts/components/global/Logo.astro, with the
name from [site] logoText in src/config/config.toml. Replace that mark with my logo:
[DESCRIBE OR PASTE YOUR SVG]. It must take the text colour, so it works on the white header and
the navy footer. Also replace src/assets/images/logo.svg (dark) and logo-light.svg (white) with
my logo. If my logo already contains the name, set logoText = "". Then tell me how to set
[site.favicon] image and run npm run generate-favicons.

Practice Areas, People And Offices

Rewrite a practice area page

Rewrite src/content/practice-areas/english/[SLUG].md for my firm, using these notes: [NOTES].
Keep every key, the slug, weight and the image paths. Keep the same structure and number of
items unless I say otherwise. Plain words, no promises about outcomes. Then make the same change
in the french and arabic folders, translated, and list anything I should have a native speaker
check.

Add a practice area

Add a practice area called "[NAME]" with the slug [SLUG], for [WHO IT IS FOR]. Copy
src/content/practice-areas/english/employment.md to [SLUG].md in every language folder, then
change title, weight, description and the body text. Pick a Lucide icon name that fits. Add a
link to it in the "Practice areas" mega menu in every src/config/menu.<lang>.json, in the group
where it belongs. Don't invent results or client stories for it. Then run npm run astro-check.

Add an attorney

Add an attorney: name [NAME], role [ROLE], office [OFFICE SLUG], practice areas [SLUGS],
languages [LANGUAGES], qualified [QUALIFICATION AND YEAR], education [DEGREES AND
UNIVERSITIES], email [EMAIL], phone [PHONE]. Biography notes: [NOTES]. Copy
src/content/attorneys/english/henry-lawson.md to [NAME-SLUG].md in every language folder and
fill in these facts, translated. Use the photo at /images/covena/attorneys/[FILE] (I've put it in
src/assets/images/covena/attorneys/), with alt text that names the person. Add the slug to the
attorneys list of the office file and to relatedAttorneys of the matching practice area files, in
every language. Only use the facts I gave you.

Remove a sample attorney

Remove the attorney [SLUG] in every language: delete the files in src/content/attorneys/<language>/,
and remove the slug from every list in src/content that names it (office attorneys, practice
area relatedAttorneys, result attorneys and any section file). List anything else that pointed at the profile.

Results, Reviews And Fees

Replace a sample result

Replace the sample result src/content/results/english/[SLUG].md with this real matter, which my
client has agreed I can publish: [WHAT HAPPENED, PRACTICE AREA, DURATION, OUTCOME, YEAR, LAWYERS].
Keep every key and the metadata rows in the same order. Remove the quote unless I give you a real,
consented client quote. Don't touch the results disclaimer: the components show it on their own.
Make the same change in every language folder, and rename the file in each if the slug changes.

Set my fees

Update the fees with my figures:
- Fixed fees: [SERVICE, PRICE, TIMESCALE for each]
- Hourly rates: [ROLE AND RATE for each]
In src/content/fees/english/-index.md change the items of fixedFees and hourlyRates, keeping
the way prices are written there ("£1,250"). In src/content/sections/english/fees-fixed-fees.md
(the fees table on Home 3) change the items: there `price` has no currency symbol (the symbol is
in `currency`), and a price with a thousands separator goes in quotes, like "1,250". Make the same
change in the french and arabic files, with the same numbers. Then list any price that is still
written as text somewhere else, such as metaDescription or the page body.

Replace the sample reviews and rating

Here are real reviews my clients agreed to publish: [REVIEWS WITH FIRST NAME AND INITIAL]. Our
rating is [RATING] from [NUMBER] reviews on [PLATFORM]. Replace the sample reviews and the 4.9
from 310 rating in src/content/reviews/<language>/-index.md and
src/content/sections/<language>/testimonial-quote-centred.md, in every language. If I didn't give
you a rating, remove the rating instead of keeping the sample one. List every other file that
still has a sample quote.

Pages, Sections And Layouts

Change one section on one page

On [PAGE ADDRESS], change the [SECTION] section only on that page: [CHANGE]. Find the page's
content file and its named block (the homepage files list their blocks in a comment at the top).
Add only the fields that change under that block, in every language. Don't edit the shared
section file in src/content/sections/.

Reorder or hide homepage sections

On Home [1, 2 OR 3], [move the SECTION above SECTION / hide SECTION]. To move a section, change
the order in src/pages/[...lang]/[index.astro | home-corporate.astro | home-family.astro]. To
hide one, add enable: false to its block in src/content/homepage/<language>/[FILE] in every
language. Show me the new order.

Use another section layout

On [PAGE], use the [LAYOUT] layout of the [KIND] section instead of the current one. Follow the
"Use another section layout or add one" recipe in SKILLS.md: swap the import and the tag in the
page file in src/pages/[...lang]/, and rename the page's named block to match in every language.
Then check the page at 375 px, 1280 px and /ar/.

Write an insights post

Write an insights post for src/content/blog/english/[SLUG].mdx about [TOPIC], for [READERS].
Copy the frontmatter of an existing post (title, description, image, date, author, categories,
tags, draft). The author must be one of our attorneys. Plain English, short paragraphs, headings
every few paragraphs, about [NUMBER] words. No legal advice for a specific case, and say when a
reader should talk to a lawyer. Then make French and Arabic copies with the same file name.

Languages

Remove a language

I don't need [French / Arabic]. Add its code to disableLanguages in [settings.multilingual] in
src/config/config.toml. Tell me which folders and files I can delete later, and remind me to
restart npm run dev.

Keep only one language

I only need [LANGUAGE]. Follow the "Add or remove a language" recipe in SKILLS.md: set
[settings.multilingual] enable = false and defaultLanguage to my language, run npm run dev once,
then run npm run remove-multilingual. Afterwards check that every internal link still works with
npm run build.

Add a language

Add [LANGUAGE] with the code [CODE]. Run npm run generate-multilingual-content -- --lang [CODE]
--name [NAME] --dir-name [FOLDER] --locale [LOCALE] --og [OG LOCALE] (add --dir rtl for a
right-to-left language). Then translate the new content folders, src/config/menu.[CODE].json and
src/i18n/[CODE].json. Keep internal links without a language prefix. If the site runs on Netlify,
add a /[CODE]/* block to netlify.toml like the /fr/* one.

Launch

Find every sample value before launch

Read PUBLIC-VALUES-NEEDED.md and README.md ("Sample data" and "Before you launch"). Go through
each item and tell me whether it still has the demo value, with the file and line. Also search
the project for 7946, "496 0", example.com and "[Regulator]". Don't change anything, just give
me the list.

Check the site before deploying

Run npm run verify. If anything fails, explain each failure in one sentence and fix it with the
smallest change. Don't change sample content to make a check pass.
Type something to search...