agentleFS
valsecchi75valsecchi75/project-scaffolder/skills/design-first/SKILL.md

design-first

Skill9 starsChanged 3 months agoMITView on GitHub

Use before executing the first operational task of a phase and any Complex task. Runs a structured design dialogue — questions one at a time, 2-3 approaches with trade-offs, sectioned design approval — before any code is written. The approved design may revise scaffold-era rules. Triggered by the Cortex (Step 3b) or explicitly with "design first" / "/task --design".

5 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

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    Distinctive

    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. Very specific:

    Questions — ONE at a time, max 5: Prefer multiple choice. Mode-aware: Normal asks all.

    line 26
  2. Distinctive:

    Never rewrite history: revisions add, supersede, and cite — they never erase.

    line 42

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “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 First — The Design Gate

Overview

Projects fail at execution when design questions surface mid-implementation. This skill forces the design conversation BEFORE the specialist writes code — and gives the approved design authority to revise decisions made at scaffold time, when knowledge was thinnest.

Core principle: the scaffold is an informed draft; the first operational design is where the rules truly settle.

When the gate triggers (called by Cortex Step 3b)

ConditionBehavior
First operational task of the current phaseMANDATORY
Complexity = ComplexMANDATORY
Complexity = MediumProposed — user may skip with --no-design
TrivialSkipped

The Design Dialogue

  1. Context read: CLAUDE.md (including Working Agreements), docs/phases/PHASE-{N}-execution.md, the design spec, relevant wiki pages. Never ask what these already answer.
  2. Questions — ONE at a time, max 5. Prefer multiple choice. Mode-aware: Normal asks all; Autopilot only the critical ones (irreversible choices, cost, genuinely missing requirements); Autonomous skips to step 3 and tags assumptions [HYPOTHESIS].
  3. 2-3 approaches with trade-offs and an explicit recommendation, recommended option first.
  4. Sectioned design: architecture of the change, data flow, error handling, verification plan. Ask after each section whether it looks right.
  5. Approval → write docs/design/TASK-{id}-design.md (compact, ≤80 lines) → execution proceeds with the design as the specialist's primary context.

Rule-Revision Authority (the key power)

The approved design MAY amend scaffold-era artifacts — with full traceability:

ArtifactHow
Execution Doc activitiesAdd / split / re-scope activities; update token estimates
wiki/architecture.md, wiki/tech-stack.mdUpdate affected sections; mark superseded content ~~strikethrough~~
wiki/product/decisions.mdNew DEC-NNN tagged [DESIGN-REVISION], citing the superseded DEC
Working Agreements (CLAUDE.md)Only with explicit user confirmation

Never rewrite history: revisions add, supersede, and cite — they never erase.

Outputs

  • docs/design/TASK-{id}-design.md — the approved design; specialist, QA, and phase verification all check against it
  • Updated artifacts per the table above
  • Log entry in logs/pipeline/: gate trigger, questions asked, approach chosen, revisions made

Anti-Patterns

Don'tDo instead
Ask questions the wiki already answersRead first; ask only what is genuinely open
Present one approach as fait accompli2-3 approaches with trade-offs, explicit recommendation
Silently change scaffold decisionsNew DEC with [DESIGN-REVISION] citing what it supersedes
Design foreverMax 5 questions; design doc ≤80 lines; then execute
Skip the gate on the phase's first task "because it's obvious"The first task is where wrong scaffold assumptions surface cheapest

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.