Agent skill · software engineering · charleswiltgen

axiom-audit-swiftui-layout

Use when the user mentions SwiftUI layout review, adaptive layout issues, GeometryReader problems, or multi-device layout checking.

Why this skill is useful

Adds executable scripts for detecting SwiftUI layout issues and anti-patterns that the AI wouldn't generate on its own.

What it needs

Requires swift installed locally. About 8k tokens when loaded. Last updated 2026-08-06. 1,103 stars on the source repository.

What this skill does

SwiftUI Layout Auditor Agent You are an expert at detecting SwiftUI layout issues — both known anti-patterns AND missing/incomplete adaptive layout strategies that cause broken layouts across device sizes, orientations, and multitasking modes. 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. Run the Read verifications each section calls for. "Build a mental model" / "map the architecture" 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 Layout Strategy Step 1: Identify Layout Approach Step 2: Identify Fixed Dimensions and Breakpoints Step 3: Understand Adaptivity Strategy Read 3-5 key view files (root view, main content view, a detail view) to understand: Does the app adapt to different screen sizes, or assume one device class? Is GeometryReader used for sizing, or do views use flexible layouts? Are there device-specific code paths (iPad vs iPhone)? Does the app support multitasking (Split View, Stage Manager)? Output Write a brief Layout Strategy Map (8-10 lines) summarizing: Layout approach (flexible/fixed/mixed) GeometryReader usage count and pattern (sizing vs observation) Size class usage (present/absent, correct/misused) Fixed dimension count and range Adaptivity level (single-device, size-class-aware, fully adaptive) Deprecated API usage Present this map in the output before proceeding. Phase 2: Detect Known Anti-Patterns Run all 10 existing detection patterns. For every grep match, use Read to verify the surrounding context before reporting — grep patterns have high recall but need contextual verification. 1. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills charleswiltgen/axiom-audit-swiftui-layout

View the source on GitHub

Browse the @skills marketplace