/godmode:system-designfrom GodMode
Guides architectural decisions: databases, API styles, auth, caching, queues, hosting, and monolith vs services. Activates when choosing or changing architecture or when asked about scaling, deployment, or migrations.
Ships in GodMode. 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.
Every component in an architecture is code to maintain, a bill, and a way to fail. This skill picks the simplest structure that meets a requirement the project has now, prefers what the user already runs over anything new, and records why. Complexity must be paid for by a current, named requirement; "we might need it" pays for nothing.
NO STRUCTURAL COMPLEXITY WITHOUT A CURRENT, NAMED REQUIREMENT
No exceptions. No workarounds. No shortcuts.
Required:
Skip:
List the requirements and classify each. For every need (data, auth, files, jobs, real-time, email, payments, search, hosting), mark it required now (cannot launch without it), required soon (needed within the first weeks of real use, with evidence), nice to have, or speculative. Design only for the first two. Ask the user one question at a time when a classification is unclear.
Inventory what the user already has. Invoke godmode:environment-awareness for the machine and project inventory: installed databases and runtimes, container tools, cloud and hosting CLIs that are logged in, running services, existing dependencies, configuration that references services. Also ask what accounts or platforms the user or their organisation already pays for. What exists and fits wins over anything new.
Start from the defaults in the decision tables below. Each default is the simplest option that covers most projects.
Move off a default only for a named requirement. Write the requirement next to the deviation: "Queue, because image processing takes 40 s and must not block the request." If you cannot write that sentence, keep the default.
Verify every changeable fact behind the choice (a service's limits, free tier, pricing, region, runtime support) on the vendor's current page through godmode:grounding, and cite it. Hosting terms change often; never quote a price or limit from memory.
Look for a reference architecture when the system is unusual (godmode:reference-first, architecture references).
Present the recommendation in the format below, with an alternative and the trigger for switching, and what you deliberately left out.
Record the decision as a short decision record (context, decision, consequences, sources) in the project's docs, so the reason survives the conversation.
| Situation | Choose |
|---|---|
| New project, one team | Monolith (default), organised by capability |
| A growing codebase where teams step on each other | Modular monolith with enforced module boundaries |
| A component needs independent scaling or deploys now, with evidence | Extract that one component |
| Separate teams own separate domains with separate release cycles | Services along those team boundaries |
Martin Fowler's observation: successful microservice systems almost always started as a monolith; systems built as microservices from scratch often got into serious trouble. Shopify chose a modular monolith over microservices for one of the largest Rails codebases.
| Requirement | Choose |
|---|---|
| Relational data, transactions, multiple users (most applications) | PostgreSQL (default) |
| Single server or embedded, modest write concurrency, simplest operations | SQLite: one writer at a time, but writes take milliseconds; the SQLite authors say sites under 100K hits a day should work fine |
| Some records with variable shape | PostgreSQL jsonb columns before a document database |
| Text search over application data | PostgreSQL full-text search before a search engine |
| Cache, sessions, rate-limit counters, ephemeral data | Redis or a compatible store, only once needed |
| Search relevance, facets and scale beyond the database | A dedicated search engine |
| Time-series, graph or analytics workloads that dominate the product | A specialised store, chosen with evidence |
Use the database the user already runs if it fits. One database until a second access pattern clearly needs its own store.
| Context | Choose |
|---|---|
| CRUD, public or partner API, browser clients | REST with JSON (default); design details from godmode:reference-first |
| Many client shapes over nested data, client-controlled queries | GraphQL |
| Internal service-to-service calls with measured throughput needs, streaming | gRPC |
| Server pushes to the browser | Server-sent events for one-way streams; WebSockets for two-way |
| Notifying other systems of events | Signed webhooks (Standard Webhooks) |
A full-stack framework's built-in server functions are fine for its own front end; add a separate API only when another client needs it.
| Context | Choose |
|---|---|
| A web app with its own users on one site | Server-side sessions in secure, HttpOnly cookies (default), via the framework's established auth library |
| Social or enterprise sign-in | OAuth 2.0 / OpenID Connect through a maintained library or provider |
| A separate API used by third parties or other origins | Short-lived access tokens with refresh, or API keys for server-to-server |
| Polished hosted UI, organisations and SSO wanted quickly | A managed identity provider, if the user accepts the cost and lock-in |
Never write password hashing, session handling or token validation from scratch. Stateless tokens cannot be revoked before expiry without extra machinery; sessions can. Security review goes to godmode:security-protocol (and the OWASP Authentication Cheat Sheet).
Add a cache only when all three hold: a performance problem has been measured; the query or code cannot simply be fixed; the data is read far more than it is written and can be slightly stale.
| Layer | When |
|---|---|
| HTTP caching and a CDN | Static assets and public pages (first and cheapest) |
| In-process memory | One instance, small data |
| Shared cache (Redis or compatible) | Several instances need the same cached data |
| Materialised views | Expensive aggregations in the database |
Default: no cache. Every cache needs an invalidation rule written down before it ships.
| Need | Choose |
|---|---|
| Work fits in the request | Direct call (default) |
| Occasional slow work, retries, already on PostgreSQL | A Postgres-backed job queue (for example pg-boss for Node.js) |
| Many jobs, Redis already present | A Redis-backed queue (BullMQ for Node.js, Celery for Python) |
| Multi-step workflows that must resume after failure, serverless hosting | A durable-workflow service (for example Inngest, which retries from the failed step) |
| Event streaming with replay, many consumers, high volume | A log-based broker such as Kafka, with evidence of the volume |
| Scheduled tasks | The host's cron or scheduler first |
Choose by what the user already uses, then by the shape of the workload. The comparison, with links to each vendor's current limits and pricing pages, is in hosting-and-services.md. Rules:
Organise by capability, not by technical layer, so one change touches one directory:
src/
billing/
billing.routes.ts
billing.service.ts
billing.repository.ts
billing.test.ts
accounts/
...
shared/
db.ts
auth.middleware.ts
logger.ts
In an existing project, follow its layout (godmode:codebase-conventions), even if it is by layer. For a new project, set it up with godmode:project-bootstrap.
Requirements
- <need>: required now / required soon / nice to have (deferred) / speculative (dropped)
Already available
- <databases, runtimes, CLIs, accounts found>
Recommended
| Layer | Choice | Why (requirement, and what the user already has) | Source |
Expected running cost: <from the vendor's current pricing page, dated>, or "free tier covers current scale" with the limit cited.
Alternative and when to switch
| Layer | Alternative | Switch when <measurable trigger> |
Deliberately not used
- <service or pattern>: <why it is not needed now>
Keep it proportional: a weekend project gets five lines.
| Rationalisation | Truth |
|---|---|
| "We might need microservices later." | Extracting later is possible; merging a premature split is painful. Start with a monolith. |
| "NoSQL is more flexible." | PostgreSQL stores JSON. Flexibility without a schema usually becomes confusion. |
| "Everyone uses X now." | Popularity is not a requirement. What does this project need, and what does the user already run? |
| "JWTs are more secure." | They are harder to revoke. Sessions are simpler for a single site. |
| "We need a cache for speed." | Measure first. Most slowness is a query or an N+1, not a missing cache. |
| "A queue makes it scalable." | A queue adds a moving part. Use one when work cannot fit in the request. |
| "Serverless is always cheaper." | It depends on the traffic shape. Check the current pricing for this workload. |
| "I remember the free tier." | Free tiers and limits change. Read the vendor page today and cite it. |
Never:
Always:
godmode:environment-awareness: supplies the inventory of what the user already runs; always first for hosting and service choices.godmode:rationale: questions whether the feature needs building at all, before this skill decides how.godmode:reference-first: reference architectures and API, schema and CI references.godmode:grounding: verifies vendor limits, pricing and capabilities.godmode:security-protocol: reviews auth, data flow and secrets handling.godmode:performance-tuning: measures before any cache or scaling change.godmode:project-bootstrap: sets up the chosen structure in a new repository.What SKILL.md sets; muted values are Claude Code's defaults
33 skills in this plugin
/agent-briefingUse when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff report between agents, or sending a message to another agent mid-task./codebase-conventionsUse when about to add or change code in an existing codebase: a new file, module, route, component, service, test, migration, error path or dependency, especially in a project the agent did not write or has not yet surveyed in this session./code-reviewUse when a task, feature or bug fix is implemented and before it is committed, merged or handed back to the user, and when the user asks for a review of a change, a branch or a pull request.npx claudepluginhub noobygains/godmode --plugin godmodeOther plugins' skills for the same job