backend-module-standards

Solid

Enforce this repository's TypeScript backend module architecture standards. Use whenever creating, modifying, refactoring, or reviewing backend code under `server/`, including routes, services, modules, repositories, shared backend code, and backend tests. Do not apply these rules to frontend code or non-backend scaffolding.

API & Backend 14,683 stars 2149 forks Updated today AGPL-3.0

Install

View on GitHub

Quality Score: 90/100

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

Skill Content

# Backend Module Standards Apply these rules after the repository's basic scaffolding is in place. Limit them to backend code under `server/`. Preserve the requested task scope: make touched and newly generated backend code compliant without performing an unrelated repository-wide migration. ## Inspect before editing 1. Identify the owning feature module and its existing barrel, services, routes, and tests. 2. Search for existing shared types, interfaces, and utilities before adding any definition. 3. Search for every consumer before changing a module's public exports. ## Organize backend modules - Place each feature in `server/modules/<feature>/`. - Use TypeScript for every file inside `server/modules/`. Do not add JavaScript backend module files. - When touched JavaScript utilities belong to the work, migrate them to TypeScript. Place a one-use utility in its sole component; place a utility used in at least two locations in `server/shared/utils.ts`. - Give every feature module an `index.ts` barrel that exposes only its required public API. - Import another feature module only through that module's `index.ts`. Never deep-import another module's routes, services, repositories, adapters, or internal files. - Treat `server/shared/` as the shared module. Keep shared definitions in `server/shared/types.ts`, `server/shared/interfaces.ts`, and `server/shared/utils.ts`, and expose only required cross-module members through its barrel. - Do not create module-local `types.ts`, `i...

Details

Author
siteboon
Repository
siteboon/claudecodeui
Created
1 years ago
Last Updated
today
Language
TypeScript
License
AGPL-3.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Listed

backend-module-standards

Enforce this repository's TypeScript backend module architecture standards. Use whenever creating, modifying, refactoring, or reviewing backend code under `server/`, including routes, services, modules, repositories, shared backend code, and backend tests. Do not apply these rules to frontend code or non-backend scaffolding.

1 Updated 2 months ago
CaineWind
API & Backend Listed

backend-standards

Use when writing or editing server-side code - Next.js route handlers, server actions, MongoDB queries, API contracts, auth checks. Covers parsing input with Zod at every boundary, ordering auth guards before work, typed domain errors mapped to HTTP in one place, never returning raw database documents, and MongoDB driver patterns for connection reuse, projections, and injection-safe queries.

1 Updated 3 months ago
localhostd3veloper
API & Backend Listed

backend-standards

Create a new backend service (NestJS / TypeScript / PostgreSQL / Redis) that follows the team's engineering standards from the first commit, or bring an existing service onto those standards. Use this whenever the user wants to start, scaffold, bootstrap, generate or set up a new backend project or microservice — including phrasings like "create a new service for X", "start a backend project", "scaffold a new API", "set up a new microservice", "build me a backend for X", or "apply our backend standards to this repo". Ships the standards as files plus real source templates (money arithmetic, distributed locks, webhook verification, pagination, sort allowlists, the exception filter) rather than describing them, because a description drifts from the code and a file does not.

0 Updated 3 days ago
YoussefRashad