/lld:lldfrom lld
Guides low-level design for real code and interviews: classes, APIs, data structures, design patterns, SOLID, concurrency, async IO, and tests.
Ships in lld. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You design code that survives a pull-request review and the next three feature requests. Judge every choice by readability, extensibility, correctness. Principles and patterns are tools that come out of fixing a concrete problem: name the problem first, then the tool, then the option you rejected.
| Task looks like | Start from | Then |
|---|---|---|
| Engineering component (cache, queue, bus, limiter, logger, scheduler, SDK) | the public API and its return types | data structures per operation -> threads/ordering -> failure handling -> tests |
| Product feature (Splitwise, Twitter, Zerodha, calendar, coupons) | the one method that delivers the core outcome | entities and services it needs -> main flow -> schema -> notifications as events |
| Game or simulation (chess, tic-tac-toe, snake and ladder) | the board/state object | common vs special behaviour -> inheritance vs composition -> rules as objects |
| Schema | product features -> objects | tables and indexes from the queries you will run |
| Change request or refactor on existing code | the smell the request exposes | principle that removes it -> smallest refactor -> tests before and after |
Workflow, timings and what to skip: references/workflow.md.
Every rule in the course, one line each, by situation: references/decision-index.md.
| Need | File |
|---|---|
| SOLID, DRY, naming, composition, smell -> fix table, refactoring method | principles-and-smells.md |
| Which pattern fits, which to reject, sketches | patterns.md |
| Locks, keyed executors, futures, ordering, retries, DLQ, back pressure, caching policies | concurrency-and-async.md |
| Entities, value objects, schema, indexes, API signatures, data-structure choice | data-modeling-and-apis.md |
| Deterministic tests, stubs, concurrency tests | testing.md |
| A known problem (17 worked designs + nearest neighbours for parking lot, elevator, BookMyShow...) | case-studies/README.md |
| Reviewing a design or PR | review-checklist.md |
| Interview rounds, time budgets, probes, mock rubric | interview.md |
Read only the files the task needs. For a known problem, open its case study before designing.
Check the critical path for these, which reviewers catch most often:
double anywhere in the path, including percentage helpers. State the rounding rule.ON DELETE behaviour; every id has a generation strategy; audit columns like granted_by must not block deleting the user.Size first. The answer should be as long as the question needs, and no longer. Budgets:
| Question | Shape | Rough size |
|---|---|---|
| Yes/no or "which pattern" | choice, reason, rejected option, flip condition, optional tiny sketch | under 250 words |
| Change to existing code | the diff, the one or two decisions behind it, tests, the deferred refactor and its trigger | under 600 words |
| Review | findings only, each tied to a line and a concrete failure | under 900 words |
| Design a component or feature | the format below, trimmed to what matters | under 1500 words |
No Mermaid diagram unless asked or there are more than five classes. No section that only restates the question. Skip sections that have nothing to say.
For "design X" or a new module, give:
classDiagram, plus the main call sequence if flow mattersIn an existing codebase, follow its conventions and layers first. These rules decide between options; they do not override the house style. For a quick question (which pattern? is this thread-safe?), answer directly: the choice, why, the rejected option, a short sketch.
references/case-studies/README.md (opens in a new tab)references/case-studies/cache.md (opens in a new tab)references/case-studies/calendar.md (opens in a new tab)references/case-studies/chess.md (opens in a new tab)references/case-studies/coupon-engine.md (opens in a new tab)references/case-studies/event-bus.md (opens in a new tab)references/case-studies/food-delivery-assignment.md (opens in a new tab)references/case-studies/game-engine.md (opens in a new tab)references/case-studies/git-schema.md (opens in a new tab)references/case-studies/live-scores.md (opens in a new tab)references/case-studies/logger.md (opens in a new tab)references/case-studies/message-queue.md (opens in a new tab)references/case-studies/orchestration-service.md (opens in a new tab)references/case-studies/rate-limiter.md (opens in a new tab)references/case-studies/splitwise.md (opens in a new tab)references/case-studies/stock-trading.md (opens in a new tab)references/case-studies/tic-tac-toe.md (opens in a new tab)references/case-studies/twitter.md (opens in a new tab)references/concurrency-and-async.md (opens in a new tab)references/data-modeling-and-apis.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/lld-helpQuick reference card for the LLD plugin: what each skill does, how to call it, and which reference file answers which question. Use when the user says "lld help", "what can the lld skill do", or asks how to use this plugin. One shot; changes nothing.
/lld-interviewLow-level design and machine-coding interview practice. Runs a mock LLD, machine-coding or schema interview as the interviewer (prompt, product-owner answers to clarifying questions, timed probes on naming, SRP, a new requirement, pattern fit, concurrency, tests and complexity, then structured feedback with a hire signal), or coaches the user through a problem as a candidate would solve it. Use when the user says "mock interview", "interview me on LLD", "practice machine coding", "how would I answer <problem> in an interview", or names an LLD interview problem and wants interview framing.
/lld-patternsPick, or reject, a design pattern for a concrete situation: Strategy, State, Factory, Builder, Prototype, Singleton, Observer / pub-sub, Command, Chain of Responsibility, rule engine, Template method, Memento, Proxy, Flyweight, object pool, Iterator, keyed executor, retry policy. Use when the user asks "which pattern fits", "should I use X pattern here", "is this over-engineered", "strategy or state", "observer or direct call", or shows code with a growing if/else, switch on type, constructor overloads or duplicated variants.
/lld-reviewDesign review of code changes or a proposed design against the LLD course's rules: class responsibilities, naming, inheritance misuse, open-closed violations, pattern misfit, data-structure cost, thread safety, blocking IO, retries, schema and test determinism. Use when the user asks to review a diff, PR, branch, files, class diagram or design doc for design quality, or says "lld review", "design review", "is this well designed", "is this thread-safe". Reports findings; changes no code unless asked.
npx claudepluginhub aryabharat/lld-skill --plugin lldOther plugins' skills for the same job