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
- ainurdev/mystical-assistanttheir own version, first seen Nov 8, 2026
- arumaekawa/codex-skillstheir own version, first seen Oct 25, 2026
- techygarg/latticetheir own version, first seen Oct 13, 2026
- getsentry/sentry-darttheir own version, first seen Oct 12, 2026
- getsentry/sentry-react-nativetheir own version, first seen Sep 2, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- getsentry/sentry-react-native★ 1.8ksame name
- getsentry/sentry-dart★ 878same name
- techygarg/lattice★ 209same name
- ainurdev/mystical-assistant★ 7same name
- arumaekawa/codex-skills★ 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 repository6 other files it gives its agents.
- context-managerSkill
- cortexSkill
- persona-labSkill
- pipeline-loggerSkill
- project-scaffolderSkill
- synapseSkill
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
- Very specific: line 26
Questions — ONE at a time, max 5: Prefer multiple choice. Mode-aware: Normal asks all.
- Distinctive: line 42
Never rewrite history: revisions add, supersede, and cite — they never erase.
“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.
Files
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)
| Condition | Behavior |
| First operational task of the current phase | MANDATORY |
| Complexity = Complex | MANDATORY |
| Complexity = Medium | Proposed — user may skip with --no-design |
| Trivial | Skipped |
The Design Dialogue
- 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. - 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]. - 2-3 approaches with trade-offs and an explicit recommendation, recommended option first.
- Sectioned design: architecture of the change, data flow, error handling, verification plan. Ask after each section whether it looks right.
- 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:
| Artifact | How |
| Execution Doc activities | Add / split / re-scope activities; update token estimates |
wiki/architecture.md, wiki/tech-stack.md | Update affected sections; mark superseded content ~~strikethrough~~ |
wiki/product/decisions.md | New 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't | Do instead |
| Ask questions the wiki already answers | Read first; ask only what is genuinely open |
| Present one approach as fait accompli | 2-3 approaches with trade-offs, explicit recommendation |
| Silently change scaffold decisions | New DEC with [DESIGN-REVISION] citing what it supersedes |
| Design forever | Max 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 |
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.

