system-design-methodology
Drives an interactive system design session: classifies depth, elicits scale/SLO/consistency inputs, computes capacity, then reveals components one by one, each justified by a constraint. Use when designing a system or running a design session; diagrams go through `common-architecture-diagramming`.
- 0
- Installs
- —
- Rating
- —
- Success rate
- 5
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 073de6f61802f52e… — 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
System Design Methodology
Priority: P0 (CRITICAL)
Requirements before solutions. Never draw a full architecture before numbers justify it.
Phase 0 - Classify Depth (always first)
- Quick sketch: exploratory ask, no scale numbers available, answer needed now. Assume defaults, label each one
ASSUMED, skip gates. - Full session: real build, migration, or budget commitment. Run every phase gate.
- State depth and mode (new design | review existing | interview practice) in one line, then continue. Interview practice runs through
system-design-interview-coaching: the round on a clock, the rubric after. - Escalate quick to full when a hard constraint or irreversible choice appears.
Phase 1 - Intake (gate)
- Parse request: verbs to use cases, nouns to entities, adjectives to constraints.
- Ask max 3 blocking questions per turn, each with a recommended default. See intake checklist.
- Required before design: DAU/actors, top 3 use cases, read:write ratio, latency SLO, consistency need, retention, peak shape, budget, team size.
- Freeze scope: list what is explicitly out of scope.
Phase 2 - Estimation (gate)
- Compute QPS, storage, bandwidth, and working-set memory via
system-design-estimation. - Present the numbers, name the one quantity that shapes the design, confirm before drawing anything.
Phase 3 - High-Level Design (incremental)
- Price the null option first: do nothing, buy it, or let an existing service absorb it. Rejecting it needs a stated reason, not silence.
- Start with the smallest system satisfying functional requirements: client, API, service, store.
- Add one component at a time. For each, state
constraint -> component -> costin one line. No component without a named constraint. - Define API surface (one endpoint per functional requirement) and data ownership before optimizing.
- Select views only when they answer a named question, per
common-architecture-diagramming: a context/container, sequence, dataflow, deployment, or state view may be used when useful; prose or a table is sufficient otherwise. Carrymetricandconstraintonly when the design states them; never invent a number to populate a node. See phase deliverables.
HLD, LLD, and Low-Level Design Routing
- HLD answers audience-level boundaries, shaping constraints, ownership, failure domains, and the decision to make. Use context/container or prose only when that is enough; no diagram is mandatory.
- LLD (the same lane as “low-level design”) answers one component or critical flow: data/state ownership, API or event contracts, ordering, idempotency, failure behavior, and verification. Use sequence, dataflow, or state only when that view resolves a named question.
- Trace every handoff as
requirement -> HLD decision -> component -> LLD contract -> verification. Give each link a stable ID and carry unresolved assumptions forward; an LLD must not silently change the HLD invariant. - Each selected view declares
audience,question,decision,scenario,invariant,scope,status,evidence, andomissions. Lifecycle isproposed|implemented|retired;evidenceis a citation, not confidence. Keepevidence_kindandevidence_confidenceseparate per the renderer-owned diagram spec and view manifest; never infer deployment from a code/document citation. - Views are evidence for a question, not a completeness checklist. Prefer a precise paragraph or table over a diagram that adds no decision value.
Specialist Deep-Dive Contract
Select zero, one or multiple dives only for unresolved consequential risks; no quota or invented risks. Each brief names its decision, specialist profile, audience/question, workload/SLO/team/budget, invariant, scope, evidence status and HLD decision. Omit dives without decision impact.
- Require options with rejection reasons, the recommended LLD contract, failure timeline/recovery, verification hooks, and any ADR reversal trigger. Merge the result back into the HLD-to-LLD trace before scoring.
Brownfield Path (review-existing mode)
- Map current state before proposing anything: components, owners, traffic, incidents.
- Measure, do not assume: pull real QPS, data volume, and p99 from the running system.
- Find the binding constraint - the one that fails first at the next growth step.
- Design the smallest change that moves it, then re-measure. A rewrite needs a structural constraint the current shape cannot satisfy.
Phase 4 - Deep Dives and Trade-offs
- Stage what to build now, the enabling seam and metric threshold; record one ADR per irreversible decision with its reversal trigger, then score with
system-design-review.
Design-to-Delivery Gate
- Once HLD/LLD is fixed, list bounded docs/diagram slices: exact files, evidence, acceptance, verification, integrator. Route production to the cheapest qualified configured executor if available; lead owns decisions and final review.
- If still defective after one focused correction, use the configured fallback or report BLOCKED. Log executor/model, corrections, exceptions and fallback reason; report actual usage/cost or
unavailable, never assumed savings.
Anti-Patterns
- No architecture before requirements: no diagram until Phase 1 answers exist or defaults are flagged.
- No unjustified components: every box names the constraint it solves.
- No design without the null option: state why doing nothing or buying loses before building.
- No silent assumptions: an unknown input becomes a labeled
ASSUMEDdefault, never a hidden guess. - No full-stack reveal: never dump a finished diagram before incremental agreement.
Red Flags
- Stop if "just give me the architecture": deliver a quick sketch with
ASSUMEDlabels, not fake precision. - Stop if scale is unknown at Phase 3: return to Phase 2 and estimate from a stated assumption.
References
- Four-Phase Process - per-phase gates, outputs, escalation rules
- Intake Checklist - question bank with defaults
- Phase Deliverables - interview phase to artifact and diagram map
- Interview Coaching - timed mock rounds, rubric, mistakes
Files
5- SKILL.md
9f5614e6f97.0 KB - evals/evals.json
35d2299d2b18.7 KB - references/four-phase-process.md
8ff6174bdb3.2 KB - references/intake-checklist.md
cebdcdb4ef2.7 KB - references/phase-deliverables.md
7a78726a3e5.2 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from HoangNguyen0403/agent-skills-standard8
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.
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
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.
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.
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.
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
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.
Enforce Material Design 3 theming and design token usage in Jetpack Compose. Use when implementing M3 components, color schemes, typography, or design tokens.
Related frontend skillsscan passed
Combines all of the `better-*` skills into a single review across accessibility, layout, writing, typography, color and UI polish.
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
Build scalable design systems with Tailwind CSS v4, design tokens, component libraries, and responsive patterns. Use when creating component libraries, implementing design systems, or standardizing UI patterns.
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
Scrape the Hacker News front page (titles, points, comment counts).
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a