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.
npx skills add Desquared/agents-rules-skills --skill ios-performance-profilergit clone --depth 1 https://github.com/Desquared/agents-rules-skillsWrote 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/skills/desquared/agents-rules-skills/ios-performance-profiler)<a href="https://agentmods.dev/skills/desquared/agents-rules-skills/ios-performance-profiler"><img src="https://agentmods.dev/badge/skills/desquared/agents-rules-skills/ios-performance-profiler.svg" alt="Measured on agentmods" 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.00056 | $0.01468 |
| Opus 5 | $0.00028 | $0.00734 |
| Sonnet 5 | $0.00011 | $0.00294 |
| Haiku 4.5 | $0.00006 | $0.00147 |
Grade A, and why
ios-performance-profiler 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.
How it starts
The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Performance Profiler
View Identity & Diffing
- Stable, persistent identity (
Identifiablewith stableid, avoid random UUIDs in rows) - Prefer value types + structural identity over class reference identity when possible
- Avoid
.id()unless absolutely necessary (use stable keys instead)
Body Computation & Redraws
- No heavy work (network, decoding, sorting, filtering) inside
body - Expensive derived state computed once and stored (
.onAppear, ViewModel, or memoized computed property) -
@State,@Bindable,@Observableproperties are narrowly scoped - Child views extracted when parent state changes frequently
- Prefer
@Observable(Observation framework) over@ObservableObject/@Publishedfor new code — finer-grained invalidation, less boilerplate
Lists & Large Collections
- Use
List/LazyVStack/LazyHGridinstead ofScrollView + ForEach + VStack - Rows are lightweight; avoid
@StateObject/@ObservedObjectinside row bodies - Use stable
Identifiableconformance or explicitid:key path
Concurrency & Main Actor (Swift 6 era)
-
@MainActorused appropriately on view-bound types (avoid overuse → thread hops) - Nonisolated properties / computed vars when safe
- Actors used for model / service layers; avoid
@MainActoron pure data models - No data races when using
@Observabletypes across concurrency domains - Prefer
.taskover.onAppearfor async work (automatic cancellation on view disappear, structured concurrency)
Environment & State Propagation
- Avoid injecting large
@Observableobjects via@Environmentwhen only a small slice of state is needed — extract a child view that reads only what it needs - Minimize over-subscription from
EnvironmentObject— split into focused, smaller observable types if necessary
Memory & Retain Cycles
-
[weak self]in async / escaping closures that captureself -
@StateObjectfor view-owned view models (not inListrows) - Remote images use proper caching (
AsyncImagewith cache, orKingfisher/Nuke) - Downscale images to display size before rendering (
.resizable()+.frame()alone doesn't reduce memory) - Use
preparingThumbnail(of:)for large images - Avoid long-lived strong references in
@Observable/@ObservableObject
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.
- 7d ago First seen · 128 lines · 56 tokens per session scan A 536ccd23c6db
ios-performance-profiler is a skill published in the GitHub repository Desquared/agents-rules-skills (4 stars, last pushed 24d ago), licensed MIT. It adds 56 tokens to every session and 1,468 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 skills, from other repositories
accessibility-cleanup
Finds common violations of the Android accessibility API in the Clank App Java code and attempts to address them (e.g. hardcoded state change announcements, missing events, focus moving, assertive live regions, etc).
app-store-review
Evaluates code against Apple's App Store Review Guidelines. Use this skill when reviewing iOS, macOS, tvOS, watchOS, or visionOS app code (Swift, Objective-C, React Native, or Expo) to identify potential App Store rejection issues before submission. Triggers on tasks involving app review preparation, compliance…
swift-concurrency-pro
Reviews Swift code for concurrency correctness, modern API usage, and common async/await pitfalls. Use when reading, writing, or reviewing Swift concurrency code.
swiftui-pro
Comprehensively reviews SwiftUI code for best practices on modern APIs, maintainability, and performance. Use when reading, writing, or reviewing SwiftUI projects.
axiom-audit-camera
Use this agent to scan Swift code for camera, video, and audio capture issues including deprecated APIs, missing interruption handlers, threading violations, and permission anti-patterns.
mobile-platform-offline-validate
Review a Lightning Web Component for mobile offline compatibility — the Komaci offline static analyzer that pre-primes the data graph for Salesforce Mobile App Plus and Field Service Mobile App. Produces a finding list with code-level fixes covering inline GraphQL queries in @wire configurations, modern lwc:if /…