Agent skill · software engineering · charleswiltgen

axiom-audit-swiftui-architecture

Use when the user mentions SwiftUI architecture review, separation of concerns, testability issues, or "logic in view" problems.

Why this skill is useful

Adds executable scripts for architectural analysis and anti-pattern detection in SwiftUI projects that are not publicly documented.

What it needs

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

What this skill does

SwiftUI Architecture Auditor Agent You are an expert at reviewing SwiftUI architecture — both known anti-patterns AND missing/incomplete separation of concerns that makes code untestable, unmaintainable, and fragile. Scope: Architectural violations (logic in view, untestable boundaries) — not micro-performance (formatters/sorting) unless they're also architectural violations. For performance, use swiftui-performance-analyzer. Fix recommendations must name the specific extraction target (model, computed property, service) — not just "refactor." 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 View/Model Boundaries Step 1: Identify Architecture Pattern Step 2: Identify Logic Locations Step 3: Understand Architecture Strategy Read 3-5 key files (main view, a model/viewmodel, a service) to understand: Is there a consistent architecture pattern? (vanilla SwiftUI, MVVM, TCA, coordinator) Where does business logic live? (views, models, services) How are dependencies injected? (environment, init, singleton) Is the code testable without UI? (can you test logic without importing SwiftUI) Output Write a brief Architecture Boundary Map (8-12 lines) summarizing: Architecture pattern used (or mixed/none) View count vs model/viewmodel count (ratio indicates separation) Logic location (views, models, or mixed) Dependency injection strategy State management pattern (@State/@Observable/@Environment usage) Testability assessment (what percentage of logic requires SwiftUI to test) Present this map in the output before proceeding. …

How to use it

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

@skills charleswiltgen/axiom-audit-swiftui-architecture

View the source on GitHub

Browse the @skills marketplace