Technical Design Doc
Write a technical design that states the problem, the constraints, the chosen approach, and the rejected alternative.
When to use this skill
Use this skill when the user:
- technical design
- design doc
- system design writeup
- engineering design
When not to use this skill
- The user wants a different domain's specialist skill.
- The task requires a licensed professional to decide, and the user only needs a referral note rather than a draft.
- The request asks you to deceive, evade a control, or hide material facts.
Professional boundary
Prefer the repository's existing patterns. Do not disable security controls, invent credentials, or introduce network calls the user did not ask for.
Operating boundaries
- Use only information the user provides or files they explicitly ask you to read. Do not invent metrics, laws, citations, prices, credentials, or clinical facts.
- Do not ask for passwords, API keys, tokens, seed phrases, one-time codes, or payment card data.
- Do not send data to an external service, install packages, or add network calls as part of this skill.
- Separate facts, assumptions, and recommendations. If a required input is missing, state the assumption or ask one focused question.
- If the user asks you to deceive a person, evade a control, forge a record, or cause harm, stop. Offer a legitimate alternative.
- Work product that affects money, employment, health, safety, or legal rights is a draft for a qualified human to review before it is used.
Inputs to collect
- The problem and users
- Constraints: scale, security, deadline, existing systems
- The proposed approach
- Alternatives considered
Workflow
1. Problem
What must change for the user or operator, and why now.
2. Context
The current system only as far as the decision needs. Do not invent architecture that is not in the repo or the user's description.
3. Decision
The approach, the tradeoff, and one rejected alternative. A design with no alternative is a preference.
4. Interfaces
Data, APIs, and failure behavior. Include the unhappy path.
5. Risks
Migration, security, and operability. Security risks get a defensive control, not an exploit note.
6. Rollout
How it ships and how it rolls back. No design is done without a rollback story.
Output
Deliver a technical design doc.
- Purpose of this technical design doc, in two sentences.
- Facts the user supplied, listed separately from assumptions.
- The work itself, in the structure the workflow names.
- Open questions, risks, and the single next action with an owner.
- What a qualified reviewer still needs to confirm, if the domain is regulated.
Quality bar
- Every number, date, name, and citation came from the user or is marked as an assumption.
- The artifact can be used without reading this skill again.
- Recommendations are specific enough that someone could accept or reject them.
- Boundaries were respected: no credentials requested, no unsupported professional claim, no deception.
Example
Scenario
Aisha Rahman, engineering lead at Fieldnote in Edmonton, needs a technical design doc by 30 September 2026. An engineer proposes a new service but has not said what happens when the dependency is down.
Example data
From: Aisha Rahman, engineering lead
Organization: Fieldnote, Edmonton
Date: 14 September 2026
Needed by: 30 September 2026
An engineer proposes a new service but has not said what happens when the dependency is down.
The problem and users: An engineer proposes a new service but has not said what happens when the dependency is down. Stated once, in the ask. Not written down anywhere else
Constraints: scale, security, deadline, existing systems: scale: in the file; security: not in the file; deadline: open; existing systems: in the file
The proposed approach: Checkout service, recorded 14 September 2026. No supporting file attached
Alternatives considered: two deals cited from memory. Neither has a written loss reason
Example outcome
Technical design doc
To: Aisha Rahman, engineering lead, Fieldnote
Date: 14 September 2026 · Needed by: 30 September 2026
Decision
A design doc with the failure behavior, one rejected alternative, and a rollback path.
What the file supports
| Input |
Value |
Status |
| The problem and users |
An engineer proposes a new service but has not said what happens when the dependency is down. Stated once, in the ask. Not written down anywhere else |
Needs confirmation |
| Constraints: scale, security, deadline, existing systems |
scale: in the file; security: not in the file; deadline: open; existing systems: in the file |
Carried into the draft |
| The proposed approach |
Checkout service, recorded 14 September 2026. No supporting file attached |
Carried into the draft |
| Alternatives considered |
two deals cited from memory. Neither has a written loss reason |
Needs confirmation |
How this draft was built
1. Problem
What must change for the user or operator, and why now.
2. Context
The current system only as far as the decision needs. Do not invent architecture that is not in the repo or the user's description.
3. Decision
The approach, the tradeoff, and one rejected alternative. A design with no alternative is a preference.
4. Interfaces
Data, APIs, and failure behavior. Include the unhappy path.
5. Risks
Migration, security, and operability. Security risks get a defensive control, not an exploit note.
Deliberately not done
- A design that invents the current system.
- No rejected alternative.
- Security described as 'we will add it later' with no owner.
Open items for a human
- Confirm every row marked Needs confirmation above before this leaves draft.
- Anything absent from the file stayed absent. No figure, date, or name was supplied from outside it.
Next: Aisha Rahman by 30 September 2026. This is a draft, not a sign-off.
Anti-patterns
- A design that invents the current system.
- No rejected alternative.
- Security described as 'we will add it later' with no owner.
Related skills
architecture-decision-record
threat-model-lite
1---2name: technical-design-doc3description: "Write a technical design that states the problem, the constraints, the chosen approach, and the rejected alternative. Use when the user mentions technical design, design doc, system design writeup, engineering design, or asks for a technical design doc. Engineering skill by Yasir Jilani."4license: MIT5compatibility: Agent Skills standard. No network access, extra packages, or credentials required.6metadata:7 source: https://skillmd.com/skills/syasj/technical-design-doc8 author: Yasir Jilani9 version: "1.0.0"10 domain: engineering11---1213<!-- GENERATED FILE - edits here are overwritten by scripts/generate.py.14 Edit the 'technical-design-doc' entry in source/, then run:15 python3 scripts/generate.py && python3 scripts/validate.py16 See CONTRIBUTING.md. -->1718# Technical Design Doc1920Write a technical design that states the problem, the constraints, the chosen approach, and the rejected alternative.2122## When to use this skill2324Use this skill when the user:2526- technical design27- design doc28- system design writeup29- engineering design3031## When not to use this skill3233- The user wants a different domain's specialist skill.34- The task requires a licensed professional to decide, and the user only needs a referral note rather than a draft.35- The request asks you to deceive, evade a control, or hide material facts.3637## Professional boundary3839Prefer the repository's existing patterns. Do not disable security controls, invent credentials, or introduce network calls the user did not ask for.4041## Operating boundaries4243- Use only information the user provides or files they explicitly ask you to read. Do not invent metrics, laws, citations, prices, credentials, or clinical facts.44- Do not ask for passwords, API keys, tokens, seed phrases, one-time codes, or payment card data.45- Do not send data to an external service, install packages, or add network calls as part of this skill.46- Separate facts, assumptions, and recommendations. If a required input is missing, state the assumption or ask one focused question.47- If the user asks you to deceive a person, evade a control, forge a record, or cause harm, stop. Offer a legitimate alternative.48- Work product that affects money, employment, health, safety, or legal rights is a draft for a qualified human to review before it is used.4950## Inputs to collect5152- The problem and users53- Constraints: scale, security, deadline, existing systems54- The proposed approach55- Alternatives considered5657## Workflow585960### 1. Problem6162What must change for the user or operator, and why now.63### 2. Context6465The current system only as far as the decision needs. Do not invent architecture that is not in the repo or the user's description.66### 3. Decision6768The approach, the tradeoff, and one rejected alternative. A design with no alternative is a preference.69### 4. Interfaces7071Data, APIs, and failure behavior. Include the unhappy path.72### 5. Risks7374Migration, security, and operability. Security risks get a defensive control, not an exploit note.75### 6. Rollout7677How it ships and how it rolls back. No design is done without a rollback story.7879## Output8081Deliver a **technical design doc**.8283- Purpose of this technical design doc, in two sentences.84- Facts the user supplied, listed separately from assumptions.85- The work itself, in the structure the workflow names.86- Open questions, risks, and the single next action with an owner.87- What a qualified reviewer still needs to confirm, if the domain is regulated.8889## Quality bar9091- Every number, date, name, and citation came from the user or is marked as an assumption.92- The artifact can be used without reading this skill again.93- Recommendations are specific enough that someone could accept or reject them.94- Boundaries were respected: no credentials requested, no unsupported professional claim, no deception.9596## Example9798### Scenario99100Aisha Rahman, engineering lead at Fieldnote in Edmonton, needs a technical design doc by 30 September 2026. An engineer proposes a new service but has not said what happens when the dependency is down.101102### Example data103104```text105From: Aisha Rahman, engineering lead106Organization: Fieldnote, Edmonton107Date: 14 September 2026108Needed by: 30 September 2026109110An engineer proposes a new service but has not said what happens when the dependency is down.111112The problem and users: An engineer proposes a new service but has not said what happens when the dependency is down. Stated once, in the ask. Not written down anywhere else113Constraints: scale, security, deadline, existing systems: scale: in the file; security: not in the file; deadline: open; existing systems: in the file114The proposed approach: Checkout service, recorded 14 September 2026. No supporting file attached115Alternatives considered: two deals cited from memory. Neither has a written loss reason116```117118### Example outcome119120**Technical design doc**121To: Aisha Rahman, engineering lead, Fieldnote122Date: 14 September 2026 · Needed by: 30 September 2026123124**Decision**125A design doc with the failure behavior, one rejected alternative, and a rollback path.126127**What the file supports**128129| Input | Value | Status |130| --- | --- | --- |131| The problem and users | An engineer proposes a new service but has not said what happens when the dependency is down. Stated once, in the ask. Not written down anywhere else | Needs confirmation |132| Constraints: scale, security, deadline, existing systems | scale: in the file; security: not in the file; deadline: open; existing systems: in the file | Carried into the draft |133| The proposed approach | Checkout service, recorded 14 September 2026. No supporting file attached | Carried into the draft |134| Alternatives considered | two deals cited from memory. Neither has a written loss reason | Needs confirmation |135136**How this draft was built**137138**1. Problem** 139What must change for the user or operator, and why now.140141**2. Context** 142The current system only as far as the decision needs. Do not invent architecture that is not in the repo or the user's description.143144**3. Decision** 145The approach, the tradeoff, and one rejected alternative. A design with no alternative is a preference.146147**4. Interfaces** 148Data, APIs, and failure behavior. Include the unhappy path.149150**5. Risks** 151Migration, security, and operability. Security risks get a defensive control, not an exploit note.152153**Deliberately not done**154- A design that invents the current system.155- No rejected alternative.156- Security described as 'we will add it later' with no owner.157158**Open items for a human**159- Confirm every row marked *Needs confirmation* above before this leaves draft.160- Anything absent from the file stayed absent. No figure, date, or name was supplied from outside it.161162Next: Aisha Rahman by 30 September 2026. This is a draft, not a sign-off.163164## Anti-patterns165166- A design that invents the current system.167- No rejected alternative.168- Security described as 'we will add it later' with no owner.169170## Related skills171172- `architecture-decision-record`173- `threat-model-lite`