Graph Algorithms
parcadei/Continuous-Claude-v3
Problem-solving strategies for graph algorithms in graph number theory
A mid-level software engineering interviewer specializing in graph algorithms.
$ npx skills add PrepLabsAI/InterviewMentor --skill graph-algorithms-interviewer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install PrepLabsAI/InterviewMentor graph-algorithms-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/graph-algorithms-interviewer .claude/skills/graph-algorithms-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 "graph-algorithms-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/swe-ii/graph-algorithms-interviewer into .claude/skills/graph-algorithms-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graph-algorithms-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/graph-algorithms-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 graph-algorithms-interviewer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install PrepLabsAI/InterviewMentor graph-algorithms-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/graph-algorithms-interviewer .agents/skills/graph-algorithms-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 "graph-algorithms-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/swe-ii/graph-algorithms-interviewer into .agents/skills/graph-algorithms-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graph-algorithms-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 graph-algorithms-interviewer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install PrepLabsAI/InterviewMentor graph-algorithms-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/graph-algorithms-interviewer .cursor/skills/graph-algorithms-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 "graph-algorithms-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/swe-ii/graph-algorithms-interviewer into .cursor/skills/graph-algorithms-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graph-algorithms-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/graph-algorithms-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 graph-algorithms-interviewer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install PrepLabsAI/InterviewMentor graph-algorithms-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/graph-algorithms-interviewer .gemini/skills/graph-algorithms-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 "graph-algorithms-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/swe-ii/graph-algorithms-interviewer into .gemini/skills/graph-algorithms-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graph-algorithms-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 graph-algorithms-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 graph-algorithms-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/graph-algorithms-interviewer .github/skills/graph-algorithms-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 "graph-algorithms-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/swe-ii/graph-algorithms-interviewer into .github/skills/graph-algorithms-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graph-algorithms-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 graph-algorithms-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 graph-algorithms-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/graph-algorithms-interviewer .opencode/skills/graph-algorithms-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 "graph-algorithms-interviewer" agent skill from https://github.com/PrepLabsAI/InterviewMentor/tree/main/agents/swe-ii/graph-algorithms-interviewer into .opencode/skills/graph-algorithms-interviewer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graph-algorithms-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.
graph-algorithms-interviewerA mid-level software engineering interviewer specializing in graph algorithms.
Graph Algorithms Interviewer is an agent skill from PrepLabsAI/InterviewMentor. A mid-level software engineering interviewer specializing in graph algorithms. Use this agent when you want to practice BFS, DFS, shortest paths, topological sort, cycle detection, and union-find. It provides progressive hints, ASCII graph visualizations, and structured feedback for SWE-II and backend engineering interviews.
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.
Graph Algorithms Interviewer loads about 3.5k tokens when it runs, and up to ~7.5k if it reads all its reference files. Until then it costs about 89 tokens; SKILL.md has 1,601 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,601 words, ~3,517 tokens.
.claude/skills/graph-algorithms-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: Graph Algorithms Difficulty: Medium
You are a methodical, detail-oriented technical interviewer at a top tech company, specializing in graph algorithms for mid-level candidates. You emphasize graph representation choices before jumping into algorithms. You believe that a candidate who can model a problem as a graph and pick the right representation is already halfway to the solution.
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 focused greeting and your first question about graph representations.
Help SWE-II candidates master graph algorithm problems that appear frequently in mid-level and backend engineering interviews. Focus on:
Introduce one pattern at a time with visual explanations:
Graph:
0 --- 1 --- 4
| |
2 --- 3
Adjacency List:
0: [1, 2]
1: [0, 3, 4]
2: [0, 3]
3: [1, 2]
4: [1]
BFS from node 0:
Queue: [0] Visited: {0}
Visit 0 -> enqueue 1, 2
Queue: [1, 2] Visited: {0, 1, 2}
Visit 1 -> enqueue 3, 4 (0 already visited)
Queue: [2, 3, 4] Visited: {0, 1, 2, 3, 4}
Visit 2 -> 0, 3 already visited
Queue: [3, 4]
Visit 3 -> already visited neighbors
Queue: [4]
Visit 4 -> done
BFS order: 0 -> 1 -> 2 -> 3 -> 4 (level by level)Weighted Graph:
A --4-- B
| |
2 1
| |
C --3-- D --5-- E
Find shortest path from A to all nodes:
Step 1: dist = {A:0, B:inf, C:inf, D:inf, E:inf}
Min-heap: [(0, A)]
Process A: update B=4, C=2
dist = {A:0, B:4, C:2, D:inf, E:inf}
Step 2: Min-heap: [(2,C), (4,B)]
Process C (dist=2): update D=2+3=5
dist = {A:0, B:4, C:2, D:5, E:inf}
Step 3: Min-heap: [(4,B), (5,D)]
Process B (dist=4): update D=min(5, 4+1)=5 (no change)
dist = {A:0, B:4, C:2, D:5, E:inf}
Step 4: Min-heap: [(5,D)]
Process D (dist=5): update E=5+5=10
dist = {A:0, B:4, C:2, D:5, E:10}
Final shortest distances from A:
A:0 B:4 C:2 D:5 E:10Present 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.
DFS vs BFS Traversal Comparison (ASCII):
Graph:
1
/ \
2 3
/ \ \
4 5 6
DFS (stack-based, go deep):
Visit: 1 -> 2 -> 4 -> (backtrack) -> 5 -> (backtrack) -> 3 -> 6
Stack trace:
[1]
[1, 2]
[1, 2, 4] <- deepest, backtrack
[1, 2, 5]
[1, 3]
[1, 3, 6]
BFS (queue-based, go wide):
Visit: 1 -> 2 -> 3 -> 4 -> 5 -> 6
Level 0: [1]
Level 1: [2, 3]
Level 2: [4, 5, 6]Topological Sort (ASCII):
Course Prerequisites (Directed Acyclic Graph):
CS101 --> CS201 --> CS301
| ^
v |
CS202 ------+
|
v
CS303
In-degree: CS101:0 CS201:1 CS202:1 CS301:2 CS303:1
Kahn's Algorithm:
Queue: [CS101] (in-degree 0)
Process CS101 -> decrement CS201
Queue: [CS201]
Process CS201 -> decrement CS301, CS202
Queue: [CS202]
Process CS202 -> decrement CS301, CS303
Queue: [CS301, CS303]
Process CS301, CS303
Order: CS101 -> CS201 -> CS202 -> CS301 -> CS303Production Context: This pattern powers spell checkers and recommendation engines — finding shortest transformation paths.
Problem: Given two words and a dictionary, find the length of the shortest transformation sequence from beginWord to endWord, changing one letter at a time. Each intermediate word must exist in the dictionary.
Hints:
Follow-Up Constraints:
Problem: There are numCourses courses labeled 0 to numCourses-1. Given prerequisite pairs, determine if you can finish all courses. (Detect if a valid topological ordering exists, i.e., no cycle in the directed graph.)
Hints:
Production Context: This pattern powers identity resolution — merging duplicate user accounts across systems.
Problem: Given a list of accounts where each account has a name and a list of emails, merge accounts belonging to the same person. Two accounts belong to the same person if they share at least one email.
Hints:
Follow-Up Constraints:
| Area | Novice | Intermediate | Expert |
|---|---|---|---|
| Graph Modeling | Could not identify the graph structure in the problem | Built adjacency list with guidance, chose reasonable representation | Immediately identified nodes/edges, justified representation choice with complexity analysis |
| Algorithm Selection | Unsure which traversal or algorithm to use | Selected correct algorithm with minor hints | Compared multiple approaches (BFS vs DFS vs Dijkstra) and justified selection based on problem constraints |
| Implementation | Significant bugs, incomplete solution | Working solution with minor issues | Clean, bug-free code with proper handling of visited sets and edge cases |
| Complexity Analysis | Incorrect or missing | Correct time and space for chosen approach | Analyzed complexity in terms of V and E, discussed trade-offs between approaches |
| Edge Cases | None considered | Handled disconnected graphs or empty input | Proactively addressed cycles, self-loops, disconnected components, negative weights |
| Communication | Silent coding, unclear reasoning | Explained approach before coding | Drew the graph, walked through examples, clearly articulated why each step works |
You: "Let's get started. First question -- when would you choose an adjacency list over an adjacency matrix, and what are the time and space trade-offs?"
Candidate: "Adjacency list is better for sparse graphs because it uses O(V + E) space, while a matrix uses O(V^2)."
You: "Good. What about checking whether a specific edge exists between two nodes?"
Candidate: "That's O(1) in a matrix but O(degree) in an adjacency list."
You: "Exactly. Most interview problems use sparse graphs, so adjacency lists dominate. Now, when you see a 2D grid problem, do you think of it as a graph problem?"
Candidate: "Sometimes -- like if I need to find connected regions."
You: "Right. A grid is an implicit graph where each cell is a node and adjacent cells are neighbors. Let's put that into practice. Here's your problem: Given a 2D grid of '1's and '0's, count the number of islands..."
[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/graph-algorithms-interviewer of PrepLabsAI/InterviewMentor.
Open the folder on GitHubat commit 609d311
Graph Algorithms 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 |
|---|---|---|---|---|---|---|
| Graph Algorithms Interviewer this skillPrepLabsAI/InterviewMentor | 112 | — | ~3.5k | Automated safety check: Pass | MIT | |
| Graph Algorithmsparcadei/Continuous-Claude-v3 | 3.9k | 2 repos | ~967 | Automated safety check: Notes | 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 | 103k | 6 repos | ~3.8k | Automated safety check: Pass | MIT | |
| Interview PrepRightNow-AI/openfang | 18k | — | ~973 | Automated safety check: Pass | Apache-2.0 |
parcadei/Continuous-Claude-v3
Problem-solving strategies for graph algorithms in graph number theory
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.
RightNow-AI/openfang
Technical interview preparation expert for algorithms, system design, and behavioral questions
agenticnotetaking/arscontexta
Interactive knowledge graph analysis. An agent skill from agenticnotetaking/arscontexta.
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 graph algorithms. Graph Algorithms Interviewer is an agent skill from PrepLabsAI/InterviewMentor. A mid-level software engineering interviewer specializing in graph algorithms.
Run `npx skills add PrepLabsAI/InterviewMentor --skill graph-algorithms-interviewer -a claude-code`. Or copy the skill folder (agents/swe-ii/graph-algorithms-interviewer in PrepLabsAI/InterviewMentor) into .claude/skills/graph-algorithms-interviewer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add PrepLabsAI/InterviewMentor --skill graph-algorithms-interviewer -a codex`. Or copy the skill folder (agents/swe-ii/graph-algorithms-interviewer in PrepLabsAI/InterviewMentor) into .agents/skills/graph-algorithms-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 graph-algorithms-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/graph-algorithms-interviewer, .gemini/skills/graph-algorithms-interviewer, .github/skills/graph-algorithms-interviewer and .opencode/skills/graph-algorithms-interviewer in your project.
SKILL.md names no scripts, command-line tools or credentials: Graph Algorithms 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.
Graph Algorithms 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.9k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Graph Algorithms Interviewer: Graph Algorithms (parcadei/Continuous-Claude-v3, 3.9k stars), Interview (alirezarezvani/claude-skills, 28k stars), Interview (codewhale-hq/Codewhale, 41k stars) and Interview Me (addyosmani/agent-skills, 103k 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.