# Prompt Library

## Prompt Library

**Skill level:** Beginner

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

<Aside type="tip">
  Start a new conversation with the first prompt below. It gives the assistant
  the map of the theme, and every later request gets better.
</Aside>

### Get Started
**Explain the project to the assistant**

```text
Read AGENTS.md and SKILLS.md, then look at src/config/config.toml, src/pages/[...lang]/index.astro,
src/content/homepage/english/-index.md, src/content/properties/english/riverside-townhouse.md,
and src/content/sections/english/hero-section.md. Summarize in 10 bullet points how this Astro
theme is organized: where text lives, where the agency details and listing settings live, how
listings link to agents and neighborhoods, how a page overrides a section (named blocks), and
how options.layout works. Don't change any files yet.
```

**Describe your agency once, then reuse it**

```text
Here is my agency. Use it for every copywriting request in this conversation:
- Name: [AGENCY NAME]
- What we do: [SALES, RENTALS, PROPERTY MANAGEMENT, VALUATIONS, RELOCATION, ...]
- Where we work: [CITY AND NEIGHBORHOODS]
- Who we work with: [FIRST-TIME BUYERS, FAMILIES, LANDLORDS, PEOPLE MOVING TO THE CITY, ...]
- Facts you may use: [YEARS IN BUSINESS, NUMBER OF AGENTS, OFFICES, LICENSE NUMBER]
- Tone: short, plain, friendly. No hype words.
Never invent listings, prices, reviews, ratings, review counts, or sales figures. Confirm
with one line, and don't change any files yet.
```

### Agency Details And Brand
**Rename the agency and update the phone everywhere**

```text
My agency is "[NAME]", phone [PHONE AS DIALED, e.g. +15551234567] shown as "[PHONE AS
WRITTEN]", email [EMAIL]. In src/config/config.toml:
- [business]: set name, phone (E.164: + country code, digits only), phoneDisplay, and email.
  Set sms and smsDisplay to [TEXT NUMBER], or to "" if we don't take texts.
- [site]: set title and logoText to my name.
Then search src/content and src/i18n (every language) for "Lotline" in visible text and
replace it. Don't rename files or code identifiers. List every file you changed.
```

**Set the address and opening hours**

```text
In [business] of src/config/config.toml, set the address to [STREET, CITY, STATE OR PROVINCE,
POSTAL CODE, COUNTRY CODE]. [We don't receive visitors at an office: set
[business.address] show = false.] Set [business.hours] to: [DAYS AND TIMES], in 24-hour
"HH:MM-HH:MM" format, with "" for closed days. Remove the "# sample" comments on the values
you changed.
```

**Apply my brand colors**

```text
My brand colors are: main [HEX], button color [HEX]. In src/styles/theme.css, in the :root
block, set --theme-brand (the dark panels, the pine footer, and dark buttons, with white text
from --theme-on-brand) to my main color and --theme-brand-hover to a slightly darker shade.
Set --theme-accent (the bright buttons) to my button color and --theme-accent-hover to a
slightly darker shade, keeping at least 4.5:1 contrast with the button label. Keep every
variable name. Tell me the values you chose and their contrast ratios.
```

**Change the fonts**

```text
Replace Host Grotesk (headings and body text) with [GOOGLE FONT] and Instrument Serif (the
italic accent words in headings) with [GOOGLE FONT]. Edit src/config/fonts.json only: keep the
cssVariable values "--font-primary" and "--font-accent", pick weights the new fonts have, and
keep the fallbacks. Leave JetBrains Mono (--font-code) and IBM Plex Sans Arabic (--font-arabic,
Arabic pages). Then tell me to restart npm run dev.
```

**Use my logo**

```text
I put my logo at src/assets/images/[FILE].svg. In [site] of src/config/config.toml set
logo = "/images/[FILE].svg" and logoWidth / logoHeight so it is about 28px tall with its own
proportions. If the file already contains the name, set logoText = "". Then set [site.favicon]
image to "/images/[SQUARE MARK FILE]" and tell me to run npm run generate-favicons and
npm run generate-og-image.
```

### Listings
**Add a listing**

```text
Add a listing from these notes: [FOR SALE OR FOR RENT, TYPE, PRICE OR MONTHLY RENT, BEDS,
BATHS, FLOOR AREA, PARKING, YEAR BUILT, STREET AND NEIGHBORHOOD (no house number), AGENT,
FEATURES, DESCRIPTION NOTES]. Follow "Add or edit a property listing" in SKILLS.md:
copy src/content/properties/english/riverside-townhouse.md to [file-name].md (the file name
becomes the URL), and set status, type, price as a plain number, beds, baths, area, address,
features, date, and the description under the frontmatter. Set neighborhood and agent to file
names that exist in src/content/neighborhoods/english/ and src/content/agents/english/. I put
the photos in src/assets/images/lotline/properties/[file-name]/: [FILE NAMES AND WHAT EACH
SHOWS]. Set image, imageAlt, and the gallery with an alt for each photo. Make the same file in
every other language folder, translated. Use only my facts, then tell me which fields you
left as they were.
```

**Mark a home as under contract, let, or off the market**

```text
The listing src/content/properties/english/[file-name].md is [UNDER CONTRACT | LET | OFF THE
MARKET]. For under contract, set badge: "Under contract". For a rental that's agreed, set
badge: "Lease pending". To take it off the site, set draft: true. Make the same change in
every other language folder, with the badge translated the way the other files in that folder
write it. Then check src/config/menu.<language>.json: if this home is the featured card in the
Properties menu, tell me, and suggest another listing for it.
```

**Change a price**

```text
The price of src/content/properties/english/[file-name].md is now [NEW PRICE]. Set price to
that number in every language folder (a plain number, monthly for a rental). If the home is
the featured card in the Properties mega menu, update its "price" text in each
src/config/menu.<language>.json too, written the way that file writes prices.
```

**Change the currency and area unit**

```text
We list prices in [CURRENCY, e.g. EUR] and floor areas in [sq ft | m²]. In [listings] of
src/config/config.toml set currency to "[ISO CODE]" and areaUnit to "[UNIT]". Set
[settings.currency] code to the same currency. Set maxPricesSale and maxPricesRent to steps
that fit our market: [STEPS]. Changing areaUnit doesn't convert numbers, so list every
listing in src/content/properties/ whose area I need to update, and search src/content and
src/config/menu.*.json for prices typed as text (for example "$" in the menu's featured card,
service fees, or blog posts) and list them without changing them.
```

**Replace the sample listings with mine**

```text
I'll give you my listings one at a time. Before we start, list every sample listing in
src/content/properties/english/ with its title, status, and price, and every place it is
linked from (the featured card in src/config/menu.*.json, homepage blocks in
src/content/homepage/, and blog posts). When I say a sample can go, set draft: true on it in
every language folder instead of deleting it.
```

### Agents, Developments, And Neighborhoods
**Add an agent**

```text
Add an agent: [NAME, ROLE, ONE-LINE BIO, FULL BIO NOTES, EMAIL, PHONE, LANGUAGES, YEAR JOINED,
NEIGHBORHOODS THEY COVER]. Copy src/content/agents/english/omar-reyes.md to [first-last].md
and fill in my details only. The schema is strict, so keep exactly the same keys. Set phone in
E.164 and phoneDisplay as written. Set areas to file names from
src/content/neighborhoods/english/, or [] for every neighborhood. I put a 4:5 portrait at
src/assets/images/lotline/agents/[FILE].jpg. Remove stats unless I give you real numbers. Make
the same file in every other language folder, translated.
```

**Add a neighborhood guide**

```text
Add a neighborhood guide for "[NAME]": [WHAT THE HOMES ARE LIKE, SCHOOLS, PARKS, TRANSPORT,
SHOPS, COMMUTE, QUESTIONS PEOPLE ASK]. Copy src/content/neighborhoods/english/riverside.md to
[file-name].md and set title, description, tagline, commute, highlights (3 or 4, each with a
Lucide icon name), faq, order, and the text under the frontmatter. Use only the facts I gave
you. I put a 16:9 photo with no people at src/assets/images/lotline/areas/[FILE].jpg. Make the
same file in every other language folder. Then tell me which listings and agents should point
at it.
```

**Add a new development**

```text
Add a development "[NAME]": [NEIGHBORHOOD, NUMBER AND TYPE OF HOMES, STATUS, COMPLETION,
PRICE FROM, SALES AGENT, HIGHLIGHTS, DESCRIPTION NOTES]. Copy
src/content/developments/english/parkline-terraces.md to [file-name].md and fill it in.
priceFrom is a plain number in the [listings] currency. Make the same file in every other
language folder. Use only my facts.
```

### Homepage And Layouts
**Change a section's layout**

```text
On [PAGE URL], switch the [SECTION] to the [LAYOUT] layout. Find the page's content file and
its named block for that section (or the section file in src/content/sections/english/ if the
page has no block), and set options.layout. Use only a value listed in the comment next to
layout:. Do the same in the other language folders.
```

**Switch the hero to the panel layout**

```text
On the main homepage, set heroSection options.layout to "panel" in each language's -index.md
in src/content/homepage/. Check the comment next to layout in
src/content/sections/english/hero-section.md for what the panel layout shows, and fill in any
field it needs that the block doesn't have yet, in every language. Keep every other key. Then
tell me what to check on / at 375 px and 1280 px.
```

**Reorder or remove homepage sections**

```text
On the main homepage (src/pages/[...lang]/index.astro), move the [SECTION] line above the
[SECTION] line and remove the [SECTION] line. Keep the <LayoutVariants section="..."
content={...} /> wrapper on every section that uses it. Only edit the route file, and don't
delete content files.
```

**Use another homepage as the main one**

```text
I want the /home-[2 | 3]/ design as my main homepage. Replace the contents of
src/pages/[...lang]/index.astro with those of home-[2 | 3].astro, reading the "-index" entry
instead of "home-[2 | 3]". Copy all frontmatter of src/content/homepage/english/home-[2 | 3].md
into -index.md (the same in the other language folders). Then delete the two other homepage
routes and content files, and remove their links from the Homepages group in the Company menu
of each src/config/menu.<language>.json. Run npm run astro-check.
```

**Change the header and footer layout**

```text
Set the site header to [overlay | bar | utility] and the footer to [columns | pine | minimal]
in [settings.layout] of src/config/config.toml. Then list every content file that sets its own
headerLayout or footerLayout in frontmatter, so I can decide whether to keep them.
```

**Turn on the announcement bar**

```text
Show an announcement above the header: "[TEXT]" with a link "[LABEL]" to [URL], ending on
[YYYY-MM-DD]. Edit announcement-bar.md in every language folder of src/content/sections/: set
enable: true, text, link, end, and a new id (so visitors who closed the old one see it). Keep
hideOn and tone.
```

### Content
**Rewrite the homepage for my agency**

```text
Rewrite the English text of the main homepage for my agency. Edit the named blocks in
src/content/homepage/english/-index.md (heroSection, logosSection, listingsSection,
videoSection, whyUsSection, servicesSection, reviewsSection, enquirySection, faqSection,
ctaSection). Keep every key, option, icon name, image path, and the number of items in each
list. Only change text values. Don't invent numbers or promises: keep the sample values and
list them for me. Then write the same changes in each other language's -index.md in
src/content/homepage/.
```

**Add real reviews**

```text
Here are real reviews, shared with the clients' consent: [FIRST NAME + LAST INITIAL,
NEIGHBORHOOD, SERVICE, STARS, DATE, TEXT]. Add one file per review to
src/content/reviews/english/ (and each other language folder, with the text translated),
copying the frontmatter of an existing review. Use neighborhood file names for area and
service file names from src/content/services/english/ for service. Then set draft: true on the
sample reviews. Update value and count in src/content/sections/<language>/rating.md to [MY
RATING AND REVIEW COUNT], or tell me which sample numbers are still there.
```

**Rewrite a service and its fee**

```text
Rewrite src/content/services/english/[selling | buying | renting | property-management |
valuations | relocation].md for my agency: [WHAT WE DO, OUR FEE, THE STEPS]. Keep every key and
the number of items in each list. Use only the fee and facts I gave you. Do the same in every
other language folder.
```

**Write the FAQ**

```text
Rewrite the questions in src/content/faq/english/-index.md for my agency: keep the topic
groups and write 3 to 5 questions per group with short, direct answers. Use only the facts
and fees I give you. Keep the file structure and keys. Then translate it into each other
language's -index.md in src/content/faq/.
```

**Write a blog post**

```text
Write a blog post titled "[TITLE]" about [TOPIC], around 800 words, for people buying or
renting in [CITY]. Create src/content/blog/english/[slug].mdx with the same frontmatter fields
as staging-on-a-small-budget.mdx (title, description, image, imageAlt, date [YYYY-MM-DD],
author, categories, tags, draft: false). Set author to the name of one of our agents. Use ##
headings. Don't quote figures or prices I haven't given you.
```

**Add a job opening**

```text
Add a job opening to src/content/careers/english/ for: [TITLE, AREA, TYPE, PAY, SCHEDULE,
START, REQUIREMENTS]. Copy the frontmatter keys of sales-agent.md and use a file name that
makes a good URL. Add the other language versions with the same file name.
```

### Menus, Languages, And Launch
**Clean up the menus**

```text
In each src/config/menu.<language>.json, make the header and footer link only to pages I
keep: [LIST]. Set "enable": false on items I don't need instead of deleting them. Remove the
Homepages group from the Company menu if I only keep one homepage. Point the featured card in
the Properties mega menu at [LISTING FILE NAME], with its title, price, and image. Keep the
legal group last in the footer. Keep the same structure in every file, then run
npm run check-i18n.
```

**Turn off one language**

```text
I don't need [LANGUAGE] yet. Add its code to disableLanguages in [settings.multilingual] of
src/config/config.toml, and tell me to restart npm run dev. Keep its files.
```

**Keep only English**

```text
I only need English. In [settings.multilingual] of src/config/config.toml set enable = false.
Tell me to run npm run dev once, then npm run remove-multilingual, which deletes the content
folders, menu files, and i18n files of every other language, French and Arabic included.
Before that, list any translated text I might want to keep, and save a git commit.
```

**Check the site before launch**

```text
Prepare my site for launch. In src/config/config.toml: set [site] baseUrl to "[URL]", check
that contactFormAction and the Mailchimp formAction are no longer placeholders, and keep
[settings.layoutSwitcher] enable = false. Then search src/content, src/config, and src/i18n
for "# sample", "PLACEHOLDER", "example.com", and "555" and list every value I still have to
replace, grouped by file. Don't change them. Finally run npm run build and report the warnings.
```

**Fix an error**

```text
npm run [dev | build | astro-check] shows this error: [PASTE THE WHOLE ERROR]. Find the cause,
explain it in one sentence, and fix it in the content or config file, not in a component.
```