factory-design

factory-design is a skill for Claude Code from nonlinear-xyz/factory-kit. It costs 100 tokens per session (3,910 once invoked), scanned A, original, MIT.

A set of design-system rules for building consistent interfaces with shared names for colors and spacing, CSS variables, Tailwind, and reusable components. A design system is a common set of UI building rules.

In plain words
What is it for?
Use it to define intent-based design tokens, connect them to Tailwind, support light and dark themes, and decide when repeated styles should become reusable components.
Why use it?
It reduces visual drift between pages and avoids forcing developers to guess which palette color or utility class fits each situation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the factory-kit plugin — 41 skills, 8 commands, 12 agents, 1 MCP server shipped together

Good fit Use it to define intent-based design tokens, connect them to Tailwind, support light and dark themes, and decide when repeated styles should become reusable components.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nonlinear-xyz/factory-kit/factory-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nonlinear-xyz/factory-kit --skill factory-design
Clone the repo
git clone --depth 1 https://github.com/nonlinear-xyz/factory-kit

Made for: Claude Code.

Or install factory-kit, the plugin that ships this one along with the rest of its 41 skills, 8 commands, 12 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for factory-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/nonlinear-xyz/factory-kit/factory-design/github.svg)](https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-design)
Your own site
<a href="https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-design"><img src="https://agentmods.dev/badge/skills/nonlinear-xyz/factory-kit/factory-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for factory-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-design"><img src="https://agentmods.dev/badge/skills/nonlinear-xyz/factory-kit/factory-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,910 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00100 $0.03910
Opus 5.5 $0.00040 $0.01564
Sonnet 5.5 $0.00020 $0.00782
Haiku 4.5 $0.00010 $0.00391

Measured 1mo ago against content hash 331a65c6a368, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

factory-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/factory-design/SKILL.md · 247 lines

How it starts

The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Factory design

Each section leads with Principle (one sentence, stack-agnostic), then Why (constraint → option → tradeoff), then Recipe (the Tailwind + CSS-vars shape we use), and Failure mode when there's one to name.

The kit's default styling layer is Tailwind. The discipline here is what turns Tailwind from "every page styled in isolation" into a coherent design system: a small shared vocabulary that every surface draws from.

Token vocabulary — name intent, not palette position

Principle. Tokens are named by the role they play in the layout, never by their position in a colour ladder.

Why. Palette-position names (primary, secondary, base-100, base-200, neutral-300) are the dominant failure mode of theme systems like daisyUI, Bootstrap, and stock Material. The names describe where on the ramp a colour lives, not what it's for. Asking "is this card a base-100 or base-200?" has no semantic answer — so each developer (and you-on-a-different-day) guesses, and drift accumulates invisibly until two surfaces side by side look subtly off and nobody can articulate why.

Intent-named tokens collapse the ambiguity. bg is the page background. surface is the raised thing on top of the background. fg is primary text. fg-muted is the dimmer label next to it. accent is the brand pull. border-subtle is a divider you barely see. When the vocabulary is small and meaning is unambiguous, the same decision gets made the same way every time. That's the cleanness users feel — it's not "better colours," it's lower entropy.

Recipe. Eight to twelve tokens covers most projects. Default set:

Token Role
bg Page background
surface Raised surface on top of bg (cards, panels)
surface-hover What surface becomes on hover
fg Primary text
fg-muted Secondary text, captions, dimmer labels
border Standard divider / outline
border-subtle Faint divider (~50% the contrast of border)
accent Brand pull — CTAs, active state, focus rings
accent-hover What accent becomes on hover
accent-fg Text colour that sits on top of accent
code-bg Inline code / code-block background (only if the project ships docs)

Read the full file on GitHub · 247 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 247 lines · 100 tokens per session scan A 331a65c6a368

Subscribe to this mod's changes

factory-design is a skill published in the GitHub repository nonlinear-xyz/factory-kit (9 stars, last pushed 5d ago), licensed MIT. It adds 100 tokens to every session and 3,910 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

design-plan

A design-system planning and implementation guide for frontend projects. A design system is a shared set of visual rules, reusable components, and accessibility practices for building consistent user interfaces.

Dannykkh/skill-olympus · 108 tokens

frontend-design

A frontend design and implementation guide for turning a visual design plan into a working web interface. It also provides fallback guidance when an official design plugin is unavailable.

Dannykkh/skill-olympus · 92 tokens

mui

Material-UI v7 component library patterns including sx prop styling, theme integration, responsive design, and MUI-specific hooks. Use when working with MUI components, styling with sx prop, theme customization, or MUI utilities.

Dannykkh/skill-olympus · 48 tokens

design-system-starter

Create and evolve design systems with design tokens, component architecture, and accessibility guidelines. Use when user asks to "create design system", "design tokens", "component library", "style guide", or when starting a frontend project that needs consistent UI foundation.

Dannykkh/skill-olympus · 56 tokens

polish

Frontend quick wins to wow effects (6 dimensions). Use when: "polish", "beautify", "improve", "wow", "improve design", "enhance", "quick wins".

claude-hangar/claude-hangar · 44 tokens

top-design

Create award-winning, immersive web experiences at the level of Awwwards-featured agencies. Use when the user mentions "Awwwards quality", "make my site stunning", "scroll animations", "parallax storytelling", "cinematic web design", "portfolio site", or "brand experience". Also trigger when elevating a standard…

wondelai/skills · 113 tokens