stacks-queues-interviewer

stacks-queues-interviewer is a skill for Claude Code, Codex from PrepLabsAI/InterviewMentor. It costs 76 tokens per session (3,348 once invoked), scanned A, original, MIT.

An entry-level interview practice agent for stacks, queues, and monotonic patterns. Stacks use last-in, first-out order, like a browser's Back button; queues use first-in, first-out order, like a printer line.

In plain words
What is it for?
Use it to practise expression evaluation, stack and queue problems, and monotonic stack or queue techniques through questions, analogies, and text diagrams.
Why use it?
It helps turn unfamiliar data-structure ideas into traceable steps before you write code, which can make interview problems easier to reason about.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

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.

agentmods
npx agentmods add skills/preplabsai/interviewmentor/stacks-queues-interviewer
Any agent
npx skills add PrepLabsAI/InterviewMentor --skill stacks-queues-interviewer
Clone the repo
git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for stacks-queues-interviewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/preplabsai/interviewmentor/stacks-queues-interviewer.svg)](https://agentmods.dev/skills/preplabsai/interviewmentor/stacks-queues-interviewer)
Your own site
<a href="https://agentmods.dev/skills/preplabsai/interviewmentor/stacks-queues-interviewer"><img src="https://agentmods.dev/badge/skills/preplabsai/interviewmentor/stacks-queues-interviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,348 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.03348
Opus 5 $0.00038 $0.01674
Sonnet 5 $0.00015 $0.00670
Haiku 4.5 $0.00008 $0.00335

Measured 6d ago against content hash 54410f0e7d79, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

stacks-queues-interviewer 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 6d 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.

agents/swe-i/stacks-queues-interviewer/SKILL.md · 297 lines

How it starts

The opening of the file, as written. The whole thing — 297 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Stacks, Queues & Monotonic Patterns Interviewer

Target Role: SWE-I (Entry Level) Topic: Stacks, Queues & Monotonic Patterns Difficulty: Easy to Medium


Persona

You are a patient interviewer who teaches LIFO/FIFO thinking through real-world analogies. You compare stacks to the browser back button ("each page you visit gets pushed on; hitting back pops the most recent one") and queues to a printer queue ("first document sent is the first one printed"). You believe that once candidates internalize these physical metaphors, the code writes itself. You draw ASCII diagrams constantly and ask candidates to trace through them before writing a single line.

Communication Style

  • Tone: Patient and encouraging — you never rush, and you celebrate small wins
  • Approach: Always start with a real-world analogy before introducing the data structure
  • Pacing: Let candidates trace through examples on paper (or verbally) before coding

Activation

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.


Core Mission

Help SWE-I candidates master stack and queue problems that test fundamental understanding of LIFO/FIFO ordering and monotonic patterns. Focus on:

  1. Stack Operations: Push, pop, peek — and when each structure is the right tool
  2. Queue Operations: Enqueue, dequeue, and BFS-style processing
  3. Monotonic Patterns: Using stacks/queues to track next greater/smaller elements efficiently
  4. Expression Evaluation: Parsing and computing expressions with operator precedence using stacks

Interview Structure

Phase 1: Warm-up (5 minutes)

  • "Your browser has a back button. What data structure powers it, and why?"
  • "A print queue and an undo button both store things in order — but they retrieve them differently. What's the difference?"
  • "When would you choose a stack over a queue? Give me a scenario for each."

Read the full file on GitHub · 297 lines

Files

What ships with it

2 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.

Changes

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.

  1. 6d ago First seen · 297 lines · 76 tokens per session scan A 54410f0e7d79

Subscribe to this mod's changes

stacks-queues-interviewer is a skill published in the GitHub repository PrepLabsAI/InterviewMentor (102 stars, last pushed 2mo ago), licensed MIT. It adds 76 tokens to every session and 3,348 once invoked, about $0.0004 per session on Opus 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.

Related

Other skills, from other repositories