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 agentmods add skills/wangjianqi/appstore/01-ui-frameworknpx skills add wangjianqi/AppStore --skill 01-ui-frameworkgit clone --depth 1 https://github.com/wangjianqi/AppStoreWrote 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/wangjianqi/appstore/01-ui-framework)<a href="https://agentmods.dev/skills/wangjianqi/appstore/01-ui-framework"><img src="https://agentmods.dev/badge/skills/wangjianqi/appstore/01-ui-framework.svg" alt="Measured on agentmods" 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 | $0.00036 | $0.03415 |
| Opus 5 | $0.00018 | $0.01707 |
| Sonnet 5 | $0.00007 | $0.00683 |
| Haiku 4.5 | $0.00004 | $0.00342 |
Grade A, and why
ui-framework 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.
How it starts
The opening of the file, as written. The whole thing — 451 lines — stays where its author put it; the contents beside it link to each section on GitHub.
UI 框架约定
框架选择
- 主框架:UIKit(非特殊说明不使用 SwiftUI)
- 布局:SnapKit 自动布局,禁止 frame 硬编码
- 入口:SceneDelegate,无 Storyboard,无 .xib
- 导航:UINavigationController,禁止使用 NavigationStack
设计系统
颜色
- 统一从
AppColors.swift引用,禁止直接写UIColor(hex:) - 必须同时定义 Light / Dark 模式色值:
enum AppColors {
static let primary = UIColor { trait in
switch trait.userInterfaceStyle {
case .dark: return UIColor(hex: "#0A84FF")
default: return UIColor(hex: "#007AFF")
}
}
static let background = UIColor { trait in
switch trait.userInterfaceStyle {
case .dark: return UIColor(hex: "#1C1C1E")
default: return UIColor(hex: "#FFFFFF")
}
}
static let secondaryBackground = UIColor { trait in
switch trait.userInterfaceStyle {
case .dark: return UIColor(hex: "#2C2C2E")
default: return UIColor(hex: "#F2F2F7")
}
}
}
字体
- 统一从
AppFonts.swift引用,使用 SF Pro 系列 - 支持 Dynamic Type:
enum AppFonts {
static let title1 = UIFont.preferredFont(forTextStyle: .title1)
static let headline = UIFont.preferredFont(forTextStyle: .headline)
static let body = UIFont.preferredFont(forTextStyle: .body)
static let caption = UIFont.preferredFont(forTextStyle: .caption1)
static func custom(weight: UIFont.Weight, size: CGFloat) -> UIFont {
let font = UIFont.systemFont(ofSize: size, weight: weight)
return UIFontMetrics.default.scaledFont(for: font)
}
}
间距与圆角
- 间距:基于 8pt 基础网格(8 / 16 / 24 / 32)
- 圆角:统一使用
CornerRadius枚举
enum Layout {
static let padding8: CGFloat = 8
static let padding16: CGFloat = 16
static let padding24: CGFloat = 24
static let padding32: CGFloat = 32
}
enum CornerRadius: CGFloat {
case small = 8
case medium = 12
case large = 20
}
ViewController 规范
基本结构
final class HomeVC: UIViewController {
private let viewModel: HomeViewModel
private lazy var collectionView: UICollectionView = {
let cv = UICollectionView(frame: .zero, collectionViewLayout: createLayout())
cv.register(Cell.self, forCellWithReuseIdentifier: Cell.reuseID)
cv.dataSource = self
cv.delegate = self
return cv
}()
init(viewModel: HomeViewModel) {
self.viewModel = viewModel
super.init(nibName: nil, bundle: nil)
}
required init?(coder: NSCoder) { fatalError() }
override func viewDidLoad() {
super.viewDidLoad()
setupUI()
bindViewModel()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
viewModel.loadData()
}
}
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.
- 4d ago First seen · 451 lines · 36 tokens per session scan A 225401b2e125
ui-framework is a skill published in the GitHub repository wangjianqi/AppStore (10 stars, last pushed 3mo ago), licensed MIT. It adds 36 tokens to every session and 3,415 once invoked, about $0.0002 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
ipaship-audit
Use when auditing iOS/Android app submissions for compliance with Apple App Store Review Guidelines or Google Play Developer Policies. Scan .ipa, .apk, or .zip files against official store policies, generate structured compliance reports, and identify violations with remediation steps.
view-specifications
Guide for writing view specification documents and a starter template for SwiftUI and cross-platform views.
project-structure
Directory layout, file responsibilities, and Xcode integration for meta-loop projects.
analyzing-ios-app-security-with-objection
Runtime iOS app security testing with Objection (Frida): inspect keychain and filesystem data, explore app internals at runtime, and validate/bypass client-side protections during authorized mobile assessments.
argent-react-native-optimization
Optimizes a React Native app by profiling first to find real bottlenecks, then sweeping for mechanical issues. Entry-point for all performance work. Use when the app feels slow, user asks to optimize, fix re-renders, reduce jank, or improve startup. Delegates to argent-react-native-profiler for measurement.
mobile-automation
Control Android and iOS devices, emulators and simulators — launch apps, tap, swipe, type, take screenshots, read the accessibility tree. Use when a task involves a mobile device or app, mobile UI testing, or reproducing a bug on a phone.