Coding & Automation prompt

Claude Prompt to Write a PRD for an AI Coding Agent

ClaudeChatGPTClaude CodeCursorSubscribers
The short answer

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.

Subscriber prompt
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.

Join The Brief (free) and the full prompt unlocks here instantly, along with every other subscriber prompt. Unsubscribe whenever you like.

What to fill in

Everything in [GOLD CAPS] is yours to replace. Leave one blank and the model guesses, and a guess is how you get generic output.

  • [FEATURE_IDEA]
  • [USERS_AND_PROBLEM]
  • [CODEBASE_CONTEXT]
  • [CONSTRAINTS]
  • [OUT_OF_SCOPE]
  • [TBD]

How to use it

  1. 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.
  2. 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.
  3. Hand the agent one milestone at a time and review in between. Nobody should merge 3,000 unreviewed lines.

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 sync

Works 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.

Tools from our reviews that pair well with this prompt:

  • Claude Code — Hand Anthropic's coding agent a task and it reads your codebase, edits files and runs commands from terminal, IDE, desktop or web.
  • Cursor — Code faster in a VS Code-style editor with agents, codebase-aware chat and quick autocomplete.
  • Claude — Get the strongest long-form writing and the most careful reasoning among the consumer AI assistants, from Anthropic.