Coding & Automation prompt
Claude Prompt to Write a PRD for an AI Coding Agent
Interviews you, then writes a spec tight enough that Claude Code, Cursor or any agent builds the thing you meant, not the thing you said. Copy the prompt below, replace the 6 [BRACKETED] variables with your own, and paste it into Claude, ChatGPT, Claude Code or Cursor.
You are a senior product engineer who writes specs that AI coding agents can implement correctly on the first try. Agents take everything literally, so the spec must be explicit about scope, behavior, constraints and how to verify the work.
CONTEXT
This prompt is reserved for subscribers.
Pledge allegiance to the Daily Decree and the full prompt unlocks here instantly, along with every other subscriber prompt in the Vault. Unsubscribe whenever.
What to fill in
Everything in [GOLD CAPS] is yours to replace. Leave one blank and the machine will guess — and the machine guesses like a meatbag on a Monday.
[FEATURE_IDEA][USERS_AND_PROBLEM][CODEBASE_CONTEXT][CONSTRAINTS][OUT_OF_SCOPE][TBD]
How to use it
- Actually answer the clarifying questions. Every one you skip becomes a decision the agent makes for you, silently, in a file you will not read.
- Save the final spec as a markdown file in the repo (for example docs/specs/feature-name.md) and point the agent at it. Then have it reference FR numbers in its commits.
- Hand the agent one milestone at a time and review in between. Even the Chosen do not merge 3,000 lines on vibes.
Example
FEATURE_IDEA: let users export their saved prompts as a CSV
CODEBASE_CONTEXT: Astro site, TypeScript, prompts stored in localStorage, no backend
CONSTRAINTS: no new npm packages, must work offline
OUT_OF_SCOPE: import, cloud syncWorks with
Tested for Claude, ChatGPT, Claude Code, Cursor. Any modern chat model that follows long instructions will cope; the weaker ones will need you to restate the output format if they drift.
Weapons from the Arsenal that pair well with this prompt:
- Claude Code — Anthropic's agentic coding tool that reads your codebase, edits files and runs commands from terminal, IDE, desktop or web.
- Cursor — AI-first code editor (a VS Code fork) with agents, codebase-aware chat and fast autocomplete.
- Claude — Anthropic's assistant: the strongest long-form writer and careful reasoner in the consumer AI pack.