axiom-audit-memory

Audit Swift source code for memory leaks and retain cycles.

34|2|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/DengNaichen/Stet --skill axiom-audit-memory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axiom-audit-memory
Source: https://github.com/DengNaichen/Stet/tree/main/.agents/skills/axiom-audit-memory
Command: npx skills add https://github.com/DengNaichen/Stet --skill axiom-audit-memory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill identifies complex memory leak patterns, retain cycles, and resource management anti-patterns in Swift codebases that lead to crashes and progressive memory growth.

Core Features & Use Cases

  • Pattern Detection: Automatically scans for common leaks like un-invalidated timers, missing observer removals, and strong delegate cycles.
  • Lifecycle Analysis: Maps resource ownership to ensure tasks, observers, and closures are correctly deallocated.
  • Use Case: Use this during a code review or before a release to audit your view models and services for potential memory leaks that could cause your app to crash under heavy usage.

Quick Start

Run the axiom-audit-memory skill to perform a full memory leak scan on the current repository.

Frequently Asked Questions about axiom-audit-memory

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

FAQPage Schema
How do I detect memory leaks and retain cycles in Swift source code?

Memory leak detection in Swift involves systematically scanning project files to identify retain cycles, un-invalidated timers, and missing observer removals. This process verifies deallocation paths and ensures resource cleanup consistency across view models and services.

What causes memory leaks and progressive memory growth in iOS applications?

Memory leaks in iOS applications are caused by resource management anti-patterns like strong delegate cycles, un-invalidated timers, and missing observer removals. These issues prevent proper deallocation of resources, leading to progressive memory growth and potential crashes under heavy usage.

How do I audit my Swift project for timer and observer lifecycle management issues?

To audit timer and observer lifecycle management issues in a Swift project, run a full memory leak scan on the repository. This maps resource ownership to verify that tasks, observers, and closures are correctly deallocated during their lifecycle.

Does this memory leak detection approach work for both macOS and iOS applications?

Yes, this memory leak detection approach works for both macOS and iOS applications. It specifically targets complex memory growth scenarios across these Apple platforms by auditing task ownership, closures, and resource cleanup consistency within the Swift codebase.

When should I perform a memory leak code review on my Swift codebase?

You should perform a memory leak code review on your Swift codebase before a release or during standard code reviews. This proactive audit prevents potential app crashes under heavy usage by catching complex retain cycles and resource management anti-patterns early.