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.
Ship without a maintenance window — a deployment strategy (blue-green or rolling) that keeps the service up, handles in-flight requests, and stays compatible across versions.
A deploy that needs downtime is a deploy you'll postpone — and postponed deploys get big and risky. This prompt designs a zero-downtime strategy: blue-green or rolling, how traffic shifts, how in-flight requests and connections drain, and the backward-compatibility rules (API, schema, sessions) that let two versions run side by side during the switch.
Describe the deploy and its versions
Note what is shipping, how traffic reaches it, and what must stay compatible - API, schema, sessions - so two versions can run side by side.
Open this resource in Markdown Output Builder
Load the prompt into Markdown Output Builder and fill in the deploy. It returns the zero-downtime strategy as a clean Markdown plan you can follow during the switch.
Walk through the cutover strategy
Read the blue-green or rolling approach, how traffic shifts, how in-flight requests drain, and the backward-compatibility rules that keep both versions working.
Fill the gaps before you cut over
Resolve any compatibility break the plan flags between versions, then run the switch keeping the service up the whole time.
It plans only. Markdown Output Builder returns the strategy as a clean Markdown document covering the chosen PATTERN, the TRAFFIC SHIFT, and the VERSION COMPATIBILITY rules, but nothing here touches your load balancer or ships anything. You run the actual switch yourself, following the plan, and own every cutover decision it describes.
The PATTERN section chooses on the constraints you supply in the INPUT block: architecture, traffic, statefulness, and current deploy method. It states the trade-off rather than defaulting to blue-green, and the STATEFUL CONCERNS section handles anything stateful — sessions, sticky connections, in-memory data — and how it survives the switch, so the choice isn't made blind to your setup.
A stated RULE drives it: "Two versions WILL run at once," so every VERSION COMPATIBILITY rule (backward-compatible APIs, expand/contract schema, session/cache compatibility) must hold during the overlap window. The output is only a plan though. Confirm the compatibility breaks it flags are genuinely resolved before you cut over, since it can't verify your real code.
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.
The ALTER is one line. The migration is everything around it — because for a while, two versions of your code share one database. Here's how to turn a schema change on a live table into phases that stand alone, a backfill that can resume, and one step you can never take back.
"We do rolling deploys, so we have zero downtime" is true about the mechanism and often false about the change. Here is how to plan a zero-downtime deployment with AI: work out whether the old and new versions can actually run at once, across the database, the queue, and the traffic switch, before you ship.