ios-memgraph-leaks

ios-memgraph-leaks is a skill for Codex from fanfan-de/anybox. It costs 36 tokens per session (899 once invoked), scanned A, original, MIT.

A workflow for finding leaked iOS app objects, meaning objects that remain in memory after they should have been released, using simulator memory snapshots.

In plain words
What is it for?
Use it to reproduce a flow, capture a memory graph, identify app-owned leaked types and retain cycles, inspect why they remain alive, and verify a fix.
Why use it?
It provides before-and-after evidence and ownership paths so a smaller memory snapshot is not mistaken for a real leak fix.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to reproduce a flow, capture a memory graph, identify app-owned leaked types and retain cycles, inspect why they remain alive, and verify a fix.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fanfan-de/anybox/ios-memgraph-leaks
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 fanfan-de/anybox --skill ios-memgraph-leaks
Clone the repo
git clone --depth 1 https://github.com/fanfan-de/anybox

Made for: 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 ios-memgraph-leaks

README.md
[![agentmods](https://agentmods.dev/badge/skills/fanfan-de/anybox/ios-memgraph-leaks/github.svg)](https://agentmods.dev/skills/fanfan-de/anybox/ios-memgraph-leaks)
Your own site
<a href="https://agentmods.dev/skills/fanfan-de/anybox/ios-memgraph-leaks"><img src="https://agentmods.dev/badge/skills/fanfan-de/anybox/ios-memgraph-leaks/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 ios-memgraph-leaks

Your own site · 80×15
<a href="https://agentmods.dev/skills/fanfan-de/anybox/ios-memgraph-leaks"><img src="https://agentmods.dev/badge/skills/fanfan-de/anybox/ios-memgraph-leaks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 899 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00036 $0.00899
Opus 5.5 $0.00014 $0.00360
Sonnet 5.5 $0.00007 $0.00180
Haiku 4.5 $0.00004 $0.00090

Measured 3mo ago against content hash f09a1e78c00b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ios-memgraph-leaks 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 3mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/capture_sim_memgraph.sh, scripts/summarize_memgraph_leaks.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/Anybox-Plugins/build-ios-apps/skills/ios-memgraph-leaks/SKILL.md · 77 lines

How it starts

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

iOS Memgraph Leaks

Use this skill to prove iOS leaks from a live simulator process or an existing .memgraph. Pair it with ../ios-debugger-agent/SKILL.md when the task also needs simulator build, install, launch, UI driving, logs, or screenshots.

Core Workflow

  1. Build, launch, and drive the exact flow that should release objects.
  2. Capture a memgraph from the running simulator process with scripts/capture_sim_memgraph.sh.
  3. Summarize leaks with scripts/summarize_memgraph_leaks.py.
  4. For each app-owned leaked type, inspect ownership with leaks --traceTree=<address> <file.memgraph> and grouped leak evidence.
  5. Make the smallest root-cause patch, then recapture the same flow on the same simulator when possible.
  6. Report proof: before/after leak counts, disappeared root types, remaining leaks, memgraph paths, and test/build results.

Do not claim a leak fix from a smaller memgraph alone. A credible fix explains the ownership path that kept the object alive and shows that the same path or type disappears after the patch.

Capture

Prefer capturing from the simulator already used for the reproduction. Resolve the simulator UDID and app bundle identifier, then capture the running app:

SKILL_DIR="<absolute path to this loaded skill folder>"
SIM="<simulator-udid>"
BUNDLE_ID="<app.bundle.identifier>"
MEMGRAPH_DIR="$(mktemp -d "${TMPDIR:-/tmp}/codex-ios-memgraph.XXXXXX")"

"$SKILL_DIR/scripts/capture_sim_memgraph.sh" \
  --udid "$SIM" \
  --bundle-id "$BUNDLE_ID" \
  --out-dir "$MEMGRAPH_DIR"

Do not derive SKILL_DIR from the target app repo's pwd; installed plugins usually live outside the app being debugged. Store captures in a run-specific temp or user-chosen folder, not under SKILL_DIR.

If the process cannot be found, confirm the bundle identifier and use xcrun simctl spawn "$SIM" launchctl list to inspect running labels.

Summarize

Summarize an existing memgraph:

"$SKILL_DIR/scripts/summarize_memgraph_leaks.py" \
  /path/to/app.memgraph \
  --trace-limit 5 \
  --out /path/to/leak-summary.md

Read the full file on GitHub · 77 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 77 lines · 36 tokens per session scan A f09a1e78c00b

Subscribe to this mod's changes

ios-memgraph-leaks is a skill published in the GitHub repository fanfan-de/anybox (55 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 899 once invoked, about $0.0001 per session on Opus 5.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-08-30.

Related

ios-memgraph-leaks compared with skills from other repositories

ios-memgraph-leaks next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ios-memgraph-leaksfanfan-de/anyboxSkill551mo agoMITA36Codex
ios-fixgarrytan/gstackSkill143ktodayMITA28Claude Code
node-connectopenclaw/openclawSkill396ktodayMITA39Claude Code, Codex
google-mobile-ads-validategoogle/skillsSkill25ktodayApache-2.0A84Claude Code, Codex
jetpack-compose-performanceandroid/skillsSkill11k8d agoApache-2.0A41Claude Code
competition-ios-runtimezhaoxuya520/reverse-skillSkill46k17d agoMITA123Codex
android-tombstone-symbolicationdotnet/skillsSkill6.4ktodayMITA176Claude Code