ux-skill-foundations

ux-skill-foundations is a skill for Claude Code from Laith0003/ux-skill. It costs 83 tokens per session (1,262 once invoked), scanned A, original, MIT.

A design-system workflow that turns brand colours, design rules, or existing code tokens into Figma variables and components. A design system is a shared set of visual rules and reusable interface parts.

In plain words
What is it for?
It helps import or extend token files, create light, dark, and high-contrast modes, bind component properties to variables, and compare a Figma library with shipped site tokens.
Why use it?
It keeps the visual rules in Figma aligned with the rules used by the website and checks colour contrast before creating the system.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the ux plugin — 1 skill, 25 commands, 5 agents shipped together

Good fit It helps import or extend token files, create light, dark, and high-contrast modes, bind component properties to variables, and compare a Figma library with shipped site tokens.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/laith0003/ux-skill/ux-skill-foundations
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 Laith0003/ux-skill --skill ux-skill-foundations
Clone the repo
git clone --depth 1 https://github.com/Laith0003/ux-skill

Made for: Claude Code.

Or install ux, the plugin that ships this one along with the rest of its 1 skill, 25 commands, 5 agents.

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 ux-skill-foundations

README.md
[![agentmods](https://agentmods.dev/badge/skills/laith0003/ux-skill/ux-skill-foundations/github.svg)](https://agentmods.dev/skills/laith0003/ux-skill/ux-skill-foundations)
Your own site
<a href="https://agentmods.dev/skills/laith0003/ux-skill/ux-skill-foundations"><img src="https://agentmods.dev/badge/skills/laith0003/ux-skill/ux-skill-foundations/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 ux-skill-foundations

Your own site · 80×15
<a href="https://agentmods.dev/skills/laith0003/ux-skill/ux-skill-foundations"><img src="https://agentmods.dev/badge/skills/laith0003/ux-skill/ux-skill-foundations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,262 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.00083 $0.01262
Opus 5.5 $0.00033 $0.00505
Sonnet 5.5 $0.00017 $0.00252
Haiku 4.5 $0.00008 $0.00126

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

Security

Grade A, and why

ux-skill-foundations 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 4d 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.

figma-skill/ux-skill-foundations/SKILL.md · 55 lines

How it starts

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

ux-skill foundations in Figma

ux-skill builds a design system from a brand color and a brief (or reads one a team already has) and checks it before handing it over: every pairing is measured for contrast in light, dark and high contrast, and the build refuses to write a system that fails. This skill brings that system into a Figma file as variables with their modes, and builds components from ux-skill's contracts with every visual property bound to a variable. The code and the file then hold one system.

Prerequisites. The figma-use skill MUST be loaded for every use_figma call. ux-skill runs locally (pip install uxskill, Python 3.10 or newer); it never calls a model and needs no network.

1. Get the system

Pick one source, in this order:

  1. The team's own tokens. A DTCG tokens.json, a CSS file of custom properties, a Tailwind 4 theme, Markdown rule files or a Figma variables export. Read it as it is, never rebuilt: uxskill system import --from <file> reports what it read and lists every entry it did not read with how to write it. An existing system is fixed input; extend it beside its source with uxskill system extend --from <file> --add <foundation> --out <folder>, never rewrite it.
  2. A brand color and a brief. uxskill system build --brand '#3366FF' --brief .ux/system-brief.json --out design-system. The look follows the brand and the brief's axes as continuous values, never a preset by industry. Read design-system/system-report.md before going on: it says what was built and what the engine moved to pass contrast.

Stop and tell the user when the build reports a failure: nothing was written, and the message names the token and the change to make.

2. Variables

Export the variables and the script that applies them: uxskill system export --from design-system/tokens.json --to figma --out figma-export.

  • figma-variables.json holds one collection per foundation (color, type, space, layout, radius, border, elevation, motion, imagery), each with the modes it changes in: light and dark, standard and high contrast, comfortable and compact, left to right and right to left, full and reduced motion.
  • figma-variables.js creates or updates them in the open file. Run its text through use_figma. It matches by name, so a second run updates in place; it never deletes a variable or renames a mode it did not make.
  • Primitives are hidden and unscoped; roles alias them and carry the scope that binds them (fills, text, strokes, gaps, radii) and their web code syntax (var(--color-action-primary)).
  • What Figma variables cannot hold is listed in the export's notes, for example a font family keeps its first face and the fallbacks stay in tokens.json.

Read the full file on GitHub · 55 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. 4d ago First seen · 55 lines · 83 tokens per session scan A e5882186f76d

Subscribe to this mod's changes

ux-skill-foundations is a skill published in the GitHub repository Laith0003/ux-skill (96 stars, last pushed 4d ago), licensed MIT. It adds 83 tokens to every session and 1,262 once invoked, about $0.0003 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-11-02.

Related

ux-skill-foundations compared with skills from other repositories

ux-skill-foundations next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ux-skill-foundationsLaith0003/ux-skillSkill964d agoMITA83Claude Code
ai-image-frontend-uiqiuxinyuan321/fumengSkill26mo agoMITA7Claude Code, Codex
Cognitive Load AnalyzerPramodDutta/qaskillsSkill2453d agoMITA29Claude Code, Codex
reimagine-it-lockKayforkind/reimagine-itSkill2125d agoMITA108Claude Code
paintAThevon/genjutsuSkill7493d agononeA46Claude Code
compose-graphicsAThevon/genjutsuSkill7493d agononeA36Claude Code
desktop-principlesAThevon/genjutsuSkill7493d agononeA36Claude Code