swift-adaptive-layout-pro

swift-adaptive-layout-pro is a skill for Claude Code from kelvinkosbab/AppBootstrapAI. It costs 129 tokens per session (1,570 once invoked), scanned A, original, MIT.

A review skill for Apple apps that checks whether screens and windows adapt to resizing, different device shapes, and foldable layouts. It covers SwiftUI and UIKit, Apple's two main user-interface frameworks.

In plain words
What is it for?
Use it to audit iPhone, iPad, Mac Catalyst, and foldable-ready layouts, including size classes, safe areas, hinge regions, resizing, and state continuity.
Why use it?
Fixed screen assumptions can cause clipped content, unsafe controls, or lost state when a window resizes or a device folds. The review identifies these layout and launch-configuration problems.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to audit iPhone, iPad, Mac Catalyst, and foldable-ready layouts, including size classes, safe areas, hinge regions, resizing, and state continuity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kelvinkosbab/appbootstrapai/swift-adaptive-layout-pro
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 kelvinkosbab/AppBootstrapAI --skill swift-adaptive-layout-pro
Clone the repo
git clone --depth 1 https://github.com/kelvinkosbab/AppBootstrapAI

Made for: Claude Code.

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 swift-adaptive-layout-pro

README.md
[![agentmods](https://agentmods.dev/badge/skills/kelvinkosbab/appbootstrapai/swift-adaptive-layout-pro/github.svg)](https://agentmods.dev/skills/kelvinkosbab/appbootstrapai/swift-adaptive-layout-pro)
Your own site
<a href="https://agentmods.dev/skills/kelvinkosbab/appbootstrapai/swift-adaptive-layout-pro"><img src="https://agentmods.dev/badge/skills/kelvinkosbab/appbootstrapai/swift-adaptive-layout-pro/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 swift-adaptive-layout-pro

Your own site · 80×15
<a href="https://agentmods.dev/skills/kelvinkosbab/appbootstrapai/swift-adaptive-layout-pro"><img src="https://agentmods.dev/badge/skills/kelvinkosbab/appbootstrapai/swift-adaptive-layout-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,570 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.00129 $0.01570
Opus 5.5 $0.00052 $0.00628
Sonnet 5.5 $0.00026 $0.00314
Haiku 4.5 $0.00013 $0.00157

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

Security

Grade A, and why

swift-adaptive-layout-pro 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 23d 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.

.claude/skills/swift-adaptive-layout-pro/SKILL.md · 74 lines

How it starts

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

Review Apple app code for resizable-window and foldable readiness. This is the deep-review companion to the always-on apple-adaptive-layout.md rule — the rule steers while writing; this skill audits whole screens and the project's launch configuration. The Apple sibling of android-adaptive-layout-pro. Report only genuine problems; don't nitpick.

Applies to SwiftUI and UIKit (including Mac Catalyst). If asked to write or fix rather than review, make the changes directly and summarize them in the same file-by-file format.

Review process:

  1. Check launch and resizability posture using references/readiness-checklist.md — the UIScene lifecycle mandate, UIRequiresFullScreen, Info.plist and project settings, SDK level.
  2. Audit layout branching using references/size-classes-and-idiom.md — size classes vs idiom/orientation, UIScreen.main and global geometry, which containers already adapt.
  3. Audit foldable-specific behavior using references/duo-and-poses.md — arrangements, hinge and reserved regions, vertical bars, safe-area asymmetry, state continuity across fold and resize.
  4. Audit multitasking using references/multitasking-and-scenes.md — Split View and stacked layouts, multiple windows and their dynamic availability on Duo, per-scene state, scene accessories.
  5. When fixing UIKit findings, apply the replacements in references/uikit-api-replacements.md — UIScreen.main scale and bounds, idiom and orientation branches, hardcoded safe-area values, and moving lifecycle methods to the scene delegate — one deprecation per change.

If doing a partial review, load only the relevant reference files.

Core Instructions

  • Launch blockers outrank everything. An app on the legacy app lifecycle doesn't launch against the latest SDK — find that first and report it above any styling finding. A Mac Catalyst target that uses iOS 27.1 APIs without #if !targetEnvironment(macCatalyst) doesn't build on Xcode 27.2; report it at the same tier.
  • The unit of adaptation is the window, not the device. Any idiom check (userInterfaceIdiom == .pad), orientation check, or UIScreen.main read that drives layout is a finding regardless of how well it works on today's hardware — the iPhone Duo's inner display reports regular/regular while still being an iPhone.
  • Assume resizability is on. Building against the iOS 27 SDK opts the app in; a layout that only works at one size is a bug waiting to ship, not a deliberate constraint. Flag the fixed-size assumption and whatever depended on it.
  • One app can have several windows, and each can be resized. Duo brings multi-window and Split View to iPhone. Global "current window" or "current document" state is a finding.
  • A fold or resize is a configuration change. Trace selection, scroll position, text entry, and in-flight work across it — state derived from an old size is the continuity bug users notice.
  • Prefer the system containers. Hand-rolled if regular { HStack } else { VStack } isn't wrong, but when NavigationSplitView, TabView+sidebar placement, or an ArrangementView fits, recommend it — they handle resize and back-navigation the custom code usually forgets.
  • Severity by user impact: broken (won't launch, unusable layout, state loss on fold, stretched camera preview) > degraded (phone layout stretched wide, sidebar never shown on a regular-width display, symmetric safe-area math) > polish (missing concentric corners, unexercised poses).
  • Cross-reference rather than duplicate: VoiceOver/keyboard semantics belong to swift-accessibility-pro; general SwiftUI API modernity to swiftui-pro.

Read the full file on GitHub · 74 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. 23d ago Changed · +1 lines d2989bfacacf
  2. 25d ago Changed · +1 lines ad2ec3f45f7c
  3. 27d ago Changed · +3 lines · +18 tokens per session 8cfc77236eee
  4. 2mo ago First seen · 69 lines · 111 tokens per session scan A 68538cb64ec8

Subscribe to this mod's changes

swift-adaptive-layout-pro is a skill published in the GitHub repository kelvinkosbab/AppBootstrapAI (8 stars, last pushed yesterday), licensed MIT. It adds 129 tokens to every session and 1,570 once invoked, about $0.0005 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-09-11.

Related

swift-adaptive-layout-pro compared with skills from other repositories

swift-adaptive-layout-pro next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swift-adaptive-layout-prokelvinkosbab/AppBootstrapAISkill8yesterdayMITA129Claude Code
compose-animationschrisbanes/skillsSkill1.2k2d agoApache-2.0A67Claude Code
compose-focus-navigationchrisbanes/skillsSkill1.2k2d agoApache-2.0A41Claude Code
kotlin-androidericrisco/rsc-harnessSkill6915d agoMITA78Claude Code, Codex
compose-multiplatformericrisco/rsc-harnessSkill6915d agoMITA80Claude Code, Codex
ios-slim-bindingsdotnet/maui-labsSkill244todayMITA97Claude Code, Codex
mapkitTalissonVitorino/kmp-ios-skillsSkill16todayMITA246Claude Code, Codex