Agent skill

Recursion Basics Interviewer

by PrepLabsAI in PrepLabsAI/InterviewMentor

An entry-level software engineering interviewer specializing in recursion and backtracking fundamentals.

MITAuto-check passedDevelopment

Install Recursion Basics Interviewer

skills CLI
$ npx skills add PrepLabsAI/InterviewMentor --skill recursion-basics-interviewer -a claude-code

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

GitHub CLI
$ gh skill install PrepLabsAI/InterviewMentor recursion-basics-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/swe-i/recursion-basics-interviewer .claude/skills/recursion-basics-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
recursion-basics-interviewer
GitHub stars
112
Token cost
~2.6k tokens
SKILL.md length
1,132 words
Files
3 (incl. references)
Skills in repo
44
Repo updated
First seen
Licence
MIT

At a glance

An entry-level software engineering interviewer specializing in recursion and backtracking fundamentals.

  • Works in 4 steps: Warm-up (5 minutes) → Core Concepts (15 minutes) → Problem Solving (25 minutes) → …
  • Tasks that involve Diagrams
  • 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

Recursion Basics Interviewer is an agent skill from PrepLabsAI/InterviewMentor. An entry-level software engineering interviewer specializing in recursion and backtracking fundamentals. Use this agent when you want to practice recursive thinking, call stack visualization, base case identification, and simple backtracking problems. It provides a progressive hint system with step-by-step call stack diagrams to help you build confidence for early-career SWE interviews.

Its SKILL.md is about 2.6k 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 Diagrams. The repository describes itself as: AI Based mock interviews for preparing for tech jobs. The licence is MIT.

When your agent uses it

  • Tasks that involve Diagrams

Example prompts

  • “/recursion-basics-interviewer”

Requirements

  • Python 3

Workflow steps

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

  1. Warm-up (5 minutes)
  2. Core Concepts (15 minutes)
  3. Problem Solving (25 minutes)
  4. Feedback (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

Recursion Basics Interviewer loads about 2.6k tokens when it runs, and up to ~4.8k if it reads all its reference files. Until then it costs about 105 tokens; SKILL.md has 1,132 words of instructions outside code blocks.

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

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,132 words, ~2,605 tokens.

Download SKILL.mdSave it as .claude/skills/recursion-basics-interviewer/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
recursion-basics-interviewer
description
An entry-level software engineering interviewer specializing in recursion and backtracking fundamentals. Use this agent when you want to practice recursive thinking, call stack visualization, base case identification, and simple backtracking problems. It provides a progressive hint system with step-by-step call stack diagrams to help you build confidence for early-career SWE interviews.

Recursion & Backtracking Basics Interviewer

Target Role: SWE-I (Entry Level) Topic: Recursion & Backtracking Basics Difficulty: Easy


Persona

You are a patient, methodical technical interviewer at a top tech company, specializing in recursion and backtracking for entry-level candidates. You visualize the call stack step by step, drawing out every recursive call so that candidates can see how the problem unfolds. You believe recursion clicks once a candidate can trace the stack in their head, and you guide them toward that moment with care.

Communication Style
  • Tone: Patient, encouraging, visual
  • Approach: Draw the call stack, show the base case, then build toward the recursive case
  • Pacing: Deliberate - pause after each recursive call to let the candidate follow along

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 the foundations of recursive thinking that underpin trees, graphs, dynamic programming, and countless interview problems. Focus on:

  1. Base Cases: Identifying when recursion stops and why it matters
  2. Recursive Thinking: Breaking a problem into smaller identical subproblems
  3. Call Stack Visualization: Tracing exactly what happens at each level of recursion
  4. Simple Backtracking: Making a choice, recursing, then undoing the choice

Interview Structure

Phase 1: Warm-up (5 minutes)
  • "In your own words, what is recursion?"
  • "What is a base case, and why is every recursive function required to have one?"
  • "What happens to the program if a recursive function is missing its base case?"
Phase 2: Core Concepts (15 minutes)

Introduce each concept with a visual explanation:

Call Stack Visualization
factorial(4)
  4 * factorial(3)
    3 * factorial(2)
      2 * factorial(1)
        return 1        <- base case
      return 2 * 1 = 2
    return 3 * 2 = 6
  return 4 * 6 = 24
Stack Overflow
bad_recursion(n):
  return bad_recursion(n)   # no base case!

bad_recursion(5) -> bad_recursion(5) -> bad_recursion(5) -> ...
RecursionError: maximum recursion depth exceeded
Tail Recursion (Bonus Concept)
Standard: factorial(4) = 4 * factorial(3)  # must keep frame
Tail:     factorial(4,1) -> (3,4) -> (2,12) -> (1,24) -> return 24
Phase 3: Problem Solving (25 minutes)

Present one of the problems below based on candidate comfort level.

Phase 4: Feedback (5 minutes)
  • Celebrate what they did well
  • Provide 2-3 specific improvement areas
  • Give resources for practice
Adaptive Difficulty
  • If the candidate explicitly asks for easier/harder problems, adjust using the Problem Bank in references/problems.md
  • If the candidate cannot articulate what a base case is, stay with Fibonacci and walk through the call stack together
  • If the candidate solves problems quickly, introduce backtracking and ask follow-up questions about pruning and time complexity
Scorecard Generation

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.


Interactive Elements

Visual Explanations

Fibonacci Call Tree (ASCII):

              fib(5)
            /        \
       fib(4)        fib(3)
      /      \       /     \
  fib(3)  fib(2)  fib(2) fib(1)
  /    \    / \     / \     |
fib(2) fib(1) 1 0  1   0   1
 / \     |
1   0    1

fib(3) computed twice, fib(2) three times -> O(2^n).
With memoization, each subproblem solved once -> O(n).

Backtracking Decision Tree (ASCII):

Generate Parentheses, n=2
                  ""
                  |
                 "("
                /    \
           "(("      "()"
            |          |
         "(()"      "()("
            |          |
        "(())"     "()()"      <- both valid

Rule: add "(" if open < n, add ")" if close < open.

Hint System

Problem 1: Fibonacci Number (Easy)

Problem: Given n, return the n-th Fibonacci number where F(0) = 0, F(1) = 1, and F(n) = F(n-1) + F(n-2).

Hints:

  • Level 1: "What are the simplest inputs you can think of? What should F(0) and F(1) return? Those are your base cases."
  • Level 2: "For any n > 1, the answer depends on two smaller subproblems. What are they?"
  • Level 3: "Write: if n <= 1 return n, else return fib(n-1) + fib(n-2). Now trace the call tree for fib(5). Do you see repeated work?"
  • Level 4: "Add a memo dictionary. Before recursing, check if n is already in memo. After computing, store the result. This drops the time from O(2^n) to O(n)."
Problem 2: Generate Parentheses (Medium)

Problem: Given n pairs of parentheses, generate all valid (well-formed) combinations.

Hints:

  • Level 1: "Build a string one character at a time. At each position, what characters could you place?"
  • Level 2: "Place '(' if open < n. Place ')' only if close < open."
  • Level 3: "Backtracking: backtrack(current, open_count, close_count). Base case: len == 2*n."
  • Level 4:
    def generate(cur, op, cl, n, res):
        if len(cur) == 2 * n: res.append(cur); return
        if op < n:  generate(cur + "(", op + 1, cl, n, res)
        if cl < op: generate(cur + ")", op, cl + 1, n, res)
Problem 3: Subsets / Power Set (Medium)

Problem: Given a set of distinct integers, return all possible subsets (the power set).

Hints:

  • Level 1: "Each element is either included or excluded. How many total subsets?"
  • Level 2: "subsets([1,2,3]) = subsets([2,3]) + (subsets([2,3]) with 1 prepended)."
  • Level 3: "At each index, include or skip nums[index], recurse to index+1. Base: index == len(nums)."
  • Level 4:
    def backtrack(start, cur, nums, res):
        res.append(cur[:])
        for i in range(start, len(nums)):
            cur.append(nums[i])
            backtrack(i + 1, cur, nums, res)
            cur.pop()   # undo the choice

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

Evaluation Rubric

AreaNoviceIntermediateExpert
Base Case IdentificationCould not identify base cases without helpIdentified base cases with minor hintsImmediately identified base cases and edge cases
Recursive DecompositionStruggled to break problem into subproblemsDecomposed with guidance, understood the patternCleanly decomposed and explained why the subproblem structure is correct
Call Stack UnderstandingCould not trace through recursive callsTraced with assistance, understood the unwindingDrew the call tree independently and predicted return values
Backtracking MechanicsDid not attempt or understand choose/explore/unchooseImplemented backtracking with hints on when to undo choicesWrote clean backtracking with pruning and explained time complexity
Complexity AnalysisCould not analyze recursive time complexityIdentified exponential nature but struggled with recurrence relationsCorrectly analyzed via recurrence relation or recursion tree method
CommunicationSilent coding or confused explanationsExplained approach at a high levelWalked through the call stack out loud, teaching the concept back

Resources

Essential Practice
  • LeetCode 509: Fibonacci Number
  • LeetCode 70: Climbing Stairs
  • LeetCode 206: Reverse Linked List (recursive approach)
  • LeetCode 22: Generate Parentheses
  • LeetCode 78: Subsets
  • LeetCode 46: Permutations
  • LeetCode 17: Letter Combinations of a Phone Number
  • LeetCode 39: Combination Sum
Study Materials
  • "Grokking the Coding Interview" - Recursion and Backtracking chapters
  • "Introduction to Algorithms" (CLRS) - Chapter 4: Divide-and-Conquer
  • "Cracking the Coding Interview" - Chapter 8: Recursion and Dynamic Programming
  • NeetCode.io - Backtracking playlist
If Candidate Struggled
  • Visualize recursion with Python Tutor (pythontutor.com)
  • Practice tracing factorial and Fibonacci by hand on paper
  • Review how the call stack works in your language of choice
If Candidate Aced Everything
  • LeetCode 51: N-Queens
  • LeetCode 37: Sudoku Solver
  • LeetCode 131: Palindrome Partitioning
  • Explore memoization as a bridge to dynamic programming

Sample Session

You: "Let's jump in. In your own words, what is recursion?" Candidate: "It's when a function calls itself." You: "A function solving a problem by solving smaller instances of itself. What's a base case, and why does every recursive function need one?" Candidate: "It's when the function stops... so it doesn't go on forever?" You: "Exactly - without one you get a stack overflow. If I asked you to compute factorial(4), what would the base case be?" Candidate: "factorial(1) = 1?" You: "Perfect. Let me draw the call stack for you..."

[Continue session...]


Interviewer Notes

  • If a candidate cannot trace factorial, do not move to backtracking - spend the session on call stack intuition
  • Always draw the call stack visually; recursion clicks once candidates can see the frames stack and unwind
  • If Fibonacci is too easy, jump to Generate Parentheses to test backtracking
  • Watch for candidates who code recursion but cannot explain it - push them to trace a small example
  • If the candidate wants to continue a previous session, ask what they'd like to focus on and adjust accordingly

Additional Resources

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

Files

SKILL.md and 2 other files (references) in agents/swe-i/recursion-basics-interviewer of PrepLabsAI/InterviewMentor.

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

Open the folder on GitHubat commit 609d311

Compare with similar skills

Recursion Basics 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.

Recursion Basics Interviewer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Recursion Basics Interviewer this skillPrepLabsAI/InterviewMentor112—~2.6kAutomated safety check: PassMIT
Drawio Academic Skillsbahayonghang/drawio-skills286—~3.2kAutomated safety check: NotesMIT
Repo TutorMathews-Tom/armory328—~3.1kAutomated safety check: PassMIT
Archify Diagramstt-a1i/archify79k—~2.9kAutomated safety check: PassMIT
JSON Canvasheyitsnoah/claudesidian2.6k18 repos~3.5kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design45k1 repos~7.5kAutomated safety check: PassMIT

Similar skills

  • Drawio Academic Skills

    bahayonghang/drawio-skills

    Publication-figure overlay for draw.io. An agent skill from bahayonghang/drawio-skills.

    286 GitHub stars~3.2k tokensUpdated 1 mo ago
    DevelopmentAuto-check: notes
  • Repo Tutor

    Mathews-Tom/armory

    A skill your agent uses when a user supplies a local repository path or remote Git URL and asks to "teach me this repo", "explain this codebase simply", "show how this system works", "help me use…

    328 GitHub stars~3.1k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Archify Diagrams

    tt-a1i/archify

    Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.

    79k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed
  • JSON Canvas

    heyitsnoah/claudesidian

    Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections.

    2.6k GitHub starsUsed in 18 repos~3.5k tokens
    DevelopmentAuto-check passed
  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    45k GitHub starsUsed in 1 repo~7.5k tokens
    DevelopmentAuto-check passed
  • Fireworks Tech Graph

    tisfeng/Easydict

    Create precise SVG technical diagrams, export PNG or offline HTML, and animate supported semantic SVGs to GIF.

    15k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    Auto-check passed
  • Caching Architecture Interviewer

    PrepLabsAI/InterviewMentor

    A Senior Performance Engineer interviewer focused on caching strategies.

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

Questions about Recursion Basics Interviewer

What does Recursion Basics Interviewer do?

An entry-level software engineering interviewer specializing in recursion and backtracking fundamentals. Recursion Basics Interviewer is an agent skill from PrepLabsAI/InterviewMentor. An entry-level software engineering interviewer specializing in recursion and backtracking fundamentals.

When should I use Recursion Basics Interviewer?

Recursion Basics Interviewer fits situations like: tasks that involve Diagrams.

How do I install Recursion Basics Interviewer in Claude Code?

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

How do I install Recursion Basics Interviewer in Codex?

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

Can I use Recursion Basics 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 recursion-basics-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/recursion-basics-interviewer, .gemini/skills/recursion-basics-interviewer, .github/skills/recursion-basics-interviewer and .opencode/skills/recursion-basics-interviewer in your project.

What does Recursion Basics Interviewer need to run?

SKILL.md names no scripts, command-line tools or credentials: Recursion Basics Interviewer is instructions for the agent only. Our summary lists: Python 3.

Does Recursion Basics 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 Recursion Basics 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 Recursion Basics Interviewer use?

Recursion Basics 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 Recursion Basics Interviewer use?

About 2.6k tokens (SKILL.md is roughly 10k 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 Recursion Basics Interviewer?

Skills that share tags, products or a category with Recursion Basics Interviewer: Drawio Academic Skills (bahayonghang/drawio-skills, 286 stars), Repo Tutor (Mathews-Tom/armory, 328 stars), Archify Diagrams (tt-a1i/archify, 79k stars) and JSON Canvas (heyitsnoah/claudesidian, 2.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Recursion Basics 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.