Back to Stockwell - Everyday-Goods Storefront
Prompt cookbook
Stockwell - Everyday-Goods Storefront
Paste a prompt into your coding agent with the project open. Each one names the file it changes, so the agent doesn't have to search the codebase.
AI status: Offline assistant. The shopping assistant matches keywords in src/lib/assistant.ts. Checkout is a mock.
Prompt 1
Change the brand colour
In src/app/globals.css, change --pigment and --pigment-deep to my brand colour. Check that the sale and positive colours still read as distinct.
Prompt 2
Add a product
Add a product to src/lib/catalog.ts following the existing entries. Confirm it appears on its category page at /c/[category] and its detail page at /p/[slug].
Prompt 3
Connect a real model
Replace the keyword matching in src/lib/assistant.ts with a model call that returns { reply, picks }, where picks are product slugs from the catalogue.