Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By carloshpdocv1.18.0Apache-2.0In 1 marketplace
iOS leak hunting + performance investigation. Reads .memgraph, .trace, and .mxdiagnostic files. Classifies retain cycles against a 36-pattern catalog (SwiftUI / Combine / Concurrency / UIKit / Core Animation / Core Data / SwiftData / Coordinator / RxSwift / Realm). v1.18 ships the 42nd MCP tool: analyzeMetricKitPayload, the post-mortem production-diagnostics lane that ingests Apple MetricKit JSON payloads from real-device TestFlight / App Store builds (crash clusters, hang hotspots with localized-duration parsing, CPU + disk exceptions, cross-tool chain hints). Also audit-close trio: open-enum SupportStatusKind, invocation-scoped schemaDiscovery cache (600-3000ms wall-clock win on summarizeTrace), local-only integration tests against real Apple .trace bundles. v1.17 reliability pass: strtobool env truthy parsing, verifyFix whitelist match modes, Instruments.app AppleScript document query, inspectTrace fault-tolerant fallback, configurable countAlive noise filter. v1.16 unblocked trace recording on macOS 26.x via recordViaInstrumentsApp. v1.15 added analyzeMemoryFootprint, analyzeEnergyImpact, analyzeLeakTimeline. v1.13 shipped summarizeTrace. Bridges to Swift source via SourceKit-LSP. 42 MCP tools, 34 catalog resources, 7 investigation prompts (/investigate-metrickit added in v1.18).
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
ios, swift, swiftui, memory-leak, retain-cycle, memgraph, xctrace, instruments ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
One-command install of the memorydetective MCP server, plus a
/perf-investigateskill for disciplined iOS leak + performance investigation.
When installed, this plugin auto-registers the memorydetective MCP server and adds a top-level skill:
analyzeMetricKitPayload (post-mortem production diagnostics from .mxdiagnostic payloads). v1.16 added recordViaInstrumentsApp (macOS 26.x escape hatch). v1.15 added three trace tools (analyzeMemoryFootprint / analyzeEnergyImpact / analyzeLeakTimeline). v1.14 added analyzeNetworkActivity. v1.13 added summarizeTrace. v1.11 added inspectTrace. v1.17 was reliability-only (no surface changes, 24 new tests across the audit punch list).@Observable / SwiftData / NavigationStack / the v1.9 observable-write-on-every-render shape), Combine, Swift Concurrency (incl. AsyncSequence-on-self), UIKit (incl. the v1.9 viewcontroller-retained-after-pop shape), Core Animation, Core Data, SwiftData (ModelContext + Actor), Coordinator pattern, RxSwift, RealmfixHint (textual direction) + staticAnalysisHint (which SwiftLint rule complements this, or explicit gap notice) + fixTemplate (Swift before/after code snippet, v1.7+)/investigate-leak, /investigate-hangs, /investigate-jank, /investigate-launch, /verify-cycle-fix, /summarize-trace, /investigate-metrickit (v1.18+, post-mortem from .mxdiagnostic payloads)memorydetective://patterns/{patternId}, so an agent can read the catalog without burning a tool call/perf-investigate skill: disciplined investigation playbook routing to the right tools based on symptoms/plugin marketplace add carloshpdoc/memorydetective-plugin
/plugin install memorydetective@memorydetective-plugin
That's it. The MCP server is pulled from npm (memorydetective@^1.18) on first use.
1. The disciplined skill. Walks you through symptom triage and routes to the right playbook:
/perf-investigate
2. A specific slash command when you already know the symptom class:
/investigate-leak # memory leak (provide memgraphPath)
/investigate-hangs # main-thread hangs (provide tracePath)
/investigate-jank # animation hitches (provide tracePath)
/investigate-launch # slow app launch (provide tracePath)
/verify-cycle-fix # confirm a fix actually closed the cycle (before + after)
3. Plain English. Best for ad-hoc work; the agent picks the tool chain:
"I have a memgraph at
~/Desktop/myapp.memgraph. What's leaking?"
axe for UI drivingOnly required if you want to use replayScenario or the UI-tree sub-capture of captureScenarioState. Everything else works without it.
brew install cameroncooke/axe/axe
When axe is missing, those two tools return a structured workaroundNotice with this exact install hint instead of throwing.
You exported from Xcode (Debug > View Memory Graph > File > Export Memory Graph). Drop the path on the agent:
"I have a leak at
~/Desktop/leak.memgraph. Classify it and tell me where to fix."
What runs: analyzeMemgraph → classifyCycle → swiftSearchPattern / swiftGetSymbolDefinition → fix suggestion adapted to your codebase via the per-classification fixTemplate snippet.
"Capture a memgraph from
DemoApprunning on the simulator and classify it."
What runs: captureMemgraph({ appName: "DemoApp", output: ... }) → same chain as workflow A.
leaks --outputGraph is brokenIf your app was launched without MallocStackLogging=1, leaks aborts with Failed to get DYLD info for task. v1.8 detects this and self-heals. From your side you do nothing different:
"Capture a memgraph from
DemoApp."
What runs:
captureMemgraph returns workaroundNotice: { issue: "minimal-corpse" } with suggestedNextCalls pointing at the relaunch pathbootAndLaunchForLeakInvestigation({ workspace: "MyApp.xcworkspace", scheme: "DemoApp", simulator: { name: "iPhone 15" } }) which builds, boots, installs, and launches with MallocStackLogging=1 propagated via SIMCTL_CHILD_*captureMemgraph with the new host PIDBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub carloshpdoc/memorydetective-plugin --plugin memorydetectivePlugins from other owners that cover similar ground