clean-backend

Solid

Use when designing, writing, or reviewing backend code — HTTP endpoints, payment or state-changing flows, database reads and writes, calls to other services, background jobs, rolling out a risky change, or production alerting and on-call.

API & Backend 9 stars 1 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
33
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Clean Backend The operational habits that don't surface from inside the code in front of you. Every practice here was measured missing from real baseline output. The practices that showed up reliably without prompting were removed — see *Deliberately not covered* at the end. Apply these **in addition to** your own engineering judgment; they are a floor to add, not a checklist that replaces what you already do well. ## Part 1 — Absent from every baseline Three lifecycle decisions. Nothing inside a single endpoint cues them, which is exactly why they get skipped. ### 1. Version the route from day one ```TypeScript // Measured: the route ships unversioned, every time. POST /charges GET /products // Fill the version slot. POST /api/v1/charges GET /api/v1/products ``` Mobile clients outlive your refactors. An unversioned route turns the first breaking change into a coordinated migration. **Skip it when** the service has exactly one consumer that you deploy atomically with it. ### 2. Deploying is not releasing ```TypeScript // Measured: the new path ships live to everyone at once. return renderCheckoutV2(cart); // Put the risky path behind a switch you can flip without a deploy. if (flags.checkoutV2.on(user)) return renderCheckoutV2(cart); return renderCheckoutV1(cart); ``` Rollback becomes a config change instead of an emergency deploy at 3am. **Skip it when** the change has no behavioral surface — a pure refactor or a typo fix. Flagging those only creates flag d...

Details

Author
AllanOps
Repository
AllanOps/Clean-Backend
Created
2 months ago
Last Updated
yesterday
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Listed

backend-architecture

Design backends that survive redeploys, server reboots, and modest scaling. Covers stateless application servers, state placement (object storage, managed databases, Redis), immutable deploy artifacts, health checks, graceful shutdown, database migrations that don't lock the world, and the twelve-factor baseline. Invoke when designing a new backend, when uploads disappear after a redeploy, or when productionizing a vibe-coded prototype.

17 Updated 1 months ago
GoldenWing-360
API & Backend Listed

craft-backend

The Craftsman standard for building and reviewing backend code — API routes, request validation, the authentication boundary, service/business logic, error handling, route rate-limit middleware, third-party integrations, and background jobs. Use this WHENEVER the work touches the server side: adding or reviewing a route, validating input, authenticating a request, tracing a 500, writing a service layer, wiring an integration, or handling a job. Trigger even when the user only says "add an endpoint", "validate this input", "why is this returning 500", or "secure this route" without naming a framework. Handoffs: see "Scope boundaries" in the body.

1 Updated 4 days ago
atifgul99
API & Backend Listed

craft-backend

The Craftsman standard for building and reviewing backend code — API routes, request validation, the authentication boundary, service/business logic, error handling, route rate-limit middleware, third-party integrations, and background jobs. Use this WHENEVER the work touches the server side: adding or reviewing a route, validating input, authenticating a request, tracing a 500, writing a service layer, wiring an integration, or handling a job. Trigger even when the user only says "add an endpoint", "validate this input", "why is this returning 500", or "secure this route" without naming a framework. Handoffs: see "Scope boundaries" in the body.

1 Updated 4 days ago
gul-labs