/everything-backend:backend-architectfrom everything-backend
Designs backend architecture: pattern choice (monolith, microservices, serverless), tech stack, module boundaries, and records ADRs plus an overview doc.
Ships in everything-backend. 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.
None: SKILL.md is the whole skill.
Turns a problem statement (greenfield) or an existing codebase (brownfield) into a written architecture: an overview document, one ADR per significant decision, and updated project memory that downstream skills read.
Not this skill: diagrams only (backend-visualize), table design (backend-db-design), endpoint contracts (backend-api-design), threat modeling and security review (backend-security), code changes (backend-implement, backend-refactor).
<shared>): first _shared/ inside this skill's folder (bundled installs), then ../_shared/ next to it; other fallbacks are in <shared>/context-loading.md -> Resolving _shared/ Files. A missing shared doc is a warning, not a stop.<shared>/tool-rules.md (mode=auto contract, checkpoints), <shared>/principles.md (all sections: Database, Code/Architecture, API, System, Security) and <shared>/memory-schema.md (decisions.md and project-overview.md formats). Read <shared>/host-tools.md if the action names below don't match your host's tools.<shared>/context-loading.md: project-overview.md, tech-stack.md and decisions.md always; db-schema.md and api-patterns.md when they exist. Then pick the branch:
<shared>/stacks/, read it.This skill owns the architecture pattern, the tech stack, the primary database engine and the API protocol. It records each as an ADR plus a decisions.md entry. backend-db-design, backend-api-design and backend-implement honor Accepted decisions and propose a new ADR (through this skill) instead of silently changing them.
Collect these inputs. In mode=auto, infer what you can from the request and memory, then ask one batched question for anything blocking (problem statement, scale class, hard constraints). In mode=interactive, ask iteratively and confirm a summary.
Done when: a non-empty problem statement exists and every input is either answered or written down as an explicit assumption. Without a problem statement, stop and ask.
Document what exists before proposing anything new. Read references/brownfield.md for the procedure. In short: derive modules, dependencies, data ownership, integrations and pain points from scan memory and code (find files, search file contents, check LSP references if available), and record them as "Current State" in the overview.
Done when: the current architecture, its pain points and the evidence for each are written down.
Apply the precedence order in references/patterns-and-stacks.md. The default is a monolith or modular monolith. Choose microservices only when team independence and stable module boundaries require it, not for scale alone: scale stateless instances, caching and read replicas first. Serverless fits event-driven or spiky load with a cost focus.
Done when: one pattern is chosen, with the deciding criteria and at least one rejected alternative.
Use the criteria table in references/patterns-and-stacks.md. Team familiarity outranks raw performance unless a stated target requires otherwise. Choose the language/framework, primary database, API protocol, and only the cache, queue or broker that a requirement justifies. Name versions as "current LTS/stable" unless the project already pins one.
Done when: every chosen component maps to a requirement, and every optional component left out is noted as "not needed yet".
Fill the overview template in references/overview-template.md:
For brownfield work, add a target state and a phased migration plan with exit criteria per phase (references/brownfield.md).
Done when: every module has an owner and boundaries, and every critical write flow has a transaction or consistency rule.
Present a short summary: pattern, stack, modules, key trade-offs, open risks.
Done when: the user approved the design, or (mode=auto) the design is written as Proposed.
Writing these files is this skill's stated output, so it runs without asking in mode=auto. Wholesale replacement of an existing overview or ADR is not; update it in place or ask first.
Start a checkpoint before the first edit:
node <shared>/scripts/checkpoint.js start --skill backend-architect --feature <slug> --steps "overview,adrs,decisions,memory"
Use a slug such as architecture or the decision topic (e.g. split-billing). If it exits with code 3, an open checkpoint exists: offer to resume or restart (--restart). Record each file you create or edit (checkpoint.js record --created ... --modified ... --memory ...), run checkpoint.js snapshot after each step, and checkpoint.js close when done. If Node is unavailable, follow <shared>/tool-rules.md -> Concurrent & Partial Work by hand.
Write, in order:
docs/adr/NNNN-<slug>.md from references/adr-template.md. NNNN is the next free number: list docs/adr/, take the highest four-digit prefix and add 1 (start at 0001). If the project already keeps ADRs elsewhere (e.g. doc/adr/, docs/decisions/), follow that location and numbering instead. When an ADR replaces an older one, set the old ADR's status to "Superseded by ADR-NNNN" and link both ways.## Last Updated.## Last Updated.Done when: all files above exist, each ADR has a matching decisions.md entry, and the checkpoint is closed.
flowchart sketch in the overview.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub codeworksid/everything-backend --plugin everything-backend16 skills in this plugin
/backend-api-designDesigns API contracts before code is written: resources, endpoints, request and response schemas, error format, pagination, versioning and per-endpoint authorization rules. Writes the contract to an OpenAPI spec (docs/api/openapi.yaml by default, or the existing spec) and records conventions in api-patterns.md memory. REST is fully covered; GraphQL schemas and gRPC .proto contracts get basic guidance. Use when the user says 'design the API', 'what endpoints do I need', 'plan routes', 'write an OpenAPI spec', 'Swagger', 'define the API contract', 'design a GraphQL schema', 'write a proto file', 'add an endpoint to the spec', or 'version or deprecate an endpoint'. Not for writing handler code (backend-implement), choosing the login mechanism or auth endpoints (backend-auth), or reviewing API security (backend-security)./backend-authDesigns, implements and hardens authentication and authorization for backend services, covering sessions, JWT and opaque tokens, OAuth 2.0/OIDC and SSO, API keys, password hashing, account recovery, MFA, RBAC/ABAC, tenant isolation, CSRF and session hardening. Writes the auth core (verifier, middleware, authorization gate), records the auth decision in project memory, and defines the negative tests that prove it. Use when the user says auth, authentication, authorization, login, sign up, sign in, logout, session, JWT, refresh token, OAuth, OIDC, SSO, SAML, SCIM, API key, MFA, 2FA, passkey, WebAuthn, password reset, CSRF, roles, permissions, RBAC, access control, multi-tenant access, or asks to review or harden an existing auth flow./backend-db-designDesigns database schemas for backend features, covering tables or collections, keys, relationships, indexes, constraints, transaction boundaries and multi-tenant isolation, for PostgreSQL, MySQL, MongoDB and Redis. Produces a target schema, an ERD draft and an ordered migration plan, and hands the plan to backend-migrate, which writes and applies the migrations. Use when the user says "design the database", "create a schema", "plan the tables", "model this data", "what tables do I need", "which database should I use", "add a table for", or starts a feature that stores new data./backend-debugTriages and fixes backend bugs with a strict loop: capture the report, reproduce it locally, write a failing test, find the root cause with evidence, apply a minimal fix, prove the test passes and the suite is green, and record the root cause in project memory. Also diagnoses performance regressions and does read-only triage of production incidents. Use when the user says 'bug', 'fix this error', 'it is broken', 'a test fails because the code is wrong', 'regression', 'exception', 'stack trace', '500 error', 'why does X happen', 'why is X slow', or 'debug this'. Not for new features (backend-implement), behavior-preserving cleanup (backend-refactor), writing migrations (backend-migrate), or a security review (backend-security)./backend-deployPlans and generates deployment for backend services. Picks a target (PaaS, containers on a VM, Kubernetes, serverless), writes Dockerfiles for Node, Python, Go and Java, docker compose for local runs, CI/CD pipelines with a gated migration step, Kubernetes manifests or Helm values, and a release plan with rolling, blue-green or canary strategy, rollback and post-deploy checks. Validates the artifacts locally and records the setup in deployment memory and a deploy runbook. Use when the user says deploy, ship to production, Dockerfile, containerize, docker compose, CI/CD, GitHub Actions, GitLab CI, pipeline, Kubernetes, K8s, Helm, readiness or liveness probes, release strategy, canary, blue-green, rollback a release, or environment promotion. Not for writing migrations (backend-migrate), backup, DR and resilience (backend-ops), code health checks (backend-doctor) or security review (backend-security)./backend-doctorRuns execution-based health checks on an existing backend: build, tests, coverage, lint and type checks, dependency audits, a local smoke test, and a scan for obvious code anti-patterns, then reports evidence-backed findings with severities and the skill that should fix each one. Diagnose-only: it never edits code or installs packages. Use it when the user says check my backend, run doctor, health check, review my code, what's wrong with this service, or before a release or after a large change. Supports mode=review to check only the files changed against the base branch, for example a pull request. Not for a security review, threat model or OWASP audit (use backend-security), fixing a specific bug (backend-debug), or adding health endpoints (backend-ops).Other plugins' skills for the same job