agentleFS
olcayseyganolcayseygan/crumora/skills/compose/SKILL.md

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

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.
  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

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

    If the user passed an argument, that is the target (/compose the settings panel).

    line 21
  2. Distinctive:

    Read the parent shell, routed wrapper, grid/breakpoint config and the children that take real space, not just the file.

    line 24
  3. Very specific:

    (c) Rendered and looked at — the gate (MUST): Never judge a design not seen as pixels.

    line 56

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

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

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:

  1. The job — what the user does on this surface, and what must be seen first, second, third.
  2. 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.
  3. 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.

CriterionWeightWhat it measures
Layout, grouping & alignment25Related 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 & sizing20One 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 & typography20Does 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 & accessibility15Contrast 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 & ergonomics12Serves 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 & responsiveness8Hover/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:

RoundDesign ideas (c1 · c2 · c3)RenderPool (best → worst)Pre-crown checkChampion
0current layoutclean—4 misses (Layout ≤ 7)R0
1<idea> · <idea> · <idea>c3 console errors1c1 76 · R0 58 · 1c2 55clean1c1
2<idea> · <idea> · <idea>clean1c1 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.

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.