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-minimum-deployment-12git 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-minimum-deployment-12)<a href="https://agentmods.dev/skills/mythkiven/figma-ios-codegen/figma-ios-minimum-deployment-12"><img src="https://agentmods.dev/badge/skills/mythkiven/figma-ios-codegen/figma-ios-minimum-deployment-12/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-minimum-deployment-12"><img src="https://agentmods.dev/badge/skills/mythkiven/figma-ios-codegen/figma-ios-minimum-deployment-12.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.00069 | $0.00497 |
| Opus 5 | $0.00034 | $0.00249 |
| Sonnet 5 | $0.00014 | $0.00099 |
| Haiku 4.5 | $0.00007 | $0.00050 |
Grade A, and why
figma-ios-minimum-deployment-12 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
最低系统:iOS 12
本仓库产出、或按 Figma/MK 规范生成的 Swift / Objective-C 界面代码,部署目标最低为 iOS 12.0,除非用户显式提高版本。
Swift:禁止或需封装的 API(常见)
| 类别 | iOS 13+ API | iOS 12 做法 |
|---|---|---|
| 图片 | UIImage(systemName:)(SF Symbols) |
#available(iOS 13, *) 使用;否则 矢量绘制、UIImage(named:) 或项目内图标字体 |
| 状态栏 | UIStatusBarStyle.darkContent |
iOS 12 用 .default(浅底深字);13+ 再用 .darkContent |
| 圆角 | CALayer.cornerCurve、.continuous |
删除;仅用 cornerRadius(iOS 12 无连续曲率) |
| 其它 | UIColor(dynamicProvider:)、UIAction 等 |
查文档,用 #available 分支或替代实现 |
Objective-C
- 同样遵守:不得无条件调用仅 iOS 13+ 的类方法/枚举。
- 使用
if (@available(iOS 13.0, *)) { ... } else { ... }。
原则
- 新增界面代码前默认 能编过
IPHONEOS_DEPLOYMENT_TARGET = 12.0。 - 若必须使用高版本 API,必须 显式
@available/#available并提供 else 分支。
相关
- 总入口(推荐流程、Skill 索引、新增 Skill 防重叠规则):figma-ios-playbook
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 · 36 lines · 69 tokens per session scan A d79de92df967
figma-ios-minimum-deployment-12 is a skill published in the GitHub repository mythkiven/figma-ios-codegen (9 stars, last pushed 2mo ago), licensed MIT. It adds 69 tokens to every session and 497 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
swiftui-view-architect
Refactor oversized SwiftUI view files into stable, dedicated subviews with MV-first data flow, explicit dependencies, extracted actions, and correct Observation usage.
flutter-codestyle
Custom Instructions: Senior Flutter & Dart Engineer.
ios-agent-skill
Expert iOS/Swift developer behavior for AI coding agents. Use when writing, reviewing, or refactoring Swift, SwiftUI, UIKit, or SwiftData code; when designing iOS app architecture (MVVM, Clean Architecture, coordinators, routing); when building UI that must meet Apple's Human Interface Guidelines, contrast, dark-mode…
bootstrap-ios
Bootstrap agents for iOS, iPadOS, macOS, Swift, SwiftUI, SwiftData/Core Data, Swift Testing, Xcode build/test/debug, Simulator, App Intents, or XcodeBuildMCP work. Use before building, fixing, refactoring, QAing, or setting up Apple-platform repos, and when asked to load/install Ray's iOS skills or bootstrap iOS.
build-swift-apps
Route broad or ambiguous Swift and Apple-platform work to a focused skill; this router does not implement domain work. Covers iOS, macOS, SwiftUI, Xcode, Simulator, App Store Connect, Tuist, SwiftPM, signing, profiling, and Apple research.
swiftui-skills
Apple-authored SwiftUI and platform guidance extracted from Xcode. Helps AI agents write idiomatic, Apple-native SwiftUI with reduced hallucinations.