agentleFS
ntorgantorga/agent-starter-kit/skills/architect-design-tree/SKILL.md

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.

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
  1. Distinctive:

    Read the task block. Note the selected path (beginner, tinkerer, or pro) and any new user answers it carries.

    line 18
  2. Very specific:

    Read .context.md files in the affected directories.

    line 20
  3. Very specific:

    Read docs/FEATURE-MAP.md if it exists.

    line 21
  4. Distinctive:

    Check the ceilings. Business: 30 (beginner, tinkerer), 100 (pro).

    line 29
  5. Very specific:

    Write the tree to .memory/plan/<feature-slug>/tree.md in the format below.

    line 36
  6. Distinctive:

    Never ask the user a question.

    line 78
  7. Distinctive:

    Never leave a decision silently assumed.

    line 79
  8. Distinctive:

    Never rebuild on re-tree. Extend.

    line 80
  9. Very specific:

    Never put a codebase fact inside a user question.

    line 81
  10. Distinctive:

    Keep questions answerable by the user alone.

    line 82
  11. Distinctive:

    Write the tree in STE-100.

    line 83

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.
  1. Read the task block. Note the selected path (beginner, tinkerer, or pro) and any new user answers it carries.
  2. Orient in the codebase before mapping decisions:
    • Read .context.md files in the affected directories.
    • Read docs/FEATURE-MAP.md if 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).
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. List the facts the tree needs from the codebase or the environment in the ## Facts section. A fact is a question only a lookup can answer — a library capability, an existing endpoint, a config key. Number them f1, f2, and so on.
  8. Write the tree to .memory/plan/<feature-slug>/tree.md in the format below. Create the directory if it does not exist.
  9. 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 ## Facts as 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.

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.