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 mythkiven/figma-ios-codegen --skill figma-ios-variables-detectiongit clone --depth 1 https://github.com/mythkiven/figma-ios-codegenWrote 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/mythkiven/figma-ios-codegen/figma-ios-variables-detection)<a href="https://agentmods.dev/skills/mythkiven/figma-ios-codegen/figma-ios-variables-detection"><img src="https://agentmods.dev/badge/skills/mythkiven/figma-ios-codegen/figma-ios-variables-detection/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/mythkiven/figma-ios-codegen/figma-ios-variables-detection"><img src="https://agentmods.dev/badge/skills/mythkiven/figma-ios-codegen/figma-ios-variables-detection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00057 | $0.00417 |
| Opus 5 | $0.00028 | $0.00209 |
| Sonnet 5 | $0.00011 | $0.00083 |
| Haiku 4.5 | $0.00006 | $0.00042 |
Grade A, and why
figma-ios-variables-detection 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 9d 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.
What it actually says
Figma Variables 多 Mode 警告处理(消费数据包)
数据来源
{data_dir}/manifest.json:summary.has_dark_mode(bool) 与warnings[]{data_dir}/variables.json:原始 Variables 数据,含每个 Mode 的 token 值(按需查阅)
处置规则
1. has_dark_mode == true
在生成的 Swift 文件顶部追加 banner 注释:
// ============================================================
// ⚠️ WARNING: Dark Mode 未生成
// ============================================================
// 设计稿在 Figma Variables 中定义了多个 Mode(含暗色模式),
// 当前生成的代码只覆盖了 Light Mode 的颜色 token。
//
// 暗色处理建议:
// 1. 用 UIColor(dynamicProvider:) 包裹关键颜色
// 2. 或基于 traitCollection.userInterfaceStyle 在 traitCollectionDidChange 切换
// 3. 详细 Mode 列表与 token 值见 {data_dir}/variables.json
// ============================================================
2. has_dark_mode == false
不输出任何 dark mode 注释。
3. 其他 warning(如 Token referenced but not resolved)
转为代码顶部 // WARNING: <msg> 单行注释。
自检清单
- 已读
manifest.json -
has_dark_mode==true时已加 banner 注释 - 其他 warnings 已逐条转为代码注释
- 没有调用
detect_figma_variables.py或 MCPget_variable_defs
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.
- 9d ago First seen · 50 lines · 57 tokens per session scan A f4ec7ed54b88
figma-ios-variables-detection is a skill published in the GitHub repository mythkiven/figma-ios-codegen (9 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 417 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-31.
Other skills, from other repositories
figma-codegen
Generate framework-aware code from a Figma design. Reads the project's stack profile and emits code matching the existing framework (React/Vue/Svelte/Next/etc.) and styling (Tailwind/CSS/CSS-in-JS), reusing existing components and design tokens instead of regenerating from scratch. Triggers whenever the user wants a…
figma-build
Build a Figma design from code or a description — the reverse of figma-codegen. Reuses the connected file's existing design system (components, variables, styles) instead of drawing primitives with hardcoded values. Triggers whenever the user wants something created or updated IN Figma from code or a spec — e.g.…
app-icon-studio
Apple app icons: create, generate, evaluate, export, install, or debug iOS AppIcon.appiconset and macOS .icns assets for small-size clarity.
macos-window-architect
Use SwiftUI scene/window modifiers first; switch to macos-appkit-bridge only when SwiftUI cannot express the behavior.
ios-liquid-glass-designer
Implement, refactor, or review iOS 26+ SwiftUI Liquid Glass with native glassEffect, GlassEffectContainer, button styles, availability gates, and non-glass fallbacks.
unship
Compare agent-made alternatives in a local browser preview with Unship. Use for comparison setup, iteration, Canvas, selection, cleanup, and Unship installation or update troubleshooting.