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-type-scalegit 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-type-scale)<a href="https://agentmods.dev/skills/alvinindra/figma-mcp-rust/generate-type-scale"><img src="https://agentmods.dev/badge/skills/alvinindra/figma-mcp-rust/generate-type-scale/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-type-scale"><img src="https://agentmods.dev/badge/skills/alvinindra/figma-mcp-rust/generate-type-scale.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.00059 | $0.00896 |
| Opus 5.5 | $0.00024 | $0.00358 |
| Sonnet 5.5 | $0.00012 | $0.00179 |
| Haiku 4.5 | $0.00006 | $0.00090 |
Grade A, and why
generate-type-scale 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 3mo 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 — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate Type Scale
Given a base font family and body size, generate a full typographic scale as Figma text styles.
Input
Ask the user for:
- Font family (e.g. "Inter"), required
- Base body font size in px (e.g. 16), required
- Scale ratio: "minor-third" (1.2), "major-third" (1.25), "perfect-fourth" (1.333), "golden" (1.618), default major-third
- Include display sizes (above H1)? Default no
- Include mono / code style? Default no
Scale Calculation
Using base size B and ratio R:
| Style Name | Size formula | Weight | Line Height | Letter Spacing |
|---|---|---|---|---|
| Display/2XL | B x R^7 (px) | 700 | 1.1 | -0.02em |
| Display/XL | B x R^6 | 700 | 1.1 | -0.02em |
| Heading/H1 | B x R^5 | 700 | 1.2 | -0.01em |
| Heading/H2 | B x R^4 | 700 | 1.25 | -0.01em |
| Heading/H3 | B x R^3 | 600 | 1.3 | 0 |
| Heading/H4 | B x R^2 | 600 | 1.35 | 0 |
| Body/XL | B x R^1 | 400 | 1.6 | 0 |
| Body/Base | B | 400 | 1.6 | 0 |
| Body/SM | B / R | 400 | 1.5 | 0 |
| Label/LG | B x R^0.5 (px) | 500 | 1.4 | +0.01em |
| Label/Base | B | 500 | 1.4 | +0.01em |
| Label/SM | B / R | 500 | 1.4 | +0.02em |
| Caption/Base | B / R^1.5 (px) | 400 | 1.4 | +0.02em |
| Code/Base | B | 400 | 1.6 | 0 (mono font) |
Round all sizes to nearest integer. Minimum size: 10px.
Show the full table to the user for review before creating anything.
Creation Steps
- For each style row, call create_text_style() with:
- name: e.g. "Heading/H1"
- fontFamily: the chosen font
- fontStyle: map weight to style name ("Regular"=400, "Medium"=500, "SemiBold"=600, "Bold"=700)
- fontSize: calculated value
- lineHeightValue + lineHeightUnit="PIXELS" (convert ratio x size to px)
- letterSpacingValue + letterSpacingUnit="PERCENT" (convert em to %)
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.
- 3mo ago First seen · 62 lines · 59 tokens per session scan A 9e67706d28c9
generate-type-scale is a skill published in the GitHub repository alvinindra/figma-mcp-rust (90 stars, last pushed 9d ago), licensed MIT. It adds 59 tokens to every session and 896 once invoked, about $0.0002 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.
generate-type-scale compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| generate-type-scalealvinindra/figma-mcp-rust | Skill | 90 | 9d ago | MIT | A | 59 | Claude Code |
| figmaseaworld008/Commonly-used-high-value-skills | Skill | 75 | yesterday | MIT | A | 30 | Codex |
| htmlpioneerdotai/pioneer | Skill | 22 | today | MIT | A | 38 | Claude Code |
| clean-interface-designHalidSaglam/saglitzdesign-mcp | Skill | 7 | 2mo ago | MIT | A | 95 | Claude Code |
| landing-page-conversionHalidSaglam/saglitzdesign-mcp | Skill | 7 | 2mo ago | MIT | A | 86 | Claude Code |
| ship-quality-gateHalidSaglam/saglitzdesign-mcp | Skill | 7 | 2mo ago | MIT | A | 86 | Claude Code |
| apple-platform-designHalidSaglam/saglitzdesign-mcp | Skill | 7 | 2mo ago | MIT | A | 95 | Claude Code |