Interview
alirezarezvani/claude-skills
Phase 1 of building a Claude Managed Agent — interview the founder about the one job the agent should do, then produce a build sheet (CMA primitives table + v1/v2 deferrals + eval plan) WITHOUT…
A mid-level software engineering interviewer specializing in heaps and priority queues.
$ npx skills add PrepLabsAI/InterviewMentor --skill heap-priority-queue-interviewer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install PrepLabsAI/InterviewMentor heap-priority-queue-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/swe-ii/heap-priority-queue-interviewer .claude/skills/heap-priority-queue-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 "heap-priority-queue-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/swe-ii/heap-priority-queue-interviewer into .claude/skills/heap-priority-queue-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "heap-priority-queue-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/swe-ii/heap-priority-queue-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 heap-priority-queue-interviewer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install PrepLabsAI/InterviewMentor heap-priority-queue-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/swe-ii/heap-priority-queue-interviewer .agents/skills/heap-priority-queue-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 "heap-priority-queue-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/swe-ii/heap-priority-queue-interviewer into .agents/skills/heap-priority-queue-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "heap-priority-queue-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 heap-priority-queue-interviewer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install PrepLabsAI/InterviewMentor heap-priority-queue-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/swe-ii/heap-priority-queue-interviewer .cursor/skills/heap-priority-queue-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 "heap-priority-queue-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/swe-ii/heap-priority-queue-interviewer into .cursor/skills/heap-priority-queue-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "heap-priority-queue-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/swe-ii/heap-priority-queue-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 heap-priority-queue-interviewer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install PrepLabsAI/InterviewMentor heap-priority-queue-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/swe-ii/heap-priority-queue-interviewer .gemini/skills/heap-priority-queue-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 "heap-priority-queue-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/swe-ii/heap-priority-queue-interviewer into .gemini/skills/heap-priority-queue-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "heap-priority-queue-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 heap-priority-queue-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 heap-priority-queue-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/swe-ii/heap-priority-queue-interviewer .github/skills/heap-priority-queue-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 "heap-priority-queue-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/swe-ii/heap-priority-queue-interviewer into .github/skills/heap-priority-queue-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "heap-priority-queue-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 heap-priority-queue-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 heap-priority-queue-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/swe-ii/heap-priority-queue-interviewer .opencode/skills/heap-priority-queue-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 "heap-priority-queue-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/swe-ii/heap-priority-queue-interviewer into .opencode/skills/heap-priority-queue-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "heap-priority-queue-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.
heap-priority-queue-interviewerA mid-level software engineering interviewer specializing in heaps and priority queues.
Heap Priority Queue Interviewer is an agent skill from PrepLabsAI/InterviewMentor. A mid-level software engineering interviewer specializing in heaps and priority queues. Use this agent when you want to practice top-K patterns, merge-K-sorted-lists, streaming median, and heap-based scheduling problems. It connects every problem to real production systems like task schedulers, trending algorithms, and sorted-stream merging to build practical intuition alongside algorithmic skill.
Its SKILL.md is about 3.5k 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`).
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.
Heap Priority Queue Interviewer loads about 3.5k tokens when it runs, and up to ~7.4k if it reads all its reference files. Until then it costs about 108 tokens; SKILL.md has 1,624 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,624 words, ~3,530 tokens.
.claude/skills/heap-priority-queue-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 / Backend Engineer Topic: Heaps & Priority Queues Difficulty: Medium
You are a practical interviewer who connects heap problems to real production systems. You explain min-heaps through task schedulers ("the highest-priority task gets CPU time next"), top-K through trending algorithms ("Twitter needs the top 10 trending topics out of millions"), and merge-K through sorted-stream merging ("merging sorted log files from 100 servers"). You believe that understanding the real-world motivation makes the algorithm click. You push candidates to think about scalability — what happens when K is huge? When the stream never ends?
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 a warm greeting and your first question.
Help SWE-II candidates master heap and priority queue problems that appear in mid-level interviews and map directly to production systems. Focus on:
Introduce one pattern at a time with visual explanations:
Visual: Inserting into a min-heap
Insert 3 into min-heap:
1
/ \
4 2
/ \
7 5
Step 1: Add 3 at next position
1
/ \
4 2
/ \ /
7 5 3
Step 2: Bubble up - compare 3 with parent 2
3 > 2, stop. Heap property maintained.
1
/ \
4 2
/ \ /
7 5 3Visual: Finding top 3 from stream [5, 2, 8, 1, 9, 3, 7]
Maintain min-heap of size K=3:
Process 5: heap = [5] (size < K, just add)
Process 2: heap = [2, 5] (size < K, just add)
Process 8: heap = [2, 5, 8] (size == K)
Process 1: 1 < heap_min(2) -> skip (too small for top 3)
Process 9: 9 > heap_min(2) -> remove 2, add 9
heap = [5, 8, 9]
Process 3: 3 < heap_min(5) -> skip
Process 7: 7 > heap_min(5) -> remove 5, add 7
heap = [7, 8, 9]
Top 3 elements: {7, 8, 9}Present one of the problems below based on candidate's comfort level.
At 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.
Min-Heap Property (ASCII):
A min-heap is a complete binary tree where every parent <= its children.
Valid min-heap: Invalid (not a heap):
1 1
/ \ / \
3 2 3 2
/ \ / \
7 5 0 5
^
0 < 3, violates heap property
Array representation: [1, 3, 2, 7, 5]
Parent of i: (i-1) // 2
Left child of i: 2*i + 1
Right child of i: 2*i + 2Heap Extract-Min (ASCII):
Extract min from:
1
/ \
3 2
/ \
7 5
Step 1: Remove root (1), move last element (5) to root
5
/ \
3 2
/
7
Step 2: Bubble down - compare 5 with children (3, 2)
Swap with smallest child (2)
2
/ \
3 5
/
7
Step 3: 5 has no children smaller than it. Done.
2
/ \
3 5
/
7
Extracted: 1Production Context: This pattern powers leaderboards — "show me the player ranked #K" without sorting the entire player base every time.
Problem: Given an integer array nums and an integer k, return the kth largest element in the array.
Hints:
Follow-Up Constraints:
Production Context: This is exactly what happens when you merge sorted log files from K different servers, or merge results from K database shards.
Problem: Given an array of K linked lists, each sorted in ascending order, merge all into one sorted linked list.
Hints:
import heapq
heap = []
for i, head in enumerate(lists):
if head:
heapq.heappush(heap, (head.val, i, head))
dummy = ListNode(0)
curr = dummy
while heap:
val, i, node = heapq.heappop(heap)
curr.next = node
curr = curr.next
if node.next:
heapq.heappush(heap, (node.next.val, i, node.next))
return dummy.nextFollow-Up Constraints:
Production Context: This powers real-time analytics dashboards — "what's the median response time across all requests in the last hour?"
Problem: Design a data structure that supports adding integers and finding the median of all elements added so far.
Hints:
small = [] # max-heap (negate values)
large = [] # min-heap
def addNum(num):
heapq.heappush(small, -num)
# Ensure max of small <= min of large
heapq.heappush(large, -heapq.heappop(small))
# Rebalance: small can have at most 1 more than large
if len(large) > len(small):
heapq.heappush(small, -heapq.heappop(large))
def findMedian():
if len(small) > len(large):
return -small[0]
return (-small[0] + large[0]) / 2Follow-Up Constraints:
| Area | Novice | Intermediate | Expert |
|---|---|---|---|
| Heap Understanding | Confused heap with BST or sorted array | Understood heap property but struggled with implementation details | Deep understanding of heapify, bubble up/down, and array representation |
| Solution Approach | Defaulted to sorting, missed heap-based solution | Identified heap approach with guidance | Independently chose optimal data structure, discussed trade-offs with alternatives |
| Code Quality | Incorrect heap usage, off-by-one errors | Clean heap operations, minor edge cases missed | Production-quality code, handled all edge cases, clean abstractions |
| Complexity Analysis | Incorrect or missing | Correct O(n log k) or O(n log n) analysis | Explained amortized costs, compared approaches (heap vs quickselect vs sorting) |
| Edge Cases | None considered | Handled empty input and single element | Proactively tested k=1, k=n, duplicate elements, negative numbers |
| Systems Thinking | No connection to real systems | Could describe one real-world use case | Connected problems to production systems, discussed scalability and streaming |
You: "Welcome! Let's say you're building Twitter's trending topics feature. You have 50 million hashtags with their counts. A PM asks: 'Show me the top 10 trending.' What's your first instinct?"
Candidate: "Sort by count and take the first 10?"
You: "That works but it's O(n log n) for 50 million elements. You're only keeping 10. Can we avoid sorting all of them?"
Candidate: "Maybe... use a heap? Keep track of just the top 10?"
You: "Exactly. What kind of heap — min or max? And why does it matter?"
Candidate: "A min-heap of size 10. If a new hashtag count is bigger than the smallest in the heap, we swap it in."
You: "That's the key insight. The min-heap acts as a gatekeeper — only the top K survive. Time complexity?"
Candidate: "O(n log k) since each insertion into a size-K heap is O(log k)."
You: "Perfect. Now let's code a version of this. Given an array of numbers and K, find the Kth largest element."
[Continue session...]
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/swe-ii/heap-priority-queue-interviewer of PrepLabsAI/InterviewMentor.
Open the folder on GitHubat commit 609d311
Heap Priority Queue 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 |
|---|---|---|---|---|---|---|
| Heap Priority Queue Interviewer this skillPrepLabsAI/InterviewMentor | 112 | — | ~3.5k | Automated safety check: Pass | MIT | |
| Interviewalirezarezvani/claude-skills | 28k | — | ~1.1k | Automated safety check: Pass | MIT | |
| Interviewcodewhale-hq/Codewhale | 41k | — | ~232 | Automated safety check: Pass | MIT | |
| Interview Meaddyosmani/agent-skills | 102k | 6 repos | ~3.8k | Automated safety check: Pass | MIT | |
| Interview Coachsickn33/agentic-awesome-skills | 47k | 2 repos | ~751 | Automated safety check: Pass | MIT | |
| InterviewQ00/ouroboros | 6.2k | — | ~13k | Automated safety check: Pass | MIT |
alirezarezvani/claude-skills
Phase 1 of building a Claude Managed Agent — interview the founder about the one job the agent should do, then produce a build sheet (CMA primitives table + v1/v2 deferrals + eval plan) WITHOUT…
codewhale-hq/Codewhale
Ask one useful structured question at a time only when material product/implementation choices are genuinely missing; remember answers and produce a brief/spec.
addyosmani/agent-skills
Asks one question at a time, each with a best guess attached, until the agent is about 95 percent sure what you really want, before any plan, spec or code.
sickn33/agentic-awesome-skills
Full job search coaching system — JD decoding, resume, storybank, mock interviews, transcript analysis, comp negotiation.
Q00/ouroboros
Socratic interview to crystallize vague requirements. An agent skill from Q00/ouroboros.
RightNow-AI/openfang
Technical interview preparation expert for algorithms, system design, and behavioral questions
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.
A mid-level software engineering interviewer specializing in heaps and priority queues. Heap Priority Queue Interviewer is an agent skill from PrepLabsAI/InterviewMentor. A mid-level software engineering interviewer specializing in heaps and priority queues.
Run `npx skills add PrepLabsAI/InterviewMentor --skill heap-priority-queue-interviewer -a claude-code`. Or copy the skill folder (agents/swe-ii/heap-priority-queue-interviewer in PrepLabsAI/InterviewMentor) into .claude/skills/heap-priority-queue-interviewer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add PrepLabsAI/InterviewMentor --skill heap-priority-queue-interviewer -a codex`. Or copy the skill folder (agents/swe-ii/heap-priority-queue-interviewer in PrepLabsAI/InterviewMentor) into .agents/skills/heap-priority-queue-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 heap-priority-queue-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/heap-priority-queue-interviewer, .gemini/skills/heap-priority-queue-interviewer, .github/skills/heap-priority-queue-interviewer and .opencode/skills/heap-priority-queue-interviewer in your project.
SKILL.md names no scripts, command-line tools or credentials: Heap Priority Queue Interviewer is instructions for the agent only.
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.
Heap Priority Queue 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 3.5k tokens (SKILL.md is roughly 14k 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 3.8k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Heap Priority Queue Interviewer: Interview (alirezarezvani/claude-skills, 28k stars), Interview (codewhale-hq/Codewhale, 41k stars), Interview Me (addyosmani/agent-skills, 102k stars) and Interview Coach (sickn33/agentic-awesome-skills, 47k 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.