All skills
SKILL.md / en

memory-leak-fixer

mono/SkiaSharp

Scan SkiaSharp for native ownership / disposal memory leaks AND fix them with a red→green regression test. Two combined modes in one skill: (1) SCAN — hunt the SkiaSharp leak signature (undisposed SKObject handle, wrong `owns:` flag, same-instance double-dispose, unremoved event/handler subscription, `fixed`-pointer lifetime) and empirically confirm it; (2) FIX — write a failing regression test, implement the minimal idiomatic fix, prove it goes green, and open a PR.

Install memory-leak-fixer in 1 command

skills CLI: The skills CLI downloads this skill from GitHub and puts the folder where your agent looks for skills. Add -g to install it for every project instead of the current one.

Claude Code

Run in your terminal, inside the project.

npx skills add mono/SkiaSharp --skill memory-leak-fixer -a claude-code

Codex

Installs into .agents/skills for Codex.

npx skills add mono/SkiaSharp --skill memory-leak-fixer -a codex

claude.ai

No terminal needed. Works on Free, Pro, Max, Ultra, Team and Enterprise plans.

  1. Download the skill folder (the one with SKILL.md) from GitHub and zip it. The folder name must match the skill name.
  2. In Settings, Capabilities, turn on code execution and file creation.
  3. Open Customize, Skills, click +, Create skill, Upload a skill, pick the zip and switch it on.

Read SKILL.md and any scripts before you run it. Claude Code guide · Codex guide · Security checklist

What it does

Scan SkiaSharp for native ownership / disposal memory leaks AND fix them with a red→green regression test. Two combined modes in one skill: (1) SCAN — hunt the SkiaSharp leak signature (undisposed SKObject handle, wrong `owns:` flag, same-instance double-dispose, unremoved event/handler subscription, `fixed`-pointer lifetime) and empirically confirm it; (2) FIX — write a failing regression test, implement the minimal idiomatic fix, prove it goes green, and open a PR.

Source on GitHub: mono/SkiaSharp

Example prompt

Paste this after installing. Replace the task with your own.

Use the memory-leak-fixer skill for this task: [describe what you want in one or two sentences]. Before you change anything, list the files you will read or edit and the steps you will take.

Or let your agent review and install it

Paste this prompt into Claude Code or Codex in your project. Your agent can review the source and install the complete folder.

GitHub file

Path
.agents/skills/memory-leak-fixer/SKILL.md
Source updated
11/10/2026

SKILL.md

read only

Open the full file on GitHub

Read the current instructions on GitHub. Full text appears here only when the repository has a recognized license.

Read SKILL.md on GitHub

Get the free Claude Code skills PDF

A short guide to the skills worth installing first, sent in Telegram by Anton Shumeiko. It also opens the free Claude Skills course.

Open in Telegram

About the memory-leak-fixer skill

memory-leak-fixer is an Agent Skill from the mono/SkiaSharp GitHub repository, which has 5,591 stars and 648 forks. The skill file is .agents/skills/memory-leak-fixer/SKILL.md on the main branch: open it on GitHub.

Description: Scan SkiaSharp for native ownership / disposal memory leaks AND fix them with a red→green regression test. Two combined modes in one skill: (1) SCAN — hunt the SkiaSharp leak signature (undisposed SKObject handle, wrong `owns:` flag, same-instance double-dispose, unremoved event/handler subscription, `fixed`-pointer lifetime) and empirically confirm it; (2) FIX — write a failing regression test, implement the minimal idiomatic fix, prove it goes green, and open a PR.

Repository licence: MIT. Categories: Testing. Source updated: 2026-10-11.

Start of SKILL.md

Memory Leak Fixer Proactively **find** and **fix** memory leaks in SkiaSharp — a thin managed wrapper over native Skia, so its recurring, high-impact class of leaks is **native ownership / disposal correctness** — the C# binding failing to dispose, own, pin, or root a native object correctly — not the managed view-retention leaks a pure-managed app…

Install memory-leak-fixer in 1 command

Claude Code: npx skills add mono/SkiaSharp --skill memory-leak-fixer -a claude-code

Codex: npx skills add mono/SkiaSharp --skill memory-leak-fixer -a codex

claude.ai: download the skill folder from GitHub and zip it, turn on code execution and file creation in Settings, Capabilities, then upload the zip in Customize, Skills, Create skill, Upload a skill. Read SKILL.md and any scripts first. Step-by-step guides: install in Claude Code, install in Codex and the security checklist.

Example prompt

Use the memory-leak-fixer skill for this task: [describe what you want in one or two sentences]. Before you change anything, list the files you will read or edit and the steps you will take.

More skills from mono/SkiaSharp

Related skills

  • dd-triage-flaky-test (DataDog/pup): Load when investigating a specific flaky test. Gets history, failure pattern, and category, then recommends fix, quarantine, or escalate.
  • azure-devops (sanjay3290/ai-skills): Manage Azure DevOps projects, work items, repos, PRs, pipelines, wikis, test plans, security alerts, variable groups, environments/approvals, branch policies, and…
  • qa-engineer-agent (peterfei/ai-agent-team): QA 工程师 Agent — 测试策略、测试用例设计、自动化测试、性能测试、安全测试
  • 054-design-tdd (jabrena/plinth): Use when Java implementation work should be guided by Test-Driven Development, including maintaining a test list, choosing the next behavior, writing a failing test…
  • sf-ai-agentforce (Jaganpro/sf-skills): Agentforce Builder metadata path for Builder-managed topics/actions, Prompt Builder templates, GenAiFunction/GenAiPlugin, Models API, and custom Lightning types. TRIGGER…
  • Accessibility Regression Detector (Community-Access/accessibility-agents): Detects accessibility regressions by comparing audit results across commits/branches. Tracks score trends and validates previous fixes.

Browse the free Claude skills catalogue