agentleFS
MaxPrehodaMaxPrehoda/motif/skills/design-grill/SKILL.md

design-grill

Skill1 starsChanged 44 days agoMITView on GitHub

Interviews the user to settle every design system decision, asking in dependency order and writing an HTML preview for each round so the user chooses by looking instead of reading numbers. Produces .design/decisions.json. Use as phase 2 of design-system, after design-extract.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. bbeny123/pragma★ 2same 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 repository9 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

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

    If it's missing, stop and run design-extract first.

    line 18
  2. Very specific:

    Read references/design-tree.md.

    line 22
  3. Distinctive:

    Look up anything you can measure.

    line 38
  4. Very specific:

    Write .design/grill/round-N.html: a single file with no build step that opens directly in a browser.

    line 42
  5. Distinctive:

    Use the project's own fonts and colors, read from the codebase.

    line 46
  6. Distinctive:

    Use real text from the app.

    line 48
  7. Distinctive:

    Wait for the user to answer before starting the next round.

    line 79
  8. Very specific:

    After each round, add the answers to .design/decisions.json:

    line 85

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Design Grill

Settle every design decision with the user, one round of questions at a time. Some decisions depend on others (you can't choose spacing sizes before the spacing grid), so ask them in order.

Each round is an HTML file the user opens in a browser. Nobody can judge a type scale, spacing or color from numbers in a terminal.

Before you start

test -f .design/drift.json || echo "MISSING"

If it's missing, stop and run design-extract first. Its counts are what let the user check each recommendation.

How each round works

Read references/design-tree.md. It lists every decision, what each one depends on, and its default.

Each round follows the same loop:

find ready questions -> answer what the data already answers -> render the preview -> ask -> wait -> record -> repeat

1. Find the questions that are ready

A question is ready when every decision it depends on is already made. Ask all the ready questions in one round. Round 1 is always just product character, because everything else depends on it.

2. Answer what the data already answers

For each ready question, check drift.json. If one value already covers 90% or more of usage in that category, don't ask. Show it in the round as already settled, with the percentage, and move on.

Look up anything you can measure. Only ask the user about things the code can't answer.

3. Render the preview

Write .design/grill/round-N.html: a single file with no build step that opens directly in a browser. Start from assets/round-shell.html.

The preview must:

  • Use the project's own fonts and colors, read from the codebase.
  • Show the options side by side, labelled A, B, C.
  • Use real text from the app. No lorem ipsum, because placeholder text hides problems like lines that run too long.
  • Mark the recommended option and show how many current values it fits.
  • Show light and dark versions if the project has both.
  • Fit a 375px-wide screen without scrolling sideways.

4. Ask in the terminal

Print the file path first, then the questions:

Round 2 preview: .design/grill/round-2.html

SETTLED **Radius**: rounded-lg on 94% of surfaces. Using it as the base.

---

**Q1. Spacing grid**: 4px or 8px. Options A and B in the preview show the same card on each grid.

> **A, 4px.** Fits 24 of your 31 current spacing values. 8px fits 13 and would mean rewriting 11.

---

**Q2. Type scale**: each font size 1.200× or 1.250× the one below it, shown in Inter with your text.

> **B, 1.250.** Fits 11 of your 14 current sizes. Your largest heading is already about 1.24× body text.

Number every question. Back every recommendation with a number from drift.json. Separate questions with ---.

5. Wait for answers

Wait for the user to answer before starting the next round. Don't move on if they go quiet, and don't ask the next round's questions early.

If the user picks something other than your recommendation, accept it. Then work out which later questions it affects and tell the user what changed. For example: "With an 8px grid, 6px and 10px are no longer options, so round 3 will offer 4 spacing sizes instead of 6."

Record each answer

After each round, add the answers to .design/decisions.json:

{
  "character": { "value": "dense-productive", "source": "user", "round": 1 },
  "radius.base": { "value": "0.5rem", "source": "pre-settled", "evidence": "94% of surfaces" },
  "spacing.base": { "value": 4, "source": "user", "recommended": 4, "round": 2 }
}

source says where each answer came from: user if the user chose it, pre-settled if the data answered it, default if the default was used. design-ratify reads this field to decide which decisions get a written note.

Finish

The phase is done when no questions are left, not when you feel you know enough.

Print every decision and wait for the user to confirm before handing off to design-ratify.

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.