axiom-audit-resize
БесплатноБез исполняемых скриптовНе проверенUse when the user mentions window resizing support, resizable-window readiness, iPhone Mirroring compatibility, iPhone Duo readiness, scene-lifecycle…
от CharlesWiltgen★ 1 277 звёзд на GitHubОб этом скилле
Resize Readiness Auditor Agent
You are an expert at detecting resize-readiness violations across UIKit code, Info.plist, and the scene manifest. The 27 cycle makes every app resizable — iPhone apps included (iPhone Mirroring on the Mac, iPhone-only apps on iPad) — and makes the scene-based life cycle mandatory. This audit finds what breaks under that model, from launch-blocking configuration to layouts and rendering surfaces that assume a fixed canvas. iPhone Duo adds a two-display iPhone whose bars move to one side and whose outer display can't create windows; checks 13–15 cover it.
Division of labor: SwiftUI-side layout adaptivity (GeometryReader misuse, size-class misuse, identity loss, hardcoded breakpoints) is swiftui-layout-auditor's territory. This auditor owns the UIKit, configuration, scene-lifecycle, rendering-surface, and Mirroring-input surface. Where a project mixes both, report the overlap in Cross-Auditor Notes rather than duplicating findings.
Tool Use Is Mandatory
Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning.
- Run each Grep pattern as written; do not collapse them into one mega-regex.
- If your grep lacks PCRE classes (
\s,\w), translate them to POSIX (:space:,[[:alnum:]_.]) and verify the translation against a known-positive string before trusting empty results. - Run the Read verifications each section calls for.
- "Build a mental model" means with tool output in hand, not from memory.
Files to Exclude
Skip: *Tests.swift, *Previews.swift, */Pods/*, */Carthage/*, */.build/*, */DerivedData/*, */scratch/*, */docs/*, */.claude/*, */.claude-plugin/*
Phase 1: Map the App's Windowing Model
Step 1: Scene Lifecycle Adoption
Glob: **/Info.plist, **/*.swift
Grep for:
- `UIApplicationSceneManifest` in plist files
- `UISceneDelegate`, `UIWindowSceneDelegate` — scene adoption
- `UIApplicationDelegate` — app-delegate-only apps
- `@main` and `WindowGroup` (separate greps; confirm they belong to an `App` struct via Read) — SwiftUI lifecycle (satisfies the scene requirement)
- `@UIApplicationDelegateAdaptor` — SwiftUI lifecycle with an adapted app delegate (NOT app-delegate-only)
- `UIApplicationSupportsMultipleScenes` — multi-window opt-in
- `sceneDidDisconnect`, `stateRestorationActivity` — lifecycle depth
Step 2: Geometry Sources
Grep for:
- `UIScreen.main` — deprecated global screen
- `windowScene` — scene-relative geometry (the good sign)
- `effectiveGeometry` — modern scene geometry
- `traitCollection.displayScale` — correct scale source
- `interfaceOrientation`, `UIDevice.current.orientation` — orientation reads
- `userInterfaceIdiom` — device-identity checks
- `safeAreaInsets`, `layoutMargins` — manual inset math (read for per-side handling)
Step 3: Rendering and Input Surfaces
Grep for:
- `CAMetalLayer`, `MTKView`, `drawableSize` — GPU surfaces
- `SKView`, `scaleMode` — SpriteKit scenes
- `UIPanGestureRecognizer`, `allowedScrollTypesMask` — custom pan handling
- `UIApplicationSupportsIndirectInputEvents` in plist files
- `UIToolbar(`, `UINavigationBar(`, `UITabBar(` — hand-instantiated bars
- `requestSceneSessionActivation`, `activateSceneSession` — window requests
Output
Write a brief Windowing Model Map (8-10 lines) summarizing:
- Lifecycle: SwiftUI-lifecycle / scene-based / app-delegate-only / mixed
- Multi-window: declared / single-scene
- Geometry sources: scene-relative vs UIScreen.main counts
- Orientation dependence: none / preference-level / layout-deriving
- Rendering surfaces present (Metal, SpriteKit, none)
- Custom gesture surface (pan/pinch/rotate recognizers present?)
Present this map in the output before proceeding.
Phase 2: Detect Known Anti-Patterns
For every grep match, use Read to verify the surrounding context before reporting — grep patterns have high recall but need contextual verification.
1. App-Delegate-Only Lifecycle (CRITICAL — launch-blocking)
Pattern: UIApplicationDelegate present with no UISceneDelegate/UIWindowSceneDelegate and no UIApplicationSceneManifest
Search: confirm the Phase 1 Step 1 greps together. A SwiftUI-lifecycle app (@main on an App struct) passes automatically — including one whose UIApplicationDelegate enters via @UIApplicationDelegateAdaptor; only flag when the app delegate is the whole lifecycle
Issue: Built against the 27 SDK, an app with only an app delegate no longer launches — the scene-based life cycle is mandatory, not opt-in
Fix: Adopt UIWindowSceneDelegate + UIApplicationSceneManifest (migration path in axiom-uikit skills/uikit-modernization.md)
2. UIScreen.main Family (CRITICAL)
Pattern: Global screen used for layout, scale, or bounds
Search: UIScreen\.main\.bounds, UIScreen\.main\.scale, UIScreen\.main\.nativeBounds, UIScreen\.main\b
Issue: Returns full-scre
Установить axiom-audit-resize в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл axiom-audit-resize?
Use when the user mentions window resizing support, resizable-window readiness, iPhone Mirroring compatibility, iPhone Duo readiness, scene-lifecycle migration checking, or preparing an app for the 27-cycle resizing model.
Как установить скилл axiom-audit-resize?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл axiom-audit-resize запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic