designloop
An agent skill that raises the quality of an existing interface, or its writing, by measuring it, not guessing.
Each round the agent:
- Captures the real app the same way (stills per theme and state, short clips for motion).
- Judges it with fresh subagents against a fixed, weighted rubric — nitpicky, and regressions score lower.
- Fixes what the judges found, using separate implementer subagents.
- Repeats until a target score or round limit is hit — e.g.
5.0 → 6.75 → 8.5 → 9.15.
Judges never implement, implementers never judge, judges are new every round, and the capture set never changes — so the scores stay comparable and honest.
Three modes
- Professional polish — one set of tokens everywhere, fewer type sizes, a consistent spacing scale, contrast, hit targets, state coverage, light/dark parity, motion quality. The target is the app's own best self.
- Art direction — move the UI toward a specific look: a named style, reference sites/apps, a generated target image, or a Figma design to match (exactly or as a guide).
- Writing — the same loop for words: UI copy (buttons, errors, empty states, onboarding), docs and READMEs, landing pages, posts. Judges score clarity, concision, voice, consistency and accuracy for a named reader, and a fresh reader agent reads each text cold to show where it confuses. Meaning stays fixed; the words get better.
Install
Claude Code (plugin):
/plugin marketplace add mubarakmarafa/designloop
/plugin install designloop@designloop
Claude Code (manual):
git clone https://github.com/mubarakmarafa/designloop.git
cp -R designloop/skills/designloop ~/.claude/skills/
Other agents (Codex, etc.): copy skills/designloop/ wherever your agent loads skills from. It's plain Markdown — SKILL.md plus references/.
Use
In a project with a UI you can run, say something like:
/designloop tighten the chrome — it feels inconsistent
/designloop make it look like graphic realism, neon pop with brutalist layouts
/designloop match this Figma: <link>
/designloop rewrite all our error messages and empty states
/designloop tighten the README and the getting-started docs
It interviews you first, studies how your project runs and ships, then builds a repeatable capture harness and starts the loop. By default it delivers a branch and an unmerged PR. It never merges or releases unless you ask.
Cost note: each round spawns several subagents. Set a round cap when it asks for a stop condition.
What it asks first, and why it matters
Before any agent touches your code, designloop asks a short set of questions, using multiple-choice prompts with a recommended option. It skips anything your request already answered. It writes the answers to .designloop/BRIEF.md and RUBRIC.md, and every judge and implementer reads those files. So each answer has a direct effect on how the loop runs.
1. Mode
Polish, art direction or writing. It's usually inferred from your wording ("tighten" or "inconsistent" means polish; "make it look like" or a Figma link means art direction; "copy", "docs" or "error messages" means writing).
Effect: picks the rubric, the extra questions and how much change is allowed.
- Polish keeps your look and counts inconsistencies.
- Art direction turns a style into 5–8 traits a judge can point to, then pauses after round 1 so you can approve the new look before it spreads.
- Writing judges text with reader tests and keeps the meaning fixed.
If you want more than one, each runs as its own loop with its own rubric. Blending them makes the scores meaningless.
2. Goal and what's off limits
What should be better, in your words. Which screens or texts are yours to handle. How much change you'll accept: tighten, restyle or redesign (writing: line edit, rewrite or restructure).
Effect: becomes the IN and OUT scope lists in every brief. Judges ignore OUT-of-scope parts, even ones that look wrong, and implementers are told not to touch them. Change tolerance stops implementers from over-reaching. Most people want tightening, and the briefs say so.
3. Focus
Which dimensions matter most. Polish offers consistency and tokens, typography, spacing, legibility, hit targets, motion and performance. Art direction offers the traits of the look. Writing offers clarity, concision, structure, voice, consistency, usefulness and accuracy.
Effect: sets the rubric weights, and so what the judges put first. It also decides which audits run in round 0. For example, if consistency is in focus, a token audit runs before any fixes.
4. Baseline
Your own score out of 10 for where things are today, the judges' score, or both (recommended).
Effect: calibrates the judges. If you say 6 and they say 8, the rubric is too soft, and it's tightened before round 1 so later scores mean something.
5. Stop condition