360 Secure SkillHub
360 安全技能中心

uikit

该 Skill 将 UIKit 屏幕搭建、布局、导航和列表/网格实现任务路由到对应的 Knowledge Contract,并限定 v1 仅支持程序化 UI 与 diffable 数据源;契约文件未包含在包内。

caglarbaranbora
热度 0.00
最近更新 2026-10-18 16:48:11
分类:开发依赖:读写文件应用场景:代码生成 / 代码审查

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add caglarbaranbora/apple-agent-kit/uikit
Metadata
name
uikit
description
Route UIKit screen-scaffolding implementation tasks to the correct Knowledge Contracts — view controller lifecycle and composition, programmatic Auto Layout (constraints, stack views, safe area), navigation (UINavigationController, UITabBarController, modal presentation), and diffable table/collection views. Use when writing or reviewing UIKit screens, layout code, navigation flow, or list/grid UI. v1 is programmatic UI only (no Storyboard/XIB) and diffable data sources only (no classic cellForRowAt). Gestures, animation, custom transitions, and SwiftUI interop are out of scope here — see the uikit-interaction skill; accessibility API implementation — see the accessibility skill. Triggers on UIViewController, viewDidLoad, viewWillAppear, addChild, NSLayoutConstraint, layout anchors, UIStackView, safeAreaLayoutGuide, UINavigationController, UITabBarController, UITableViewDiffableDataSource, UICollectionViewCompositionalLayout, UICollectionViewDiffableDataSource, CellRegistration, prepareForReuse, present, dismiss, UIModalPresentationStyle.
id
skill.uikit.foundations
title
UIKit — Foundations
version
1.0.0
status
Approved
artifact_type
skill
domain
UIKit
routes
["knowledge.uikit.view-controller-lifecycle","knowledge.uikit.view-controller-composition","knowledge.uikit.auto-layout-constraints","knowledge.uikit.auto-layout-stack-views","knowledge.uikit.safe-area-and-layout-guides","knowledge.uikit.navigation-controller","knowledge.uikit.tab-bar-controller","knowledge.uikit.table-view-diffable","knowledge.uikit.collection-view-compositional-layout","knowledge.uikit.collection-view-diffable","knowledge.uikit.cell-configuration","knowledge.uikit.modal-presentation"]
related
["skill.uikit.interaction","skill.accessibility.foundations","skill.swiftui.foundations","skill.human-interface-guidelines.foundations"]
last_updated
"2026-08-08T00:00:00.000Z"

UIKit — Foundations Skill

Purpose

Route UIKit screen-scaffolding implementation tasks to the minimum required UIKit Knowledge Contracts. v1 scope is programmatic UI only (no Storyboard/XIB) and diffable data sources only (no classic cellForRowAt).

Routing

Load only the contracts relevant to the task. All paths relative to knowledge/uikit/.

  • Screen lifecycle & composition -> view-controller-lifecycle.md, view-controller-composition.md
  • Layout -> auto-layout-constraints.md, auto-layout-stack-views.md, safe-area-and-layout-guides.md
  • Navigation & presentation -> navigation-controller.md, tab-bar-controller.md, modal-presentation.md
  • Lists & grids -> table-view-diffable.md, collection-view-compositional-layout.md, collection-view-diffable.md, cell-configuration.md

Never load more than the contracts relevant to the specific question. For gestures, animation, custom or interactive transitions, and UIKit-SwiftUI interop, route to skill.uikit.interaction instead. For accessibility API tasks (accessibilityLabel, traits, VoiceOver, Dynamic Type, etc.), route to skill.accessibility.foundations instead. For SwiftUI view/state/navigation tasks, route to skill.swiftui.foundations instead. For design-level guidance (when to use a tab bar vs. a navigation stack, list vs. grid layout choice), route to skill.human-interface-guidelines.foundations instead.

Stop Conditions

Stop and report if the requested topic has no matching Knowledge Contract in knowledge/uikit/ — do not guess or fall back to general knowledge.

  • Storyboard/XIB and the IBOutlet/IBAction workflow — Excluded
  • UIScrollView paging, zooming, and refresh control — Excluded