performance-profiling
Skill by rshankras
Guides performance profiling of Apple platform apps with Instruments, Xcode diagnostics and MetricKit. It covers hangs, memory, launch time, scroll hitches and energy drain. It is built for developers reviewing app performance or investigating a specific bottleneck.
Install performance-profiling
Built from the published package, never by AI.
git clone --depth 1 https://github.com/rshankras/claude-code-apple-skills /tmp/claude-code-apple-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-apple-skills/skills/performance/profiling ~/.claude/skills/performance-profilingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/rshankras/claude-code-apple-skills /tmp/claude-code-apple-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-apple-skills/skills/performance/profiling ~/.gemini/antigravity-cli/skills/performance-profilingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install performance-profiling in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The performance-profiling skill guides developers through profiling Apple platform apps with Instruments, Xcode diagnostics and MetricKit. It covers CPU, memory, launch time and energy analysis, and includes fix patterns for each area. A decision tree sends the assistant to a matching reference file, such as time-profiler.md for hangs or memory-profiling.md for leaks and OOM crashes.
The skill also lists the eight key performance metrics Apple describes in WWDC21 session 10181, a set of Xcode diagnostic settings, and a review checklist for responsiveness, memory, launch and energy. It includes a MetricKit example for production monitoring. It is aimed at developers who are reviewing app performance, investigating a specific bottleneck, or preparing for App Store review.
Written from the project's SKILL.md and checked against it.
What it can do
- Decision tree routingRoutes a problem such as hangs, hitches, leaks or slow launch to the matching reference file.
- Hang and CPU diagnosisCovers hang detection and CPU hot paths with Time Profiler, documented in time-profiler.md.
- Hitch analysisExplains scroll and animation hitches with the Animation Hitches template and hitch time ratio thresholds.
- Memory analysisCovers Allocations, Leaks, the memory graph debugger and termination reasons.
- Launch optimizationWalks through pre-main and post-main launch phases and linker levers.
- Energy diagnosticsCovers battery, thermal state, network efficiency and the Power Profiler.
- Xcode diagnostic settingsRecommends Main Thread Checker, Thread Sanitizer, Address Sanitizer and other scheme diagnostics.
- MetricKit integrationProvides a Swift subscriber example for launch, hang, memory and scroll metrics in production.
- Review checklistGives checklists for responsiveness, memory, launch time and energy before release.
What you need
- Xcode with Instruments
- iOS 27 or macOS 27 (per the os_version field)
- A physical Apple device for profiling
Try asking
- Diagnose why my app hangs when I tap the feed screen
- Find retain cycles in my view controllers using Leaks and the memory graph
- Review my app launch path and suggest what to defer before first frame
Good to know
- The guidance says to profile on device, not the Simulator, and to use a Release build.
- MetricKit metric payloads arrive at most once per day; diagnostics arrive right after an issue on iOS 15 and macOS 12 or later.
- MXCallStackTree backtraces are unsymbolicated and must be symbolicated off-device with your dSYMs.
- The reference files it points to are not included in this source.
Security check
B- Allowed to use Bash without limitsIn
SKILL.md
Checked automatically: skills/performance/profiling/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadGlobGrepBash
Alternatives to performance-profiling
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
performance-profiling: common questions
Does this skill use Xcode Instruments?
Yes. It guides profiling with Instruments, Xcode diagnostics and MetricKit for Apple platform apps.
What counts as a hang in this skill?
The skill follows Apple's WWDC21 10181 metric, which counts an app as hanging when it is unresponsive to input for 250 ms or more.
Can it help monitor performance after release?
Yes. It recommends MetricKit for production monitoring and says to subscribe early in app launch so previous payloads are delivered.
How do I install performance-profiling?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is performance-profiling free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is performance-profiling safe to use?
It scores 78 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.
What are alternatives to performance-profiling?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
