Memory Leak Diagnosis Skill

Installation
SKILL.md

Memory Leak Diagnosis Skill

This skill provides expertise in identifying, diagnosing, and fixing memory leaks and retain cycles in Swift applications. It covers Instruments usage, ARC concepts, and memory management best practices for iOS development.

Best Practices

  1. Understand ARC: Automatic Reference Counting manages memory automatically, but cycles can still occur.

  2. Use Weak References: Break retain cycles by using weak or unowned references in closures and delegates.

  3. Profile Regularly: Use Instruments to detect leaks early in development.

  4. Avoid Strong Reference Cycles: Be aware of parent-child relationships and delegate patterns.

  5. Clean Up Resources: Properly invalidate timers, cancel network requests, and remove observers.

  6. Test Memory Usage: Monitor memory growth during app usage.

Memory Management Guidelines

Installs
GitHub Stars
12
First Seen
Memory Leak Diagnosis Skill — fal3/claude-skills-collection