ui-framework

ui-framework is a skill for Claude Code, Codex from wangjianqi/AppStore. It costs 36 tokens per session (3,415 once invoked), scanned A, original, MIT.

A set of rules for building iOS interfaces with UIKit, Apple's interface framework. It defines choices for layout, navigation, colors, fonts, dark mode, keyboard handling, and related views.

In plain words
What is it for?
Use it for tasks involving iOS screens, layouts, animations, view controllers, navigation, collection views, SnapKit, dark mode, or keyboard adaptation.
Why use it?
It keeps interface code consistent across screens and prevents different developers from choosing conflicting frameworks or styles.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/wangjianqi/appstore/01-ui-framework
Any agent
npx skills add wangjianqi/AppStore --skill 01-ui-framework
Clone the repo
git clone --depth 1 https://github.com/wangjianqi/AppStore

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for ui-framework

README.md
[![agentmods](https://agentmods.dev/badge/skills/wangjianqi/appstore/01-ui-framework.svg)](https://agentmods.dev/skills/wangjianqi/appstore/01-ui-framework)
Your own site
<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>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,415 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash 225401b2e125, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

ios-claude-skills/01-ui-framework/SKILL.md · 451 lines

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()
    }
}

Read the full file on GitHub · 451 lines

Changes

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.

  1. 4d ago First seen · 451 lines · 36 tokens per session scan A 225401b2e125

Subscribe to this mod's changes

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.

Related

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.

atharvnaik1/ipaship-audit · 57 tokens

view-specifications

Guide for writing view specification documents and a starter template for SwiftUI and cross-platform views.

jpavley/meta-loop-ios · 21 tokens

project-structure

Directory layout, file responsibilities, and Xcode integration for meta-loop projects.

jpavley/meta-loop-ios · 18 tokens

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.

mukul975/Anthropic-Cybersecurity-Skills · 49 tokens

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.

software-mansion/argent · 71 tokens

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.

mobile-next/mobile-mcp · 58 tokens