chowser: Skill for Claude Code

.agents/skills/swift-performance-optimization-skill/SKILL.md

Swift Performance Optimization Skill is a skill for Claude Code, Codex from bsreeram08/chowser. It costs 25 tokens per session (1,867 once invoked), scanned A, original, MIT.

A guide to improving the speed, memory use, and rendering of Swift apps. It uses Instruments, Apple's profiling tool, to find bottlenecks before changing code.

In plain words
What is it for?
Use it to profile CPU and memory use, reduce main-thread work, choose efficient data structures, lazy-load resources, cache expensive calculations, and improve UI rendering.
Why use it?
It prevents guesswork by focusing optimization on measured CPU, memory, loading, or drawing problems. It also helps keep expensive work away from the user interface.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is bsreeram08/chowser's own configuration. It tells Claude Code and Codex how to work on chowser itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything chowser configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/bsreeram08/chowser/main/.agents/skills/swift-performance-optimization-skill/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bsreeram08/chowser

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for Swift Performance Optimization Skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/bsreeram08/chowser/swift-performance-optimization-skill/github.svg)](https://agentmods.dev/skills/bsreeram08/chowser/swift-performance-optimization-skill)
Your own site
<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.

agentmods 80×15 button for Swift Performance Optimization Skill

Your own site · 80×15
<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>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,867 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash 96c44d37638c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.agents/skills/swift-performance-optimization-skill/SKILL.md · 300 lines

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

  1. Profile First: Always use Instruments to identify bottlenecks before optimizing.

  2. Memory Management: Understand ARC, avoid retain cycles, and manage memory efficiently.

  3. Lazy Loading: Defer expensive operations and use lazy properties when appropriate.

  4. Efficient Collections: Choose the right data structures and operations for performance.

  5. UI Performance: Optimize rendering with techniques like cell reuse and background processing.

  6. 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)
                }
            }
        }
    }
}

Read the full file on GitHub · 300 lines

Files

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.

Changes

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.

  1. 4d ago First seen · 300 lines · 25 tokens per session scan A 96c44d37638c

Subscribe to this mod's changes

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.

Related

Swift Performance Optimization Skill compared with skills from other repositories

Swift Performance Optimization Skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Swift Performance Optimization Skillbsreeram08/chowserSkill121mo agoMITA25Claude Code, Codex
ios-signing-troubleshootingmilisp/mcp-linkerSkill3441mo agoAGPL-3.0A59Claude Code
ios-simulator-build-runmilisp/mcp-linkerSkill3441mo agoAGPL-3.0A55Claude Code
ipad-layout-auditcruisediary/apple-app-review-skillsSkill207mo agoMITA49Claude Code, Codex
node-connectopenclaw/openclawSkill396ktodayMITA39Claude Code, Codex
jetpack-compose-performanceandroid/skillsSkill11k9d agoApache-2.0A41Claude Code
competition-ios-runtimezhaoxuya520/reverse-skillSkill46k18d agoMITA123Codex