# Uikit

> 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, dism

- Skill: `caglarbaranbora/uikit` (Agent Skill)
- Install (CLI): `npx skillmds@latest add caglarbaranbora/uikit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/caglarbaranbora/uikit/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: caglarbaranbora (https://skillmd.com/u/caglarbaranbora)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/caglarbaranbora/uikit

---


# 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

