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

design-system

Skill1 starsChanged 44 days agoMITView on GitHub

Builds a design system for a codebase and keeps it enforced, by running five phases in order: measure the spacing, type and color values in use, settle the design decisions with the user, write them as tokens, update the code to use the tokens, and install a linter. Use when the user wants a design system, says their UI is inconsistent, or asks to standardize spacing, type or color.

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-engine, team-level and 10 more.

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

    setup-engine

    Configure the project's game engine and version. Pins the engine in CLAUDE.md, detects knowledge gaps, and populates engine reference docs via WebSearch when the version is beyond the LLM's training data.

    Also in 13 projects that use this

  • CoralGameSkill

    team-level

    Orchestrate level design team: level-designer + narrative-director + world-builder + art-director + systems-designer + qa-tester for complete area/level creation.

    Also in 12 projects that use this

  • lilangMaxSkill

    create-stories

    Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.

    Also in 11 projects that use this

  • lilangMaxSkill

    story-done

    End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint.

    Also in 11 projects that use this

  • +2 more from CoralGame
  • +6 more from lilangMax

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check for progress from an earlier run:

    line 20
  2. Distinctive:

    Start at the first phase whose output file is missing, and tell the user which phase that is.

    line 26
  3. Distinctive:

    Call the Skill tool for each phase in order.

    line 28

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

Runs the five Motif phases in order. Each phase reads the file the previous phase wrote, so none of them can run without the one before it.

PhaseSkillWhat it doesWrites
1design-extractMeasures the values the code uses today.design/drift.json
2design-grillAsks the user to settle each design decision.design/decisions.json
3design-ratifyTurns the decisions into tokens and docstokens, DESIGN.md, .design/records/
4design-applyUpdates the code to use the tokensone commit per batch
5design-enforceInstalls a linter so the code stays consistentscripts/design-lint.mjs

Steps

Check for progress from an earlier run:

ls .design/ 2>/dev/null && cat .design/state.json 2>/dev/null

Start at the first phase whose output file is missing, and tell the user which phase that is. This lets an interrupted run pick up where it stopped.

Call the Skill tool for each phase in order. Do not skip a phase.

Never make up a value

Phases 1 to 3 decide what the system is. Phases 4 and 5 change the code to match it.

During phases 4 and 5, if the code needs a value that no token covers, stop and note it. Do not pick a substitute. At the end of the phase, show the user every value you noted, as questions. Each one is either a gap in the system or a value that shouldn't exist, and the user decides which.

Passes to run afterwards

These four skills use the finished system. Each needs DESIGN.md and will not run without it.

SkillWhat it does
beautifyFixes spacing, font sizes, line length, alignment and overflow without redesigning anything
apply-transitionsAdds transitions to things that currently appear or change instantly
choose-iconsPicks one icon library that covers what the product needs, and uses it everywhere
empty-statesAdds a proper empty state to anything that shows nothing when it has no data

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.