Build with AI
Prompt: neighborhood pages from a list
Neighborhood pages from a list of places, each with a dated answer sentence, market tiles, questions, your own words and the area's listings.
This prompt builds the neighborhood and area pages for a list of places you give it, and the hub that links them.
The prompt
Prompt
Read RUUSTER_IDX.md first and follow its MUST and NEVER rules. Ask me if it doesn't cover something.
Build neighborhood pages at /neighborhoods/[area] for this list of places: [your list]. Follow the recipe at <https://help.ruuster.com/idx/recipe-neighborhood-page>. For each place, call GET /v1/suggest once on the server with my secret key, show me the rows it answers so I can confirm the right one, and store that row's where object unchanged in content/areas.ts. Never build or edit a where object by hand. Each page opens with one sentence that answers what the market is like, using GET /v1/market numbers and the date. Then it shows the MarketStats tiles, answers three to five questions as <h2> headings with the answer in the first sentence, leaves a section for my agents' own words, and shows the listings, pagination, the map, the MLS disclaimers and the JSON-LD. Add the area pages to app/sitemap.ts and build an area hub at /neighborhoods.
Use these environment variables: IDX_SECRET_KEY (server only), SITE_ORIGIN and SITE_NAME. Never paste a secret key into a chat, and never put IDX_SECRET_KEY in browser code, a URL or a log. No key goes in any page: my pages call my own /api/idx route, made with createListingsRoute from @ruuster/idx/route, which adds my secret key on the server (on a site with no server, the widgets call the API with no key from my approved website address).
Fair housing: describe homes, places and amenities only. Never describe the people who live in an area or who a home or area suits, and never rank schools as a reason to buy. Do not copy listing remarks into the area copy, and write a marked placeholder for my agents' own section instead of inventing it.
When you are done, list the where rows you stored so I can check them.What it builds
content/areas.tswith each place's/v1/suggestrow, stored unchanged after you confirm itapp/neighborhoods/[area]/page.tsxwith the answer sentence,MarketStats, the questions as headings and a marked place for your own wordsapp/neighborhoods/page.tsxand the area pages inapp/sitemap.ts
How to check it
- Check each stored row against the place you meant before you publish.
- View source on an area page and find the answer sentence with its date and each question as an
<h2>. - Write your agents' own section yourself: the prompt leaves it marked, never invented.
Before you paste it
Follow the setup on Build it with your AI coding assistant once: RUUSTER_IDX.md at the root of your project, the two lines in CLAUDE.md or AGENTS.md, and your keys in .env.local. Never paste a secret key into a chat. Replace the text in square brackets with your own before you send the prompt.