Markdown Output Prompt — Lock the Document Structure
The contract that stops AI documents from restructuring themselves: a pinned section skeleton, forced tables, and strict consistency rules.
Problem, Goals, Non-Goals, numbered Requirements, Risks, Timeline — PRDs identical in structure across every author and feature.
PRD review breaks down when every author invents their own structure: requirements hide in prose, non-goals go missing, risks live in someone's head. This setup pins the six-section PRD skeleton under Strict consistency — every section present, exact order, no merging — with PRD-specific rules: requirements numbered (R1, R2…) so reviews can reference them, and every requirement testable ("no 'should be fast' without a number"). Required Tables keeps requirement matrices as actual tables.
One prompt, every PRD
Generate once; each feature's details go below the prompt and come back in the same six sections.
Reference requirements by number
R1, R2… numbering is in the contract — review comments and test plans can finally point at something stable.
Defend the Non-Goals section
Strict mode means it can't be omitted or merged — scope creep's cheapest insurance.
It bakes numbering into the DOCUMENT section: functional requirements are listed as R1, R2, … so a review comment or test plan can point at a stable ID instead of quoting prose. The testability rule pairs with it — no "should be fast" without a number. markdown-output-builder formats this into copyable markdown; you paste feature details below the prompt and run it in your assistant.
This one generates a fresh PRD from scratch — the TASK line says "there is no source text to summarize" — pinning six sections in fixed order (Problem, Goals, Non-Goals, Requirements, Risks, Timeline) with numbered requirements. Its notFor sends "summarizing an existing PRD for execs" to the Structured Summary Prompt instead. Use this to author; use Summary to compress a document you already have.
It enforces the wording, not the truth. The CONSISTENCY RULES guarantee all six headings appear in exact order with none merged or omitted, and the testability rule bans vague phrasing like "should be fast" without a number — but markdown-output-builder only formats the text. It can't confirm a requirement is genuinely measurable or that your Non-Goals are right. Run it in your assistant and review the output yourself.
The contract that stops AI documents from restructuring themselves: a pinned section skeleton, forced tables, and strict consistency rules.
Overview, Installation, Usage, Examples, Configuration — the README skeleton with required, runnable code examples.
Overview, Authentication, Endpoints, Error Handling, Rate Limits — endpoint docs in an identical structure, with parameter tables and runnable examples forced.
Summary, Why It Matters, What Happens Next — the executive summary contract for readers who will never open the source.
Stop getting 'Sure, here is the JSON…' — the output-contract pattern that forces models to return only parseable JSON: schema, example, and a strict rule block.
The JSON won't parse and you can't see why. Deterministic cause-sniffing — trailing commas, single quotes, unclosed brackets — and the repair prompt that fixes it.
Build prompts that produce documents in a fixed structure — headings, sections, and tables.
Turn a fuzzy business need into requirements a team can build from — interrogate the need into concrete requirements, shape them as user stories, and write the PRD.
A PRD earns its keep by separating the feature somebody asked for from the problem they actually have — then fixing scope, numbering the requirements, and handing the open questions to the people who own them.