compose
Skill0 starsChanged 42 days agoMITView on GitHub
Recomposes and re-lays-out an interface from scratch in scored rounds, obsessing over grouping, layout, alignment, sizing, spacing, hierarchy, contrast and states. Each round designs three fresh versions in parallel, renders each clean with no console errors, then one blind judge in a separate agent scores them with the reigning design on a frozen rubric, not told which is the incumbent; the best that beats the champion and survives the alignment audit and checklist takes the throne. Stops the first round no challenger takes it, at 4 rounds at most, then reports a full analysis and a round-by-round table. Use when the user says "/compose", "compose this screen", "redesign this screen", "restyle it", "relayout this page", "rearrange this screen", "make this UI better", "the layout looks off", "fix the spacing/alignment". For checking code against a fixed rule set use lint; for how the flow behaves in a person's hands — steps, feedback, errors, recovery — use humanize.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- lulufoo/lulu-workflowtheir own version, first seen Nov 6, 2026
- tlyboy/skillstheir own version, first seen Nov 1, 2026
- jantichy/claudetheir own version, first seen Oct 27, 2026
- by-carlos/daikenjatheir own version, first seen Oct 13, 2026
- matthewharrilal/claude-skillstheir own version, first seen Oct 13, 2026
- drader/researcher_agenttheir own version, first seen Oct 13, 2026
Used with
Projects with it also use review.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillreview
Fixture review skill.
Also in 3 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- flexprice/flexprice★ 6.9ksame name
- Meet-Miyani/compose-skill★ 303same name
- renatoworks/strudel-claude★ 61same name
- jantichy/claude★ 45same name
- Epistates/sparX★ 3same name
- lulufoo/lulu-workflow★ 3same name
- drader/researcher_agent★ 2same name
- cacardinal/laila★ 1same name
- tlyboy/skills★ 1same name
- by-carlos/daikenja★ 0same name
3 more not listed
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.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
If the user passed an argument, that is the target (/compose the settings panel).
- Distinctive: line 24
Read the parent shell, routed wrapper, grid/breakpoint config and the children that take real space, not just the file.
- Very specific: line 56
(c) Rendered and looked at — the gate (MUST): Never judge a design not seen as pixels.
“Common” is measured: kept by at least 6 in 10 of the 12 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
compose — compose the interface
Design the interface again, from a blank canvas, three ways at once; render them; let a blind judge rank them against the current design; repeat until no fresh attempt beats it.
Load the matching design skill first, if one is available: frontend-design for web UI,
dataviz for anything with a chart in it, artifact-design for a published page.
Read ../_shared/tournament.md first — it defines the loop and binds this skill. The rubric
below replaces the shared code rubric.
0. Pick the target and pin the content
If the user passed an argument, that is the target (/compose the settings panel). If not, ask
one question: which screen, panel or component.
Read the parent shell, routed wrapper, grid/breakpoint config and the children that take real space, not just the file. If the parent shell is the actual bottleneck, say so before round 1.
Freeze for the whole run:
- The job — what the user does on this surface, and what must be seen first, second, third.
- The content set — real strings, numbers and counts, plus a stress case: longest label, empty state, biggest number, 40-item list. Every round is judged on the same content.
- The constraints — viewport(s) it actually runs on (stated as an assumption if unknown; for web, ~360px, ~768px and ~1440px), existing design tokens/system, platform idiom, anything that cannot move.
1. Setup (round 0)
tournament.md §1, work folder <scratchpad>/compose/<target-slug>/, each r<N>/c<k>/ holding
the source and the rendered screenshots. Render the current design and run the pre-crown check
(§2e) on it — its misses cap the champion.
2. The challenger
The round itself — three ideas, parallel builders, one blind judge, crowning — is tournament.md §4.
What each challenger is:
(a) A design idea in one sentence — a different skeleton, grouping or hierarchy, not a restyle.
(b) Designed from scratch from the job and content set, not from the current layout's structure. Each challenger declares its spacing, type, size, radius/border/elevation and colour scales up front and stays inside them. Existing project tokens are used, never paralleled.
Behaviour carries over (MUST). Props, events, refs, slots, conditionals and store wiring move
with the markup; check every moved subtree still has them.
(c) Rendered and looked at — the gate (MUST). Never judge a design not seen as pixels. Render
the stress content at the round's viewports (tournament.md §4.3). The gate itself is
tournament.md §3.
(d) Judged with the frozen rubric (§3) and red lines (§5): the judge gets every version's screenshots, same content and viewports, incumbent not named.
(e) Pre-crown check — only on challengers that beat the champion, highest-ranked first
(tournament.md §4.7): the alignment audit (§4) and references/checklist.md in full, answered from
its renders. Their misses cap its score before it can take the throne.
3. Scoring (the design rubric)
Replaces tournament.md §2. Six criteria, each 0-10, weighted total 0-100; the shared
scoring rules (§3 there) still apply.
| Criterion | Weight | What it measures |
| Layout, grouping & alignment | 25 | Related things sit together and unrelated things are separated, matching the task's mental model; no orphan control stranded from what it controls; the grid holds; edges line up across groups; optical alignment; gutters consistent; nothing drifting by a pixel or two |
| Spacing & sizing | 20 | One spacing scale honoured everywhere; each region's size matches its importance and content volume; no dead zones and no crammed regions; touch/click targets big enough; no magic numbers |
| Hierarchy & typography | 20 | Does the eye land in the intended order; prime real estate goes to the primary work area; DOM order matches visual order; type scale used with intent; weight and size doing the work instead of colour; measure (line length) readable |
| Colour, contrast & accessibility | 15 | Contrast ratios pass (AA at minimum); colour is never the only signal; focus/keyboard states exist; light and dark both handled if applicable |
| Fit to content, job & ergonomics | 12 | Serves the real content set, stress case included; the primary action is obvious; frequent controls sit near where the eye and pointer already are; destructive actions are not adjacent to routine ones; nothing important below the fold or clipped |
| States & responsiveness | 8 | Hover/active/disabled/focus, empty, loading, error, overflow; sane reflow/wrap/collapse at every rendered viewport; no horizontal overflow; priority content survives the smallest supported size |
On top of the shared rules, every score's reason names something visible in the render.
4. The alignment audit
Runs on round 0 and on each challenger up for the throne, with references/checklist.md, as the pre-crown
check (tournament.md §4.7). Write the result as a short list of hits and misses:
- shared edges and baselines
- gutter consistency, equal gaps for equivalent relationships
- optical vs. mathematical centring
- icon/text alignment
- container padding symmetry
- text alignment per column, numeric alignment
- overflow and truncation with the stress content
- rhythm of repeated blocks
- structural soundness — right layout primitives, survives content-length changes
Any miss holds Layout, grouping & alignment at ≤ 7.
5. Judging and red lines
tournament.md §4.4, every version side by side, same content, same viewports, stress case
included. Every criterion verdict names something visible in the render.
Red lines — rank below every clean version regardless of score:
- the primary action is harder to find than in the champion,
- contrast fails AA on any text,
- the stress content breaks the layout,
- the project's existing design tokens were ignored in favour of invented ones,
- a binding, event or state was lost in the restructure.
6. Finish and apply
tournament.md §5 — the applied result re-rendered at every declared viewport with the full stress
set.
7. Final analysis
Format: tournament.md §6. This skill's table:
| Round | Design ideas (c1 · c2 · c3) | Render | Pool (best → worst) | Pre-crown check | Champion |
| 0 | current layout | clean | — | 4 misses (Layout ≤ 7) | R0 |
| 1 | <idea> · <idea> · <idea> | c3 console errors | 1c1 76 · R0 58 · 1c2 55 | clean | 1c1 |
| 2 | <idea> · <idea> · <idea> | clean | 1c1 78 · 2c2 74 · 2c1 70 · 2c3 61 | — | 1c1 |
Under How we did it, give the winner's skeleton and scales, and which idea from a losing challenger survived into it. Under Possible mistakes, name what the apply-time render found, states not built, contrast checked by eye, and what would need a bigger change than this loop allows.
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.

