axiom-memory-debugging

Detects and fixes iOS/macOS memory leaks using Instruments and Memory Graph Debugger.

Updated Dec 3, 2025
One-click install
npx skills add https://github.com/tuliopc23/flying-dutchman-app --skill axiom-memory-debugging-tuliopc23
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axiom-memory-debugging
Source: https://github.com/tuliopc23/flying-dutchman-app/tree/main/.claude/skills/axiom-memory-debugging
Command: npx skills add https://github.com/tuliopc23/flying-dutchman-app --skill axiom-memory-debugging-tuliopc23

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers systematically detect and fix memory leaks in iOS and macOS applications, preventing crashes and improving app stability.

Core Features & Use Cases

  • Systematic Leak Detection: Guides users through using Instruments and Memory Graph Debugger to identify memory issues.
  • Common Leak Patterns: Explains and provides fixes for common leak sources like timer leaks, observer leaks, and closure captures.
  • Jetsam Mitigation: Offers strategies to reduce background memory usage and prevent app termination due to memory pressure.
  • Use Case: When an app crashes after 15 minutes of use with no clear error, this Skill provides the step-by-step process to diagnose and resolve the underlying memory leak.

Quick Start

Use the axiom-memory-debugging skill to find out why your app is crashing after 10-15 minutes of use.

Frequently Asked Questions about axiom-memory-debugging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug an iOS app that crashes after 15 minutes of use?

To debug an iOS app crashing after 15 minutes, systematically detect memory leaks using Instruments and Memory Graph Debugger, identifying common patterns like retain cycles, timer leaks, and closure captures that cause memory pressure.

What is the best way to find retain cycles in macOS applications?

The best way to find retain cycles in macOS applications is using the Memory Graph Debugger to inspect object reference relationships and identify strong reference loops that prevent automatic reference counting from deallocating objects.

How do I stop jetsam memory pressure termination in my iOS app?

To stop jetsam memory pressure termination, mitigate background memory usage by resolving observer leaks and closure captures, reducing the overall memory footprint that triggers the operating system to forcefully terminate the app.

How does the Memory Graph Debugger work for finding timer leaks?

The Memory Graph Debugger captures a snapshot of your application's memory heap and visualizes object reference relationships, allowing you to trace retained timers and identify strong reference cycles preventing their invalidation.

Can I use Instruments to fix observer leaks in macOS apps?

Yes, you can use Instruments to systematically detect observer leaks in macOS apps by profiling memory allocations and tracking object lifecycles to find registered observers that are never removed before object deallocation.

What are common closure capture memory leak patterns in iOS?

Common closure capture memory leak patterns in iOS occur when closures strongly capture 'self' by default, creating retain cycles that prevent view controllers or models from deallocating when using asynchronous dispatch or completion handlers.