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 kelvinkosbab/AppBootstrapAI --skill swift-memory-storage-progit clone --depth 1 https://github.com/kelvinkosbab/AppBootstrapAIWrote 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/kelvinkosbab/appbootstrapai/swift-memory-storage-pro)<a href="https://agentmods.dev/skills/kelvinkosbab/appbootstrapai/swift-memory-storage-pro"><img src="https://agentmods.dev/badge/skills/kelvinkosbab/appbootstrapai/swift-memory-storage-pro/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/kelvinkosbab/appbootstrapai/swift-memory-storage-pro"><img src="https://agentmods.dev/badge/skills/kelvinkosbab/appbootstrapai/swift-memory-storage-pro.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.00130 | $0.01254 |
| Opus 5.5 | $0.00052 | $0.00502 |
| Sonnet 5.5 | $0.00026 | $0.00251 |
| Haiku 4.5 | $0.00013 | $0.00125 |
Grade A, and why
swift-memory-storage-pro 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 today.
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 — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Audit Swift code for memory and storage problems. This is the deep-review companion to the always-on apple-memory-management.md and apple-storage-management.md rules: the rules steer while writing; this skill traces ownership, footprint, and file placement across whole features. Report only genuine problems.
If asked to fix rather than review, make the changes directly and summarize them in the same file-by-file format.
Review process:
- Leaks. For each type that stores closures, Tasks, Combine subscriptions, timers, observers, or delegates, trace who owns whom using
references/retain-cycles.md. A cycle needs a path back toself; confirm it before reporting. - Footprint. Check image decoding, in-memory caches, collection loading, and extension budgets using
references/memory-footprint.md. - Storage. For every file write, UserDefaults key, Keychain item, and disk cache, check the location, backup status, protection class, size cap, and privacy manifest reason using
references/storage-layout.md. - Evidence. When the user reports a symptom (memory growth, jetsam exits, disk use), or before you claim a fix worked, use
references/measuring.mdto reproduce and confirm it with the memory graph, Instruments, MetricKit, or a leak test. Add a leak test for each cycle you fix.
For a partial review (only leaks, only storage), load only the matching reference.
Core Instructions
- A cycle is only a finding when you can name the path.
self→cancellables→ sink closure →selfis a cycle; a[weak self]missing from a non-escaping or one-shot closure is not. Don't spray[weak self]everywhere as a "fix". - Size findings in bytes. "Decodes a 4032×3024 photo for a 60pt thumbnail: ~48 MB per cell" is actionable; "large image" is not.
- Location findings name the consequence: backed up when it shouldn't be (iCloud bloat, App Review), purgeable when it shouldn't be (offline content disappears), readable while locked when it holds sensitive data.
- Severity by user impact: crash or data loss (jetsam on a common flow, secrets in plain files, offline content in Caches, missing privacy manifest reason) > degraded (leaked view models, unbounded cache growth, backup bloat) > hygiene (missing size cap on a small cache, no storage settings screen).
- Cross-reference, don't duplicate: actor isolation belongs to
swift-concurrency-pro; Core Data and SwiftData store setup tocoredata-swift6-pro/swiftdata-pro; logging what you measured toswift-logging-pro.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- today First seen · 73 lines · 130 tokens per session scan A e3654e97eaca
swift-memory-storage-pro is a skill published in the GitHub repository kelvinkosbab/AppBootstrapAI (8 stars, last pushed today), licensed MIT. It adds 130 tokens to every session and 1,254 once invoked, about $0.0005 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-06.
swift-memory-storage-pro compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| swift-memory-storage-prokelvinkosbab/AppBootstrapAI | Skill | 8 | today | MIT | A | 130 | Claude Code |
| kmp-glassmorphism-uiAks-4125/kmp-glassmorphism-skill | Skill | 5 | 3mo ago | MIT | A | 81 | Claude Code, Codex |
| argent-settings-permissionssoftware-mansion/argent | Skill | 3.2k | yesterday | Apache-2.0 | A | 140 | Claude Code, Codex |
| argent-react-native-optimizationsoftware-mansion/argent | Skill | 3.2k | yesterday | Apache-2.0 | A | 71 | Claude Code, Codex |
| mobile-automationmobile-next/mobile-mcp | Skill | 10k | 4d ago | Apache-2.0 | A | 58 | Claude Code, Codex |
| sceneviewsceneview/sceneview | Skill | 1.4k | yesterday | Apache-2.0 | A | 156 | Codex |
| argent-tv-interactsoftware-mansion/argent | Skill | 3.2k | yesterday | Apache-2.0 | A | 107 | Claude Code, Codex |