axiom-memory-debugging

axiom-memory-debugging is a skill for Claude Code, Codex from ComeOnOliver/skillshub. It costs 79 tokens per session (2,886 once invoked), scanned A, original, MIT.

A guide to finding memory leaks and memory-pressure problems in iOS apps. A memory leak is data that stays allocated after the app no longer needs it.

In plain words
What is it for?
Use it to investigate retain cycles, timer and observer leaks, growing collections, memory warnings, and apps killed after extended use.
Why use it?
It helps explain crashes, rising memory use, repeated growth during the same action, and objects that never get released.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate retain cycles, timer and observer leaks, growing collections, memory warnings, and apps killed after extended use.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/comeonoliver/skillshub/axiom-memory-debugging
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.

Any agent
npx skills add ComeOnOliver/skillshub --skill axiom-memory-debugging
Clone the repo
git clone --depth 1 https://github.com/ComeOnOliver/skillshub

Made for: Claude Code, Codex.

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 axiom-memory-debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-memory-debugging/github.svg)](https://agentmods.dev/skills/comeonoliver/skillshub/axiom-memory-debugging)
Your own site
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-memory-debugging"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-memory-debugging/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for axiom-memory-debugging

Your own site · 80×15
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-memory-debugging"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-memory-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,886 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.00079 $0.02886
Opus 5 $0.00039 $0.01443
Sonnet 5 $0.00016 $0.00577
Haiku 4.5 $0.00008 $0.00289

Measured 9d ago against content hash 75380662f0dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

axiom-memory-debugging scanned grade A with 0 findings 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 9d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/CharlesWiltgen/Axiom/axiom-memory-debugging/SKILL.md · 314 lines

How it starts

The opening of the file, as written. The whole thing — 314 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Memory Debugging

Overview

Memory issues manifest as crashes after prolonged use. Core principle 90% of memory leaks follow 3 patterns (retain cycles, timer/observer leaks, collection growth). Diagnose systematically with Instruments, never guess.

Example Prompts

  • "My app crashes after 10-15 minutes with no error messages"
  • "Memory jumps from 50MB to 200MB+ on a specific action — leak or cache?"
  • "View controllers don't deallocate after dismiss"
  • "Timers/observers causing memory leaks — how to verify?"
  • "App uses 200MB and I don't know if that's normal"

Red Flags — Memory Leak Likely

  • Progressive memory growth: 50MB → 100MB → 200MB (not plateauing)
  • App crashes after 10-15 minutes with no error in Xcode console
  • Memory warnings appear repeatedly in device logs
  • View controllers don't deallocate after dismiss (visible in Memory Graph Debugger)
  • Same operation run multiple times causes linear memory growth

Leak vs normal: Normal = stays at 100MB. Leak = 50MB → 100MB → 150MB → 200MB → CRASH.

Mandatory First Steps

ALWAYS diagnose FIRST (before reading code):

  1. Check device logs for "Memory pressure critical", "Jetsam killed", "Low Memory"
  2. Use Memory Graph Debugger (below) — shows object count growth
  3. Xcode → Product → Profile → Memory. Perform action 5 times, note if memory keeps growing

What this tells you: Flat = not a leak. Linear growth = classic leak. Spike then flat = normal cache. Spikes stacking = compound leak.

Why diagnostics first: Finding leak with Instruments: 5-15 min. Guessing: 45+ min.

Detecting Leaks — Step by Step

Step 1: Memory Graph Debugger (Fastest)

  1. Open app in simulator
  2. Debug → Memory Graph Debugger (or toolbar icon)
  3. Look for PURPLE/RED circles with "⚠" badge
  4. Click them → Xcode shows retain cycle chain

Step 2: Instruments (Detailed Analysis)

  1. Product → Profile (Cmd+I) → "Memory" template
  2. Perform action 5-10 times
  3. Memory line goes UP for each action? = Leak confirmed

Read the full file on GitHub · 314 lines

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. 9d ago First seen · 314 lines · 79 tokens per session scan A 75380662f0dd

Subscribe to this mod's changes

axiom-memory-debugging is a skill published in the GitHub repository ComeOnOliver/skillshub (63 stars, last pushed 2mo ago), licensed MIT. It adds 79 tokens to every session and 2,886 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.