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.
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, src/content/properties/english/riverside-townhouse.md,and src/content/sections/english/hero-section.md. Summarize in 10 bullet points how this Astrotheme is organized: where text lives, where the agency details and listing settings live, howlistings link to agents and neighborhoods, how a page overrides a section (named blocks), andhow options.layout works. Don't change any files yet.Describe your agency once, then reuse it
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. Confirmwith one line, and don't change any files yet.Agency Details And Brand
Rename the agency and update the phone everywhere
My agency is "[NAME]", phone [PHONE AS DIALED, e.g. +15551234567] shown as "[PHONE ASWRITTEN]", 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 andreplace it. Don't rename files or code identifiers. List every file you changed.Set the address and opening hours
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 valuesyou changed.Apply my brand colors
My brand colors are: main [HEX], button color [HEX]. In src/styles/theme.css, in the :rootblock, set --theme-brand (the dark panels, the pine footer, and dark buttons, with white textfrom --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 aslightly darker shade, keeping at least 4.5:1 contrast with the button label. Keep everyvariable name. Tell me the values you chose and their contrast ratios.Change the fonts
Replace Host Grotesk (headings and body text) with [GOOGLE FONT] and Instrument Serif (theitalic accent words in headings) with [GOOGLE FONT]. Edit src/config/fonts.json only: keep thecssVariable values "--font-primary" and "--font-accent", pick weights the new fonts have, andkeep 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
I put my logo at src/assets/images/[FILE].svg. In [site] of src/config/config.toml setlogo = "/images/[FILE].svg" and logoWidth / logoHeight so it is about 28px tall with its ownproportions. 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 andnpm run generate-og-image.Listings
Add a listing
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 namebecomes 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 filenames that exist in src/content/neighborhoods/english/ and src/content/agents/english/. I putthe photos in src/assets/images/lotline/properties/[file-name]/: [FILE NAMES AND WHAT EACHSHOWS]. Set image, imageAlt, and the gallery with an alt for each photo. Make the same file inevery other language folder, translated. Use only my facts, then tell me which fields youleft as they were.Mark a home as under contract, let, or off the market
The listing src/content/properties/english/[file-name].md is [UNDER CONTRACT | LET | OFF THEMARKET]. For under contract, set badge: "Under contract". For a rental that's agreed, setbadge: "Lease pending". To take it off the site, set draft: true. Make the same change inevery other language folder, with the badge translated the way the other files in that folderwrite it. Then check src/config/menu.<language>.json: if this home is the featured card in theProperties menu, tell me, and suggest another listing for it.Change a price
The price of src/content/properties/english/[file-name].md is now [NEW PRICE]. Set price tothat number in every language folder (a plain number, monthly for a rental). If the home isthe featured card in the Properties mega menu, update its "price" text in eachsrc/config/menu.<language>.json too, written the way that file writes prices.Change the currency and area unit
We list prices in [CURRENCY, e.g. EUR] and floor areas in [sq ft | m²]. In [listings] ofsrc/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 stepsthat fit our market: [STEPS]. Changing areaUnit doesn't convert numbers, so list everylisting in src/content/properties/ whose area I need to update, and search src/content andsrc/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
I'll give you my listings one at a time. Before we start, list every sample listing insrc/content/properties/english/ with its title, status, and price, and every place it islinked from (the featured card in src/config/menu.*.json, homepage blocks insrc/content/homepage/, and blog posts). When I say a sample can go, set draft: true on it inevery language folder instead of deleting it.Agents, Developments, And Neighborhoods
Add an agent
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].mdand fill in my details only. The schema is strict, so keep exactly the same keys. Set phone inE.164 and phoneDisplay as written. Set areas to file names fromsrc/content/neighborhoods/english/, or [] for every neighborhood. I put a 4:5 portrait atsrc/assets/images/lotline/agents/[FILE].jpg. Remove stats unless I give you real numbers. Makethe same file in every other language folder, translated.Add a neighborhood guide
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 aLucide icon name), faq, order, and the text under the frontmatter. Use only the facts I gaveyou. I put a 16:9 photo with no people at src/assets/images/lotline/areas/[FILE].jpg. Make thesame file in every other language folder. Then tell me which listings and agents should pointat it.Add a new development
Add a development "[NAME]": [NEIGHBORHOOD, NUMBER AND TYPE OF HOMES, STATUS, COMPLETION,PRICE FROM, SALES AGENT, HIGHLIGHTS, DESCRIPTION NOTES]. Copysrc/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 otherlanguage folder. Use only my facts.Homepage And Layouts
Change a section’s layout
On [PAGE URL], switch the [SECTION] to the [LAYOUT] layout. Find the page's content file andits named block for that section (or the section file in src/content/sections/english/ if thepage has no block), and set options.layout. Use only a value listed in the comment next tolayout:. Do the same in the other language folders.Switch the hero to the panel layout
On the main homepage, set heroSection options.layout to "panel" in each language's -index.mdin src/content/homepage/. Check the comment next to layout insrc/content/sections/english/hero-section.md for what the panel layout shows, and fill in anyfield it needs that the block doesn't have yet, in every language. Keep every other key. Thentell me what to check on / at 375 px and 1280 px.Reorder or remove homepage sections
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'tdelete content files.Use another homepage as the main one
I want the /home-[2 | 3]/ design as my main homepage. Replace the contents ofsrc/pages/[...lang]/index.astro with those of home-[2 | 3].astro, reading the "-index" entryinstead of "home-[2 | 3]". Copy all frontmatter of src/content/homepage/english/home-[2 | 3].mdinto -index.md (the same in the other language folders). Then delete the two other homepageroutes and content files, and remove their links from the Homepages group in the Company menuof each src/config/menu.<language>.json. Run npm run astro-check.Change the header and footer layout
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 ownheaderLayout or footerLayout in frontmatter, so I can decide whether to keep them.Turn on the announcement bar
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/: setenable: true, text, link, end, and a new id (so visitors who closed the old one see it). KeephideOn and tone.Content
Menus, Languages, And Launch
Clean up the menus
In each src/config/menu.<language>.json, make the header and footer link only to pages Ikeep: [LIST]. Set "enable": false on items I don't need instead of deleting them. Remove theHomepages group from the Company menu if I only keep one homepage. Point the featured card inthe Properties mega menu at [LISTING FILE NAME], with its title, price, and image. Keep thelegal group last in the footer. Keep the same structure in every file, then runnpm run check-i18n.Turn off one language
I don't need [LANGUAGE] yet. Add its code to disableLanguages in [settings.multilingual] ofsrc/config/config.toml, and tell me to restart npm run dev. Keep its files.Keep only English
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 contentfolders, 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
Prepare my site for launch. In src/config/config.toml: set [site] baseUrl to "[URL]", checkthat contactFormAction and the Mailchimp formAction are no longer placeholders, and keep[settings.layoutSwitcher] enable = false. Then search src/content, src/config, and src/i18nfor "# sample", "PLACEHOLDER", "example.com", and "555" and list every value I still have toreplace, grouped by file. Don't change them. Finally run npm run build and report the warnings.Fix an error
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.