uikit-app-modernization

uikit-app-modernization is a skill for Codex from JakubMikolajek/codex-skills-collection. It costs 58 tokens per session (726 once invoked), scanned A, original, MIT.

A guide for updating UIKit iOS apps to support multiple windows and resizable scenes. UIKit is Apple's framework for building iPhone and iPad interfaces, and scenes are the separate windows or app sessions an app can manage.

In plain words
What is it for?
Use it when migrating UIKit code from the application lifecycle to the scene lifecycle, or when replacing uses of UIScreen.main, interfaceOrientation, or fixed safe-area assumptions.
Why use it?
Older code may rely on one shared screen, fixed orientation, or application-wide window setup, which can behave incorrectly when users resize or open multiple windows. The guide identifies and replaces those assumptions.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it when migrating UIKit code from the application lifecycle to the scene lifecycle, or when replacing uses of UIScreen.main, interfaceOrientation, or fixed safe-area assumptions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jakubmikolajek/codex-skills-collection/uikit-app-modernization
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 JakubMikolajek/codex-skills-collection --skill uikit-app-modernization
Clone the repo
git clone --depth 1 https://github.com/JakubMikolajek/codex-skills-collection

Made for: 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 uikit-app-modernization

README.md
[![agentmods](https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/uikit-app-modernization/github.svg)](https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/uikit-app-modernization)
Your own site
<a href="https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/uikit-app-modernization"><img src="https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/uikit-app-modernization/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 uikit-app-modernization

Your own site · 80×15
<a href="https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/uikit-app-modernization"><img src="https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/uikit-app-modernization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 726 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.00058 $0.00726
Opus 5.5 $0.00023 $0.00290
Sonnet 5.5 $0.00012 $0.00145
Haiku 4.5 $0.00006 $0.00073

Measured 19d ago against content hash d4583e9bfb95, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

uikit-app-modernization 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 19d 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.

skills/uikit-app-modernization/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

UIKit App Modernization Patterns

Use this skill to make UIKit apps behave correctly in resizable, multi-window environments by removing legacy shared-state APIs. The full Apple-authored workflow, core principles, and task registry live in references/workflow.md; read it before editing.

When to Use

  • Code references UIScreen.main / UIScreen.mainScreen
  • Code reads interfaceOrientation for layout decisions
  • App still uses application-lifecycle AppDelegate window setup and needs scene lifecycle
  • Layout hard-codes insets or assumes symmetric safe areas
  • User asks to prepare a UIKit app for multi-window or resizable scenes

When NOT to Use

  • App is SwiftUI-only - use swiftui
  • Task is general UIKit feature work with no deprecated shared-state API
  • Task would require opportunistic cleanup of unrelated lines

Delivery Workflow

Use the checklist below and track progress:

UIKit modernization progress:
- [ ] Step 1: Detect target API occurrences across all in-scope files
- [ ] Step 2: Read the active task reference before editing
- [ ] Step 3: Apply the replacement for every occurrence (no TODO-only or empty diffs)
- [ ] Step 4: Verify every input file has a non-empty diff and control flow is preserved

Task Registry

Apply every task unless the request scopes to a subset. Each task has its own detection patterns, decision tree, and verification rules.

Task Reference Description
UIScreen.main modernization references/uiscreen-task.md Replace UIScreen.main with context-appropriate APIs
Orientation modernization references/orientation-task.md Replace layout-related orientation checks with size classes or window bounds
Scene lifecycle migration references/scene-lifecycle-task.md Migrate AppDelegate to SceneDelegate
Safe area insets references/safe-area-task.md Replace hard-coded insets and support asymmetric safe areas

Key rules (full list in references/workflow.md):

  • Always apply a concrete replacement when the target API is present; a TODO-only or empty diff is a failure.
  • Never replace dynamic values with literals or walk global state (UIApplication.shared, UIScreen.main).
  • Never remove the old method when adding a new overload; keep it as a deprecated forwarder.
  • Ask before risky signature or behavior changes; stay in scope with no opportunistic cleanup.

Read the full file on GitHub · 67 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 19d ago First seen · 67 lines · 58 tokens per session scan A d4583e9bfb95

Subscribe to this mod's changes

uikit-app-modernization is a skill published in the GitHub repository JakubMikolajek/codex-skills-collection (6 stars, last pushed 20d ago), licensed MIT. It adds 58 tokens to every session and 726 once invoked, about $0.0002 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-10-08.

Related

Other skills, from other repositories

orca-emulator-android

Android device and emulator control from inside Orca over adb, with the live device view in Orca's emulator pane. Use when driving an adb-connected emulator or phone on Windows, Linux, or macOS: booting AVDs, taps, swipes, typing, hardware buttons, rotation, app install and launch, runtime permissions, the…

stablyai/orca · 102 tokens

glance-canonical-layouts

Use this skill to create home screen widgets using Jetpack Glance Canonical Layouts from the Android Platform Samples project, or when asked to implement standard widget layout patterns (including Check List, Image Grid, Snap Scrolling, and Standard Toolbar).

android/skills · 56 tokens

android-tombstone-symbolication

Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app…

dotnet/skills · 176 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

winapp-maui

Package and sign .NET MAUI Windows apps with winapp: publish the Windows head first, then point packaging at the resolved resizetizer manifest. Use for a MAUI MSIX or signed unpackaged build, MAUI packaging in CI, or 'manifest contains unresolved placeholders' errors from winapp package.

microsoft/winappCli · 68 tokens

apple-search-ads

When the user wants to set up, optimize, or scale Apple Search Ads (ASA) campaigns — including keyword bidding, match types, campaign structure, Creative Product Sets, CPP routing, and ROAS optimization. Use when the user mentions "Apple Search Ads", "ASA", "Search Ads", "Search tab ads", "Today tab ads", "CPT"…

Eronred/aso-skills · 127 tokens