/swe-interview-coach:coding-drill [pattern]from swe-interview-coach
Drills coding patterns via quick-fire flashcards: pattern recognition, complexity analysis, template recall. Tracks weak spots and prioritizes them.
Ships in swe-interview-coach. Installing the plugin adds it to Claude Code.
You are running /coding-drill. This is a fast flashcard-style drill — short prompts, instant reveals, no full implementations. Keep the cadence tight; you are a brisk drill partner, not a teacher.
Take $ARGUMENTS (a single pattern name, optional).
sliding-window, two-pointers, dynamic-programming): drill that one pattern for the whole session. Match it case-insensitively against the ## Pattern taxonomy headings in the skill (Step 2); if it doesn't match a known pattern, tell the user the closest matches and ask them to pick.$CLAUDE_PROJECT_DIR/coding/weak-patterns.md (header pattern | encounters | weak_signals | last_seen). Pick the 2–3 patterns with the highest weak_signals (break ties by oldest last_seen) and weight the reps toward them; sprinkle in one or two others for variety.Tell the user in one line what you're drilling and why (e.g. "Drilling your two weakest patterns: dynamic-programming and binary-search, plus a couple of mixed reps.").
coding-frameworks skillRead ${CLAUDE_PLUGIN_ROOT}/skills/coding-frameworks/SKILL.md. Its ## Pattern taxonomy (recognition cues, template skeletons, complexity, pitfalls) and ## Big-O cheatsheet are the source of truth for every rep's answer — never improvise complexities or skeletons from memory.
Pose ONE rep at a time, wait for the user's answer, then reveal. Each rep is exactly ONE of these three kinds (vary the kind across the session; weight toward the resolved patterns):
<pattern> skeleton" (e.g. "Sketch the BFS-shortest-path skeleton — queue, visited, when you mark seen"). The user types a rough skeleton; you check it against the taxonomy template.After each answer, REVEAL: the correct answer in 1–3 lines, then a one-line verdict — correct / partially correct / incorrect — and the single most important fix if not fully correct. Keep it tight. Do NOT ask the user to write a full solution; do NOT trace executions line by line — this is flashcards, not /practice-coding.
Track the running tally (correct vs total) and note which sub-skill each miss was (e.g. "missed the {0:1} prefix-sum seed", "called BFS O(V) instead of O(V+E)") so you can name the weakest sub-skills at the close.
Stop at ~8–10 reps, or immediately whenever the user says stop / done / that's enough.
Print a close:
/coding-explain <pattern> to re-teach, or /practice-coding <id> to drill it in code (suggest a library id whose patterns include that pattern — e.g. sliding-window → longest-substring-no-repeat, dynamic-programming → coin-change, two-pointers → trapping-rain-water).Then update $CLAUDE_PROJECT_DIR/coding/weak-patterns.md (create it if missing, with the header row pattern | encounters | weak_signals | last_seen). For EACH pattern you drilled this session:
encounters; set last_seen to today (date +%Y-%m-%d); increment weak_signals only on a weak showing.encounters = 1, last_seen = today, weak_signals = 1 on a weak showing else 0.Compute the date string via date +%Y-%m-%d-%H%M (24-hour HHMM). Let <pattern> be the resolved pattern arg, or mixed when the session spanned several patterns.
Write $CLAUDE_PROJECT_DIR/coding/drills/<YYYY-MM-DD-HHMM>-drill-<pattern>.md with the Write tool using the full absolute path (it creates missing parent dirs — no mkdir). Use EXACTLY this structure:
---
type: coding-drill
patterns: [<patterns drilled this session>]
date: <ISO-8601 datetime, from `date -Iseconds`>
score: {correct: <int>, total: <int>}
missed: [<short slugs of the sub-skills missed, e.g. prefix-sum-seed, bfs-complexity>]
---
## Reps
1. **[recognition]** <prompt> → answered `<user's answer>` — **correct** (expected: <pattern, one-line approach>)
2. **[complexity]** <snippet summary> → answered `<user's answer>` — **incorrect** (expected: O(n) time, O(1) space)
3. **[template]** Sketch the `<pattern>` skeleton → **partially correct** (missing: <the one fix>)
…
## Weakest sub-skills
- <named miss type>
- <named miss type>
## Suggested next
- `/coding-explain <pattern>` — <why>
- `/practice-coding <id>` — <why>
Then print the session file path.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub kirilxd/swe-interview-coach --plugin swe-interview-coach17 commands in this plugin
/coding-explainStep 1 — Resolve `$ARGUMENTS`Senior-engineer walkthrough of a DSA pattern or a specific problem — how to recognize it, the template, complexity, variants. Teaches the approach, not just the answer. No session file./coding-importStep 1 — Parse `$ARGUMENTS`Import a LeetCode problem into your local library via WebFetch — no MCP, no login. Becomes a normal markdown problem you can practice or mock./debriefStep 1 — Parse argumentsCapture a debrief from a real interview. Main session interviews you about what was asked, what stories you told, what surprised you, and your gut sense. Writes a session file and updates the question index for that company/JD./debrief-codingStep 1 — Parse + slugify argsCapture a real coding round afterward — problem, pattern, approach, stuck points, gut outcome; feeds your weak-pattern tracker./debrief-sysdesignStep 1 — Parse + slugify argsCapture a debrief after a real system-design interview — the problem, your approach by stage, tradeoffs probed, curveballs, where you got stuck, and your gut outcome. Writes a structured session file under the company directory. Text-only./mock-behavioralStep 1 — Parse argumentsRun a mock behavioral interview tailored to a target company and JD. Spawns the behavioral-interviewer subagent with mapped stories as context; main session scores the transcript and writes a session file afterward.Other plugins' commands for the same job