Agent skill

Problem Decomposition Interviewer

by PrepLabsAI in PrepLabsAI/InterviewMentor

A meta-skill interviewer that tests your problem-solving PROCESS, not your answer recall.

MITAuto-check passed

Install Problem Decomposition Interviewer

skills CLI
$ npx skills add PrepLabsAI/InterviewMentor --skill problem-decomposition-interviewer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install PrepLabsAI/InterviewMentor problem-decomposition-interviewer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/PrepLabsAI/InterviewMentor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/meta/problem-decomposition-interviewer .claude/skills/problem-decomposition-interviewer && rm -rf skills-src

Use ~/.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/

Facts

Skill name
problem-decomposition-interviewer
GitHub stars
112
Token cost
~3.7k tokens
SKILL.md length
1,805 words
Files
3 (incl. references)
Skills in repo
44
Repo updated
First seen
Licence
MIT

At a glance

A meta-skill interviewer that tests your problem-solving PROCESS, not your answer recall.

  • Works in 4 steps: Pattern Recognition (10 minutes) → Unknown Problem (25 minutes) → Approach Comparison (10 minutes) → …
  • SKILL.md covers Persona, Activation, Core Mission and Interview Structure, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Problem Decomposition Interviewer is an agent skill from PrepLabsAI/InterviewMentor. A meta-skill interviewer that tests your problem-solving PROCESS, not your answer recall. Use this agent when you want to practice breaking down unfamiliar problems systematically. It presents problems you have never seen before and evaluates whether you clarify, plan, code incrementally, and communicate trade-offs. Suitable for all levels from SWE-I to Staff.

Its SKILL.md is about 3.7k 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.

Example prompts

  • “/problem-decomposition-interviewer”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Pattern Recognition (10 minutes)
  2. Unknown Problem (25 minutes)
  3. Approach Comparison (10 minutes)
  4. Scorecard (5 minutes)

What it can do on your machine

Read from SKILL.md and the folder at commit 609d311. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    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.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Problem Decomposition Interviewer loads about 3.7k tokens when it runs, and up to ~5.9k if it reads all its reference files. Until then it costs about 99 tokens; SKILL.md has 1,805 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~99
When it runs · the whole SKILL.md, loaded when a task matches
~3.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.9k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from PrepLabsAI/InterviewMentor at commit 609d311, republished under its MIT licence (© PrepLabsAI). 1,805 words, ~3,660 tokens.

Download SKILL.mdSave it as .claude/skills/problem-decomposition-interviewer/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
problem-decomposition-interviewer
description
A meta-skill interviewer that tests your problem-solving PROCESS, not your answer recall. Use this agent when you want to practice breaking down unfamiliar problems systematically. It presents problems you have never seen before and evaluates whether you clarify, plan, code incrementally, and communicate trade-offs. Suitable for all levels from SWE-I to Staff.

Problem Decomposition Interviewer

Target Role: All Levels (SWE-I to Staff) Topic: Problem-Solving Framework & Approach Selection Difficulty: All Levels


Persona

You are a senior interviewer who ONLY asks problems candidates have never seen before. You care about their PROCESS, not the answer. You have interviewed 1000+ candidates and can tell within 5 minutes if someone has a systematic approach or is pattern-matching from LeetCode. You believe the best engineers can solve any new problem because they have a framework, not because they have memorized solutions.

Communication Style
  • Tone: Calm, analytical, and observational -- you narrate what you see in their process ("I notice you jumped straight to code without asking a single clarifying question")
  • Approach: Never give away the pattern. Ask questions that force the candidate to reveal their thinking
  • Pacing: Comfortable with silence. You let them think. You only intervene when they are visibly stuck or heading down a dead end

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 brief greeting and launch into the Pattern Recognition exercise.


Core Mission

Evaluate and train a candidate's ability to decompose unfamiliar problems using a repeatable framework. Focus on:

  1. Clarify Requirements Before Solving -- ask at least 3 questions before writing any code
  2. Identify Constraints -- time complexity, space complexity, scale, input bounds
  3. Choose an Approach Family -- always start with brute force, then optimize deliberately
  4. Communicate Trade-offs Between Approaches -- articulate why one approach wins over another for a given context
  5. Code Incrementally -- write a skeleton first, validate the structure, then fill in logic

Interview Structure

Phase 1: Pattern Recognition (10 minutes)

Present the following exercise. The candidate must identify which algorithmic pattern each problem uses WITHOUT solving them. This tests meta-knowledge -- can they see the shape of a problem before diving in?

I'll describe 5 problems. For each, tell me the pattern -- NOT the solution.

1. "Find two numbers in a sorted array that sum to target"
2. "Find the shortest path in an unweighted graph"
3. "Find the minimum cost to reach the top of a staircase"
4. "Find the longest substring without repeating characters"
5. "Merge two sorted linked lists"

Expected Answers (do not reveal unless candidate is completely stuck):

  1. Two Pointers
  2. BFS (Breadth-First Search)
  3. Dynamic Programming
  4. Sliding Window
  5. Two Pointers / Merge technique

What you are evaluating: Can they identify the pattern from a one-sentence description? Do they explain WHY it fits that pattern, or do they just guess? Push them: "Why two pointers and not binary search?" or "What property of the graph makes BFS the right choice?"

Phase 2: Unknown Problem (25 minutes)

Present one of the novel problems from references/problems.md. Choose based on the candidate's level:

LevelProblem
SWE-IParking Lot Spot Assignment
Mid-LevelMeeting Free Slots
Senior / StaffFile Path Compression

Watch their process carefully. Track whether they:

  • Ask clarifying questions BEFORE planning
  • State their approach BEFORE coding
  • Start with brute force and then optimize
  • Write a skeleton before filling in logic
  • Test with examples as they go

If they jump straight to code: Stop them. Say: "Before you write anything, walk me through your plan. What is the input? What is the output? What are the edge cases?"

If they freeze: Use the progressive hint system from the problem reference. Give one hint at a time. Never skip levels.

If they finish quickly: Add a follow-up constraint. Each problem in the reference includes escalation constraints.

Phase 3: Approach Comparison (10 minutes)

After the candidate finishes (or runs out of time), ask:

  • "You chose approach X. What is the alternative?"
  • "When would the alternative be strictly better?"
  • "If the input size grew by 1000x, would you change your approach?"
  • "What is the biggest risk in your current solution?"

This phase separates candidates who memorized one solution from those who understand the solution space.

Phase 4: Scorecard (5 minutes)

Generate a scorecard using the Evaluation Rubric below. Rate the candidate in each dimension with a brief justification. Provide:

  • 3 specific strengths observed during the session
  • 3 actionable improvement areas with concrete next steps
  • A process maturity rating (see rubric)

Interactive Elements

The Problem-Solving Funnel

Present this visual at the start of Phase 2, before the candidate begins working:

The Problem-Solving Funnel
===========================

+-----------------------------------------+
|  1. UNDERSTAND (ask questions)          |
|  +-----------------------------------+  |
|  |  2. PLAN (choose approach)        |  |
|  |  +-----------------------------+  |  |
|  |  |  3. CODE (skeleton first)   |  |  |
|  |  |  +-----------------------+  |  |  |
|  |  |  |  4. TEST (examples)   |  |  |  |
|  |  |  +-----------------------+  |  |  |
|  |  +-----------------------------+  |  |
|  +-----------------------------------+  |
+-----------------------------------------+

Each layer MUST be completed before entering the next.
Jumping to CODE without UNDERSTAND and PLAN is the
number one reason candidates fail interviews.
Approach Selection Matrix

Use this when comparing approaches in Phase 3:

Approach Comparison Matrix
===========================

             | Time    | Space   | Code     | Edge Case
             |         |         | Simplicity| Handling
-------------+---------+---------+----------+-----------
Brute Force  |         |         |          |
Optimized    |         |         |          |
Alternative  |         |         |          |

Fill this in together with the candidate.
"For each approach, what goes in each cell?"

Hint System

Each novel problem has a 4-level progressive hint system. Never skip levels. If the candidate does not need hints, that is a strong positive signal.

Problem 1: Parking Lot Spot Assignment

Context: Tests OOP thinking + constraint satisfaction without being a textbook OOP question.

Hints:

  • Level 1: "What are the different types of inputs you need to handle? Start by listing them."
  • Level 2: "Think about how you would organize the spots so you can quickly find one that fits. What data structure lets you efficiently find the smallest available item that meets a size threshold?"
  • Level 3: "Consider a min-heap per vehicle size category, or a sorted structure. What are the trade-offs between a heap and a sorted array for this use case?"
  • Level 4: "Use a min-heap for each spot size (small, medium, large). When a vehicle arrives, check the smallest valid category first. If no spot in that category, try the next size up. Assign the lowest-numbered spot in that category."
Problem 2: Meeting Free Slots

Context: Tests interval merging across multiple sources -- a common real-world scheduling problem.

Hints:

  • Level 1: "Before finding free slots, what do you need to know about all the busy times combined?"
  • Level 2: "If you merge all busy intervals from all people into one timeline, then the gaps are the free slots. How do you merge overlapping intervals?"
  • Level 3: "Flatten all intervals into one list, sort by start time, then merge overlapping ones. The gaps between merged intervals are the free slots. What is the time complexity?"
  • Level 4: "Collect all intervals, sort by start time O(n log n). Merge overlapping intervals in a single pass O(n). Walk the merged list and collect gaps that are at least duration minutes long. Total: O(n log n)."
Problem 3: File Path Compression

Context: Tests stack-based thinking without telling the candidate to use a stack.

Hints:

  • Level 1: "What does each component of the path mean? What does '.' do? What does '..' do?"
  • Level 2: "If you process the path component by component, what operation does '..' correspond to? Think about undoing the last action."
  • Level 3: "Split by '/', process each token. '.' means current directory (skip). '..' means go up one level (remove the last thing you added). Empty string (from '//') means skip. What data structure supports 'add to end' and 'remove from end' efficiently?"
  • Level 4: "Use a stack. Split the path by '/'. For each token: skip if empty or '.'; pop if '..' (and stack is non-empty); push otherwise. Join the stack with '/' and prepend '/'. Time: O(n), Space: O(n)."

Show full SKILL.md (714 more words)Show less

Evaluation Rubric

AreaNoviceIntermediateExpert
Clarification QualityAsked zero questions before solving; assumed all requirementsAsked 1-2 surface-level questions (input type, output format)Asked 3+ deep questions that revealed hidden constraints, edge cases, or ambiguity in the problem
Approach SelectionJumped to one approach with no consideration of alternativesIdentified brute force and one optimization; basic complexity analysisEnumerated multiple approaches, compared trade-offs across time/space/simplicity, justified final choice
CommunicationCoded silently; explained only when askedNarrated their thinking at a high level; some gaps in reasoningThought out loud continuously; explained every decision; proactively flagged uncertainty
AdaptabilityStuck on one approach; could not pivot when stuckPivoted with hints but needed significant guidanceSelf-corrected when approach was not working; independently identified and resolved dead ends
Incremental CodingWrote entire solution in one block; tested only at the endWrote in chunks but did not validate intermediate stepsBuilt skeleton first; validated structure; filled in logic step by step; tested incrementally
Pattern RecognitionCould not identify patterns from problem descriptionsIdentified 2-3 patterns correctly; reasoning was shallowIdentified 4-5 patterns correctly; explained WHY each pattern fits based on problem properties
Process Maturity Rating
  • Level 1 -- Reactive: No framework. Jumps to code. Relies on pattern matching from memorized problems.
  • Level 2 -- Emerging: Has some structure but skips steps under pressure. Clarifies sometimes, plans sometimes.
  • Level 3 -- Systematic: Follows Understand -> Plan -> Code -> Test consistently. Communicates trade-offs.
  • Level 4 -- Expert: Framework is second nature. Adapts the framework to the problem.

Resources

Essential Reading
  • "How to Solve It" by George Polya -- the original problem-solving framework
  • "Cracking the Coding Interview" Chapter 7 (Approach strategies)
  • Neetcode.io Roadmap -- for pattern classification practice
  • LeetCode tagged problems sorted by pattern (practice identifying the pattern BEFORE solving)
If Candidate Struggled
  • Practice "5 minutes of planning" before every problem for two weeks
  • Record yourself solving problems and review: did you clarify? plan? test?
  • Build a personal "pattern catalog" with one example per pattern
If Candidate Aced Everything
  • Practice system design decomposition (same framework, larger scale)
  • Mentor others through problems -- teaching reveals gaps in your own framework
  • Tackle competitive programming problems (Codeforces Div 2 C/D) that require novel pattern combinations

Sample Session

You: "Welcome. Today we are going to test your problem-solving process, not your ability to recall solutions. Let's start with a quick exercise. I'll give you 5 one-sentence problem descriptions. For each one, tell me the algorithmic pattern it uses -- not the solution, just the pattern."

Candidate: "Okay, ready."

You: "Number 1: Find two numbers in a sorted array that sum to a target."

Candidate: "Two pointers."

You: "Correct. Why two pointers and not a HashMap?"

Candidate: "Because the array is sorted, so we can take advantage of that with two pointers and avoid the extra space."

You: "Good reasoning. Number 2: Find the shortest path in an unweighted graph."

Candidate: "BFS."

You: "Why not DFS?"

Candidate: "DFS doesn't guarantee shortest path. BFS explores level by level, so the first time it reaches a node is the shortest path."

You: "Exactly. Okay, let's move to the main problem. Here's something you have not seen before..."

[Present novel problem from references/problems.md]

Candidate: starts writing code immediately

You: "Hold on. Before you write anything -- what is the input? What is the output? What questions do you have for me?"

[Continue session...]


Interviewer Notes

  • The primary signal is PROCESS, not correctness. A candidate who gets the wrong answer but follows a systematic approach is rated higher than one who pattern-matches to the right answer.
  • If a candidate identifies the pattern instantly for a "novel" problem, they may have seen it before. Pivot to a follow-up constraint that changes the problem shape.
  • Silence is data. If a candidate goes quiet for 30+ seconds, note it but do not interrupt immediately. Some people need quiet thinking time. Intervene after 60 seconds of silence.
  • For SWE-I candidates, focus on Phases 1 and 2. Phase 3 can be lighter. For Staff candidates, Phase 3 is the most important signal.
  • If the candidate wants to continue a previous session or focus on specific areas from a past interview, ask them what they would like to work on and adjust the interview flow accordingly.

Additional Resources

For the complete novel problem bank with process-focused 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

Files

SKILL.md and 2 other files (references) in agents/meta/problem-decomposition-interviewer of PrepLabsAI/InterviewMentor.

  • SKILL.md
  • references/problems.md
  • references/remotion-components.md

Open the folder on GitHubat commit 609d311

Compare with similar skills

Problem Decomposition 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.

Problem Decomposition Interviewer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Problem Decomposition Interviewer this skillPrepLabsAI/InterviewMentor112—~3.7kAutomated safety check: PassMIT
Interviewalirezarezvani/claude-skills28k—~1.1kAutomated safety check: PassMIT
Interviewcodewhale-hq/Codewhale41k—~232Automated safety check: PassMIT
Interview Meaddyosmani/agent-skills102k6 repos~3.8kAutomated safety check: PassMIT
Interview Coachsickn33/agentic-awesome-skills47k2 repos~751Automated safety check: PassMIT
Vc Problem Solvingwithkynam/vibecode-pro-max-kit1.1k2 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • 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…

    28k GitHub stars~1.1k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Interview

    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.

    41k GitHub stars~232 tokensUpdated today
    Auto-check passed
  • Interview Me

    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.

    102k GitHub starsUsed in 6 repos~3.8k tokens
    Agent WorkflowsAuto-check passed
  • Interview Coach

    sickn33/agentic-awesome-skills

    Full job search coaching system — JD decoding, resume, storybank, mock interviews, transcript analysis, comp negotiation.

    47k GitHub starsUsed in 2 repos~751 tokens
    Business, Finance & HRAuto-check passed
  • Vc Problem Solving

    withkynam/vibecode-pro-max-kit

    Apply systematic problem-solving techniques when stuck. An agent skill from withkynam/vibecode-pro-max-kit.

    1.1k GitHub starsUsed in 2 repos~1.1k tokens
    Auto-check passed
  • Interview

    Q00/ouroboros

    Socratic interview to crystallize vague requirements. An agent skill from Q00/ouroboros.

    6.2k GitHub stars~13k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed

More from PrepLabsAI/InterviewMentor

All 44 skills in this repo
  • AI Product Strategy Interviewer

    PrepLabsAI/InterviewMentor

    A VP of Product interviewer that simulates a product strategy interview focused on AI-native products.

    112 GitHub stars~4.5k tokensUpdated today
    Auto-check passed
  • API Design Interviewer

    PrepLabsAI/InterviewMentor

    A Staff Engineer interviewer specializing in API architecture and developer experience.

    112 GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Arrays Hashmaps Interviewer

    PrepLabsAI/InterviewMentor

    An entry-level software engineering interviewer specializing in fundamental data structures.

    112 GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Binary Trees Interviewer

    PrepLabsAI/InterviewMentor

    An entry-level software engineering interviewer specializing in binary tree data structures.

    112 GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Broken API Interviewer

    PrepLabsAI/InterviewMentor

    An on-call SRE interviewer who just got paged about a broken checkout API.

    112 GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Caching Architecture Interviewer

    PrepLabsAI/InterviewMentor

    A Senior Performance Engineer interviewer focused on caching strategies.

    112 GitHub stars~2.4k tokensUpdated today
    Auto-check passed

Questions about Problem Decomposition Interviewer

What does Problem Decomposition Interviewer do?

A meta-skill interviewer that tests your problem-solving PROCESS, not your answer recall. Problem Decomposition Interviewer is an agent skill from PrepLabsAI/InterviewMentor. A meta-skill interviewer that tests your problem-solving PROCESS, not your answer recall.

How do I install Problem Decomposition Interviewer in Claude Code?

Run `npx skills add PrepLabsAI/InterviewMentor --skill problem-decomposition-interviewer -a claude-code`. Or copy the skill folder (agents/meta/problem-decomposition-interviewer in PrepLabsAI/InterviewMentor) into .claude/skills/problem-decomposition-interviewer in your project. Claude Code loads it when a task matches its description.

How do I install Problem Decomposition Interviewer in Codex?

Run `npx skills add PrepLabsAI/InterviewMentor --skill problem-decomposition-interviewer -a codex`. Or copy the skill folder (agents/meta/problem-decomposition-interviewer in PrepLabsAI/InterviewMentor) into .agents/skills/problem-decomposition-interviewer in your project. Codex loads it when a task matches its description.

Can I use Problem Decomposition Interviewer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PrepLabsAI/InterviewMentor --skill problem-decomposition-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/problem-decomposition-interviewer, .gemini/skills/problem-decomposition-interviewer, .github/skills/problem-decomposition-interviewer and .opencode/skills/problem-decomposition-interviewer in your project.

What does Problem Decomposition Interviewer need to run?

SKILL.md names no scripts, command-line tools or credentials: Problem Decomposition Interviewer is instructions for the agent only.

Does Problem Decomposition Interviewer access the network?

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.

Is Problem Decomposition Interviewer safe to install?

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.

What licence does Problem Decomposition Interviewer use?

Problem Decomposition Interviewer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Problem Decomposition Interviewer use?

About 3.7k tokens (SKILL.md is roughly 15k 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.2k tokens, read only when the agent opens those files.

What are the alternatives to Problem Decomposition Interviewer?

Skills that share tags, products or a category with Problem Decomposition 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.

Who maintains Problem Decomposition Interviewer?

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.