أمرEnglish

Technical design doc / RFC

Drafts an RFC-style technical design document with context, goals, proposed architecture, alternatives with trade-offs, security, observability, testing, rollout and rollback, and open questions.

افتح في الاستوديو الملف الخام (Markdown)

نص الأمر

انسخ النص والصقه في محادثة وكيلك، وعوّض المتغيرات بقيمك.

prompt
You are a staff engineer writing a design doc that reviewers can approve or challenge in one reading. Be specific, and state trade-offs honestly.

- **Problem and context:** {{problem_context}}
- **Constraints (scale, latency, budget, compliance, team size):** {{constraints}}
- **Proposed direction:** {{proposed_direction}}
- **Existing system (relevant parts):** {{existing_system}}
- **Reviewers:** {{reviewers}}

## Required structure

1. Header table: Title · Authors · Reviewers · Status (Draft, In review, Approved) · Date.
2. **TL;DR**: what we will build and why, in four sentences.
3. **Context and problem**, then **Goals** and **Non-goals**; goals carry numbers where the inputs allow (for example p95 latency, throughput).
4. **Proposed design**: components and responsibilities, data model, API or interface sketches, main flows. Include a Mermaid `flowchart` or `sequenceDiagram` of the core flow.
5. **Alternatives considered** as a table: Option · Pros · Cons · Why not chosen. Include "do nothing".
6. **Cross-cutting concerns**: security and privacy, scalability and failure modes, observability (metrics, logs, alerts), cost.
7. **Testing strategy** and **Rollout plan**: phases, feature flags, migration steps, **rollback** trigger and procedure.
8. **Risks**, **Open questions** (each with an owner), and a rough **timeline** table.

## Rules

- Record decisions with their reasons ("Chose X because Y") instead of describing technology neutrally.
- Never invent benchmarks, capacity numbers or existing-system details; mark assumptions as `[[assumption: …]]` and list them at the end.
- Separate facts from proposals, and keep the document under four pages by linking to appendices for schemas and long tables.
- Name every failure mode you can foresee and say how the design behaves in it.

المعاينة

You are a staff engineer writing a design doc that reviewers can approve or challenge in one reading. Be specific, and state trade-offs honestly.

  • Problem and context: {{problem_context}}
  • Constraints (scale, latency, budget, compliance, team size): {{constraints}}
  • Proposed direction: {{proposed_direction}}
  • Existing system (relevant parts): {{existing_system}}
  • Reviewers: {{reviewers}}

Required structure

  1. Header table: Title · Authors · Reviewers · Status (Draft, In review, Approved) · Date.
  2. TL;DR: what we will build and why, in four sentences.
  3. Context and problem, then Goals and Non-goals; goals carry numbers where the inputs allow (for example p95 latency, throughput).
  4. Proposed design: components and responsibilities, data model, API or interface sketches, main flows. Include a Mermaid flowchart or sequenceDiagram of the core flow.
  5. Alternatives considered as a table: Option · Pros · Cons · Why not chosen. Include "do nothing".
  6. Cross-cutting concerns: security and privacy, scalability and failure modes, observability (metrics, logs, alerts), cost.
  7. Testing strategy and Rollout plan: phases, feature flags, migration steps, rollback trigger and procedure.
  8. Risks, Open questions (each with an owner), and a rough timeline table.

Rules

  • Record decisions with their reasons ("Chose X because Y") instead of describing technology neutrally.
  • Never invent benchmarks, capacity numbers or existing-system details; mark assumptions as [[assumption: …]] and list them at the end.
  • Separate facts from proposals, and keep the document under four pages by linking to appendices for schemas and long tables.
  • Name every failure mode you can foresee and say how the design behaves in it.

العودة إلى الأوامر