performance-profiling

performance-profiling is a skill for Claude Code from conorluddy/xclaude-plugin. It costs 52 tokens per session (7,043 once invoked), scanned A, original, MIT.

A guide for analyzing an iOS app’s use of processing power, memory, network activity, and energy. It uses Instruments, Apple’s performance-analysis suite, along with memory graphs and related build tools.

In plain words
What is it for?
Use it to profile CPU, memory, leaks, network requests, scrolling, launch time, offline behavior, and energy consumption before release.
Why use it?
It helps locate the causes of slow launches, frozen interfaces, memory leaks, excessive network use, and battery drain.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is run: ./scripts/check_performance_baseline.sh.

Part of the xclaude-plugin plugin — 8 skills, 2 MCP servers shipped together

Good fit Use it to profile CPU, memory, leaks, network requests, scrolling, launch time, offline behavior, and energy consumption before release.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/conorluddy/xclaude-plugin
agentmods
npx agentmods add skills/conorluddy/xclaude-plugin/performance-profiling

Made for: Claude Code.

Or install xclaude-plugin, the plugin that ships this one along with the rest of its 8 skills, 2 MCP servers.

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-profiling

README.md
[![agentmods](https://agentmods.dev/badge/skills/conorluddy/xclaude-plugin/performance-profiling/github.svg)](https://agentmods.dev/skills/conorluddy/xclaude-plugin/performance-profiling)
Your own site
<a href="https://agentmods.dev/skills/conorluddy/xclaude-plugin/performance-profiling"><img src="https://agentmods.dev/badge/skills/conorluddy/xclaude-plugin/performance-profiling/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 performance-profiling

Your own site · 80×15
<a href="https://agentmods.dev/skills/conorluddy/xclaude-plugin/performance-profiling"><img src="https://agentmods.dev/badge/skills/conorluddy/xclaude-plugin/performance-profiling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,043 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00052 $0.07043
Opus 5.5 $0.00021 $0.02817
Sonnet 5.5 $0.00010 $0.01409
Haiku 4.5 $0.00005 $0.00704

Measured 1mo ago against content hash 48b0cb66ca26, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-profiling scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

api.fetch(limit: pageSize, offset: offset)
skills/performance-profiling/SKILL.md · 1,208 lines

How it starts

The opening of the file, as written. The whole thing — 1,208 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Performance Profiling Skill

Comprehensive guide to iOS performance analysis and optimization

Overview

Performance profiling is the systematic analysis of an iOS app's runtime behavior to identify bottlenecks, memory issues, network inefficiencies, and energy consumption patterns. This Skill guides you through using Instruments templates, interpreting profiling data, and applying optimization strategies.

Key Tools:

  • Instruments (Xcode's profiling suite)
  • xcodebuild for profiling builds
  • Performance metrics analysis
  • Memory graph debugging

When to Use This Skill

Use performance profiling when:

  1. App Performance Issues

    • Slow app launch times
    • Choppy scrolling or animations
    • UI freezing or unresponsiveness
    • High CPU usage
  2. Memory Problems

    • Memory leaks detected
    • Growing memory footprint
    • Memory warnings
    • App crashes due to memory pressure
  3. Network Inefficiencies

    • Slow data loading
    • Excessive network requests
    • Large payload sizes
    • Poor offline handling
  4. Energy Consumption

    • Battery drain complaints
    • Background processing issues
    • Thermal throttling
    • Energy impact reports
  5. Pre-Release Optimization

    • Performance regression detection
    • Baseline performance establishment
    • Release candidate validation
    • Performance budget enforcement

Key Concepts

Instruments Templates

Time Profiler

  • Measures CPU usage and call stacks
  • Identifies hot paths in code
  • Shows function-level performance
  • Best for: CPU-bound operations, algorithm optimization

Allocations

  • Tracks memory allocations and deallocations
  • Shows object lifetime and retention
  • Identifies memory growth patterns
  • Best for: Memory footprint analysis, allocation hotspots

Leaks

  • Detects memory leaks in real-time
  • Shows leaked objects and their origins
  • Identifies retain cycles
  • Best for: Finding memory leaks, debugging reference cycles

Network

  • Monitors HTTP/HTTPS traffic
  • Shows request/response timing
  • Tracks payload sizes
  • Best for: API optimization, bandwidth analysis

Read the full file on GitHub · 1,208 lines

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. 1mo ago First seen · 1,208 lines · 52 tokens per session scan A 48b0cb66ca26

Subscribe to this mod's changes

performance-profiling is a skill published in the GitHub repository conorluddy/xclaude-plugin (184 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 7,043 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

argent-metro-debugger

Debug a JS runtime via CDP using argent debugger tools. Primary path is React Native via Metro (iOS / Android / Vega); a subset of the tools (debugger-connect, debugger-status, debugger-evaluate, debugger-log-registry) also drive a Chromium (CDP) app's renderer (an Electron app, or any Chromium browser exposing CDP)…

software-mansion/argent · 104 tokens

argent-react-native-optimization

Optimizes a React Native app by profiling first to find real bottlenecks, then sweeping for mechanical issues. Entry-point for all performance work. Use when the app feels slow, user asks to optimize, fix re-renders, reduce jank, or improve startup. Delegates to argent-react-native-profiler for measurement.

software-mansion/argent · 71 tokens

audit-ppmplugin

Statically audit a built .ppmplugin before wrap testing. Checks archive layout, manifest compatibility, bundle consistency, Android DEX integrity and SDK leakage, iOS framework structure, native source-to-receiver alignment, and the PCF composite-key/sendAsync transport contract. Reports CRITICAL, WARNING, and INFO…

microsoft/power-platform-skills · 112 tokens

generate-ppmplugin-manifest

Validate, reconcile to the chosen target(s), and stage the manifest.json for a .ppmplugin bundle. In the normal flow the committed ./manifest.json already exists (authored by /generate-native-extension), so this stage reads it, runs the plugin's upload-compatibility checks locally as a pre-flight gate (name regex…

microsoft/power-platform-skills · 194 tokens

argent-native-profiler

Native profiling for CPU hotspots, UI hangs, memory issues. iOS via xctrace; Android via Perfetto. Use when diagnosing native-level performance issues.

software-mansion/argent · 37 tokens

Swift Performance Optimization Skill

Use when investigating measured Swift or Apple-platform regressions in CPU, memory, launch, scrolling, animation hitches, image processing, energy, networking, or concurrency, or when designing performance tests and Instruments experiments. Do not use for speculative micro-optimization, ordinary refactoring, or a…

termio-sh/termio · 68 tokens