Back to cookbook

AI Prompt to Write a Technical Design Document (RFC) for a New Feature

2 views Published

Make this prompt yours

Share

This technical design document prompt, sometimes called an RFC prompt, is for engineers and tech leads who need to turn a feature idea into a document their team can actually review. Instead of a vague paragraph describing what to build, it produces a structured design doc covering the problem, proposed approach, alternatives considered, and the tradeoffs that reviewers will ask about.

The prompt is built around the parts of a design doc that actually get scrutinized in review: what happens at the edges, what the rollback story looks like, and which alternatives were rejected and why. Asking the model to fill in "alternatives considered" explicitly, rather than leaving it out, is what separates a document that survives review from one that gets bounced back with questions the first draft should have answered.

It works for a new service, a schema change, or a significant refactor, and produces output that reads like an internal engineering doc rather than marketing copy about the feature.

Prompt template

Make this prompt yours

prompt-template
261 tokens
ROLE: You are a senior engineer writing a technical design document for team review. CONTEXT: - Feature or change: [WHAT IS BEING BUILT OR CHANGED] - Problem it solves: [THE CONCRETE PROBLEM OR PAIN POINT] - Current system constraints: [EXISTING ARCHITECTURE, TEAM SIZE, DEADLINE, OR OTHER LIMITS] - Proposed approach: [HIGH-LEVEL DESCRIPTION OF THE SOLUTION] - Known alternatives considered: [ANY OTHER APPROACHES ALREADY DISCUSSED, IF ANY] CONSTRAINTS: - Do not invent specific performance numbers, benchmarks, or capacity figures that were not provided - Include at least one alternative approach and explain why it was not chosen - Flag any open questions or risks explicitly rather than glossing over them - Keep the document scannable: short paragraphs, no filler language OUTPUT FORMAT: 1. Problem statement (what's broken or missing today) 2. Proposed solution (the approach, at a level engineers outside the immediate team can follow) 3. Alternatives considered (at least one, with reasons it was rejected) 4. Risks and open questions 5. Rollback plan (what happens if this needs to be reverted) Write the design document now using only the information provided above.

Want it sharper? Optimize this prompt with Prompt Optimizer, check it with the Prompt Debugger or shorten it with the Token Optimizer.

Example input

example-input
104 tokens
Feature: Moving the notification service from synchronous HTTP calls to an async message queue Problem: Notification sends are currently blocking the main checkout request, adding 400-900ms of latency under load Constraints: Team of 4 backend engineers, 3-week timeline, existing system runs on AWS with SQS already in use elsewhere Proposed approach: Publish notification events to an SQS queue and process them with a separate consumer service Known alternatives: Team previously discussed just adding a timeout and retry to the existing synchronous call

When to use it

  • Proposing a new service or significant architecture change that needs team sign-off
  • Turning a Slack thread or whiteboard sketch into a reviewable written proposal
  • Documenting a schema or API change that will affect other teams
  • Preparing a design doc ahead of a review meeting so reviewers can read it beforehand

Best practices

  • Give the model the actual constraints (team size, deadline, existing systems) instead of asking it to guess context
  • Explicitly ask for at least one rejected alternative and why it was rejected, not just the chosen approach
  • Request a section on what happens if the change needs to be rolled back
  • Have a teammate who wasn't involved in writing the prompt review the draft before it goes to the full team

Common mistakes

  • Asking only for the chosen solution, which leaves reviewers wondering what else was considered
  • Skipping concrete failure modes and edge cases in favor of only describing the happy path
  • Letting the model invent specific latency numbers or capacity figures that weren't actually measured
  • Treating the generated draft as final instead of using it as a starting point for team discussion

FAQs

What should a technical design document include at minimum?

At minimum: the problem being solved, the proposed approach, at least one alternative that was considered and rejected, and the risks or open questions reviewers should weigh in on.

How long should an engineering RFC be?

Most effective RFCs run one to three pages. Long enough to answer the obvious review questions, short enough that teammates actually read it before the review meeting.

Should a design doc include a rollback plan?

Yes, for any change touching production systems. A rollback section forces the author to think through failure scenarios before they happen, not during an incident.

How can I check the quality of this design-doc prompt before using it on a real feature?

Intelligence Score — grades a filled-in prompt's clarity and specificity on a 0-100 scale with concrete suggestions, which is useful for catching vague constraints before you send a draft prompt to your model.

Found this prompt useful? Share it.

Share

More in Engineering

Engineering

AI Prompt to Triage Production Incidents Using Datadog's MCP Server

This AI prompt is built for on call engineers who need to triage a production incident fast, using Datadog's MCP server to pull live metrics…

ROLE: You are an on-call engineering assistant helping triage a live production incident.

CONTEXT:
- Service(s) affected: [SERVICE NAMES]
- Triggered monitor(s): [MONITOR NAME(S) AND ALERT MESSAGE(S)]
- Time incident started: [TIMESTAMP]
- Relevant metrics/logs: [PASTE RECENT ERROR RATES, LATENCY, OR LOG EXCERPTS FROM DATADOG]
- Recent changes: [LIST DEPLOYS, CONFIG CHANGES, OR INFRA CHANGES IN THE LAST 24 HOURS WITH TIMESTAMPS]

TASK:
1. Identify the pattern connecting the triggered alert(s) to the symptoms in the metrics/logs.
2. List the top 3 most likely root causes, ranked by how well each fits the timing and symptoms.
3. For each hypothesis, state what additional data would confirm or rule it out.
4. Recommend the single next diagnostic step to run first.

CONSTRAINTS:
- Do not recommend a rollback or fix until at least one hypothesis has supporting evidence beyond timing correlation.
- Flag explicitly if the available data is insufficient to form a confident hypothesis.

OUTPUT FORMAT:
- One-line incident summary
- Ranked list of root-cause hypotheses with supporting/against evidence for each
- Single recommended next diagnostic step
- Open questions still unresolved

Make this prompt yours

Engineering

AI Prompt to Write a Load Testing Plan for a REST API Endpoint

This prompt has ChatGPT, Claude, or Gemini draft a concrete load testing plan for a REST API endpoint before you run a single test. It's for…

You are a performance engineer designing a load test for a production API endpoint.

Context:
- Endpoint: [METHOD AND PATH, e.g. POST /api/v1/orders]
- Expected traffic: [REQUESTS PER SECOND AT PEAK, e.g. 150 rps average, 600 rps peak]
- Downstream dependencies: [LIST, e.g. PostgreSQL, Redis cache, payment gateway API]
- Load testing tool in use: [TOOL NAME, e.g. k6, Locust, JMeter]
- Current known constraints: [e.g. database connection pool size, rate limiter config]

Write a load testing plan with the following requirements:
1. Define a steady-state ramp test (target rps, ramp-up duration, hold duration) sized to the expected traffic above
2. Define a separate spike test that exceeds the expected peak by a specified margin
3. List the metrics to capture during both tests, prioritizing p95/p99 latency and error rate over averages
4. Identify which downstream dependency from the list above is most likely to be the first bottleneck, and why
5. Propose specific pass/fail thresholds for latency and error rate, agreed before the test runs
6. Note any test environment differences from production that could invalidate the results

Output format:
- A short test plan summary (one paragraph)
- The steady-state and spike test parameters as a table
- The metrics and thresholds as a table
- A short risk note on the likely first bottleneck and the environment caveat

Make this prompt yours

Engineering

AI Prompt to Write a Feature Flag Rollout and Cleanup Plan

A feature flag rollout plan lays out how a new capability ships behind a flag, moves through stages of exposure, and eventually gets removed…

You are a senior platform engineer helping plan a feature flag rollout.

Context:
- Feature/change controlled by the flag: [FEATURE DESCRIPTION]
- Flag name: [FLAG NAME]
- Systems or services affected: [AFFECTED SYSTEMS]
- Traffic segments available (e.g. internal, beta list, percentage buckets): [TRAFFIC SEGMENTS]
- Key risk if this goes wrong: [PRIMARY RISK]
- Current monitoring/metrics available: [AVAILABLE METRICS]

Task:
1. Propose a staged rollout sequence (minimum 3 stages) from lowest to highest exposure, with a suggested duration for each stage.
2. For each stage, list the specific metrics to watch and the exact threshold that should trigger a pause or rollback.
3. Define who should approve advancing to the next stage.
4. Write a rollback procedure: the steps to disable the flag and the maximum acceptable time to recovery.
5. Write a cleanup plan: the condition that signals the feature is stable enough to remove the flag, the code paths to delete, and a target removal date relative to full rollout.

Constraints:
- Do not recommend going straight to 100% rollout for any change affecting [AFFECTED SYSTEMS].
- Keep each stage's exit criteria measurable, not subjective.
- Flag any step that depends on information not provided above.

Output format:
- A numbered rollout table (Stage | Exposure % | Duration | Watch Metrics | Rollback Trigger)
- A short rollback procedure
- A short cleanup plan with a target date

Make this prompt yours