design-foundation

design-foundation is a skill for Claude Code, Codex from sanky369/vibe-building-skills. It costs 151 tokens per session (2,108 once invoked), scanned A, original, MIT.

A design-foundation skill creates a shared set of named style values, called design tokens, for colors, text, spacing, rounded corners, and shadows. It can also map existing hardcoded values to those tokens.

In plain words
What is it for?
It is for creating or extracting a design system, producing CSS variables or a Tailwind theme, and planning the replacement of hardcoded styles.
Why use it?
It removes scattered style values and makes later interface changes more consistent across a codebase.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for creating or extracting a design system, producing CSS variables or a Tailwind theme, and planning the replacement of hardcoded styles.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sanky369/vibe-building-skills/design-foundation
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 sanky369/vibe-building-skills --skill design-foundation
Clone the repo
git clone --depth 1 https://github.com/sanky369/vibe-building-skills

Made for: Claude Code, Codex.

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 design-foundation

README.md
[![agentmods](https://agentmods.dev/badge/skills/sanky369/vibe-building-skills/design-foundation/github.svg)](https://agentmods.dev/skills/sanky369/vibe-building-skills/design-foundation)
Your own site
<a href="https://agentmods.dev/skills/sanky369/vibe-building-skills/design-foundation"><img src="https://agentmods.dev/badge/skills/sanky369/vibe-building-skills/design-foundation/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 design-foundation

Your own site · 80×15
<a href="https://agentmods.dev/skills/sanky369/vibe-building-skills/design-foundation"><img src="https://agentmods.dev/badge/skills/sanky369/vibe-building-skills/design-foundation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 151 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,108 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.00151 $0.02108
Opus 5.5 $0.00060 $0.00843
Sonnet 5.5 $0.00030 $0.00422
Haiku 4.5 $0.00015 $0.00211

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

Security

Grade A, and why

design-foundation 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 2mo 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/frontend-design/design-foundation/SKILL.md · 126 lines

How it starts

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

Design Foundation

Produce a working tokens file for this specific codebase — not a document about tokens. A token is a named design decision (--color-text-primary, --space-4); centralizing them is what makes every later design skill (layout, type, color, components) land consistently. Governing principle: extract before you invent — in an existing codebase, the token system should formalize the best of what's already there, so migration is renaming, not redesigning.

When to use / handoffs

  • Use to create tokens from scratch or extract them from an existing codebase.
  • If the user's pain is specifically color (palette, contrast, dark mode depth) → skills/frontend-design/color-system after the token skeleton exists.
  • If specifically type (scale, fonts, readability) → skills/frontend-design/typography-system.
  • If they want components built on tokens → skills/frontend-design/component-architecture next.
  • For broad "where do I start" requests → skills/frontend-design/frontend-orchestrator.

Step 1 — Inspect the codebase

Before asking anything, gather evidence:

  1. Find the current styling entry points. Glob tailwind.config.{js,ts,cjs,mjs}, **/globals.css, **/index.css, **/app.css, **/*theme*, **/tokens*. Read them.
  2. Detect the stack. Tailwind v4 (@import "tailwindcss" + @theme in CSS) vs v3 (config file theme object) vs CSS Modules / styled-components / vanilla CSS. Check package.json for the tailwindcss version.
  3. Measure drift. Grep source for #[0-9a-fA-F]{3,8}\b, rgba?\(, hsla?\( → count distinct colors. Grep for \d+px and Tailwind arbitrary values \[(\d+px|#) → count rogue spacing/size values. These counts go in your rationale.
  4. Find the de facto system. Sort found values by frequency. The most-used font sizes, spacing steps, and colors are the candidate tokens.
  5. Check dark mode (dark:, prefers-color-scheme) — determines whether the semantic layer must ship two modes now.

Step 2 — Intake

Read the full file on GitHub · 126 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 126 lines · 151 tokens per session scan A 4ae2f48a1325

Subscribe to this mod's changes

design-foundation is a skill published in the GitHub repository sanky369/vibe-building-skills (31 stars, last pushed 3mo ago), licensed MIT. It adds 151 tokens to every session and 2,108 once invoked, about $0.0006 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-30.

Related

design-foundation compared with skills from other repositories

design-foundation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
design-foundationsanky369/vibe-building-skillsSkill313mo agoMITA151Claude Code, Codex
ui-designAnastasiyaW/codex-claude-code-configSkill214yesterdayMITA97Claude Code, Codex
frontend-designAnastasiyaW/codex-claude-code-configSkill214yesterdayMITA264Claude Code
design-system-architectroedyrustam/vibes-plugSkill121yesterdayMITA43Cursor
visual-ui-auditorroedyrustam/vibes-plugSkill121yesterdayMITA51Cursor
svg-animation-motion-expertroedyrustam/vibes-plugSkill121yesterdayMITA46Cursor
website-design-clonerroedyrustam/vibes-plugSkill121yesterdayMITA32Cursor