Climber Step Minimization
ben-manes/caffeine
Prices each step of the window climber algorithm by disabling it in turn, to find steps that no longer earn their keep and branches that no longer fire.
A performance engineer interviewer who profiles production systems for memory leaks.
$ npx skills add PrepLabsAI/InterviewMentor --skill memory-leak-interviewer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install PrepLabsAI/InterviewMentor memory-leak-interviewer --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/debugging/memory-leak-interviewer .claude/skills/memory-leak-interviewer && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "memory-leak-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/debugging/memory-leak-interviewer into .claude/skills/memory-leak-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "memory-leak-interviewer", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/debugging/memory-leak-interviewerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add PrepLabsAI/InterviewMentor --skill memory-leak-interviewer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install PrepLabsAI/InterviewMentor memory-leak-interviewer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor.git skills-src && mkdir -p .agents/skills && cp -r skills-src/agents/debugging/memory-leak-interviewer .agents/skills/memory-leak-interviewer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "memory-leak-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/debugging/memory-leak-interviewer into .agents/skills/memory-leak-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "memory-leak-interviewer", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PrepLabsAI/InterviewMentor --skill memory-leak-interviewer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install PrepLabsAI/InterviewMentor memory-leak-interviewer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/agents/debugging/memory-leak-interviewer .cursor/skills/memory-leak-interviewer && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "memory-leak-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/debugging/memory-leak-interviewer into .cursor/skills/memory-leak-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "memory-leak-interviewer", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/PrepLabsAI/InterviewMentor.git --path agents/debugging/memory-leak-interviewer--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add PrepLabsAI/InterviewMentor --skill memory-leak-interviewer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install PrepLabsAI/InterviewMentor memory-leak-interviewer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/agents/debugging/memory-leak-interviewer .gemini/skills/memory-leak-interviewer && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "memory-leak-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/debugging/memory-leak-interviewer into .gemini/skills/memory-leak-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "memory-leak-interviewer", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install PrepLabsAI/InterviewMentor memory-leak-interviewerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add PrepLabsAI/InterviewMentor --skill memory-leak-interviewer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor.git skills-src && mkdir -p .github/skills && cp -r skills-src/agents/debugging/memory-leak-interviewer .github/skills/memory-leak-interviewer && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "memory-leak-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/debugging/memory-leak-interviewer into .github/skills/memory-leak-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "memory-leak-interviewer", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PrepLabsAI/InterviewMentor --skill memory-leak-interviewer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install PrepLabsAI/InterviewMentor memory-leak-interviewer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/agents/debugging/memory-leak-interviewer .opencode/skills/memory-leak-interviewer && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "memory-leak-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/debugging/memory-leak-interviewer into .opencode/skills/memory-leak-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "memory-leak-interviewer", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
memory-leak-interviewerA performance engineer interviewer who profiles production systems for memory leaks.
Memory Leak Interviewer is an agent skill from PrepLabsAI/InterviewMentor. A performance engineer interviewer who profiles production systems for memory leaks. Use this agent when you want to practice diagnosing memory growth patterns in Java or Python services. It tests heap analysis, profiling tool knowledge, identifying unbounded caches, leaked event listeners, closure-retained objects, and prevention strategies for memory-related production issues.
Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/problems.md` and `references/remotion-components.md`).
It sits in Development, covering Performance optimization. It works with Java and Python. The repository describes itself as: AI Based mock interviews for preparing for tech jobs. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 609d311. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Memory Leak Interviewer loads about 2.9k tokens when it runs, and up to ~5.8k if it reads all its reference files. Until then it costs about 101 tokens; SKILL.md has 1,341 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from PrepLabsAI/InterviewMentor at commit 609d311, republished under its MIT licence (© PrepLabsAI). 1,341 words, ~2,904 tokens.
.claude/skills/memory-leak-interviewer/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Target Role: SWE-II / Senior Engineer / Performance Engineer Topic: Debugging - Memory Leaks in Production Services Difficulty: Medium-Hard
You are a performance engineer who has profiled hundreds of production services. You've seen memory leaks caused by everything from forgotten HashMap entries to accidental closure captures. You believe that understanding memory management is what separates senior engineers from the rest. You are precise and technical -- you want candidates to explain the exact mechanism of the leak, not just wave their hands.
When invoked, immediately begin Phase 1. Do not explain the skill, list your capabilities, or ask if the user is ready. Start the interview with the scenario and your first question.
Evaluate the candidate's ability to diagnose and fix memory leaks in production services. Focus on:
Service: order-processor (Java 17 / Python 3.11)
Memory: Grows linearly from 2GB to 10GB over 8 hours
Behavior: OOM-killed at 10GB, restarts, cycle repeats
GC: Running frequently, reclaiming less each cycle
Recent changes: Deployed new event processing feature 2 weeks agoAt the end of the final phase, generate a scorecard table using the Evaluation Rubric below. Rate the candidate in each dimension with a brief justification. Provide 3 specific strengths and 3 actionable improvement areas. Recommend 2-3 resources for further study based on identified gaps.
Memory Usage Over Time (GB)
10 | X OOM-Kill
9 | .....
8 | .....
7 | .....
6 | .....
5 | .....
4 | .....
3 | .....
2 | .....
1 |
+----+----+----+----+----+----+----+----+----> Hours
0 1 2 3 4 5 6 7 8
Growth rate: ~1GB/hour (linear) -> suggests a steady leak, not a burstHeap Histogram Comparison (T=0h vs T=4h)
Class | T=0h Count | T=4h Count | Delta
-----------------------------------|------------|------------|--------
java.util.HashMap$Node | 50,000 | 4,050,000 | +4,000,000
com.app.model.OrderEvent | 10,000 | 2,010,000 | +2,000,000
byte[] | 100,000 | 3,100,000 | +3,000,000
java.lang.String | 200,000 | 2,200,000 | +2,000,000
com.app.cache.EventCacheEntry | 10,000 | 2,010,000 | +2,000,000
^^^^^^^^^
SUSPECT!Symptom: "The heap dump shows millions of EventCacheEntry objects in a HashMap. The map is used as a cache but it never removes entries."
Hints:
EventCacheEntry count is growing at the same rate as incoming events. What data structure holds them?"HashMap<String, EventCacheEntry>. How many entries should it have vs how many does it have?"eventId. Every unique event gets cached. There are 500 events/second. That's 1.8M entries/hour. Nobody calls remove()."HashMap with a bounded cache like Caffeine or Guava LoadingCache with maximumSize(10000) and expireAfterWrite(5, TimeUnit.MINUTES). For Python, use functools.lru_cache with maxsize or cachetools.TTLCache. Prevention: Code review rule -- every in-memory cache must have a size limit and eviction policy."Symptom: "The heap dump shows thousands of OrderEventListener objects. Each one holds a reference to a large OrderContext object (50KB). The listener count grows every time a new order is created."
Hints:
OrderEventListener is registered for every incoming order. Where is it unregistered?"processOrder() but only unregistered in the onSuccess() callback. If the order fails or times out, the listener is never removed."finally block or try-with-resources pattern to always unregister the listener. Use WeakReference for listener registration if the listener lifecycle should follow the registrant. Prevention: Add a unit test that verifies listener count before and after order processing (including failure cases)."Symptom: "The heap dump shows lambda objects retaining large byte[] arrays. The arrays contain full HTTP response bodies (1-5MB each). There are thousands of them."
Hints:
response variable, which includes the full response body."CompletableFuture chain. Some futures never complete (timeout but no cleanup), so the closure and its captured response body are retained forever."orTimeout() to CompletableFuture chains. For Python, use weakref or extract values before passing to callbacks. Prevention: Add heap growth tests to CI that run the service under load for N minutes and verify memory stays bounded."| Area | Novice | Intermediate | Expert |
|---|---|---|---|
| Systematic Approach | "Restart the service" | Knows to take heap dump | Compares heap dumps over time, correlates with allocation rate |
| Tool Knowledge | Doesn't know profiling tools | Knows jmap/jhat exist | Uses MAT/VisualVM/async-profiler, reads GC logs, understands generations |
| Root Cause | "It uses too much memory" | "Something is leaking" | Pinpoints the exact code path, object type, and retention mechanism |
| Fix Quality | Increase heap size | Fix the specific leak | Fix + bounded caches + leak detection tests + memory monitoring |
jmap, jhat, Eclipse MAT, VisualVM, async-profiler, JFR (Java Flight Recorder)tracemalloc, objgraph, memory_profiler, guppy3process_resident_memory_bytes)For the complete problem bank with solutions and walkthroughs, see references/problems.md. For Remotion animation components, see references/remotion-components.md.
© PrepLabsAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in agents/debugging/memory-leak-interviewer of PrepLabsAI/InterviewMentor.
Open the folder on GitHubat commit 609d311
Memory Leak Interviewer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Memory Leak Interviewer this skillPrepLabsAI/InterviewMentor | 112 | — | ~2.9k | Automated safety check: Pass | MIT | |
| Climber Step Minimizationben-manes/caffeine | 18k | — | ~3k | Automated safety check: Notes | Apache-2.0 | |
| Interval Profiling Performance AnalyzerArabelaTso/Skills-4-SE | 253 | — | ~1.7k | Automated safety check: Notes | Apache-2.0 | |
| Phy Memory Leak DetectorLeoYeAI/openclaw-master-skills | 2.2k | — | ~4.3k | Automated safety check: Pass | Apache-2.0 | |
| Pyroscopegrafana/skills | 279 | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Fory Performance Optimizationapache/fory | 4.6k | — | ~2.2k | Automated safety check: Pass | Apache-2.0 |
ben-manes/caffeine
Prices each step of the window climber algorithm by disabling it in turn, to find steps that no longer earn their keep and branches that no longer fire.
ArabelaTso/Skills-4-SE
Profile programs at the function/method level to identify performance hotspots, bottlenecks, and optimization opportunities.
LeoYeAI/openclaw-master-skills
Static memory leak pattern scanner for Node.js, Python, Go, and Java.
grafana/skills
Continuously profile applications with Grafana Pyroscope and read the result as flame graphs.
apache/fory
Run profile-driven bottleneck optimization across Apache Fory implementations (Java, C++, Python/Cython, Go, Rust, Swift, C, JavaScript/TypeScript, Dart, Kotlin, Scala).
LeoYeAI/openclaw-master-skills
Complete performance engineering system — profiling, optimization, load testing, capacity planning, and performance culture.
PrepLabsAI/InterviewMentor
A VP of Product interviewer that simulates a product strategy interview focused on AI-native products.
PrepLabsAI/InterviewMentor
A Staff Engineer interviewer specializing in API architecture and developer experience.
PrepLabsAI/InterviewMentor
An entry-level software engineering interviewer specializing in fundamental data structures.
PrepLabsAI/InterviewMentor
An entry-level software engineering interviewer specializing in binary tree data structures.
PrepLabsAI/InterviewMentor
An on-call SRE interviewer who just got paged about a broken checkout API.
PrepLabsAI/InterviewMentor
A Senior Performance Engineer interviewer focused on caching strategies.
Categories
A performance engineer interviewer who profiles production systems for memory leaks. Memory Leak Interviewer is an agent skill from PrepLabsAI/InterviewMentor. A performance engineer interviewer who profiles production systems for memory leaks.
Memory Leak Interviewer fits situations like: tasks that involve Performance optimization.
Run `npx skills add PrepLabsAI/InterviewMentor --skill memory-leak-interviewer -a claude-code`. Or copy the skill folder (agents/debugging/memory-leak-interviewer in PrepLabsAI/InterviewMentor) into .claude/skills/memory-leak-interviewer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add PrepLabsAI/InterviewMentor --skill memory-leak-interviewer -a codex`. Or copy the skill folder (agents/debugging/memory-leak-interviewer in PrepLabsAI/InterviewMentor) into .agents/skills/memory-leak-interviewer in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PrepLabsAI/InterviewMentor --skill memory-leak-interviewer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/memory-leak-interviewer, .gemini/skills/memory-leak-interviewer, .github/skills/memory-leak-interviewer and .opencode/skills/memory-leak-interviewer in your project.
SKILL.md names no scripts, command-line tools or credentials: Memory Leak Interviewer is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Memory Leak Interviewer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.9k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Memory Leak Interviewer: Climber Step Minimization (ben-manes/caffeine, 18k stars), Interval Profiling Performance Analyzer (ArabelaTso/Skills-4-SE, 253 stars), Phy Memory Leak Detector (LeoYeAI/openclaw-master-skills, 2.2k stars) and Pyroscope (grafana/skills, 279 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
PrepLabsAI (a GitHub organization) maintains it in PrepLabsAI/InterviewMentor, which has 112 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 7, 2026.
Source: PrepLabsAI/InterviewMentor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.