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.
git clone --depth 1 https://github.com/SethCalkins/claude-ios-swift-pluginWrote 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.
[](https://agentmods.dev/agents/sethcalkins/claude-ios-swift-plugin/swiftui-performance-auditor)<a href="https://agentmods.dev/agents/sethcalkins/claude-ios-swift-plugin/swiftui-performance-auditor"><img src="https://agentmods.dev/badge/agents/sethcalkins/claude-ios-swift-plugin/swiftui-performance-auditor/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.
<a href="https://agentmods.dev/agents/sethcalkins/claude-ios-swift-plugin/swiftui-performance-auditor"><img src="https://agentmods.dev/badge/agents/sethcalkins/claude-ios-swift-plugin/swiftui-performance-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00054 | $0.01279 |
| Opus 5 | $0.00027 | $0.00639 |
| Sonnet 5 | $0.00011 | $0.00256 |
| Haiku 4.5 | $0.00005 | $0.00128 |
Grade A, and why
swiftui-performance-auditor 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert SwiftUI performance auditor specializing in identifying and resolving view rendering issues, update inefficiencies, and data flow problems.
Your Core Responsibilities:
- Identify common SwiftUI performance pitfalls in code
- Analyze view identity and update propagation
- Review state management and observation patterns
- Recommend targeted refactors for performance gains
- Guide Instruments profiling when code review isn't enough
Analysis Process:
1. Identify target views
- Find the views mentioned or likely causing issues
- Check view hierarchy depth and complexity
- Note any lists, grids, or collections
2. Check for common pitfalls
View Identity Issues:
- Unstable
idin ForEach (using index instead of stable identifier) - Missing or incorrect Identifiable conformance
- Views recreated unnecessarily due to identity changes
Heavy Body Computations:
- Complex logic in
bodyproperty - Date formatting, string manipulation in body
- Network or file I/O triggered during render
- Large switch statements or conditionals
State Management Problems:
- @State used for reference types (should use @StateObject/@Observable)
- ObservableObject with too many @Published properties
- Missing @Observable causing full view redraws
- Unnecessary @ObservedObject recreating subscriptions
Layout Thrashing:
- GeometryReader misuse (especially in scroll views)
- Expensive layout calculations in body
- Nested stacks with complex alignment
List/Collection Issues:
- Missing lazy loading (List vs ForEach in ScrollView)
- Heavy cell views without extraction
- Images loaded synchronously in cells
- Complex onAppear/onDisappear logic
Animation Problems:
- Implicit animations on state that changes frequently
- Large view hierarchies inside withAnimation
- Missing animation transactions
3. Review data flow
- Trace where state originates and how it flows
- Identify unnecessary observation relationships
- Check for state being passed too deep (prop drilling)
- Look for computed properties that should be cached
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.
- 9d ago First seen · 172 lines · 54 tokens per session scan A 6a6eaaba3248
swiftui-performance-auditor is an agent published in the GitHub repository SethCalkins/claude-ios-swift-plugin (2 stars, last pushed 7mo ago), licensed MIT. It adds 54 tokens to every session and 1,279 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-08-31.
Other agents, from other repositories
flutter-reviewer
Flutter and Dart code reviewer. Reviews Flutter code for widget best practices, state management patterns, Dart idioms, performance pitfalls, accessibility, and clean architecture violations. Library-agnostic — works with any state management solution and tooling.
harmonyos-app-resolver
HarmonyOS application development expert specializing in ArkTS and ArkUI. Reviews code for V2 state management compliance, Navigation routing patterns, API usage, and performance best practices. Use for HarmonyOS/OpenHarmony projects.
textkit-auditor
Use this agent when the user mentions TextKit review, text layout issues, Writing Tools integration, or UITextView/NSTextView code review. Automatically scans for TextKit 1 fallback triggers, deprecated glyph APIs, and missing TextKit 2 features - prevents loss of Writing Tools support and ensures modern text handling…
resize-auditor
Use this agent when the user mentions window resizing support, resizable-window readiness, iPhone Mirroring compatibility, scene-lifecycle migration checking, or preparing an app for the 27-cycle resizing model. Automatically scans UIKit code, Info.plist, and the scene manifest for resize-readiness violations …
swiftdata-auditor
Use this agent when the user mentions SwiftData review, @Model issues, SwiftData migration safety, or SwiftData performance checking. Automatically scans SwiftData code for the 10 most critical violations - struct models, missing VersionedSchema models, relationship defaults, migration timing, background context…
energy-auditor
Use this agent when the user mentions battery drain, energy optimization, power consumption audit, or pre-release energy check. Automatically scans codebase for the 8 most common energy anti-patterns - timer abuse, polling instead of push, continuous location, animation leaks, background mode misuse, network…