Skip to content
Back to skills

Backend Standards

ASecurity

Use when implementing or refactoring backend logic in packages/api or packages/db. Enforce router/service/data access layering, naming conventions, TRPC best practices, and Drizzle schema guidelines.

  • 207 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 7, 2026
databasesrefactoringapidatabasefrontendbackend

Works with

  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add NeverSight/skills_feed --skill backend-standards --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Backend Standards?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Backend Standards
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-backend-standards/badge)](https://www.skillsdirectory.com/skills/neversight-backend-standards)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: backend-standards
description: Use when implementing or refactoring backend logic in packages/api or packages/db. Enforce router/service/data access layering, naming conventions, TRPC best practices, and Drizzle schema guidelines.
---

# Backend Standards (Seagull)

## When to use
- Adding or refactoring tRPC routers/services in `packages/api`.
- Changing database schema in `packages/db`.

## Core rules
- **Layering**:
  - Router layer in `packages/api/src/router` (validation, auth, routing only).
  - Service layer in `packages/api/src/services` for business logic and orchestration.
  - Data access in `packages/db` (Drizzle).
- **Naming**:
  - Files: kebab-case. Variables/functions: camelCase. Types: PascalCase.
  - DB: snake_case tables/columns (Drizzle maps to camelCase).
- **tRPC**:
  - Query = read (`get`, `list`, `search`, `byId`); Mutation = write (`create`, `update`, `delete`, `archive`).
  - Always define Zod inputs.
  - Throw `TRPCError` with semantic codes.
- **DB**:
  - Schema split by domain under `packages/db/src/schema` and re-export in index.
  - Use soft delete via `deletedAt` for core entities.

## Workflow reminders
- Schema change → db migration → router/service updates → frontend usage.
- Run `pnpm lint` and `pnpm typecheck` before commit.

## Canonical reference
- See `skills/backend-standards/references/backend-standards.md` for the full policy text and examples.

Files in this skill

  • SKILL.md1.4 KB
  • description_cn.txt177 B
  • description_de.txt229 B
  • description_en.txt200 B
  • description_es.txt231 B
  • description_fr.txt290 B
  • description_ja.txt334 B
  • description_ko.txt245 B
  • description_tw.txt177 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.