Borrowing it
Nothing to install: this file belongs to bsreeram08/chowser. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/bsreeram08/chowser/main/.agents/skills/swift-performance-optimization-skill/SKILL.mdgit clone --depth 1 https://github.com/bsreeram08/chowserWrote 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/bsreeram08/chowser/swift-performance-optimization-skill)<a href="https://agentmods.dev/skills/bsreeram08/chowser/swift-performance-optimization-skill"><img src="https://agentmods.dev/badge/skills/bsreeram08/chowser/swift-performance-optimization-skill/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/bsreeram08/chowser/swift-performance-optimization-skill"><img src="https://agentmods.dev/badge/skills/bsreeram08/chowser/swift-performance-optimization-skill.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.00025 | $0.01867 |
| Opus 5.5 | $0.00010 | $0.00747 |
| Sonnet 5.5 | $0.00005 | $0.00373 |
| Haiku 4.5 | $0.00003 | $0.00187 |
Grade A, and why
Swift Performance Optimization 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 4d 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 — 300 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Swift Performance Optimization Skill
This skill provides expertise in optimizing Swift code for better performance, memory efficiency, and smooth rendering. It covers profiling with Instruments, memory management best practices, and performance patterns specific to iOS development.
Best Practices
-
Profile First: Always use Instruments to identify bottlenecks before optimizing.
-
Memory Management: Understand ARC, avoid retain cycles, and manage memory efficiently.
-
Lazy Loading: Defer expensive operations and use lazy properties when appropriate.
-
Efficient Collections: Choose the right data structures and operations for performance.
-
UI Performance: Optimize rendering with techniques like cell reuse and background processing.
-
Concurrency: Use GCD or Swift Concurrency for background tasks without blocking the main thread.
Performance Guidelines
- Minimize work on the main thread, especially UI updates.
- Use Instruments Time Profiler to find CPU hotspots.
- Monitor memory usage with Allocations and Leaks instruments.
- Optimize images and assets for size and loading.
- Cache expensive computations when possible.
- Avoid unnecessary view updates in SwiftUI with proper state management.
Examples
Example 1: Optimizing SwiftUI List Performance
User Prompt: "How can I optimize a SwiftUI List with many items that's scrolling slowly?"
Expected Output:
import SwiftUI
struct OptimizedListView: View {
let items = Array(1...10000) // Large dataset
var body: some View {
List(items, id: \.self) { item in
OptimizedRowView(item: item)
}
.listStyle(.plain)
}
}
struct OptimizedRowView: View {
let item: Int
var body: some View {
HStack {
Text("Item \(item)")
Spacer()
Image(systemName: "star")
.foregroundColor(.yellow)
}
.padding(.vertical, 8)
// Avoid complex computations in body
// Use @StateObject for view models if needed
}
}
// For even better performance with large datasets:
struct LazyOptimizedListView: View {
let items = Array(1...10000)
var body: some View {
ScrollView {
LazyVStack {
ForEach(items, id: \.self) { item in
OptimizedRowView(item: item)
}
}
}
}
}
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.
- 4d ago First seen · 300 lines · 25 tokens per session scan A 96c44d37638c
Swift Performance Optimization Skill is a skill published in the GitHub repository bsreeram08/chowser (12 stars, last pushed 1mo ago), licensed MIT. It adds 25 tokens to every session and 1,867 once invoked, about $0.0001 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-28.
Swift Performance Optimization Skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Swift Performance Optimization Skillbsreeram08/chowser | Skill | 12 | 1mo ago | MIT | A | 25 | Claude Code, Codex |
| ios-signing-troubleshootingmilisp/mcp-linker | Skill | 344 | 1mo ago | AGPL-3.0 | A | 59 | Claude Code |
| ios-simulator-build-runmilisp/mcp-linker | Skill | 344 | 1mo ago | AGPL-3.0 | A | 55 | Claude Code |
| ipad-layout-auditcruisediary/apple-app-review-skills | Skill | 20 | 7mo ago | MIT | A | 49 | Claude Code, Codex |
| node-connectopenclaw/openclaw | Skill | 396k | today | MIT | A | 39 | Claude Code, Codex |
| jetpack-compose-performanceandroid/skills | Skill | 11k | 9d ago | Apache-2.0 | A | 41 | Claude Code |
| competition-ios-runtimezhaoxuya520/reverse-skill | Skill | 46k | 18d ago | MIT | A | 123 | Codex |