performance

performance is a skill for Claude Code from rshankras/claude-code-apple-skills. It costs 50 tokens per session (377 once invoked), scanned A, original, MIT.

A collection of guides for measuring and diagnosing slow or resource-heavy iOS and macOS apps.

In plain words
What is it for?
It helps profile apps with Instruments and investigate CPU use, memory, launch time, energy use, and SwiftUI rendering.
Why use it?
It helps locate causes of hangs, high memory use, slow launches, battery drain, and excessive screen updates.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the apple-skills plugin — 147 skills shipped together , and of apple-skills

Install

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.

agentmods
npx agentmods add skills/rshankras/claude-code-apple-skills/performance
Any agent
npx skills add rshankras/claude-code-apple-skills --skill performance
Clone the repo
git clone --depth 1 https://github.com/rshankras/claude-code-apple-skills

Made for: Claude Code.

Or install apple-skills, the plugin that ships this one along with the rest of its 147 skills.

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 performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/performance.svg)](https://agentmods.dev/skills/rshankras/claude-code-apple-skills/performance)
Your own site
<a href="https://agentmods.dev/skills/rshankras/claude-code-apple-skills/performance"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/performance.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 377 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00050 $0.00377
Opus 5 $0.00025 $0.00188
Sonnet 5 $0.00010 $0.00075
Haiku 4.5 $0.00005 $0.00038

Measured 3d ago against content hash 169a0e491167, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

performance 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 3d 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.

skills/performance/SKILL.md · 37 lines

What it actually says

Performance Skills

Diagnose and fix performance problems, from system-level profiling to SwiftUI render behavior.

When This Skill Activates

Use this skill when the user:

  • Reports the app is slow, janky, or hanging
  • Wants to profile with Instruments (Time Profiler, Allocations, Hangs)
  • Is investigating memory issues, slow launches, or energy drain
  • Sees SwiftUI views re-rendering too often or slow body evaluations
  • Asks about view identity problems or _printChanges()

Available Skills

Paths are relative to THIS file's directory — skills run with cwd set to the user's project, so resolve each path from this SKILL.md's own location.

Skill Read Covers
profiling profiling/SKILL.md Instruments workflows; hangs, memory, slow launch, energy diagnosis
swiftui-debugging swiftui-debugging/SKILL.md Unnecessary re-renders, view identity, slow body evaluations

How to Route

  1. Match the request to a row above — system-level symptoms → profiling; SwiftUI render symptoms → swiftui-debugging.
  2. Read that SKILL.md (relative to this file) plus any reference files it lists.
  3. Apply the guidance to the user's code.
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. 3d ago First seen · 37 lines · 50 tokens per session scan A 169a0e491167

Subscribe to this mod's changes

performance is a skill published in the GitHub repository rshankras/claude-code-apple-skills (701 stars, last pushed 1mo ago), licensed MIT. It adds 50 tokens to every session and 377 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-09-03.

Related

Other skills, from other repositories

swift-performance-pro

Use when diagnosing or fixing performance — SwiftUI render cost, memory and retain cycles, slow lists, launch time, and using Instruments.

laxrajpurohit/swift-skills-pro · 31 tokens

swiftui-performance

Audit and improve SwiftUI runtime performance. Use when diagnosing slow rendering, janky scrolling, high CPU, memory usage, excessive view updates, layout thrash, body evaluation cost, identity churn, view lifetime issues, lazy loading, Instruments profiling guidance, and performance audit requests.

JordanCoin/ios-skills-collection · 59 tokens

motioneyes-animation-debug

Diagnose, fix, or validate SwiftUI animation and scroll behavior by temporarily instrumenting views with MotionEyes, capturing console traces over time, and comparing motion data to user intent or test expectations. Use when users report bugs such as wrong direction, premature fade, timing or easing mismatch…

JordanCoin/ios-skills-collection · 126 tokens

iOS Performance

Memory management, profiling, optimization techniques, and Instruments usage for high-performance iOS apps.

JordanCoin/ios-skills-collection · 21 tokens

swiftui-performance-audit

Audit and improve SwiftUI runtime performance from code review and architecture. Use for requests to diagnose slow rendering, janky scrolling, high CPU/memory usage, excessive view updates, or layout thrash in SwiftUI apps, and to provide guidance for user-run Instruments profiling when code review alone is…

JordanCoin/ios-skills-collection · 66 tokens

ios-debugger-agent

Use XcodeBuildMCP to build, run, launch, and debug the current iOS project on a booted simulator. Trigger when asked to run an iOS app, interact with the simulator UI, inspect on-screen state, capture logs/console output, or diagnose runtime behavior using XcodeBuildMCP tools.

JordanCoin/ios-skills-collection · 70 tokens