agentleFS
BabylonSocialBabylonSocial/babylon/.agents/skills/design/SKILL.md

design

Skill120 starsChanged 6 days agoMITView on GitHub

Design or review anything a person looks at, built from a spec in this repository: a page, screen, component, chart, dashboard, report or CLI output. Use before writing UI code, when choosing a layout or visual direction, and when reviewing UI for clutter, wordiness or missing spec content.

198 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use banner-design, inquiry 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.
  • lithStudySkill

    banner-design

    Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter/X, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.

    Also in 43 projects that use this

  • iskron-aiSkill

    inquiry

    Жизнь вимарши и отказ по родам: «разбери вимарши», «закрой/оставь вопрос», «отказываемся от направления», «всё это чушь», «забудь это»; вероятно устаревшее чужое — дело забвения. Различить волю и опровержение, сохранить смысл, перевязать зависевших, затем исполнить. Также якорение, разрешение, принятие как есть, вытеснение, кристаллизация, поле вопрошания, «триаж вимарш», work the field of inquiry, resolve the question. Не постановка узла (writing), не сборка графа (assembly). Нужны искрон-тулы.

    Also in 4 projects that use this

  • MicrosoftSkill

    ui-styling

    Guide for the visual style, structure, and shared building blocks used by Semantic Link Labs interactive UI tools (HTML widgets and anywidget-based widgets). Use this when adding a new interactive UI, modifying an existing one, or adding shared visual components.

    Also in 44 projects that use this

  • lithStudySkill

    brand

    Brand voice, visual identity, messaging frameworks, asset management, brand consistency. Activate for branded content, tone of voice, marketing assets, brand compliance, style guides.

    Also in 48 projects that use this

  • OpenAnalystIncSkill

    ads-management

    Activate for paid advertising campaigns on Google Ads, Meta Ads, LinkedIn Ads, TikTok Ads. Includes ad copywriting, audience targeting, budget optimization, A/B testing, and ROAS tracking. Used by ads-specialist and campaign-manager agents.

    Also in 3 projects that use this

  • OpenAnalystIncSkill

    ai-artist

    Write and optimize prompts for AI-generated outcomes across text and image models. Use when crafting prompts for LLMs (Claude, GPT, Gemini), image generators (Midjourney, DALL-E, Stable Diffusion, Imagen, Flux), or video generators (Veo, Runway). Covers prompt structure, style keywords, negative prompts, chain-of-thought, few-shot examples, iterative refinement, and domain-specific patterns for marketing, code, and creative writing.

    Also in 3 projects that use this

  • +4 more from OpenAnalystInc

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 178 edited versions we read keep these.

  • 3

    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. Distinctive:

    Few words: No explanations, disclaimers, helper text, sub-headers, taglines or detail lines under titles.

    line 31
  2. Very specific:

    Accessible: Every visual keeps its meaning in aria-label or alt.

    line 33
  3. Distinctive:

    Tokens: Every interface is built on the stack (AGENTS.md, "The stack").

    line 41
  4. Distinctive:

    Stop when a pass changes nothing.

    line 54
  5. Very specific:

    Colors, radii, shadows, fonts and type are tokens: Use the utilities named after them (bg-primary, text-muted-foreground, rounded-md).

    line 115

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

Before you draw

  1. Inventory. For each story in spec/**/*.md, write down what the user must see or do, and the rule behind it. That list is the whole content: everything on it ships; no page, section, setting or sample content off it does.
  2. Cut. For each item ask: does the user need to see this, here, now? What do they need that is not on the list? Remove what fails; add what is missing.
  3. Three directions. Sketch three different approaches (layout, hierarchy, brand treatment), a sentence or a rough SVG each. Pick the one that shows the inventory with the fewest elements and the clearest identity.

Rules

Instead ofUse
Text a visual can carryA chart, icon, color, shape or SVG
A number inside a sentenceThe number alone, large, or a bar or meter
A status wordColor, shape or icon, with the word as its accessible name
A paragraph explaining a flowA diagram
A label repeating what the element showsNothing
A chip, pill, badge, eyebrow or dividerPosition, weight or color, or nothing
Filler in empty spaceWhitespace
  • Few words. No explanations, disclaimers, helper text, sub-headers, taglines or detail lines under titles. One heading per view at most.
  • Accessible. Every visual keeps its meaning in aria-label or alt. Text contrast meets WCAG AA.
  • Untested. Words, layout and styles get no tests. A journey test through the UI asserts what the user can do and what the state became, not what the page says (AGENTS.md, "Tests").
  • One system. One type pairing, a small palette with one accent and one spacing scale, as the project's design tokens. Extend an existing component before adding one.
  • Tokens. Every interface is built on the stack (AGENTS.md, "The stack"). Name a color, size or radius by its token, never by its value; a new value is a new token, added once ("Components, stories and tokens").

Review: two or three passes

Reread the rules above before each pass, then ask:

  • What could go with no story losing anything? Remove it.
  • What text could be a visual? What visual could be smaller?
  • What from the inventory is missing?
  • Does the eye land first on what matters most?

Stop when a pass changes nothing. Report the chosen direction in one line, and anything cut that the user might expect to see.

Components, stories and tokens

A component is ordinary source the project owns: one .tsx file in src/components/, a named export, an exported <Name>Props type, and a JSDoc sentence on the component and on each prop that needs one. In this repository they are @repo/ui; a standalone project keeps its own.

Source, kept in GitGenerated, never committedCommand, in the project
Tokenstokens.json, and design.md describing themgenerated/tokens.css, generated/theme.css (the Tailwind v4 entry)spec tokens build, check
Storiesthe component, and <Name>.meta.tsx where its types are not enoughgenerated/stories/: Storybook stories, catalog.json, and a mount test and a browser test (accessibility) of every story; a disabled or loading story is played to check that it refuses clicks and keysspec stories gen [--watch] [--check]

spec is the tool's command (pnpm exec spec). In @repo/ui: pnpm gen (the stories), pnpm storybook, pnpm test, pnpm test:browser; in @repo/design-system: pnpm build, pnpm check.

  • Never write a story for what the generator can derive. It reads each prop's type, default and JSDoc and writes a Default story, one per option of a union or boolean prop, and Disabled, Loading, Error and Empty where such a prop exists, twelve at most. A hand-written <Name>.stories.tsx beside the component is kept, and wins over a generated story of the same name.
  • <Name>.meta.tsx exports meta: ComponentMeta<Props> (from vibestack/stories): args every story starts from, named examples and states, bounds of a numeric prop, a schema to sample, a decorator, and play interactions, which is where a component's behaviour is tested: no test compares screenshots. Stories, tests and Studio read the same object; a field it does not have is reported. A required prop the generator cannot give a value is reported, with the field to add; it never invents data.
  • A component that shows a model says so: @model spec/index.md in its JSDoc links it to that spec's state and events, and @design design.md#… to its design document. Studio's Components view follows both ways. The spec must have state (its generated module exports initial); a tag on a stateless dispatcher is reported, so name the spec whose model holds what it shows.
  • A file named after one of its exports (Dialog.tsx) gives stories to that component; its other exports are its parts.
  • What tokens.json holds. Each group becomes the Tailwind v4 theme variables, and so the utilities, shown; all but color, radius and font.sans/font.mono are optional, and * is a name the project chooses.

    PathValueUtility
    color.light.*, color.dark.*opaque oklch(L C H); the 22 required roles (shadcn's, ok, warn, info) and any palette color, named in light; one dark leaves out keeps its light valuebg-*, text-*, border-* …
    radius; rounded.*rem or pxrounded-sm … rounded-xl derived from radius; rounded-*
    font.*a font stackfont-*
    text.*rem or px, or { size, leading?, tracking? } to set its line height and letter spacing tootext-*
    weight.*1 to 1000font-*
    leading.*, tracking.*a number or rem/px; emleading-*, tracking-*
    z.*an integerz-*
    focus.width, focus.offsetrem or px, 2px unless giventhe :focus-visible ring; outline-focus only when focus.width is declared, outline-offset-focus only when focus.offset is
    shadow.*, blur.*, gradient.*, animate.* with keyframes.*, motion.duration.*, motion.ease.*, breakpoint.*CSS valuesshadow-*, blur-*, bg-gradient-*, animate-*, duration-*, ease-*, sm: …

    A scale's names (text, weight, leading, tracking, z) may start with a digit (2xl, 10); a color's may not. A name Tailwind already gives another meaning in the same classes is refused (a color sm would also be text-sm and shadow-sm; a weight mono would be font-mono), as is one name in two groups that share a utility: a color and a text size or shadow, a font and a weight.

  • Colors, radii, shadows, fonts and type are tokens. Use the utilities named after them (bg-primary, text-muted-foreground, rounded-md); the lint rules of vibestack/design/eslint refuse a palette class (white and black too), an arbitrary or named color, a radius, shadow or font the tokens do not define, and a literal or named color in a style. Once tokens.json declares a non-empty text, weight, leading, tracking or z, they also refuse an arbitrary value and Tailwind's own names in that group (text-sm, font-bold, leading-none, leading-6, z-50), never a name the project declared. Merge classes with cn(); use CVA only where a component has real variants.
  • A design change is a token change. Describe it in design.md, write it as [{ "path": "color.light.primary", "value": "oklch(…)", "reason": "…" }], and run spec tokens apply changes.json: it refuses an unknown path, an invalid value and a contrast below WCAG AA (4.5:1 for text, 3:1 for the edge of a control, input, and the focus ring), and prints the diff; --write applies it and rebuilds the CSS. Prose is never read as tokens.

To change a component: find it in generated/stories/catalog.json or in Studio's Components view, read its props and model there, edit the source, run pnpm gen (or leave pnpm storybook running), look at it, then pnpm test and pnpm lint.

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.