architect-design-tree
Skill146 starsChanged 3 months agoMITView on GitHub
Builds the design tree for the grill — decisions mapped as nodes with dependencies, recommendations, and impact, pruned by path.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-decisionSkill
- agent-memorySkill
- architect-impl-groundingSkill
- bootSkill
- browser-inspectSkill
- code-coherence-reviewSkill
- code-quality-reviewSkill
- coder-self-reviewSkill
- code-sec-reviewSkill
- context-maintenanceSkill
- contextualizer-self-reviewSkill
- dispatchSkill
- grillSkill
- loop-recoverySkill
- plan-managementSkill
- reviewer-architect-adversarialSkill
- reviewer-handoffSkill
- reviewer-self-reviewSkill
- review-loopSkill
- task-trackingSkill
- web-searchSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Read the task block. Note the selected path (beginner, tinkerer, or pro) and any new user answers it carries.
- Very specific: line 20
Read .context.md files in the affected directories.
- Very specific: line 21
Read docs/FEATURE-MAP.md if it exists.
- Distinctive: line 29
Check the ceilings. Business: 30 (beginner, tinkerer), 100 (pro).
- Very specific: line 36
Write the tree to .memory/plan/<feature-slug>/tree.md in the format below.
- Distinctive: line 78
Never ask the user a question.
- Distinctive: line 79
Never leave a decision silently assumed.
- Distinctive: line 80
Never rebuild on re-tree. Extend.
- Very specific: line 81
Never put a codebase fact inside a user question.
- Distinctive: line 82
Keep questions answerable by the user alone.
- Distinctive: line 83
Write the tree in STE-100.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
Purpose
The grill interviews the user over the design tree. This skill builds and extends that tree. The tree is the grill's working state: every decision the feature must settle, mapped with its dependencies, pruned to the selected path, ranked by impact. The Maestro computes the frontier from this file and works the rounds. You never talk to the user.
Procedure
- Initial — no tree exists. Build the tree from the task prompt.
- Re-tree — the tree exists. The user's answers opened a branch the tree does not have. Extend the tree. Do not rebuild it.
- Read the task block. Note the selected path (beginner, tinkerer, or pro) and any new user answers it carries.
- Orient in the codebase before mapping decisions:
- Read
.context.mdfiles in the affected directories. - Read
docs/FEATURE-MAP.mdif it exists. - For the beginner path, infer the default architecture from the maintenance, lightweight, and safe principles (KISS, single responsibility, safe boundaries —
rules/code/general.md).
- Read
- Identify the decisions the feature must settle. Map them as a tree with three branches:
- Business — what the user wants. Acceptance criteria, scope, constraints, success conditions.
- Architecture — how the system is structured. Directory layout, layer separation, frameworks, reference projects.
- Implementation — how the work is organized. Epics, dependencies, parallelizable groups. Prune branches the path does not explore. Beginner: business only. Tinkerer: business and architecture. Pro: all three.
- Apply the quality filter to every candidate decision: does this decision pivot the destination substantially? If the answer does not change the project's direction, remove the node. Prune with the filter, not the ceiling. The ceiling only bounds how large a branch grows — never pad the tree to hit it.
- Check the ceilings. Business: 30 (beginner, tinkerer), 100 (pro). Architecture: 10 (tinkerer), 100 (pro). Implementation: 100 (pro). If a branch exceeds its ceiling, prune until it fits.
- For each node, write:
- The question in plain terms the user can answer alone.
- Dependencies — the node numbers that must settle first. A node may also depend on a fact from step 7.
- Recommendation — the answer you would choose, with the reason, in one or two sentences.
- Impact — high, medium, or low, by how many downstream nodes the answer unblocks.
- List the facts the tree needs from the codebase or the environment in the
## Factssection. A fact is a question only a lookup can answer — a library capability, an existing endpoint, a config key. Number themf1,f2, and so on. - Write the tree to
.memory/plan/<feature-slug>/tree.mdin the format below. Create the directory if it does not exist. - For re-tree: read
tree.md. Add the new nodes with their fields. Add new facts if needed. Keep every settled node and every settled fact as is. Never renumber.
Tree Format
# Design Tree: <Feature Name>
Path: <beginner | tinkerer | pro>
## Business
1. [settled] <question> — answer: <settled answer>
2. [open] <question> — depends: 1 — recommendation: <answer and why> — impact: high
## Architecture
1. [open] <question> — depends: B2 — recommendation: <answer and why> — impact: medium
## Implementation
1. [open] <question> — depends: B1, A1, f1 — recommendation: <answer and why> — impact: low
## Facts
- f1: <fact question> — open
- f2: <fact question> — <found answer, with source>- Number nodes per branch, starting at 1. Refer to a node in another branch by prefix: B2, A1, I1.
- A node with no dependencies is frontier from round 1.
- A node is frontier when every dependency is settled: a node marked
[settled], or a fact with a found answer.
Handoff
Deliver tree.md with a summary:
## Summary
[One sentence: what was done]
## Tree
- Branches explored: [list]
- Branches pruned: [list and why]
- Facts needed: [list]Guardrails
- Never ask the user a question. You deliver the tree. The Maestro relays it.
- Never leave a decision silently assumed. If the feature must settle it, it gets a node.
- Never rebuild on re-tree. Extend. Settled nodes keep their numbers and answers.
- Never put a codebase fact inside a user question. It goes in
## Factsas a fact dependency. - Keep questions answerable by the user alone. If answering requires a file read, it is a fact, not a question.
- Write the tree in STE-100. Short sentences. One idea per sentence. Active voice.
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.

