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.
npx skills add alvinindra/figma-mcp-rust --skill generate-color-palettegit clone --depth 1 https://github.com/alvinindra/figma-mcp-rustWrote 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.
[](https://agentmods.dev/skills/alvinindra/figma-mcp-rust/generate-color-palette)<a href="https://agentmods.dev/skills/alvinindra/figma-mcp-rust/generate-color-palette"><img src="https://agentmods.dev/badge/skills/alvinindra/figma-mcp-rust/generate-color-palette/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.
<a href="https://agentmods.dev/skills/alvinindra/figma-mcp-rust/generate-color-palette"><img src="https://agentmods.dev/badge/skills/alvinindra/figma-mcp-rust/generate-color-palette.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.00765 |
| Opus 5 | $0.00030 | $0.00382 |
| Sonnet 5 | $0.00012 | $0.00153 |
| Haiku 4.5 | $0.00006 | $0.00076 |
Grade A, and why
generate-color-palette 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 12d 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.
How it starts
The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate Color Palette
Given one or more brand colors, generate a full design-system color palette with a primitive scale and semantic aliases, then create them as Figma variables.
Input
Ask the user for:
- Primary brand color (hex), required
- Secondary/accent color (hex), optional
- Whether to include neutral/gray scale, default yes
- Whether to generate dark mode, default yes
Color Scale Algorithm
For each brand color, generate a 9-step scale (50, 100, 200, 300, 400, 500, 600, 700, 800, 900) by varying lightness in HSL space:
- 50: lightest tint (~95% lightness)
- 100: ~90% lightness
- 200: ~80% lightness
- 300: ~70% lightness
- 400: ~60% lightness
- 500: base color (the input hex)
- 600: ~45% lightness
- 700: ~35% lightness
- 800: ~25% lightness
- 900: darkest shade (~15% lightness)
For neutrals: use the primary hue but desaturate to 5-10% saturation.
Show the full color table to the user for review before creating anything.
Semantic Aliases
After the primitive scale, create semantic tokens that reference primitives:
Light mode:
- Color/Background/Default: Neutral/50
- Color/Background/Subtle: Neutral/100
- Color/Text/Default: Neutral/900
- Color/Text/Subtle: Neutral/600
- Color/Text/Disabled: Neutral/400
- Color/Primary/Default: Primary/500
- Color/Primary/Hover: Primary/600
- Color/Primary/Active: Primary/700
- Color/Primary/Subtle: Primary/100
- Color/Border/Default: Neutral/200
- Color/Border/Focus: Primary/500
Dark mode (add a "Dark" mode to the same collection):
- Color/Background/Default: Neutral/900
- Color/Background/Subtle: Neutral/800
- Color/Text/Default: Neutral/50
- Color/Text/Subtle: Neutral/300
- Color/Primary/Default: Primary/400
- (etc.)
Creation Steps
- create_variable_collection(name="Primitives", modeName="Value")
- For each color in the scale: create_variable(type="COLOR", name="Primary/500", collectionId=...) then set_variable_value(variableId, modeId, value="#hexcolor")
- Repeat for secondary and neutrals.
- create_variable_collection(name="Semantic Colors", modeName="Light")
- add_variable_mode(collectionId, modeName="Dark") if dark mode is requested
- For each semantic alias: create_variable + set_variable_value for Light mode, then Dark mode.
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.
- 12d ago First seen · 79 lines · 61 tokens per session scan A 10815d6961b2
generate-color-palette is a skill published in the GitHub repository alvinindra/figma-mcp-rust (39 stars, last pushed 7d ago), licensed MIT. It adds 61 tokens to every session and 765 once invoked, about $0.0003 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-30.
Other skills, from other repositories
clean-interface-design
Design clean, calm, uncluttered interfaces that don't read as templated AI output. Use when building or restyling any UI (web, iOS, Android, macOS) and it needs visual hierarchy, restraint, spacing discipline, one clear primary action, and a cohesive look. Covers accent color, whitespace, corner radius, type scale…
landing-page-conversion
Build or improve landing pages and marketing sites that convert, not just look good. Use when writing a hero, structuring a page, choosing a CTA, adding social proof, or diagnosing why a page isn't converting. Covers positioning, copy-first workflow, the above-the-fold contract, page narrative, CTAs, trust, and…
ship-quality-gate
Run the deterministic auditors over a real project before it ships — design drift, security headers, generated-default tells, SEO/GEO signals, delivery signals, Apple and Android project configuration — and read the results correctly, disclosure list included. Use when someone asks "audit this", "is this ready to…
apple-platform-design
Design iOS, iPadOS, and macOS apps that feel native, in the Liquid Glass era. Use when building or reviewing Apple-platform UI — navigation, controls, sheets, materials, typography, haptics — or deciding what must change when porting from web/Android. Covers Apple's HIG, the Liquid Glass design language (iOS 26 /…
saglitzdesign
Design, redesign, build, restyle, improve, critique, review, audit, simplify, polish, or animate a user interface — the front door into SaglitzDesign's eight design skills, for whichever one the work actually needs. Covers landing pages, marketing sites, dashboards, app screens, components, forms, onboarding, empty…
design-review
Critique a UI (screenshot, live page, or code) like a rigorous senior designer — grounded, reproducible, element-citing, and ranked by severity. Use when someone asks "review this design", "what's wrong with this screen", or wants feedback on a mockup/site/app. Avoids the failure modes of typical AI critique…