senior-coding-interview

Prepare for L6+ coding interviews — in-memory databases, concurrency, state management, iterative follow-ups. Use when practicing real-world system-building problems or preparing communication strategies for live coding. Activate on "coding interview", "staff interview", "codesignal", "live coding", "rate limiter interview". NOT for LeetCode/competitive programming, behavioral interviews, or system design whiteboard.

85 stars

Best use case

senior-coding-interview is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Prepare for L6+ coding interviews — in-memory databases, concurrency, state management, iterative follow-ups. Use when practicing real-world system-building problems or preparing communication strategies for live coding. Activate on "coding interview", "staff interview", "codesignal", "live coding", "rate limiter interview". NOT for LeetCode/competitive programming, behavioral interviews, or system design whiteboard.

Teams using senior-coding-interview should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/senior-coding-interview/SKILL.md --create-dirs "https://raw.githubusercontent.com/curiositech/some_claude_skills/main/.claude/skills/senior-coding-interview/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/senior-coding-interview/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How senior-coding-interview Compares

Feature / Agentsenior-coding-interviewStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Prepare for L6+ coding interviews — in-memory databases, concurrency, state management, iterative follow-ups. Use when practicing real-world system-building problems or preparing communication strategies for live coding. Activate on "coding interview", "staff interview", "codesignal", "live coding", "rate limiter interview". NOT for LeetCode/competitive programming, behavioral interviews, or system design whiteboard.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Senior Coding Interview

Execute L6+ real-world coding interviews where the problem is building a small system, not solving an algorithm puzzle. The core differentiator at Staff+ level is not whether you can solve it, but how you solve it: clean abstractions, narrated reasoning, graceful iteration, and production sensibility.

## When to Use

- Practicing real-world coding problems (in-memory stores, rate limiters, task schedulers)
- Reviewing interview code for senior-level signals
- Preparing communication strategy for live coding sessions
- Working through CodeSignal incremental-style problems
- Mock interview practice with follow-up extensions

**NOT for:**
- LeetCode/competitive programming (segment trees, suffix arrays, contest optimization)
- Behavioral interviews (use interview-loop-strategist)
- System design whiteboard with no code (use ml-system-design-interview)
- Resume or career strategy

---

## The 4-Stage Approach

```mermaid
flowchart LR
    C[1. CLARIFY\n5 min] --> S[2. SKELETON\n20 min]
    S --> I[3. ITERATE\n10 min]
    I --> O[4. OPTIMIZE\n5 min]

    C -.- C1["Ask 3-5 questions\nRestate problem\nConfirm API contract\nIdentify edge cases"]
    S -.- S1["Data structures first\nPublic API methods\nCore logic\nManual test 1 case"]
    I -.- I1["Edge cases\nError handling\nFollow-up extensions\nRefactor if needed"]
    O -.- O1["Complexity analysis\nTrade-off discussion\nConcurrency mention\nScaling path"]
```

### Stage 1: Clarify (5 minutes)

**Goal**: Demonstrate you think before coding. Ask questions that reveal ambiguity the interviewer planted intentionally.

Mandatory questions for every problem:
1. **Scale**: "How many items/requests are we expecting?" (determines data structure choice)
2. **API surface**: "Should this be a class with methods, or standalone functions?"
3. **Constraints**: "Are keys always strings? Can values be None/null?"
4. **Concurrency**: "Single-threaded for now, or should I consider thread safety?"
5. **Error handling**: "Should invalid input raise exceptions or return error values?"

Restate the problem in your own words before writing any code. This catches misunderstandings early and signals comprehension.

### Stage 2: Skeleton (20 minutes)

**Goal**: Get a working solution for the core case. Not perfect, not optimized -- working.

Order of implementation:
1. Define the data model (dataclass or NamedTuple for structured data)
2. Write the class/function signatures with type hints
3. Implement the happy path
4. Manually trace through one example out loud

**Senior signal**: Start with the public API, not the internal helpers. Show top-down thinking.

### Stage 3: Iterate (10 minutes)

**Goal**: Handle follow-ups. This is where Staff+ candidates differentiate -- each extension should feel like a natural evolution, not a rewrite.

The follow-up ladder (interviewers typically go 2-3 levels deep):
1. **Working** -- Base problem solved
2. **Edge Cases** -- Empty inputs, duplicates, overflow, None values
3. **Concurrent** -- Thread safety, locks, atomic operations
4. **Distributed** -- Multiple nodes, consistency, partitioning
5. **Fault-tolerant** -- Crash recovery, persistence, graceful degradation

**Senior signal**: When asked "how would you make this distributed?", discuss the trade-offs before changing code. Name specific patterns (consistent hashing, write-ahead logs). You don't need to implement distributed systems in 40 minutes -- you need to show you know the path.

### Stage 4: Optimize & Discuss (5 minutes)

**Goal**: Show you understand what you built and where it breaks.

Cover:
- Time and space complexity for each operation
- What would break at 10x scale
- What you would change given more time
- Testing strategy (what tests would you write first?)

---

## Problem Archetypes

| Archetype | Core Data Structure | Key Follow-ups | Reference |
|-----------|-------------------|----------------|-----------|
| In-Memory Key-Value Store | `dict` + metadata | TTL, transactions, snapshots | `references/problem-archetypes.md` |
| File System Abstraction | Trie or nested dict | Glob patterns, watchers, permissions | `references/problem-archetypes.md` |
| Rate Limiter | `deque` or sorted list | Sliding window, distributed, token bucket | `references/problem-archetypes.md` |
| LRU Cache | `OrderedDict` or dict+DLL | Generics, TTL, size-based eviction | `references/problem-archetypes.md` |
| Task Scheduler | Heap + dict | Priorities, dependencies, cancellation | `references/problem-archetypes.md` |
| Event/Pub-Sub System | `defaultdict(list)` | Typed events, wildcards, async delivery | `references/problem-archetypes.md` |
| Log Parser/Analyzer | Generators + Counter | Streaming, time windows, aggregation | `references/problem-archetypes.md` |
| API Client with Retry | State machine | Backoff, circuit breaker, idempotency | `references/problem-archetypes.md` |

---

## Communication Protocol

Senior interviews are 50% code and 50% communication. The interviewer is evaluating whether they want to work with you, not just whether you can solve the problem.

### What to Narrate

- **Before writing**: "I'm going to use a dict with timestamps as values because we need O(1) lookup and the TTL check can be lazy."
- **At decision points**: "I could use a heap here for O(log n) insert, but since we're told the number of items is small, a sorted list with bisect is simpler and good enough."
- **When stuck**: "I'm not sure about the best way to handle concurrent access here. Let me get the single-threaded version working first, then we can discuss locks."
- **After completing**: "The core operations are O(1) for get/set. The cleanup sweep is O(n) but only runs periodically."

### What NOT to Do

- Don't narrate syntax: "Now I'm writing a for loop..." -- the interviewer can see that.
- Don't go silent for more than 60 seconds. If you're thinking, say so.
- Don't ask "Is this right?" -- instead say "Let me trace through an example to verify."

---

## Senior Signals Checklist

These are the things that make an interviewer write "strong hire" for L6+:

| Signal | How to Demonstrate |
|--------|-------------------|
| Clean abstractions | Separate concerns: data model, business logic, I/O |
| Production sensibility | Error handling, input validation, logging mentions |
| Testing awareness | "I'd test the TTL edge case where expiry happens during a get" |
| Extensibility | Design classes that can be extended without rewriting |
| Trade-off fluency | Name multiple approaches, choose one, explain why |
| Complexity awareness | State big-O for each operation without being asked |
| Concurrency knowledge | Mention thread safety even if not implementing it |
| Stdlib mastery | Use `dataclasses`, `defaultdict`, `deque`, generators naturally |

---

## Python Patterns for Senior Interviews

Senior candidates use Python idioms that signal deep experience. See `references/python-patterns-senior.md` for the complete catalog with examples.

Key patterns to internalize:
- `@dataclass` for any structured data (not raw dicts)
- Context managers for resource cleanup
- Generators for streaming/lazy evaluation
- `collections.defaultdict`, `Counter`, `deque` -- know the stdlib
- Type hints on public methods (skip on internal helpers in time-pressured interviews)
- Exception hierarchies for domain errors

---

## Anti-Patterns

### Anti-Pattern: LeetCode Brain

**Novice**: Reaches for algorithmically elegant solutions (segment trees, suffix arrays, Fenwick trees) when a hash map or sorted list suffices. Spends 15 minutes on optimal time complexity for a problem where n < 1000.

**Expert**: Chooses the simplest correct solution first. Uses built-in data structures (`dict`, `list`, `deque`, `heapq`) unless the problem explicitly demands otherwise. Discusses when algorithmic sophistication matters only if asked about scale. The goal is working, readable, maintainable code -- not a competitive programming submission.

**Detection**: Solution is asymptotically optimal but unmaintainable. Candidate cannot explain trade-offs between their approach and a simpler one. No working solution exists at the 25-minute mark because they're still optimizing.

### Anti-Pattern: Silent Coder

**Novice**: Writes code for 15+ minutes without speaking. Treats the interview like a solo coding session. When they do speak, they narrate syntax ("Now I'm writing a for loop") rather than intent.

**Expert**: Narrates intent before writing code ("I'm going to use a dict here because we need O(1) lookup by key"). Asks clarifying questions when ambiguity appears. Signals uncertainty honestly ("I'm not sure if Python's `heapq` supports decrease-key -- let me use a different approach that I'm confident in"). Treats the interviewer as a collaborator, not an examiner.

**Detection**: Interviewer has to prompt "what are you thinking?" more than twice. Long silences followed by large code blocks. No questions asked during the clarify phase.

### Anti-Pattern: Premature Optimization

**Novice**: Starts with the distributed/concurrent/fault-tolerant version before solving the single-machine case. Adds caching, sharding, or thread pools before there's a working solution to optimize. Designs for 10 million users when the problem says "a few thousand."

**Expert**: Gets a working solution first, then optimizes when asked. Separates "what I'd do in production" from "what I'm implementing in this 40-minute interview." When the interviewer asks about scale, discusses the optimization path verbally: "I'd add a write-ahead log for durability, then shard by key hash for horizontal scaling."

**Detection**: No working solution at the 25-minute mark. Code has `Lock`, `ThreadPoolExecutor`, or `asyncio` imports but no passing test case. Architecture diagram exists but core logic doesn't.

---

## CodeSignal Incremental Format

CodeSignal's pre-recorded incremental format (used by Anthropic and others) differs from live interviews. See `references/codesignal-incremental.md` for detailed strategy.

Key differences:
- No interviewer to ask questions -- you must self-clarify from the problem statement
- Incremental stages build on your previous code -- design for extension from the start
- Time pressure is real but self-managed -- no one tells you to move on
- You can re-read the problem statement -- do it before each stage

---

## Time Budget Decision Tree

```mermaid
flowchart TD
    START[Problem received] --> READ["Read ENTIRE problem\n(2 min)"]
    READ --> KNOWN{Recognize\nthe archetype?}
    KNOWN -->|Yes| FAST["Fast-track clarify\n(2 min)"]
    KNOWN -->|No| DEEP["Deep clarify\n(5 min)"]
    FAST --> CODE["Code skeleton\n(18 min)"]
    DEEP --> CODE
    CODE --> CHECK{Working\nsolution?}
    CHECK -->|No, 25 min mark| TRIAGE["Simplify approach\nGet SOMETHING working\n(5 min)"]
    CHECK -->|Yes| EXTEND["Handle follow-ups\n(10 min)"]
    TRIAGE --> EXTEND
    EXTEND --> WRAP["Complexity + trade-offs\n(5 min)"]
```

---

## References

- `references/problem-archetypes.md` -- Consult for worked examples of 8 problem archetypes with skeletons, clarifying questions, and follow-up extensions
- `references/python-patterns-senior.md` -- Consult for senior Python idioms that signal experience: dataclasses, context managers, generators, stdlib mastery, testing hooks
- `references/codesignal-incremental.md` -- Consult when preparing for CodeSignal's pre-recorded incremental format: time management, extension strategies, self-testing without an interviewer

Related Skills

values-behavioral-interview

85
from curiositech/some_claude_skills

Coaches behavioral and values-fit interview preparation with negative framing, deep follow-ups, introspection, and mission alignment. Use for culture-fit rounds, Anthropic behavioral prep, failure stories, and self-awareness drilling. Activate on "behavioral interview", "values interview", "culture fit", "tell me about a failure". NOT for coding interviews, system design, resume writing, or technical deep dives.

tech-presentation-interview

85
from curiositech/some_claude_skills

Prepares for "reverse system design" rounds where you present YOUR past technical work. Use for project selection, narrative arc structuring, whiteboard diagrams, depth calibration, and hostile Q&A handling. Activate on "tech presentation", "present your work", "reverse system design", "project deep dive". NOT for designing hypothetical systems, resume writing, or career narrative extraction.

ml-system-design-interview

85
from curiositech/some_claude_skills

Coaches end-to-end ML system design interviews covering inference pipelines, recommendation systems, RAG, feature stores, and monitoring. Use for L6+ design rounds, ML architecture whiteboarding, system design practice, serving tradeoff analysis. Activate on "ML system design", "ML interview", "recommendation system design", "RAG architecture", "feature store design", "model serving". NOT for coding interviews, behavioral questions, ML theory quizzes, or paper implementations.

interview-simulator

85
from curiositech/some_claude_skills

Designs and orchestrates a realistic interview simulation platform with voice AI, whiteboard evaluation, gaze-tracking proctoring, and mobile spaced repetition. Use for building mock interview infrastructure, configuring sessions, and adaptive difficulty. Activate on "interview simulator", "mock interview", "practice session", "voice mock". NOT for individual round-type coaching, resume writing, or prep timeline coordination.

interview-loop-strategist

85
from curiositech/some_claude_skills

Orchestrates end-to-end interview preparation for senior ML/AI engineers targeting Anthropic and peer companies. Use for prep timeline generation, story coherence across rounds, mock scheduling, and debrief analysis. Activate on "interview prep", "interview loop", "Anthropic interview", "prep timeline". NOT for resume writing, career narratives, or individual round-type practice.

skill-coach

85
from curiositech/some_claude_skills

Guides creation of high-quality Agent Skills with domain expertise, anti-pattern detection, and progressive disclosure best practices. Use when creating skills, reviewing existing skills, or when users mention improving skill quality, encoding expertise, or avoiding common AI tooling mistakes. Activate on keywords: create skill, review skill, skill quality, skill best practices, skill anti-patterns. NOT for general coding advice or non-skill Claude Code features.

3d-cv-labeling-2026

85
from curiositech/some_claude_skills

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

wisdom-accountability-coach

85
from curiositech/some_claude_skills

Longitudinal memory tracking, philosophy teaching, and personal accountability with compassion. Expert in pattern recognition, Stoicism/Buddhism, and growth guidance. Activate on 'accountability', 'philosophy', 'Stoicism', 'Buddhism', 'personal growth', 'commitment tracking', 'wisdom teaching'. NOT for therapy or mental health treatment (refer to professionals), crisis intervention, or replacing professional coaching credentials.

windows-95-web-designer

85
from curiositech/some_claude_skills

Modern web applications with authentic Windows 95 aesthetic. Gradient title bars, Start menu paradigm, taskbar patterns, 3D beveled chrome. Extrapolates Win95 to AI chatbots, mobile UIs, responsive layouts. Activate on 'windows 95', 'win95', 'start menu', 'taskbar', 'retro desktop', '95 aesthetic', 'clippy'. NOT for Windows 3.1 (use windows-3-1-web-designer), vaporwave/synthwave, macOS, flat design.

windows-3-1-web-designer

85
from curiositech/some_claude_skills

Modern web applications with authentic Windows 3.1 aesthetic. Solid navy title bars, Program Manager navigation, beveled borders, single window controls. Extrapolates Win31 to AI chatbots (Cue Card paradigm), mobile UIs (pocket computing). Activate on 'windows 3.1', 'win31', 'program manager', 'retro desktop', '90s aesthetic', 'beveled'. NOT for Windows 95 (use windows-95-web-designer - has gradients, Start menu), vaporwave/synthwave, macOS, flat design.

win31-pixel-art-designer

85
from curiositech/some_claude_skills

Expert in Windows 3.1 era pixel art and graphics. Creates icons, banners, splash screens, and UI assets with authentic 16/256-color palettes, dithering patterns, and Program Manager styling. Activate on 'win31 icons', 'pixel art 90s', 'retro icons', '16-color', 'dithering', 'program manager icons', 'VGA palette'. NOT for modern flat icons, vaporwave art, or high-res illustrations.

win31-audio-design

85
from curiositech/some_claude_skills

Expert in Windows 3.1 era sound vocabulary for modern web/mobile apps. Creates satisfying retro UI sounds using CC-licensed 8-bit audio, Web Audio API, and haptic coordination. Activate on 'win31 sounds', 'retro audio', '90s sound effects', 'chimes', 'tada', 'ding', 'satisfying UI sounds'. NOT for modern flat UI sounds, voice synthesis, or music composition.