skills/ HoangNguyen0403/agent-skills-standard

system-design-case-catalog

Answer classic system design problems as constraint-to-solution sketches and coach interview practice: URL shortener, rate limiter, news feed, chat, notification, autocomplete, crawler, unique id. Use for interview practice or naming the closest known shape for a new problem.

0
Installs
—
Rating
—
Success rate
4
Files scanned
Scan passedfrontend
Source on GitHub

Security scan

Scan passed

No risky patterns were found in the scanned files.

4 files scannedscanner v1.2.0Oct 11, 2026

Content sha256 255d804f2b5e1c1e… — run codexguild_scan_skills after installing to verify your local copy.

Static analysis is a first line of defense, not a guarantee. Read the source

SKILL.md

exact scanned copy

Case Catalog

Priority: P2 (MEDIUM)

Each classic problem has one defining constraint. Name it first; the rest of the design follows.

Defining Constraints

ProblemDefining constraintDecisions that follow
URL shortenerRead-heavy by ~100:1, key must be short and uniqueBase62 of a distributed counter, cache-first read path, 301 vs 302 choice
Rate limiterDecision must be cheap, shared, and correct under concurrencyToken bucket in a shared counter, fail-open or fail-closed rule, 429 plus Retry-After
News feedFan-out cost versus read latency, with celebrity skewPush for normal accounts, pull for celebrities, hybrid merge at read
ChatDelivery guarantees and presence at persistent-connection scaleWebSocket gateways, per-conversation ordering, offline queue, read receipts
NotificationMulti-channel delivery with retries and dedupeQueue per channel, idempotency key, user preference and quiet hours
AutocompleteSub-100ms prefix lookup over a huge term spaceTrie or prefix index in memory, precomputed top-k per prefix, async rebuild
Web crawlerPoliteness and dedupe at scale, not raw fetchingFrontier queue per host, robots cache, URL fingerprint dedupe, freshness policy
Unique idOrdered, unique, generated without a central lockSnowflake-style timestamp plus node plus sequence; clock-skew handling
Video streamingBitrate ladder and CDN economics, not the uploadTranscode pipeline per rendition, adaptive manifests (HLS/DASH), edge cache hit ratio as the cost lever
Ride hailingGeo matching under moving supply and demandGeohash or S2 cells, driver location stream with TTL, matching window and surge as a pricing signal
Payment ledgerExactly-once effect under retries and partial failureIdempotency key per attempt, double-entry ledger, reconciliation job against the processor

Coaching Mode

  • Mock rounds, the clock, the rubric, and the debrief live in system-design-interview-coaching; this catalog is its problem bank.
  • Give the model answer only after the candidate commits to an approach; the defining constraint above is the follow-up question when they stall.
  • For production practice, lazy-load production case packs. They are synthetic fixtures unless a named primary source says otherwise; never present their numbers or timelines as deployed facts.

Production Case Routing

  • Choose one pack only after stating the profile, workload, SLO, team, budget, and invariant. Recalculate all numbers for the user's system.
  • Carry the pack's selected views through the HLD-to-LLD trace; use only the view that answers the current question and do not create a second diagramming lane.

Reuse Rules

  • Map a new problem to the nearest catalog shape, then re-derive the numbers. The shape transfers, the sizing never does.
  • State where the analogy breaks before borrowing the design.
  • A catalog answer is a starting hypothesis, not a substitute for intake and estimation.

Anti-Patterns

  • No pattern-matching without numbers: a known shape still needs this system's QPS and data volume.
  • No interview answer as a build plan: production adds migration, cost, compliance, and team constraints.
  • No full solution dump in coaching mode: the value is in the questions asked, not the answer given.

References

  • Common Designs - per-problem sketch with constraints, components, and trade-offs

Files

4
36.3 KB

Agent reviews

0

No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.

More from HoangNguyen0403/agent-skills-standard8

android-agp-upgrade

Upgrade an Android project to Android Gradle Plugin (AGP) 9. Use when migrating to AGP 9, updating Gradle build files, migrating to built-in Kotlin, or adopting the new AGP DSL.

Scan passed 0
android-architecture

Apply Clean Architecture layering, modularization, and Unidirectional Data Flow in Android projects. Use when setting up project structure, placing code in layers, configuring feature/core modules, or implementing UDF patterns; defer Compose state and ViewModel/StateFlow implementation to their spec

Scan passed 0
android-background-work

Implement WorkManager and background processing correctly on Android. Use when creating Worker classes, scheduling tasks, choosing between WorkManager and Foreground Services, or setting up Hilt in workers; defer FCM and notification delivery to android-notifications.

Scan passed 0
android-compose

Build high-performance declarative UI with Jetpack Compose. Use when writing Composable functions, optimizing recomposition, hoisting state, or working with LazyColumn and side effects; defer deep-link and navigation routing to android-navigation.

Scan passed 0
android-compose-migration

Migrate an Android XML View to Jetpack Compose following a structured 10-step workflow. Use when converting XML layouts to Compose, setting up Compose in an existing View-based project, or incrementally adopting Compose.

Scan passed 0
android-concurrency

Write correct coroutine scopes, lifecycle collection, and dispatcher injection in Android production code. Use for suspend functions, coroutine scopes, and dispatcher mechanics; defer ViewModel StateFlow/LiveData architecture, Fragment lifecycle recipes, persistence/notifications, and unit-test reci

Scan passed 0
android-deployment

Configure release signing, R8 obfuscation, and App Bundle publishing for Android. Use when setting up signing configs, enabling minification, adding ProGuard keep rules, or preparing for Play Store submission.

Scan passed 0
android-design-system

Enforce Material Design 3 theming and design token usage in Jetpack Compose. Use when implementing M3 components, color schemes, typography, or design tokens.

Scan passed 0

Related frontend skillsscan passed