debugging-instruments

debugging-instruments is a skill for Claude Code from dpearson2699/swift-ios-skills. It costs 85 tokens per session (3,347 once invoked), scanned C, original, no licence file.

A guide to finding crashes, memory problems, hangs, build failures, and performance issues in iOS apps using LLDB, Memory Graph Debugger, and Instruments.

In plain words
What is it for?
Use it to inspect retain cycles, investigate crashes and hangs, trace memory leaks, and profile CPU, memory, energy, or network performance.
Why use it?
It helps identify why an app fails or becomes slow by examining its code, memory ownership, CPU use, energy use, and network activity.

Skill for Claude Code

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

Part of the ios-engineering-skills plugin — 16 skills shipped together , and of all-ios-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/dpearson2699/swift-ios-skills/debugging-instruments
Any agent
npx skills add dpearson2699/swift-ios-skills --skill debugging-instruments
Clone the repo
git clone --depth 1 https://github.com/dpearson2699/swift-ios-skills

Made for: Claude Code.

Or install ios-engineering-skills, the plugin that ships this one along with the rest of its 16 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 debugging-instruments

README.md
[![agentmods](https://agentmods.dev/badge/skills/dpearson2699/swift-ios-skills/debugging-instruments.svg)](https://agentmods.dev/skills/dpearson2699/swift-ios-skills/debugging-instruments)
Your own site
<a href="https://agentmods.dev/skills/dpearson2699/swift-ios-skills/debugging-instruments"><img src="https://agentmods.dev/badge/skills/dpearson2699/swift-ios-skills/debugging-instruments.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,347 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin unknown 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.00085 $0.03347
Opus 5 $0.00043 $0.01673
Sonnet 5 $0.00017 $0.00669
Haiku 4.5 $0.00009 $0.00335

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

Security

Grade C, and why

debugging-instruments scanned grade C 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 6d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf ~/Library/Caches/org.swift.swiftpm
skills/debugging-instruments/SKILL.md · 380 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Files

What ships with it

3 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. 6d ago First seen · 380 lines · 85 tokens per session scan C 19e67339936b

Subscribe to this mod's changes

debugging-instruments is a skill published in the GitHub repository dpearson2699/swift-ios-skills (1,072 stars, last pushed 1mo ago), with no licence file. It adds 85 tokens to every session and 3,347 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). 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

ios-performance-debugging

Diagnose SwiftUI rendering, launch, responsiveness, concurrency, memory, energy, and simulator failures using reproducible traces and before-after evidence.

memi-design/design-skills · 33 tokens

swift-concurrency-safety

Design and review Swift 6 concurrency boundaries using structured tasks, actors, Sendable values, cancellation, and compiler-backed data-race safety.

memi-design/design-skills · 34 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