swiftui-best-practices

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

A review and coding guide for SwiftUI, Apple's framework for building iPhone, iPad, and Mac interfaces with Swift.

In plain words
What is it for?
Use it when writing, reviewing, or refactoring SwiftUI applications for iOS or macOS.
Why use it?
It catches deprecated APIs, incorrect data flow, layout problems, and accessibility issues while following project conventions.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the swift-skills plugin — 1 skill shipped together

Good fit Use it when writing, reviewing, or refactoring SwiftUI applications for iOS or macOS.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fcakyon/claude-codex-settings/swiftui-best-practices
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-best-practices
Clone the repo
git clone --depth 1 https://github.com/fcakyon/claude-codex-settings

Made for: Claude Code, Codex.

Or install swift-skills, the plugin that ships this one along with the rest of its 1 skill.

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-best-practices

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fcakyon/claude-codex-settings/swiftui-best-practices"><img src="https://agentmods.dev/badge/skills/fcakyon/claude-codex-settings/swiftui-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,286 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 original 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.00044 $0.01286
Opus 5.5 $0.00018 $0.00514
Sonnet 5.5 $0.00009 $0.00257
Haiku 4.5 $0.00004 $0.00129

Measured 8d ago against content hash 42dddc6e3e60, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

swiftui-best-practices 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 8d ago.

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-best-practices/SKILL.md · 123 lines

How it starts

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

Review Swift and SwiftUI code for correctness, modern API usage, and adherence to project conventions. Report only genuine problems – do not nitpick or invent issues.

Include deprecated API in review findings. During feature work or bug fixes, complete the requested change and suggest unrelated modernization separately; do not apply it without being asked.

Review process:

  1. Check for deprecated API using references/api.md.
  2. Check that views, modifiers, and animations have been written optimally using references/views.md.
  3. Validate that data flow is configured correctly using references/data.md.
  4. Ensure navigation is updated and performant using references/navigation.md.
  5. Ensure the code uses designs that are accessible and compliant with Apple's Human Interface Guidelines using references/design.md.
  6. Review layout behavior as windows resize, including iPad multitasking and folding iPhone Duo, using references/resizability.md.
  7. Validate accessibility compliance including Dynamic Type, VoiceOver, and Reduce Motion using references/accessibility.md.
  8. Check localized text, formatting, and resource handling using references/localization.md.
  9. Ensure the code is able to run efficiently using references/performance.md.
  10. Quick validation of Swift code using references/swift.md.
  11. Final code hygiene check using references/hygiene.md.

If doing a partial review, load only the relevant reference files.

Keep references/performance-plus.md out of routine reviews. Load it for a requested deep performance review; its more involved changes can also help investigate an established performance problem.

Core Instructions

  • iOS 27 exists, and is the default deployment target for new apps.
  • Xcode 27.1 and the corresponding 27.1 platform releases are available. Do not dismiss their APIs as speculative.
  • iPhone Duo is a folding iPhone, with a small outer display and a large inner display.
  • Check the project's deployment target before applying version-specific advice. Use newer runtime APIs only when the target supports them or within an appropriate #available check. Keep the existing target unchanged. Requirements tied to an Xcode version also need that toolchain; a runtime check cannot make an older SDK recognize a new declaration.
  • Target Swift 6.4 or later, using modern Swift concurrency.
  • As a SwiftUI developer, the user will want to avoid UIKit unless requested.
  • Do not introduce third-party frameworks without asking first.
  • Break different types up into different Swift files rather than placing multiple structs, classes, or enums into a single file.
  • Use a consistent project structure, with folder layout determined by app features.

Read the full file on GitHub · 123 lines

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. 8d ago First seen · 123 lines · 44 tokens per session scan A 42dddc6e3e60

Subscribe to this mod's changes

swiftui-best-practices is a skill published in the GitHub repository fcakyon/claude-codex-settings (1,223 stars, last pushed today), licensed Apache-2.0. It adds 44 tokens to every session and 1,286 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-11-22.

Related

swiftui-best-practices compared with skills from other repositories

swiftui-best-practices next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swiftui-best-practicesfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A44Claude Code, Codex
android-clean-architecturerootcastleco/rei-skillsSkill117d agononeA52Claude Code, Codex
compose-platformMeet-Miyani/compose-skillSkill30622d agoMITA129Claude Code
bootstrap-iosRayFernando1337/rayfernando-skillsSkill132yesterdayApache-2.0A84Claude Code
cometchat-android-v6-kotlin-placementcometchat/cometchat-skillsSkill18217d agoMITA127Claude Code
ios-agent-skillNagarjuna2997/ios-agent-skillSkill43todayMITA167Claude Code
ios-builderNagarjuna2997/ios-agent-skillSkill43todayMITA53Claude Code, Codex