agentleFS
alvaroofernaandezalvaroofernaandez/dotfiles/skills/design-pipeline/SKILL.md

design-pipeline

Skill5 starsChanged 4 days agoMITView on GitHub

Blocking design pipeline and DESIGN.md contract: laws, direction, gates, then `aval design ack <surface>`. Invoke before ANY visible-surface work (component, screen, layout, style, motion, copy) or DESIGN.md changes.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    direction: - read .agents/DESIGN.md; it outranks taste and this skill.

    line 17
  2. Very specific:

    Run it before claiming a visual fix or finished screen.

    line 33
  3. Distinctive:

    Run the gates that apply and report real output.

    line 35
  4. Very specific:

    No native interactive elements: shadcn/ui + Radix (design-refactor).

    line 48
  5. Distinctive:

    No generic AI aesthetics. Motion needs a stated reason.

    line 51

“Common” is measured: kept by at least 6 in 10 of the 3 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

Design pipeline

A UI edit is denied by the PreToolUse gate until aval design ack <surface> has recorded this project (valid 4 h, and only while .agents/DESIGN.md is unchanged). Do the three steps, ack once.

  1. laws-of-ux - which of the 30 Laws govern this surface and the number each forces: Hick caps option count, Fitts sets target size, Jakob decides whether a novel pattern is allowed. Constraints first; after the direction exists they get rationalised away.
  2. direction - read .agents/DESIGN.md; it outranks taste and this skill. Cite the section that settles it. If it is open (new surface, redesign, no file), settle it with the user and write the winner back into DESIGN.md in the same change. Schema: references/design-md-schema.md.
  3. gates - name the aval design gate checks that can fail for this surface (contrast for colour, hardcodes for a component, tokens for a token change).

Then run aval design ack <surface> (it prints this reminder) and write the code.

After the code

Prove it with output:

  • aval shot <url|file.html> renders 390/768/1440 px into .design/shots/ and prints paths and overflow numbers. Run it before claiming a visual fix or finished screen. Add .design/ to the project's .gitignore. A Stop hook asks for it once per UI turn.
  • Run the gates that apply and report real output. A gate not run is "not run":

    aval design gate contrast <fg> <bg>            # WCAG ratio
    aval design gate pairs tokens/colors.json      # semantic pairs
    aval design gate hardcodes src/                # literals that should be tokens
    aval design gate theme-refs --theme theme.css src/
    aval design gate tokens tokens/                # DTCG aliases resolve
    aval design gate emoji src/                    # no emoji, no dashes in UI copy

Rules

  • No native interactive elements: shadcn/ui + Radix (design-refactor).
  • Persuasion laws (Goal-Gradient, Zeigarnik, Von Restorff) help users finish their task; used against it they are dark patterns. Refuse those.
  • No generic AI aesthetics. Motion needs a stated reason.

Bypass on purpose: DESIGN_PIPELINE_OFF=1.

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.