agentleFS
rohitgollarahallirohitgollarahalli/claude-skills/skills/tech-design-doc/SKILL.md

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

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
  1. Distinctive:

    Make sure you understand the problem and constraints.

    line 22
  2. Very specific:

    Use this template (also in assets/design-doc-template.md).

    line 28
  3. Distinctive:

    Be concrete about trade-offs: Every real design gives something up.

    line 65
  4. Distinctive:

    Don't invent requirements or numbers.

    line 71

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.