backend-dev

Implements server-side APIs, database schemas, and business logic following REST conventions.

Updated Aug 20, 2026
One-click install
npx skills add https://github.com/rhorba/RestoLedger --skill backend-dev-rhorba
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-dev
Source: https://github.com/rhorba/RestoLedger/tree/main/skills/backend-dev
Command: npx skills add https://github.com/rhorba/RestoLedger --skill backend-dev-rhorba

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building server-side code without consistent conventions leads to inconsistent APIs, missing validation, N+1 queries, and unmaintainable business logic scattered across controllers. This Skill provides structured checklists and patterns for writing production-grade backend code. ## Core Features & Use Cases - API Design Guidance: Enforces RESTful naming, consistent response formats, proper HTTP status codes, pagination, rate limiting, and API versioning. - Database Design Rules: Covers normalization, indexing, soft deletes, timestamps, UUIDs, and migration-first workflows. - Layered Architecture Patterns: Applies the Route → Controller → Service → Repository pattern with structured error handling and authentication flows. - Use Case: When asked to build a new orders endpoint, the Skill produces a validated, paginated REST endpoint with proper status codes, a service layer for business logic, and a migration file for the schema. ## Quick Start Ask the AI to design and implement a REST API endpoint for creating orders with input validation, pagination, and a database migration.

Frequently Asked Questions about backend-dev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a REST API with proper conventions?

Use plural nouns for resources like /users, HTTP verbs for actions, and correct status codes such as 201 for creation and 422 for business rule violations. Return a consistent response envelope with data, error, and meta fields, and add pagination for list endpoints.

How to structure business logic in a backend application?

Follow the layered pattern: Route → Controller → Service → Repository → Database. Keep business logic in the service layer, not in controllers or models, so it stays testable and reusable across endpoints.

Should I use cursor or offset pagination for my API?

Use cursor-based pagination for datasets over 10K records since it stays performant as data grows. Offset pagination is simpler but degrades at large offsets, so reserve it for small admin-facing lists.

What database design rules should backend code follow?

Normalize first and denormalize only for proven performance needs. Index foreign keys, add created_at and updated_at timestamps to every table, use soft deletes for important data, and always change schemas through migration files.

When should I use idempotency keys in API requests?

Use idempotency keys for non-idempotent POST operations like payments, order creation, and email sends. The server stores the key-to-result mapping for 24 hours so duplicate requests return the original result without side effects.