Skip to main content
skill CX Codex

debugging-instruments — Claude Code skill: how to install

Helps debug crashes, find retain cycles, and diagnose main-thread hangs in iOS apps using LLDB, Memory Graph Debugger, and Instruments.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dpearson2699/swift-ios-skills --skill debugging-instruments -a claude-code
Open on GitHub

What debugging-instruments does

The skill lays out triage workflows for iOS debugging in Xcode. It structures LLDB inspection, advising v over po for inspecting locals because expression evaluation can mutate program state. Evaluating expressions carries side effects. It also covers common retain cycles in closures and delegates.

Profiling guidance covers UI hangs and memory spikes. It pairs the Time Profiler and OSSignposter intervals with Xcode diagnostics like the Thread Checker. To see allocation backtraces in the Memory Graph Debugger, you must enable Malloc Stack Logging in your scheme diagnostics first.

For deep command-line .memgraph analysis or ETTrace profiling, the skill delegates to sibling skills like ios-memgraph-analysis. It stays focused on live interactive triage inside Xcode and Instruments.

What it helps with

  • find retain cycles in Swift closures and delegate patterns
  • diagnose main-thread UI hangs using Time Profiler
  • inspect local variables and set conditional breakpoints in LLDB
  • isolate memory leaks using Xcode Memory Graph Debugger

Example prompts for the agent

  • Help me set an LLDB conditional breakpoint on ViewModel.swift to track state mutation
  • Show me how to fix a retain cycle caused by a closure capturing self
  • Guide me through profiling a main-thread freeze with Time Profiler and OSSignposter

How to install debugging-instruments

1Skills CLI (Vercel)

npx skills add dpearson2699/swift-ios-skills --skill debugging-instruments -a claude-code

2Manually: put the files in place

~/.claude/skills/debugging-instruments/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/debugging-instruments/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about debugging-instruments

How to install debugging-instruments in Claude Code?

Run npx skills add dpearson2699/swift-ios-skills --skill debugging-instruments -a claude-code in your terminal.

What does the debugging-instruments skill do?

It provides workflows and commands for diagnosing crashes, memory leaks, and performance hangs in iOS apps using LLDB, Memory Graph Debugger, and Instruments.

Why does the skill suggest using v instead of po in LLDB?

The v command inspects local memory without running code, while po evaluates expressions that might alter application state or trigger side effects.

Similar skills

Everything for Mobile →

From the same set69

swift-testing Writes Swift Testing unit tests and converts existing XCTest assertions, flagging which checks belong in XCTest or XCUITest. CX Codex +1 4,300installs swiftui-navigation Provides SwiftUI navigation architectures, covering typed stacks, multi-column layouts, sheets, and tabs. Useful when structuring navigation state across iOS and macOS apps. CX Codex +1 4,400installs push-notifications Review, build, and debug local and APNs remote notifications for iOS and macOS in Swift. Handles permission flows, silent pushes, and service extensions. CX Codex +1 4,200installs swiftui-layout-components Guides SwiftUI screen layouts built from stacks, grids, lists, forms, and controls. Use it for settings, collections, and scrollable views. CX Codex +1 4,200installs swiftui-liquid-glass Implement and review Liquid Glass in SwiftUI interfaces for iOS 26+. Useful when adding glass buttons, grouped effects, or animated shape changes. CX Codex +1 4,100installs swiftdata Gives the agent a working reference for SwiftData so persistence code on Swift 6.3 comes out right the first time. CX Codex +1 4,100installs swift-language Guides AI agents through modern Swift patterns for core, non-concurrency code. Useful when modernizing enums, generics, and protocols under recent compiler releases. CX Codex +1 4,000installs swift-charts A skill that steers your coding agent through Swift Charts work on iOS 26+. Useful for bars, lines, donuts, heat maps and 3D surfaces. CX Codex +1 4,000installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor