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

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it for tasks involving iOS screens, layouts, animations, view controllers, navigation, collection views, SnapKit, dark mode, or keyboard adaptation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wangjianqi/appstore/01-ui-framework
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.

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/github.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/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.

agentmods 80×15 button for ui-framework

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00036 $0.03415
Opus 5.5 $0.00014 $0.01366
Sonnet 5.5 $0.00007 $0.00683
Haiku 4.5 $0.00004 $0.00342

Measured 1mo ago against content hash 225401b2e125, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (17 stars, last pushed 4mo ago), licensed MIT. It adds 36 tokens to every session and 3,415 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

view-specifications

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

jpavley/meta-loop-ios · 21 tokens

mobile-app

A design template for a single-screen iPhone 15 Pro app mockup, including the phone frame, status bar, app header, main content, and bottom navigation.

nexu-io/html-anything · 21 tokens

mobile-onboarding

A visual template showing three mobile-app onboarding screens side by side: a splash screen, a feature introduction, and sign-in.

nexu-io/html-anything · 18 tokens

add-component

Add a SwiftUI component from ShipSwift. Use when the user says "add component", "add a view", "add X view", "I need a chart", "add animation", or wants a specific UI element.

signerlabs/ShipSwift · 48 tokens

figma-a11y-annotations

Rules for generating accessibility annotations on iOS/iPadOS mobile designs in Figma. Enforces a bare-minimum annotation discipline, an iOS vocabulary instead of web ARIA terms, and exact grammar for names, control types, page titles, values, hints, headings, groups, and reading order. Never annotates visible text as…

cvs-health/ios-swiftui-accessibility-techniques · 110 tokens

iOS SwiftUI Accessibility

Enforces WCAG 2.2 accessible coding patterns when writing SwiftUI — labels, traits, Dynamic Type, contrast, touch targets, focus management, orientation, and more. Based on the ios-swiftui-accessibility-techniques project with 41 static analysis rules across 24 WCAG criteria.

cvs-health/ios-swiftui-accessibility-techniques · 67 tokens