agentleFS
blueclover22blueclover22/mw_agent_kit/skills/design-doc-template/SKILL.md

design-doc-template

Skill1 starsChanged 8 days agoMITView on GitHub

Use when asked to record an approved or sufficiently converged design in the standard design-doc format. Use mak:dev-kickoff first if requirements or approval remain unresolved.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. nek1987/auto-agent-harness★ 4same 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 repository13 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All design docs follow this guide's section structure and writing rules.

    line 8
  2. Distinctive:

    When there are 2+ options, always compare in a table.

    line 54
  3. Distinctive:

    If the project's CLAUDE.md or agent rules specify a design-doc path → use that path

    line 89
  4. Very specific:

    If a file with the same slug exists, add a -v2, -v3 suffix and reference the previous version's path at the top of the new file

    line 96

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

Design Doc Writing Guide

All design docs follow this guide's section structure and writing rules. Template file: ${CLAUDE_PLUGIN_ROOT}/skills/design-doc-template/assets/design-doc.template.md (in English; produce the actual document in the user's language — or the project's documented language policy — keeping the structure). Read the whole template before writing.


When to Use

  • Recording a new feature, component, or architecture decision
  • Planning a change spanning multiple files
  • Single-concern work whose upfront analysis fits one document, even if split across multiple PRs — handle with a master doc + per-PR sub-docs (see §Multi-PR Work below)
  • Recording already-organized options and a recommendation in design-doc form
  • Fixing a design confirmed after mak:brainstorming / mak:dev-kickoff into an official document

Section Structure

Required sections (keep order)

#SectionCore question
1Purpose / Non-goalsWhy do this? What is out of scope?
2Current State AnalysisWhat is the state now? What is the problem?
3Design DirectionHow will it be solved? What are the options?
4Scope of ChangesWhich files/components change?
5Verification PlanHow will it be verified?
6Decisions NeededWhat must be chosen before approval?
7Assumptions / Unverified AreasWhat was assumed or not confirmed?
8ReferencesRelated files, commits, external docs

Optional sections

  • Implementation Checklist — when a stepwise task list is needed
  • Schema / Type Definitions — when data-structure changes are included

Writing Rules

Meta block (top of file, no YAML frontmatter)

> Target: <files or modules being changed>
> Related rules: <paths of related convention docs>
> Date: YYYY-MM-DD
> Status: draft (needs approval before implementation) | approved | in progress | done

Option comparison table

When there are 2+ options, always compare in a table. Bold the recommendation.

| Option | Description | Pros | Cons |
| :--- | :--- | :--- | :--- |
| **A. <name>** (recommended) | ... | ... | ... |
| B. <name> | ... | ... | ... |
| C. <name> | ... | ... | ... |

**Recommendation**: **A**. <1–2 sentence reason>

"Assumption" notation

Unconfirmed facts and assumptions must be explicitly marked.

- **Assumption**: <unconfirmed fact>. Verify during implementation.
- **Unreviewed**: <item not yet examined>.

Scope-of-changes table columns

| # | File | Change type | Content |
| :-- | :--- | :--- | :--- |
| 1 | `<file path>` | create / modify / delete | <summary of change> |

Change types: create / modify / delete / move / rename

Save location — SSOT for all mak skills/agents

This rule is the single source of truth for where design docs live. Other mak skills and agents refer to this rule instead of restating paths.

  1. If the project's CLAUDE.md or agent rules specify a design-doc path → use that path
  2. Otherwise → .claude/mak/plan/ (create the directory if it does not exist)

File naming

  • General design: <topic-slug>.md (e.g. auth-flow.md)
  • Roadmap phase: phase<N>-<topic>.md (e.g. phase3-audit-log.md)
  • If a file with the same slug exists, add a -v2, -v3 suffix and reference the previous version's path at the top of the new file

Multi-PR work — master doc + per-PR sub-docs

Large single-concern work split across PRs (e.g. structural refactor, sequential expansion) is handled inside this skill. If the upfront analysis fits one document, a design doc suffices even for multi-PR work.

  • Master doc — pins decisions, policies, the PR dependency graph, and overall consistency only. No per-file/per-line detail.
  • Per-PR sub-doc — written at each PR's entry. Contains that PR's changed files/lines and verification steps; state at the top that the master doc wins on conflict. Do not start implementation (mak:coder delegation) before the sub-doc exists.
  • Naming — master and sub-docs share an axis. If tied to a roadmap section: master <roadmap-section>-<slug>.md / sub-doc <roadmap-section>-<n>-<slug>.md; otherwise master <topic-slug>.md / sub-doc <topic-slug>-<n>-<slug>.md. (Project doc-path conventions take precedence.)

Verification plan — Step → verify table (§5.0)

For multi-step work, include this table as §5.0 inside §5 Verification Plan. Single-step work may state a one-line success criterion instead.

### 5.0 Success Criteria / Step → verify

| # | Step | verify (success criterion) | Status |
| :-- | :--- | :--- | :--- |
| 1 | <step description> | <measurable verification> | ✅ done |
| 2 | <step description> | <measurable verification> | ▶ in progress |
| 3 | <step description> | <measurable verification> | ⬜ todo |

Success criteria must be verifiable (no vague criteria like "it just works").

Step status column — write every row as ⬜ todo when the doc is created. Advancing a row is the implementer's job, not this skill's: whoever implements the step (the mak:coder agent, or the main thread implementing directly) moves it only after its verify criterion actually passes (▶ in progress for the row being worked). In a parallel run the main thread moves it instead, because concurrent edits to one doc collide. This column is the document's progress record: it lets mak:dev-resume read how far work got instead of inferring it from commits and code. Keep it here only — the meta block's Status tracks the document (draft/approved/in progress/done), this column tracks each step, and no other place restates either.

Quality Checklist

Self-check after writing:

  • All "TBD", "TODO", and incomplete sentences removed?
  • No contradictions between sections?
  • Scoped to a single implementation cycle?
  • Every question in §6 has a recommendation?
  • All assumptions/uncertainties recorded in §7?
  • No files missing from the §4 scope table?
  • At least one simpler alternative in the option comparison?
  • No unrequested features / speculative flexibility or configuration / impossible-scenario error handling / excessive abstraction?
  • Every file/line in §4 directly connected to the user's request?
  • §5.0 contains a measurable success criterion or Step → verify table?

References

  • Template: ${CLAUDE_PLUGIN_ROOT}/skills/design-doc-template/assets/design-doc.template.md
  • Style reference: existing design docs under the project's design-doc path

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.