/everything-backend:backend-visualizefrom everything-backend
Generates themed, validated Mermaid diagrams of a backend from SQL DDL, migrations, ORM models, or route code: ERDs, class, sequence, state, and architecture diagrams.
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 real project sources into Mermaid diagrams that render, read well in light and dark themes, and use one color model across every diagram type.
backend-db-design, backend-architect or backend-refactor, to draw the result.backend-db-design, architecture choices to backend-architect. This skill draws what exists or what the user describes._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) and <shared>/host-tools.md if the actions named here do not match your host's tool names.<shared>/context-loading.md, but only the files the chosen diagram type needs (see the Sources table). If memory is missing or stale and the source is the codebase, suggest backend-scan and continue from code.
<shared>/stacks/, read it (for example ORM and migration layout hints).Load only what the requested diagram needs.
references/theme.md: read before writing any diagram. Color rule, classDef palette, init directive, dark mode, accessibility metadata, legend rule, renderer versions.references/syntax-rules.md: read before writing any diagram and when a render fails. Ids, label quoting, semicolons, applying classes per diagram type, & fan-out, common errors.references/erd.md: read when the user wants an ERD or database diagram. Source precedence, cardinality and type mapping, template.references/class-diagram.md: read when the user wants a class diagram or domain model.references/actor-diagram.md: read when the user wants a user, role or access diagram.references/flowchart-sequence.md: read when the user wants a flowchart, a sequence diagram or a state/lifecycle diagram.references/architecture.md: read when the user wants an architecture, deployment-topology, module-dependency or C4-style context diagram.| Diagram | Preferred sources (highest first) | Memory files to load |
|---|---|---|
| ERD | migrations or DDL, ORM models, user input, db-schema.md | db-schema.md, tech-stack.md |
| Class | ORM models, domain and service classes | tech-stack.md |
| User / Actor | auth config, role definitions, route guards | project-overview.md, api-patterns.md |
| Flowchart | user description, handler and service code | project-overview.md |
| Sequence | routes, controllers, middleware, service calls | api-patterns.md |
| State | status enums, state-machine code | db-schema.md |
| Architecture / deployment / modules | deployment config, imports, DI wiring | project-overview.md, tech-stack.md, deployment.md if present |
Never invent columns, methods, services or routes. If a source lacks detail (for example db-schema.md has no column lists), draw at the level the source supports and say what is omitted.
Which diagram would you like?
1. ERD - tables and relationships
2. Class diagram - domain classes and associations
3. User / actor diagram - who can do what
4. Flowchart - a business process or data flow
5. Sequence diagram - one request or interaction over time
6. State diagram - the lifecycle of one entity
7. Architecture - components, deployment or module dependencies
8. Several - every type that fits the input
Output: one or more chosen types.
Output: the list of files or inputs the diagram is built from.
Read references/theme.md, references/syntax-rules.md, and the reference for each chosen type. Do not load the other templates.
theme.md on line 1, then the diagram header;accTitle and accDescr;theme.md, chosen by node role, with the matching shape;Output: Mermaid source for each diagram.
references/syntax-rules.md -> Common Errors: init directive on line 1, balanced subgraph/end and braces, no semicolons, no & outside flowcharts, unique ids, quoted special labels, correct class-application form for the diagram type.mmdc (from @mermaid-js/mermaid-cli) is on the PATH, render each diagram to check syntax:
.mmd file outside the project (the OS temp folder or your scratch folder);mmdc -i <temp>.mmd -o <temp>.svg;<shared>/tool-rules.md -> Command Time Budgets);mmdc is not installed, do not install it without asking. Installing a package (including npx -p @mermaid-js/mermaid-cli, which downloads it) is Always Ask First in <shared>/tool-rules.md. Offer it once; if declined, rely on the checklist and say "not render-tested" in Notes.theme.md -> Renderer Versions).Done when every diagram passes the checklist and, where mmdc is available, renders without errors.
Use this format for each diagram:
## ERD - Billing Service
One sentence on what the diagram shows and which sources it was built from.
```mermaid
%%{init: {"theme": "base", "themeVariables": {"primaryColor": "#e1f5fe", "primaryBorderColor": "#01579b", "primaryTextColor": "#000000", "lineColor": "#546e7a"}}}%%
erDiagram
accTitle: Billing data model
accDescr: Customers have invoices and invoices have line items.
CUSTOMERS ||--o{ INVOICES : billed
INVOICES ||--o{ LINE_ITEMS : contains
```
**Legend:**
- Blue boxes (entity) = tables
- Solid lines = relationships, with cardinality at each end
**Notes:**
- Columns omitted: db-schema.md lists tables only. Ask to read the migrations for a full ERD.
- Validation: rendered with mmdc.
theme.md -> Legend Rule).Ask: "Save these diagrams to a file?" Suggest docs/diagrams/<topic>.md (or the project's existing docs folder). Do not offer to write diagrams into project memory; no memory file holds diagrams.
If the user agrees:
node <shared>/scripts/checkpoint.js start --skill backend-visualize --feature <slug>. Record each file you create or edit (checkpoint.js record), snapshot after writing, and close it when done. If Node is unavailable, follow <shared>/tool-rules.md -> Concurrent & Partial Work by hand.<!-- Generated by backend-visualize on YYYY-MM-DD from: <source files> at commit <short sha or "uncommitted"> -->
Done when the diagrams are presented (and, if requested, saved with the checkpoint closed).
architecture.md -> Variants) instead of an identical ERD.LR to TD, or split into linked diagrams.theme.md -> Renderer Versions.What SKILL.md sets; muted values are Claude Code's defaults
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-architectDesigns backend architecture for new and existing systems, including architecture pattern (monolith, modular monolith, microservices, serverless), tech stack, module boundaries, consistency rules and non-functional targets, then records the result as docs/architecture/overview.md, numbered ADR files in docs/adr/ and project memory. Use when the user says "design the architecture", "plan the backend", "how should I structure this", "what tech stack should I use", "should we split into microservices", "write an ADR", "redesign this system", or is starting a new project or a major feature. Hands diagrams to backend-visualize and detailed schema and API work to backend-db-design and backend-api-design.Other plugins' skills for the same job