backend-standards

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.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "backend-standards" with this command: npx skills add clarkkkk/seagull/clarkkkk-seagull-backend-standards

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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

frontend-standards

No summary provided by upstream source.

Repository SourceNeeds Review
General

testing-guide

No summary provided by upstream source.

Repository SourceNeeds Review
General

Csv Analyzer Cn

CSV数据分析工具。数据统计摘要、SVG图表生成、条件筛选、文件合并、数据清洗、格式转换(JSON/HTML/Markdown/SQL)、HTML分析报告。CSV analyzer with stats, SVG charts, filtering, merging, cleaning, format conve...

Registry SourceRecently Updated
General

Tripit Calendar

Read upcoming TripIt travel plans from a TripIt iCal feed; use for next trip, upcoming travel, itinerary, flight or hotel bookings already in TripIt; do not...

Registry SourceRecently Updated
backend-standards | V50.AI