Early Bird · 15% off

Back to Marginalia - Chat With Your Documents

Prompt cookbook

Marginalia - Chat With Your Documents

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: Demo corpus. Runs on a seeded corpus in src/lib/mock-data.ts by default. Live mode is a documented swap.

Prompt 1

Change the accent colours

In src/app/globals.css, change --accent-brass and --accent-cite to my brand colours. Keep the serif headings and the paper background.

Prompt 2

Serve documents from my database

Replace the document helpers in src/lib/mock-data.ts with queries against my Postgres table. Keep the same function signatures so the chat UI does not change.

Prompt 3

Connect a live model

Replace the canned answer helper in src/lib/mock-data.ts with a model call that returns the answer and citation IDs. Keep the citation shape the chat already renders.