factory-design

factory-design is a skill for Claude Code, Codex 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 CodeCodex

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

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.

agentmods
npx agentmods add skills/nonlinear-xyz/factory-kit/factory-design
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, Codex.

Or install factory-kit, the plugin that ships this one along with the rest of its 37 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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00100 $0.03910
Opus 5 $0.00050 $0.01955
Sonnet 5 $0.00020 $0.00782
Haiku 4.5 $0.00010 $0.00391

Measured 5d ago against content hash 331a65c6a368, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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. 5d 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 1mo ago), licensed MIT. It adds 100 tokens to every session and 3,910 once invoked, about $0.0005 per session on Opus 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.