swiftui-audit

swiftui-audit is a skill for Claude Code, Codex from fcakyon/claude-codex-settings. It costs 52 tokens per session (1,093 once invoked), scanned A, original, Apache-2.0.

This skill should be used when the user asks to "audit SwiftUI code", "scan a SwiftUI project for deprecated API", "find SwiftUI anti-patterns", or run a static SwiftUI check before a review or release.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install with agentmods
npx agentmods add skills/fcakyon/claude-codex-settings/swiftui-audit
About the project

claude-codex-settings is a collection of configurations and reusable extensions for Claude Code, OpenAI Codex, Cursor, and related coding tools. Developers use its skills, commands, hooks, agents, plugins, and MCP servers to shape coding-agent workflows and connect alternative model APIs. The catalogue entries are components of this collection that can be installed into supported coding tools.

fcakyon/claude-codex-settings · 1,223 stars · on GitHub · claudesettings.com

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 fcakyon/claude-codex-settings --skill swiftui-audit
Clone the repo
git clone --depth 1 https://github.com/fcakyon/claude-codex-settings

Made for: Claude Code, Codex.

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 swiftui-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/fcakyon/claude-codex-settings/swiftui-audit/github.svg)](https://agentmods.dev/skills/fcakyon/claude-codex-settings/swiftui-audit)
Your own site
<a href="https://agentmods.dev/skills/fcakyon/claude-codex-settings/swiftui-audit"><img src="https://agentmods.dev/badge/skills/fcakyon/claude-codex-settings/swiftui-audit/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 swiftui-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/fcakyon/claude-codex-settings/swiftui-audit"><img src="https://agentmods.dev/badge/skills/fcakyon/claude-codex-settings/swiftui-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,093 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 unknown 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.00052 $0.01093
Opus 5.5 $0.00021 $0.00437
Sonnet 5.5 $0.00010 $0.00219
Haiku 4.5 $0.00005 $0.00109

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

Security

Grade A, and why

swiftui-audit 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 today.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/swiftui-audit.mjs, tests/swiftui-audit.test.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/swift-skills/skills/swiftui-audit/SKILL.md · 55 lines

How it starts

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

SwiftUI audit

Run the bundled auditor first. It finds a small set of patterns that can be recognized from source text alone, then the swiftui-best-practices skill covers everything that needs judgment.

node scripts/swiftui-audit.mjs <app-or-package-dir> [--json] [--target ios=17,macos=14] [--include-tests]
  • Node with no dependencies. The tests pass on Node 24 (Linux) and Node 22 (macOS).
  • The deployment target comes from platforms: in Package.swift or *_DEPLOYMENT_TARGET in project.pbxproj, inside the scan root or its nearest parent that has one. With several targets, the lowest per platform wins. --target overrides it. The output names the source, or says the target is unknown.
  • Comments and string contents are masked before matching, so commented-out code and text in literals never match.
  • .build, DerivedData, Pods, Carthage, SourcePackages, checkouts, node_modules, *.xcodeproj, directories ending in Tests and files ending in Tests.swift are skipped. --include-tests scans tests too.
  • Exit code 1 means findings were printed, 0 means none, 2 means a usage error.

Rules

Each finding gives the file, line, rule, the code, the problem and the next action. fix means the replacement is mechanical. review means the next action starts with "Needs human context" and names the fact to check before changing anything.

Rule Level Flags Kept off when
index-identity review ForEach(x.indices, ...), ForEach(0..<x.count, ...) or enumerated() with id: \.offset element IDs, literal ranges, for loops
text-concatenation review Text + Text chains (one finding per chain) and Text("a" + b) + inside interpolation, Text(verbatim:), + not next to a literal
foreground-color fix .foregroundColor() modifier inside a reported Text + chain, target below iOS 15 / macOS 12
view-argument-overload fix .background(Circle()), .overlay(MyView()), .mask(...) with a built-in or project-declared View or Shape style arguments, in: shapes, closures, unknown types
onchange-single-parameter fix .onChange(of:) { value in } and perform: zero or two parameters, initial:, target below iOS 17 / macOS 14
animation-without-value fix .animation(x) modifier without value: TimelineView(.animation...), $binding.animation(), transitions, the .animation(x) { } body form
corner-radius-modifier fix .cornerRadius() modifier RoundedRectangle(cornerRadius:) and other labels
state-not-private review @State or @StateObject without private private and private(set)

Read the full file on GitHub · 55 lines

Files

What ships with it

2 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. today First seen · 55 lines · 52 tokens per session scan A ca019abc2d0d

Subscribe to this mod's changes

swiftui-audit is a skill published in the GitHub repository fcakyon/claude-codex-settings (1,223 stars, last pushed today), licensed Apache-2.0. It adds 52 tokens to every session and 1,093 once invoked, about $0.0002 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-12-01.

Related

swiftui-audit compared with skills from other repositories

swiftui-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swiftui-auditfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A52Claude Code, Codex
github-pr-workflowpaperclipai/paperclipSkill118ktodayMITA39Claude Code, Codex
git-authoringn-shadloo/git-authoringSkill51mo agoMITA225Claude Code
task-landloncadev/baronSkill11mo agoApache-2.0A73Claude Code
pr-reviewerAndrewNgGirl/SkillLensSkill456mo agoMITA65Claude Code, Codex
code-reviewfurkangonel/cowranglerSkill12mo agoMITA37Claude Code, Codex
address-github-commentsrootcastleco/rei-skillsSkill117d agononeA27Claude Code, Codex