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.
npx skills add Xopoko/build-swift-apps --skill ios-memgraph-inspectorgit clone --depth 1 https://github.com/Xopoko/build-swift-appsWrote 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.
[](https://agentmods.dev/skills/xopoko/build-swift-apps/ios-memgraph-inspector)<a href="https://agentmods.dev/skills/xopoko/build-swift-apps/ios-memgraph-inspector"><img src="https://agentmods.dev/badge/skills/xopoko/build-swift-apps/ios-memgraph-inspector/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.
<a href="https://agentmods.dev/skills/xopoko/build-swift-apps/ios-memgraph-inspector"><img src="https://agentmods.dev/badge/skills/xopoko/build-swift-apps/ios-memgraph-inspector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.00672 |
| Opus 5.5 | $0.00017 | $0.00269 |
| Sonnet 5.5 | $0.00008 | $0.00134 |
| Haiku 4.5 | $0.00004 | $0.00067 |
Grade A, and why
ios-memgraph-inspector 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.
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.
How it starts
The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
iOS Memgraph Inspector
Before invoking Apple-only binaries, confirm the execution context is macOS. From Windows or Linux, run those steps in a Mac SSH project or through an already configured remote transport; do not retry missing Apple binaries locally.
Use for leaks from a live simulator process or existing .memgraph. Pair with ../ios-simulator-debugger/SKILL.md when build, launch, UI driving, logs, or screenshots are needed.
Workflow
- Build, launch, and drive the exact flow that should release objects.
- Capture with
scripts/capture_sim_memgraph.sh. - Summarize with
scripts/summarize_memgraph_leaks.py. - For app-owned leaked types, inspect ownership with
leaks --traceTree=<address> <file.memgraph>and grouped leak evidence. - Patch the smallest retaining edge, then recapture the same flow/simulator when possible.
- Report before/after counts, disappeared root types or paths, remaining leaks, memgraph paths, and build/test proof.
Do not claim a fix from a smaller memgraph alone; prove the specific type or ownership path disappeared.
Capture
SKILL_DIR is the loaded skill folder, not the app repo.
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"
If the process is missing, verify the bundle id and inspect running labels:
xcrun simctl spawn "$SIM" launchctl list
Summarize:
"$SKILL_DIR/scripts/summarize_memgraph_leaks.py" \
/path/to/app.memgraph \
--trace-limit 5 \
--out /path/to/leak-summary.md
Use --trace-limit sparingly. If traceTree says Found 0 roots referencing, treat it as an unreachable/self-retained candidate and inspect leaks --groupByType <file.memgraph> plus source.
Root-Cause Rules
- Identify the first app-owned leaked type.
- Determine intended lifetime: process, session, account, view, request, or task.
- Lazy allocation is scope reduction, not proof of a fixed leak.
- Prove retain cycles with
traceTreeor an isolated repro. - Separate framework/runtime noise from app-owned branches.
- Prefer removing the retaining edge over broad cleanup code.
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.
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.
- 3mo ago First seen · 68 lines · 42 tokens per session scan A 7bb38b8ce114
ios-memgraph-inspector is a skill published in the GitHub repository Xopoko/build-swift-apps (45 stars, last pushed 9d ago), licensed MIT. It adds 42 tokens to every session and 672 once invoked, about $0.0002 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.
ios-memgraph-inspector compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ios-memgraph-inspectorXopoko/build-swift-apps | Skill | 45 | 9d ago | MIT | A | 42 | Claude Code, Codex |
| simviewToolingTools/SimView | Skill | 7 | 1mo ago | Apache-2.0 | A | 42 | Claude Code, Codex |
| argent-react-native-app-workflowsoftware-mansion/argent | Skill | 3.3k | today | Apache-2.0 | A | 41 | Claude Code, Codex |
| argent-react-native-optimizationsoftware-mansion/argent | Skill | 3.3k | today | Apache-2.0 | A | 46 | Claude Code, Codex |
| argent-metro-debuggersoftware-mansion/argent | Skill | 3.3k | today | Apache-2.0 | A | 50 | Claude Code, Codex |
| argent-native-profilersoftware-mansion/argent | Skill | 3.3k | today | Apache-2.0 | A | 41 | Claude Code, Codex |
| igfChiChou/grapefruit | Skill | 1.4k | today | MIT | A | 35 | Claude Code, Codex |