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/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/skills/desquared/agents-rules-skills/ios-performance-profiler"><img src="https://agentmods.dev/badge/skills/desquared/agents-rules-skills/ios-performance-profiler.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.00056 | $0.01468 |
| Opus 5.5 | $0.00022 | $0.00587 |
| Sonnet 5.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 3mo 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.
- 3mo 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 1mo ago), licensed MIT. It adds 56 tokens to every session and 1,468 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-08-31.
ios-performance-profiler compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ios-performance-profilerDesquared/agents-rules-skills | Skill | 4 | 1mo ago | MIT | A | 56 | Claude Code, Codex |
| app-store-reviewjacklandrin/OnlySwitch | Skill | 6.1k | 3d ago | MIT | A | 76 | Claude Code, Codex |
| swift-concurrency-projacklandrin/OnlySwitch | Skill | 6.1k | 3d ago | MIT | A | 35 | Codex |
| swiftui-protwostraws/SwiftUI-Agent-Skill | Skill | 6.6k | 1mo ago | MIT | A | 36 | Claude Code, Codex |
| swiftui-auditfcakyon/claude-codex-settings | Skill | 1.2k | today | Apache-2.0 | A | 52 | Claude Code |
| mobile-platform-offline-validateforcedotcom/sf-skills | Skill | 1.2k | 4d ago | Apache-2.0 | A | 207 | Claude Code |
| axiom-audit-cameraCharlesWiltgen/Axiom | Skill | 1.3k | 22d ago | MIT | A | 39 | Codex |