Token导航 LogoToken导航

Agent Skill · 前端设计

uikit-expert(uikit 专家)

uikit-expert 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

uikit-expert 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 3,272。

总安装 1,426周安装 60GitHub Stars 2下载 499核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:uikit-expert(uikit 专家)
来源仓库:https://github.com/ivan-magda/uikit-expert-skill
仓库路径:skills/uikit-expert
安装命令:
npx skills add https://github.com/ivan-magda/uikit-expert-skill --skill uikit-expert
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ivan-magda/uikit-expert-skill --skill uikit-expert

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

uikit-expert 用于处理 GitHub 仓库、Issue 和 Pull Request。适合围绕仓库状态、代码变更或协作事项进行整理。可结合来源仓库和原始 README 核验具体用法。安装前建议确认权限范围和维护状态。uikit-expert 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

注意是否会触发联网、命令执行或文件读写。

来源仓库内路径:skills/uikit-expert

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ivan-magda/uikit-expert-skill --skill uikit-ex…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

uikit-expert 怎么安装?

在终端执行 npx skills add https://github.com/ivan-magda/uikit-expert-skill --skill uikit-expert。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

uikit-expert 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

uikit-expert 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

uikit-expert 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

uikit-expert 用的人多吗?

公开数据是累计安装 1,426 次,近一周安装 60 次,下载 499 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

uikit-expert 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
uikit-expert

uikit 专家 · 本页

1,4262需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

UIKit Expert Skill

Overview

Use this skill to build, review, or improve UIKit features with correct lifecycle management, performant Auto Layout, modern collection view APIs, and safe navigation patterns. Prioritize native APIs, Apple's documented best practices, and performance-conscious patterns. This skill focuses on facts and best practices without enforcing specific architectural patterns (no MVVM/VIPER/Coordinator mandates).

Workflow Decision Tree

1) Review existing UIKit code

  • Check view controller lifecycle usage — viewIsAppearing for geometry, viewDidLoad for setup only (see references/view-controller-lifecycle.md)
  • Verify Auto Layout correctness — batch activation, no constraint churn, translatesAutoresizingMaskIntoConstraints (see references/auto-layout.md)
  • Check collection/table view APIs — diffable data sources, stable identity, CellRegistration (see references/modern-collection-views.md)
  • Verify cell configuration uses UIContentConfiguration, not deprecated textLabel (see references/cell-configuration.md)
  • Check list scroll performance — prefetching, cell reuse cleanup, reconfigureItems (see references/list-performance.md)
  • Verify navigation patterns — bar appearance all 4 slots, no concurrent transition crashes (see references/navigation-patterns.md)
  • Check animation correctness — API selection, PropertyAnimator state machine, constraint animation (see references/animation-patterns.md)
  • Audit memory management — [weak self], delegate ownership, Timer/CADisplayLink traps (see references/memory-management.md)
  • Check concurrency safety — Task lifecycle, cancellation in viewDidDisappear (see references/concurrency-main-thread.md)
  • If SwiftUI interop present — verify UIHostingController containment, sizingOptions (see references/uikit-swiftui-interop.md)
  • Check image loading — downsampling, cell reuse race condition (cancel/clear/verify) (see references/image-loading.md)
  • Verify keyboard handling — UIKeyboardLayoutGuide over manual notifications (see references/keyboard-scroll.md)
  • Check trait handling and accessibility — registerForTraitChanges, Dynamic Type, VoiceOver (see references/adaptive-appearance.md)
  • Validate modern API adoption and iOS 26+ availability handling (see references/modern-uikit-apis.md)

2) Improve existing UIKit code

  • Replace geometry work in viewDidLoad with viewIsAppearing (see references/view-controller-lifecycle.md)
  • Eliminate constraint churn — create once, toggle isActive or modify .constant (see references/auto-layout.md)
  • Migrate from legacy UITableViewDataSource to diffable data sources (see references/modern-collection-views.md)
  • Replace deprecated textLabel/detailTextLabel/imageView with UIContentConfiguration (see references/cell-configuration.md)
  • Replace reloadItems with reconfigureItems for in-place cell updates (see references/list-performance.md)
  • Fix navigation bar appearance — set all 4 appearance slots, use navigationItem not navigationBar (see references/navigation-patterns.md)
  • Improve animations — use PropertyAnimator for gestures, correct constraint animation pattern (see references/animation-patterns.md)
  • Fix retain cycles — add [weak self], cancel Tasks in viewDidDisappear, use block-based Timer (see references/memory-management.md)
  • Migrate GCD to Swift concurrency — replace DispatchQueue.main.async with Task (see references/concurrency-main-thread.md)
  • Suggest image downsampling when UIImage(data:) or full-resolution loading detected (as optional optimization, see references/image-loading.md)
  • Replace keyboard notification handling with UIKeyboardLayoutGuide (see references/keyboard-scroll.md)
  • Replace traitCollectionDidChange with registerForTraitChanges (see references/adaptive-appearance.md)
  • Adopt iOS 26 APIs where appropriate — Observation, updateProperties(),.flushUpdates (see references/modern-uikit-apis.md)

3) Implement new UIKit feature

  • Design data flow first: identify owned state, injected dependencies, and model layer
  • Set up view controller lifecycle correctly — one-time setup in viewDidLoad, geometry in viewIsAppearing (see references/view-controller-lifecycle.md)
  • Build Auto Layout with batch activation and zero churn (see references/auto-layout.md)
  • Use modern collection view stack: DiffableDataSource + CompositionalLayout + CellRegistration (see references/modern-collection-views.md)
  • Configure cells with UIContentConfiguration and configurationUpdateHandler (see references/cell-configuration.md)
  • Implement prefetching and proper cell reuse cleanup for lists (see references/list-performance.md)
  • Set up navigation with all 4 appearance slots and concurrent-transition guards (see references/navigation-patterns.md)
  • Choose correct animation API for the use case (see references/animation-patterns.md)
  • Use [weak self] in escaping closures, cancel Tasks in lifecycle methods (see references/memory-management.md)
  • Use @MainActor correctly, store Task references (see references/concurrency-main-thread.md)
  • If embedding SwiftUI — use full child VC containment for UIHostingController (see references/uikit-swiftui-interop.md)
  • Downsample images for display, handle cell reuse race condition (see references/image-loading.md)
  • Use UIKeyboardLayoutGuide for keyboard handling (see references/keyboard-scroll.md)
  • Support Dynamic Type, VoiceOver, dark mode from the start (see references/adaptive-appearance.md)
  • Gate iOS 26+ features with #available and provide sensible fallbacks (see references/modern-uikit-apis.md)

Core Guidelines

View Controller Lifecycle

  • Use viewDidLoad for one-time setup: subviews, constraints, delegates — NOT geometry
  • Use viewIsAppearing (back-deployed iOS 13+) for geometry-dependent work, trait-based layout, scroll-to-item
  • viewDidLayoutSubviews fires multiple times — use only for lightweight layer frame adjustments
  • viewWillAppear is limited to transition coordinator animations and balanced notification registration
  • Always call super in every lifecycle override
  • Child VC containment: addChild → addSubview → didMove(toParent:) — in that exact order
  • Verify deallocation with deinit logging during development

Auto Layout

  • Always set translatesAutoresizingMaskIntoConstraints = false on programmatic views
  • Use NSLayoutConstraint.activate([]) — never individual .isActive = true
  • Create constraints once, toggle isActive or modify .constant — never remove and recreate
  • Never change priority from/to .required (1000) at runtime — use 999
  • Animate constraints: update constant → call layoutIfNeeded() inside animation block on superview
  • iOS 26+: use .flushUpdates option to simplify constraint animation
  • Avoid deeply nested UIStackViews in reusable cells

Collection Views & Data Sources

  • Use UICollectionViewDiffableDataSource with stable identifiers (UUID/database ID, not full model structs)
  • Use reconfigureItems for content updates, reloadItems only when cell type changes
  • Use applySnapshotUsingReloadData for initial population (bypasses diffing)
  • Use UICollectionViewCompositionalLayout for any non-trivial layout
  • Use UICollectionView.CellRegistration — no string identifiers, no manual casting
  • Use UIContentConfiguration for cell content and UIBackgroundConfiguration for cell backgrounds
  • Use configurationUpdateHandler for state-driven styling (selection, highlight)

Navigation

  • Configure all 4 UINavigationBarAppearance slots (standard, scrollEdge, compact, compactScrollEdge)
  • Set appearance on navigationItem (per-VC) in viewDidLoad, not on navigationBar in viewWillAppear
  • Use setViewControllers(_:animated:) for deep links — not sequential push calls
  • Guard against concurrent transitions — check transitionCoordinator before push/pop
  • Set prefersLargeTitles once on the bar; use largeTitleDisplayMode per VC

Animation

  • UIView.animate — simple one-shot animations; check finished in completion
  • UIViewPropertyAnimator — gesture-driven, interruptible; respect state machine (inactive → active → stopped)
  • CABasicAnimation — layer-only properties (cornerRadius, shadow, 3D transforms); set model value first
  • iOS 17+ spring API: UIView.animate(springDuration:bounce:) aligns with SwiftUI
  • Constraint animation: flush layout → update constant → animate layoutIfNeeded() on superview

Memory Management

  • Default to [weak self] in all escaping closures
  • Timer: use block-based API with [weak self], invalidate in viewWillDisappear
  • CADisplayLink: use weak proxy pattern (no block-based API available)
  • NotificationCenter: [weak self] in closure, remove observer in deinit
  • Nested closures: re-capture [weak self] in stored inner closures
  • Delegates: always weak var delegate: SomeDelegate? with AnyObject constraint
  • Verify deallocation with deinit — if never called, a retain cycle exists

Concurrency

  • UIViewController is @MainActor — all subclass methods are implicitly main-actor
  • Store Task references, cancel in viewDidDisappear — not deinit
  • Check Task.isCancelled before UI updates after await
  • Task.detached does NOT inherit actor isolation — explicit MainActor.run needed for UI
  • Never call DispatchQueue.main.sync from background — use await MainActor.run

UIKit–SwiftUI Interop

  • UIHostingController: full child VC containment (addChild → addSubview → didMove), retain as stored property
  • sizingOptions =.intrinsicContentSize (iOS 16+) for Auto Layout containers
  • UIViewRepresentable: set mutable state in updateUIView, not makeUIView; guard against update loops
  • UIHostingConfiguration (iOS 16+) for SwiftUI content in collection view cells

Image Loading

  • Decoded bitmap size = width × height × 4 bytes (a 12MP photo = ~48MB RAM)
  • Downsample with ImageIO at display size — never load full bitmap and resize
  • iOS 15+: use byPreparingThumbnail(of:) or prepareForDisplay() for async decoding
  • Cell reuse: cancel Task in prepareForReuse, clear image, verify identity on completion

Keyboard & Scroll

  • Use UIKeyboardLayoutGuide (iOS 15+) — pin content bottom to view.keyboardLayoutGuide.topAnchor
  • iPad: set followsUndockedKeyboard = true for floating keyboards
  • Replace all manual keyboard notification handling with the layout guide

Adaptive Layout & Accessibility

  • Use registerForTraitChanges (iOS 17+) instead of deprecated traitCollectionDidChange
  • Dynamic Type: UIFont.preferredFont(forTextStyle:) + adjustsFontForContentSizeCategory = true
  • Dark mode: use semantic colors (.label, .systemBackground); re-resolve CGColor on trait changes
  • VoiceOver: set accessibilityLabel, accessibilityTraits, accessibilityHint on custom views
  • Use UIAccessibilityCustomAction for complex list item actions

Quick Reference

View Controller Lifecycle Method Selection

MethodUse For
viewDidLoadOne-time setup: subviews, constraints, delegates
viewIsAppearingGeometry-dependent work, trait-based layout, scroll-to-item
viewWillAppearTransition coordinator animations only
viewDidLayoutSubviewsLightweight layer frame adjustments (fires multiple times)
viewDidAppearStart animations, analytics, post-appearance work
viewWillDisappearCancel tasks, invalidate timers, save state
viewDidDisappearFinal cleanup, cancel background work

Animation API Selection

APIBest ForInteractiveOff Main Thread
UIView.animateSimple one-shot changesNoNo
UIViewPropertyAnimatorGesture-driven, interruptibleYesNo
CABasicAnimationLayer properties, 3D transformsLimitedYes (Render Server)

Deprecated → Modern API Replacements

Deprecated / LegacyModern ReplacementSince
traitCollectionDidChangeregisterForTraitChanges(_:handler:)iOS 17
Keyboard notificationsUIKeyboardLayoutGuideiOS 15
cell.textLabel / detailTextLabelUIListContentConfigurationiOS 14
register + string dequeueUICollectionView.CellRegistrationiOS 14
reloadItems on snapshotreconfigureItemsiOS 15
barTintColor / isTranslucentUINavigationBarAppearance (4 slots)iOS 13
UICollectionViewFlowLayout (complex)UICollectionViewCompositionalLayoutiOS 13
Manual layoutIfNeeded() in animations.flushUpdates optioniOS 26
Legacy app lifecycleUIScene + SceneDelegateMandatory iOS 26
ObservableObject + manual invalidation@Observable + UIObservationTrackingEnablediOS 18

Review Checklist

View Controller Lifecycle

  • viewDidLoad contains NO geometry-dependent work
  • Geometry/trait work is in viewIsAppearing, not viewWillAppear
  • Every lifecycle override calls super
  • Child VC uses correct containment sequence
  • deinit is implemented for leak verification during development

Auto Layout

  • translatesAutoresizingMaskIntoConstraints = false on all programmatic views
  • Constraints activated via NSLayoutConstraint.activate([])
  • No constraint removal/recreation — using isActive toggle or .constant modification
  • No priority changes from/to .required (1000) at runtime
  • No setNeedsLayout() inside layoutSubviews or viewDidLayoutSubviews (infinite loop)
  • Constraint identifiers set for debugging

Collection Views

  • Using diffable data source with stable identifiers (not full model structs)
  • reconfigureItems for content updates, not reloadItems
  • CellRegistration instead of string-based register/dequeue
  • UIContentConfiguration instead of deprecated cell properties
  • No duplicate identifiers in snapshot (BUG_IN_CLIENT crash)
  • Self-sizing cells have unambiguous top-to-bottom constraint chain

Navigation

  • All 4 UINavigationBarAppearance slots configured
  • Appearance set on navigationItem in viewDidLoad, not navigationBar in viewWillAppear
  • Concurrent transition guard in place
  • prefersLargeTitles set once; largeTitleDisplayMode per VC

Animation

  • Correct API chosen for use case (animate vs PropertyAnimator vs CA)
  • UIViewPropertyAnimator state machine respected
  • Constraint animation uses correct pattern (flush → update → animate)
  • CAAnimation sets model value before adding animation
  • Completion handlers check finished parameter

Memory Management

  • [weak self] in all escaping closures
  • Timers use block-based API with [weak self]; invalidated in viewWillDisappear
  • Task references stored and cancelled in viewDidDisappear
  • CADisplayLink uses weak proxy pattern
  • Delegates declared as weak var on AnyObject-constrained protocol
  • No strong self re-capture in nested stored closures

Concurrency

  • Task.isCancelled checked after await before UI updates
  • No Task.detached for UI work without explicit MainActor.run
  • No redundant @MainActor on UIViewController subclasses (already inherited)
  • No DispatchQueue.main.sync from background

Image Loading

  • Images downsampled to display size (not loaded at full resolution)
  • Cell image loading: cancel in prepareForReuse, clear image, verify identity
  • NSCache sized by decoded bitmap bytes, not file size

UIKit–SwiftUI Interop

  • UIHostingController retained as stored property (not local variable)
  • UIHostingController uses full child VC containment (addChild → addSubview → didMove)
  • updateUIView guards against infinite update loops with equality checks

Keyboard

  • Using UIKeyboardLayoutGuide (iOS 15+) instead of keyboard notifications
  • iPad: followsUndockedKeyboard = true on the layout guide

Adaptive & Accessibility

  • registerForTraitChanges (iOS 17+) instead of traitCollectionDidChange
  • Dynamic Type: preferredFont + adjustsFontForContentSizeCategory = true
  • CGColor properties re-resolved on trait changes (layer.borderColor, shadowColor)
  • Custom views have accessibilityLabel and accessibilityTraits
  • UIAccessibilityCustomAction for complex list item actions

Modern APIs (iOS 26+)

  • #available guards with sensible fallbacks for iOS 26+ features
  • UIScene lifecycle adopted (mandatory for iOS 26 SDK)
  • UIObservationTrackingEnabled considered for iOS 18+ targets

References

  • references/view-controller-lifecycle.md — Lifecycle ordering, viewIsAppearing, child VC containment
  • references/auto-layout.md — Batch activation, constraint churn, priority, animation, debugging
  • references/modern-collection-views.md — Diffable data sources, compositional layout, CellRegistration
  • references/cell-configuration.md — UIContentConfiguration, UIBackgroundConfiguration, configurationUpdateHandler
  • references/list-performance.md — Prefetching, cell reuse, reconfigureItems, scroll performance
  • references/navigation-patterns.md — Bar appearance, concurrent transitions, large titles, deep links
  • references/animation-patterns.md — UIView.animate, UIViewPropertyAnimator, CAAnimation, springs
  • references/memory-management.md — Retain cycles, [weak self], Timer/CADisplayLink/nested closure traps
  • references/concurrency-main-thread.md — @MainActor, Task lifecycle, Swift 6, GCD migration
  • references/uikit-swiftui-interop.md — UIHostingController, UIViewRepresentable, sizing, state bridging
  • references/image-loading.md — Downsampling, decoded bitmap math, cell reuse race condition
  • references/keyboard-scroll.md — UIKeyboardLayoutGuide, scroll view insets, iPad floating keyboard
  • references/adaptive-appearance.md — Trait changes, Dynamic Type, dark mode, VoiceOver, accessibility
  • references/modern-uikit-apis.md — Observation framework, updateProperties(),.flushUpdates, UIScene, Liquid Glass

Philosophy

This skill focuses on facts and best practices, not architectural opinions:

  • We don't enforce specific architectures (e.g., MVVM, VIPER, Coordinator)
  • We do encourage separating business logic for testability
  • We optimize for correctness first, then performance
  • We follow Apple's documented APIs and Human Interface Guidelines
  • We use "suggest" or "consider" for optional optimizations
  • We use "always" or "never" only for correctness issues

平台分布

Codex

36.01%
按下载量换算180

Claude

29.76%
按下载量换算149

Cursor

16.34%
按下载量换算82

Gemini CLI

8.28%
按下载量换算41

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills