agentleFS
kelesmertkelesmert/turnlens/.agents/skills/design-doc/SKILL.md

design-doc

Skill4 starsChanged 4 months agoMITView on GitHub

Produces one design document for work that will be implemented in the same session. Use when designing a feature, a refactor or a change that the session doing the design will also carry out, and to decide whether a full plan is needed instead.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use adversarial-review and grill-me.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    adversarial-review

    Adversarial review of a system design from 6 critical perspectives -- SRE, security, staff engineer, finance, operator, and developer advocate. Produces a unified risk assessment. Use for INTERACTIVE on-demand reviews during a design conversation (/adversarial-review). For RECIPE-DRIVEN reviews (where prior step context is needed), use the systems-design-critic agent instead.

    Also in 3 projects that use this

  • AWSSkill

    grill-me

    A relentless interview to sharpen a plan or design.

    Also in 3 projects that use this

The file

Files
SKILL.md

Design documents for inline work

When the work will be done inline, superpowers:brainstorming writes one document and superpowers:writing-plans is not invoked afterwards. The document goes to docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md. Nothing is written to docs/superpowers/plans/.

Why one document

The plan format carries working code because a fresh subagent sees only its own task and cannot ask a question. Inline there is no such reader: the session that designs the work also implements it. The code is then written twice -- once unverified in the plan, once again while implementing. Plans 1 through 3 spent 8,439 lines that way to produce 7,557 lines of source and tests.

What the document contains

Everything a spec had -- problem, decisions with their reasoning, verified findings, out of scope -- plus the parts of a plan that survive inline:

  • Global constraints, copied verbatim, so no task re-decides them.
  • Tasks in order, each ending in a commit. Per task: the deliverable, the files to create or modify, the interface it produces as signatures only, which existing code to reuse rather than rewrite, the behaviours that must hold and therefore be tested, and the command that proves it together with its expected output.
  • A self-review of the finished document: spec coverage, placeholders, and type consistency between tasks.

No implementation bodies and no pre-written test bodies. Both are unverified code, and TDD derives an implementation from its test rather than from a document.

The shape to aim for is around 350 lines for a plan-sized piece of work: type signatures and interface blocks where an interface is being fixed, and everything else as prose. If a section could be pasted into a source file and compile, it is too much. The two design documents written to this rule came to 460 and 532 lines and replaced plans that would have run to thousands.

One gate, not two

One document means one review gate where there were two. Present the design in sections and take approval as you go, so the written file records a design already agreed rather than being the first sight of it.

The exception

Work that will be handed to parallel subagents gets a full superpowers:writing-plans plan in the old format, code and checkboxes included, because there the cold reader is real.

Afterwards

A design document is scaffolding. docs/superpowers/ is not part of the repository. Anything in it that outlives the work it was written for is moved: reasoning to docs/DECISIONS.md, current behaviour to docs/areas/, figures to docs/VALIDATION.md, remaining sequence to docs/ROADMAP.md.

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.