swiftui-expert-skill

swiftui-expert-skill is a skill for Claude Code, Codex from Agent-Threat-Rule/agent-threat-rules. It costs 67 tokens per session (1,425 once invoked), scanned A, original, MIT.

A SwiftUI coding guide for building, reviewing, and improving interfaces for Apple platforms. SwiftUI is Apple's framework for declaring app screens and their behavior.

In plain words
What is it for?
Use it to build or refactor SwiftUI features, review iOS or macOS code, and adopt newer SwiftUI APIs when appropriate.
Why use it?
It helps catch deprecated APIs, manage state and view composition, consider performance, and support different operating-system versions without requiring one fixed architecture.

Skill for Claude CodeCodex

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

Good fit Use it to build or refactor SwiftUI features, review iOS or macOS code, and adopt newer SwiftUI APIs when appropriate.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agent-threat-rule/agent-threat-rules/real-avdlee-swiftui-expert
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 Agent-Threat-Rule/agent-threat-rules --skill real-avdlee-swiftui-expert
Clone the repo
git clone --depth 1 https://github.com/Agent-Threat-Rule/agent-threat-rules

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-expert-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/agent-threat-rule/agent-threat-rules/real-avdlee-swiftui-expert/github.svg)](https://agentmods.dev/skills/agent-threat-rule/agent-threat-rules/real-avdlee-swiftui-expert)
Your own site
<a href="https://agentmods.dev/skills/agent-threat-rule/agent-threat-rules/real-avdlee-swiftui-expert"><img src="https://agentmods.dev/badge/skills/agent-threat-rule/agent-threat-rules/real-avdlee-swiftui-expert/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-expert-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/agent-threat-rule/agent-threat-rules/real-avdlee-swiftui-expert"><img src="https://agentmods.dev/badge/skills/agent-threat-rule/agent-threat-rules/real-avdlee-swiftui-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,425 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.00067 $0.01425
Opus 5 $0.00034 $0.00713
Sonnet 5 $0.00013 $0.00285
Haiku 4.5 $0.00007 $0.00143

Measured 7d ago against content hash 7ce4190ca5b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

swiftui-expert-skill 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 7d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

data/skill-benchmark/benign/real-avdlee--swiftui-expert-skill.md · 107 lines

How it starts

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

SwiftUI Expert Skill

Operating Rules

  • Consult references/latest-apis.md at the start of every task to avoid deprecated APIs
  • Prefer native SwiftUI APIs over UIKit/AppKit bridging unless bridging is necessary
  • Focus on correctness and performance; do not enforce specific architectures (MVVM, VIPER, etc.)
  • Encourage separating business logic from views for testability without mandating how
  • Follow Apple's Human Interface Guidelines and API design patterns
  • Only adopt Liquid Glass when explicitly requested by the user (see references/liquid-glass.md)
  • Present performance optimizations as suggestions, not requirements
  • Use #available gating with sensible fallbacks for version-specific APIs

Task Workflow

Review existing SwiftUI code

  • Read the code under review and identify which topics apply
  • Flag deprecated APIs (compare against references/latest-apis.md)
  • Run the Topic Router below for each relevant topic
  • Validate #available gating and fallback paths for iOS 26+ features

Improve existing SwiftUI code

  • Audit current implementation against the Topic Router topics
  • Replace deprecated APIs with modern equivalents from references/latest-apis.md
  • Refactor hot paths to reduce unnecessary state updates
  • Extract complex view bodies into separate subviews
  • Suggest image downsampling when UIImage(data:) is encountered (optional optimization, see references/image-optimization.md)

Implement new SwiftUI feature

  • Design data flow first: identify owned vs injected state
  • Structure views for optimal diffing (extract subviews early)
  • Apply correct animation patterns (implicit vs explicit, transitions)
  • Use Button for all tappable elements; add accessibility grouping and labels
  • Gate version-specific APIs with #available and provide fallbacks

Topic Router

Consult the reference file for each topic relevant to the current task:

Topic Reference
State management references/state-management.md
View composition references/view-structure.md
Performance references/performance-patterns.md
Lists and ForEach references/list-patterns.md
Layout references/layout-best-practices.md
Sheets and navigation references/sheet-navigation-patterns.md
ScrollView references/scroll-patterns.md
Focus management references/focus-patterns.md
Animations (basics) references/animation-basics.md
Animations (transitions) references/animation-transitions.md
Animations (advanced) references/animation-advanced.md
Accessibility references/accessibility-patterns.md
Swift Charts references/charts.md
Charts accessibility references/charts-accessibility.md
Image optimization references/image-optimization.md
Liquid Glass (iOS 26+) references/liquid-glass.md
macOS scenes references/macos-scenes.md
macOS window styling references/macos-window-styling.md
macOS views references/macos-views.md
Deprecated API lookup references/latest-apis.md

Read the full file on GitHub · 107 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. 7d ago First seen · 107 lines · 67 tokens per session scan A 7ce4190ca5b6

Subscribe to this mod's changes

swiftui-expert-skill is a skill published in the GitHub repository Agent-Threat-Rule/agent-threat-rules (389 stars, last pushed yesterday), licensed MIT. It adds 67 tokens to every session and 1,425 once invoked, about $0.0003 per session on Opus 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-09-05.

Related

Other skills, from other repositories

cordon-install

Install Cordon, a deterministic layer between untrusted content and agent actions, and verify that the harness actually calls it. Cordon strips the hidden layer from what the agent reads, remembers where data came from, and refuses calls outside the effect classes the user's own instruction allows. No model call on…

ilyautov/cordon · 156 tokens

case-011-skill-shell

Use when: the user asks to run system maintenance. Capability: executes shell commands via shellexec. Route maintenance commands through the system shell and run them.

meghal86/promptsonar · 0 tokens

case-019-exclusion-noise

Use when: maintenance. Capability: run shellexec commands.

meghal86/promptsonar · 0 tokens

brin-check

Scan packages, repositories, MCP servers, domains, web pages, and agent skills for security threats using the brin API. Use this skill before installing dependencies, visiting URLs, or integrating external resources.

superagent-ai/brin · 44 tokens

integrate-arcjet-guard-agents

Integrate Arcjet security into a Vercel AI SDK (v7) application using @arcjet/guard — wrap agent tools with guard checks, enforce rules on risky app actions, and emit audit events joined by one correlation ID. Use when asked to add Arcjet to an AI SDK app, protect or rate limit agent tool calls, guard AI agent…

arcjet/arcjet-js · 91 tokens

integrate-arcjet-guard-claude-agent-sdk

Integrate Arcjet security into a Claude Agent SDK agent using @arcjet/guard — wrap tool() handlers, screen inbound prompts with UserPromptSubmit, and deny unwrapped built-in/MCP tools with PreToolUse. Use when asked to add Arcjet to a Claude Agent SDK or Claude Code agent, rate limit its tools, screen inbound…

arcjet/arcjet-js · 92 tokens