# Axiom audit swiftui layout

> Axiom audit swiftui layout is an open-source agent skill for developer tools. Audits SwiftUI code for layout anti-patterns and missing adaptive layout strategies. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-audit-swiftui-layout
- **Repository:** https://github.com/charleswiltgen/axiom
- **GitHub stars:** 1,278
- **License:** MIT
- **Skill name:** axiom-audit-swiftui-layout
- **Collection:** https://github.com/CharlesWiltgen/Axiom
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill turns the agent into a SwiftUI layout auditor. It first maps how the codebase sizes and adapts its views, counting uses of GeometryReader, size classes, ViewThatFits, AnyLayout and fixed frames, then checks for twelve known problem patterns such as GeometryReader inside stacks, deprecated screen APIs, conditional stack switches that lose view state, and controls placed under ignoresSafeArea.

After the pattern checks, the agent looks for gaps such as missing iPad Split View support, fixed widths close to the smallest iPhone width, and missing landscape handling. Findings are grouped by severity with file and line references, and a summary rates the app as adaptive, rigid or broken. Each finding includes a suggested fix, and the report closes with a checklist of device sizes to test on.

The skill is written as an agent instruction set that reads Swift source files, mainly by searching and reading them. It expects a SwiftUI codebase, and it references companion Axiom skills for toolbars and iPhone Duo guidance.

## When your agent uses it

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-audit-swiftui-layout)
- [License: MIT](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-audit-swiftui-layout)

## Features

- **Layout strategy mapping:** Summarizes how the codebase handles sizing, adaptivity and device-specific paths before auditing.
- **Anti-pattern detection:** Checks for twelve known SwiftUI layout problems, each with a suggested fix.
- **Completeness review:** Looks for missing multitasking, landscape and resizable-window support.
- **Compound severity scoring:** Raises severity when several weak signals combine into a larger risk.
- **Layout health score:** Rates the project as adaptive, rigid or broken with supporting metrics.
- **Device test checklist:** Recommends testing on small iPhone, iPad Split View and Stage Manager sizes.

## Good for

- Review my SwiftUI views for layout problems
- Find GeometryReader misuse in my code
- Check why my layout breaks on iPad Split View
- Scan my SwiftUI code for hardcoded sizes and breakpoints
- Audit my app for controls placed under ignoresSafeArea

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/axiom-audit-swiftui-layout` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/axiom-audit-swiftui-layout &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-swiftui-layout" ~/.claude/skills/axiom-audit-swiftui-layout &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/axiom-audit-swiftui-layout` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/axiom-audit-swiftui-layout` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/axiom-audit-swiftui-layout &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-swiftui-layout" ~/.agents/skills/axiom-audit-swiftui-layout &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/axiom-audit-swiftui-layout` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/axiom-audit-swiftui-layout` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/axiom-audit-swiftui-layout &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-swiftui-layout" ~/.cursor/skills/axiom-audit-swiftui-layout &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/axiom-audit-swiftui-layout` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/CharlesWiltgen/Axiom.git --path axiom-codex/skills/axiom-audit-swiftui-layout
```

Or copy the folder to `~/.gemini/skills/axiom-audit-swiftui-layout` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/axiom-audit-swiftui-layout`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/axiom-audit-swiftui-layout &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-swiftui-layout" ~/.copilot/skills/axiom-audit-swiftui-layout &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/axiom-audit-swiftui-layout` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git
```

Then copy `Axiom/axiom-codex/skills/axiom-audit-swiftui-layout` into your agent's skills folder as `axiom-audit-swiftui-layout`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What triggers Axiom audit swiftui layout?

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

### What does Axiom audit swiftui layout need to run?

It needs access to the SwiftUI source files in the project, which it searches and reads with Glob, Grep and Read. It uses no scripts.

### Does Axiom audit swiftui layout change my code?

The skill describes an audit report with suggested fixes. Its instructions do not direct the agent to edit files.

### Which files does Axiom audit swiftui layout skip?

It excludes test files, preview files, and dependency or build folders such as Pods, Carthage, .build and DerivedData.

### How do I install Axiom audit swiftui layout in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/axiom-audit-swiftui-layout to use it in all your projects, or to .claude/skills/axiom-audit-swiftui-layout in one project.

### Does Axiom audit swiftui layout run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Axiom audit swiftui layout?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Axiom audit swiftui layout?

The closest alternatives to Axiom audit swiftui layout are Axiom audit swiftui architecture, Axiom analyze swiftui performance, Axiom audit accessibility, Axiom audit UX flow and Axiom audit testing.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Axiom audit swiftui architecture](https://ai-powered.com/skills/axiom-audit-swiftui-architecture): Axiom audit swiftui architecture is an open-source agent skill for developer tools.
- [Axiom analyze swiftui performance](https://ai-powered.com/skills/axiom-analyze-swiftui-performance): Axiom analyze swiftui performance is an open-source agent skill for developer tools.
- [Axiom audit accessibility](https://ai-powered.com/skills/axiom-audit-accessibility): Axiom audit accessibility is an open-source agent skill for developer tools.
- [Axiom audit UX flow](https://ai-powered.com/skills/axiom-audit-ux-flow): Axiom audit UX flow is an open-source agent skill for developer tools.
- [Axiom audit testing](https://ai-powered.com/skills/axiom-audit-testing): Axiom audit testing is an open-source agent skill for developer tools.
- [Axiom audit resize](https://ai-powered.com/skills/axiom-audit-resize): Axiom audit resize is an open-source agent skill for developer tools.
- [Axiom audit swiftui nav](https://ai-powered.com/skills/axiom-audit-swiftui-nav): Axiom audit swiftui nav is an open-source agent skill for developer tools.
- [Axiom audit liquid glass](https://ai-powered.com/skills/axiom-audit-liquid-glass): Axiom audit liquid glass is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/axiom-audit-swiftui-layout
