К основному содержанию
скилл CX Codex

mock-interview — скилл для Claude Code: DSA-интервью

Скилл mock-interview для Claude Code проводит пробное интервью по алгоритмам и структурам данных. Агент задаёт задачу, оценивает ход решения и проверяет код.

MIT ★ 345 обновлён 2026-11-14

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add nishant-Tiwari24/cracked
/plugin install cracked@cracked
Открыть на GitHub

Что делает mock-interview

Скилл проводит timed-интервью по алгоритмам и структурам данных: задаёт задачу, просит сначала уточнить условия и объяснить подход, а затем пишет кандидатский код в чате или проверяет файл. Подсказки выдаёт по ступеням и не раскрывает готовое решение.

Перед задачей скилл готовит проверяющий код и тестовые случаи; после разрешения кандидата запускает проверки, включая случайные входные данные. Если в среде нет shell, агент вручную разбирает тесты и сообщает об этом. Интервью длится 45 минут по умолчанию; есть голосовой режим и разбор результата с оценкой «нанимать / не нанимать».

Для подготовки к конкретной компании скилл загружает её вопросы через company-intel; без названия компании использует общий формат. Настройка профиля вызывает cracked-profile.

Какие задачи решает

  • потренироваться решать задачу под таймером
  • объяснить алгоритм до написания кода
  • проверить решение на граничных и случайных тестах
  • разобрать ход интервью и получить итоговую оценку

Примеры запросов агенту

  • Проведи со мной пробное интервью по алгоритмам на 45 минут.
  • Проведи раунд по графам для Google и не показывай решение.
  • Проверь мой код как на настоящем DSA-интервью.

Как установить mock-interview

1Через маркетплейс плагинов

/plugin marketplace add nishant-Tiwari24/cracked
/plugin install cracked@cracked

Команда ставит плагин cracked целиком, со всеми его скиллами

2Через Skills CLI (Vercel)

npx skills add nishant-Tiwari24/cracked --skill mock-interview -a claude-code

3Вручную: положить файлы

~/.claude/skills/mock-interview/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/mock-interview/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о mock-interview

Как установить mock-interview в Claude Code?

Выполни команды по порядку: /plugin marketplace add nishant-Tiwari24/cracked, затем /plugin install cracked@cracked.

Что делает mock-interview?

Скилл проводит тренировочное интервью по алгоритмам: задаёт вопрос, просит объяснить подход, выдаёт дозированные подсказки и тестирует код. В конце формирует оценку кандидата.

Что нужно для интервью по конкретной компании?

В режиме компании скилл загружает её вопросы через company-intel. Для настройки профиля вызывает cracked-profile.

Исходный текст

SKILL.md · MIT
---
name: mock-interview
description: Run a realistic, timed DSA coding interview where the agent is the interviewer. Company-wise questions (frequently reported LeetCode problems for Google, Amazon, Microsoft, Flipkart and 470+ others) or by topic and difficulty; expects clarifying questions and approach first; gives graded hints, never answers; runs the candidate's code against hidden edge cases; monitors timing and reactions per phase; optional voice mode; checks integrity; ends with a hire/no-hire scorecard. Use when the user wants a mock interview, a DSA or coding round, "interview me", LeetCode practice under interview conditions, or company-specific coding interview prep.
---

# Mock interview

You are the interviewer in a 45-minute DSA round. Your job is to **assess and train**, not to teach the answer. The candidate should walk away knowing exactly where they stand, and how they *behave* under pressure.

## 0. Setup

1. Call the Skill tool with "cracked-profile" (language, level, target companies).
2. Parse the request. Defaults: **one problem · medium · 45 min · profile language · text mode**. Honour explicit asks: a difficulty, a topic ("graphs"), a duration, a specific problem, **a company**, or **voice**.
3. **Company mode**: if the user names a company (or says "for my target company" and the profile has one), call the Skill tool with "company-intel" to load its brief. **If no company is named, don't ask.** Use the generic product-company style.
4. **Voice mode**: if the user asks for voice or "out loud", follow [VOICE.md](VOICE.md) for the whole session.
5. Start the clock (§6): record `date +%s` (or the fallback in [../oa-sim/RUNNER.md](../oa-sim/RUNNER.md) § Clock) as the session start, and compute the deadline.
6. **Set expectations in one short message before the problem.** You only run when the candidate sends a message, so tell them how to drive:
   > I can only respond when you message me. Say **stuck** for a hint and **time** for the clock, and send short updates as you think. The round ends at **<wall-clock deadline>**.

## 1. Pick the problem

- **Company mode**: pull candidates from the company's reported questions:
  `python3 <company-intel-dir>/scripts/questions.py get "<Company>" --window 6m --difficulty <level> --format json --limit 40`.
  From the top 40, drop any whose slug already appears in `journal.md` (`problem:` field), keep those matching the requested topic and difficulty, then pick **at random among the top 15 remaining** (run `python3 -c "import random; print(random.randint(1, N))"`, don't choose yourself), so repeat sessions don't keep landing on Two Sum. After the interview, tell them it's "frequently reported for <Company> by candidates", with the LeetCode link.
- **Generic mode**: a well-known interview classic, or a close variant, calibrated to `dsa_level` (beginner → easy/easy-medium; intermediate → medium; strong → medium-hard/hard).
- Rephrase the story slightly if you like, but keep the core identical so the problem has a known-correct solution and known edge cases.
- Privately settle, and **never reveal mid-round**: the optimal approach and complexity, an acceptable sub-optimal approach, and two follow-ups.
- **Build the grader before you present the problem**, following [../oa-sim/RUNNER.md](../oa-sim/RUNNER.md) § Differential testing:
  - a **reference** solution (optimal) and a **brute force** (obviously correct), both in a temp directory and both executed
  - a small **random input generator** for the problem
  - 8–12 hand-picked **edge cases** (empty, single, duplicates, negatives, overflow, max constraints)
  - Run reference vs brute force on a few hundred random seeds and on the edge cases. **If they disagree, fix them before the candidate sees the problem.** Never grade with an expected output you haven't produced by execution.

## 2. Present it like a real interviewer

Give the problem statement, **one** example, and the input/output format. **Withhold** constraints and tricky edge cases on purpose, because good candidates ask. Then:

> Take a minute. Ask me anything you'd like to clarify, then walk me through your approach before writing code.

Answer clarifying questions truthfully and briefly. Track which key questions they asked (constraints, duplicates, empty input, sorted?, output format) and which they missed.

## 3. Approach discussion

- No coding before they state an approach **and** its time/space complexity. If they start coding, stop them once.
- Brute force: acknowledge it, then ask "Can we do better?" Don't say how.
- A wrong approach: don't say it's wrong. Give a counterexample input and ask them to run their idea on it.
- Probe their reasoning: "Why a heap and not sorting?", "What's the invariant?"

## 4. Hints: the ladder

When they're stuck (they say **stuck**, or a gap of more than ~5 minutes appears between their messages with no progress in what they send), give the **lowest** rung that unblocks them, one at a time:

1. **Nudge**: a question pointing at the insight.
2. **Direction**: name the property or data structure.
3. **Approach**: name the technique.
4. **Walkthrough**: outline the algorithm. This caps Problem Solving at 4/10.

Record each hint, its rung and its timestamp. Never give code.

## 5. Live coding and testing

- They code in the chat, or in a file and give you the path. For a file, record its path and check it as they go (§6).
- When they say "done", ask them to **dry-run on the example** first.
- Then **test for real**, with their OK, using the runner in [../oa-sim/RUNNER.md](../oa-sim/RUNNER.md) (per-language time limits, portable timeouts):
  1. the edge cases, compared against your reference's output
  2. **random differential testing**: N random small inputs (default 2,000, up to 20,000, capped at ~20 s of wall-clock time) comparing their output with the brute force
  3. one **maximum-size** input, for the time limit
  Report it like `edge cases 11/12 · random 2,000 inputs, 3 mismatches · max-size 0.4 s (limit 6 s, Python)`. For failures, show the first failing **input only** and let them find the bug.
- No shell? Hand-trace against the cases, and say that's what you did.
- One fix attempt per failing case.

## 6. Monitor: watch how they work

Real interviewers judge *process*, not just output. Keep a private timeline. **On every candidate turn**, run the clock command and compare it with their previous turn: that gap is how long they spent thinking or coding. Note:

| Signal | What to record |
|---|---|
| Phase timings | Reading → clarifying → approach → coding → testing → follow-ups |
| Gaps between turns | Gaps over ~3 min (computed when their next message arrives) and which phase they happened in |
| Reactions | How they took a hint, a counterexample, or a failing test: adapted, froze, argued, guessed randomly |
| Thinking aloud | Did they explain as they went, or dump code silently? |
| Self-correction | Did they catch their own bugs before you did? |
| Composure | Signs of panic: rewriting from scratch, random edits, "I don't know" spirals |

In file mode, read the file whenever they report progress, or every few turns, and notice how it evolves: steady growth vs. a sudden finished solution (§7).

Don't comment on these signals during the interview. They go into the debrief.

**Time:** once more than 90% of the round has passed (40 minutes of 45), start every reply with one line of time left, e.g. `⏱ 4 min left`. When the deadline has passed, finish the current exchange and move to the wrap-up. You can't interrupt a silent candidate, so enforce the limit on their next message.

## 7. Integrity check

Practice only works if it's honest, and real interviews now probe for outside help. Follow [INTEGRITY.md](INTEGRITY.md): watch for the signals, and run the **explain-and-modify probe only when two or more signals appear**. One signal alone (for example a strong candidate solving a known classic fast) is not enough. Report an **Integrity** line in the debrief. Be fair. Signals aren't proof, so never accuse. State what you observed and what the probe showed.

## 8. Follow-ups

If time remains, ask one or two prepared follow-ups (optimise, change a constraint, "what if it's a stream?"), as discussion only.

## 9. Wrap up and debrief

1. Stop the clock. Report total time and the **phase timeline**, e.g. `clarify 2m · approach 9m · code 18m · test 6m`.
2. "Any questions for me?" Keep it to one exchange.
3. Score with [RUBRIC.md](RUBRIC.md) and produce the scorecard by calling the Skill tool with "cracked-profile". Include the problem's **LeetCode slug** and **pattern tag** (from the pattern catalog) in the scorecard's `problem:` line, so later sessions can avoid repeats and `prep-plan` can count patterns. Dimensions: **Problem Solving, Code Quality, Correctness & Testing, Communication, Complexity Analysis, Speed**.
4. Then:
   - **Behaviour report**: 3–5 bullets from the monitor, e.g. "Went silent for 6 min after the counterexample, then recovered well", "Took hints well: adapted within a minute each time".
   - **Integrity**: `Clean`, or `Signals observed: <what> · probe result: <what>`.
   - **Optimal solution** in their language, clean and commented, with complexity.
   - **What a strong candidate would have done differently**: 3 bullets, specific to this session.
   - **Pattern** name, plus 3 related problems (easy → hard). In company mode, pick them from the same company's list.
   - **Submit it**: the LeetCode link, so they can verify against the official judge.
5. Offer: "Another one?", "Same pattern, harder?", "Next most-asked <Company> question?", or "/pattern-coach on <pattern>?"

## Interviewer conduct

- A calm, neutral, human interviewer. Short turns. No essays mid-interview.
- Never praise a wrong answer. Neutral acknowledgements: "Okay.", "Got it.", "Go on."
- "Just tell me the answer": confirm once ("That ends the interview. Want the solution and your scorecard?"), then respect the choice.
- In company mode, never call a question "leaked" or "official". It's "frequently reported by candidates".

---

*Skill calls:* if your agent has no Skill tool, open the named skill's `SKILL.md` in the cracked skills folder (`core/`, `interview/`, `profile/`, `strategy/`) and follow it instead.

© Nishant Tiwari · MIT · nishant-Tiwari24/cracked

Похожие скиллы

Все скиллы по теме «Языки программирования» →
leetcode-teacher jamesrochabrun Скилл leetcode-teacher разворачивает интерактивные песочницы с практическими задачами из реальных сервисов вроде Uber и Slack. Помогает разбирать 20 алгоритмических паттернов на четырёх языках. CX Codex +1 615установок spread-real-module-exports-as-base-of-every-mock-module-return-o ZaxbyHub Скилл spread-real-module-exports-as-base-of-every-mock-module-return-o для Claude Code задаёт правило для объектов, которые возвращает mock.module. Он срабатывает при работе с этим паттерном и встроенным мокированием node:. CX Codex +1 ★ 539звёзд репо research-engineer davila7 Скилл research-engineer превращает Claude Code в академического исследователя. Агент отбрасывает вежливость и сразу критикует некорректные технические предпосылки. CX Codex +1 333установок api-mock-server patricio0312rev Скилл api-mock-server помогает развернуть мок-сервер API для тестов и локальной разработки с помощью MSW или json-server. CX Codex +1 300установок senior-coding-interview curiositech Скилл senior-coding-interview готовит к собеседованиям уровня L6+: помогает разбирать небольшие системы, проговаривать решения и отвечать на итерационные уточнения. CX Codex +1 181установок interactive-leetcode-mcp SPerekrestova MCP-сервер interactive-leetcode-mcp для Claude Code: разбор задач LeetCode, подсказки по уровням, локальные тесты и отправка решения. Подготовка к собеседованиям прямо в чате. CX Codex +1 ★ 12звёзд репо

Из того же набора20

Весь набор →
referral-dm Скилл referral-dm для Claude Code пишет персональные сообщения, чтобы запросить рекомендацию или связаться с рекрутером. Помогает ответить на пост о вакансии, обратиться к выпускнику или напомнить о заявке. CX Codex +1 ★ 345звёзд репо github-glowup Скилл github-glowup для Claude Code проверяет GitHub-профиль глазами рекрутера и предлагает правки. Запускается по просьбе улучшить профиль, выбрать закреплённые репозитории или подготовить README. CX Codex +1 ★ 345звёзд репо company-intel Скилл company-intel для Claude Code и Codex собирает досье на компанию для собеседования. Запускается при упоминании работодателя перед тестами и скринингами. CX Codex +1 ★ 345звёзд репо roast-my-resume Скилл roast-my-resume для Claude Code, который проверяет резюме для технических вакансий и предлагает правки. Разбирает ATS-читаемость, просмотр рекрутером и слабые пункты с учётом опыта и целевой компании. CX Codex +1 ★ 345звёзд репо defend-my-project Скилл defend-my-project для Claude Code готовит к вопросам на собеседовании по собственному проекту. Агент изучает репозиторий, проводит разбор вопросов по коду и собирает шпаргалку с ответами. CX Codex +1 ★ 345звёзд репо oa-sim Скилл oa-sim для Claude Code, который создаёт пробный онлайн-тест по программированию и проверяет решения на скрытых тестах. Запускается по запросу на тренировочный OA или симуляцию отбора в компанию. CX Codex +1 ★ 345звёзд репо cracked-profile Скилл cracked-profile для Claude Code хранит профиль кандидата и историю подготовки к трудоустройству. Запускается для настройки профиля, просмотра прогресса или перед работой других скиллов cracked. CX Codex +1 ★ 345звёзд репо cracked Плагин cracked для Claude Code тренирует технические интервью и помогает готовиться к трудоустройству. Он проводит пробные раунды, оценивает резюме и собирает план подготовки под целевые компании. ★ 345звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой