tech-design-doc
Skill0 starsChanged 5 months agoMITView on GitHub
Write a clear technical design document (RFC / design doc) before building: context and problem, goals and non-goals, the proposed design, alternatives considered, and risks. Use this whenever the user wants to "write a design doc", "RFC", "technical spec", "architecture doc", "design proposal", needs to plan or get review on how to build something non-trivial, or asks "how should I architect/approach this?" — even if they don't say "design doc".
3 other projects use a version of this.
Adopted by
Most recently taken up by
- xieqiyong/skillstheir own version, first seen Nov 8, 2026
- shaharsha/claude-skillstheir own version, first seen Oct 24, 2026
- whitewhiteqq/tech-design-doctheir own version, first seen Oct 8, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- shaharsha/claude-skills★ 6same name
- xieqiyong/skills★ 4same name
- whitewhiteqq/tech-design-doc★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- code-reviewerSkill
- commit-and-prSkill
- competitive-analysisSkill
- debuggerSkill
- prd-writerSkill
- repo-polisherSkill
- security-reviewSkill
- test-authorSkill
- user-storiesSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Make sure you understand the problem and constraints.
- Very specific: line 28
Use this template (also in assets/design-doc-template.md).
- Distinctive: line 65
Be concrete about trade-offs: Every real design gives something up.
- Distinctive: line 71
Don't invent requirements or numbers.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Technical Design Doc
A design doc exists to get alignment and catch mistakes while they're still cheap — on paper, not in production. Its real value is the thinking it forces: stating goals, weighing alternatives, and naming risks before code is written. Optimize for a reviewer who will skim it in ten minutes and needs to find the decision and its justification fast.
Before writing
Make sure you understand the problem and constraints. If key inputs are missing (scale, latency/throughput targets, existing systems it must fit, team, deadline), ask for the few that genuinely change the design, and state assumptions for the rest.
Structure
Use this template (also in assets/design-doc-template.md). Trim what doesn't apply.
# <Title> — Design Doc
**Author:** <name> **Status:** Draft / In review / Approved **Reviewers:** <names>
## Context & problem
What are we solving and why now? What exists today, and why is it insufficient?
## Goals & non-goals
- Goals: what this design must achieve (measurable where possible).
- Non-goals: explicitly out of scope, to bound the discussion.
## Proposed design
The recommended approach. Lead with a diagram or the shape of the solution,
then the key components, data model, interfaces/APIs, and how data flows.
Call out the decisions that matter.
## Alternatives considered
The other real options and why you didn't pick them. This is the heart of the
doc — a design with no alternatives looks unconsidered.
## Risks & trade-offs
What could go wrong, what you're trading away, failure modes, and mitigations.
## Rollout & operability
Migration/backfill, feature flags, monitoring, rollback. How do we ship it safely?
## Open questions
What's still undecided.Principles
- Lead with the decision. Reviewers want to know what you propose and why before the details.
- Alternatives are mandatory. Showing the paths not taken — and why — is what earns trust and surfaces better options.
- Be concrete about trade-offs. Every real design gives something up; pretending otherwise reads as naive.
- Right-size it. A two-pager for a small change, more for a system. Length should track risk, not effort.
- Make it measurable. Tie the design back to goals you can verify post-launch.
Guardrails
- Don't invent requirements or numbers; mark estimates and assumptions as such.
- Stay at the design level — this is not the implementation. Pseudocode and interfaces, not full code.
- Surface open questions honestly rather than implying false certainty.
Example
Input: "Write a design doc for adding rate limiting to our public API." Output: A doc stating the problem (abuse and noisy-neighbor risk), goals (per-key limits, low added latency) and non-goals (no billing integration in v1), a proposed token-bucket design with where state lives and how limits are configured, alternatives (fixed window, leaky bucket, gateway-level vs. app-level) with trade-offs, risks (hot keys, clock skew, Redis dependency) with mitigations, and a rollout plan behind a flag with metrics.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

