agentleFS
brpazbrpaz/agent-skills/skills/backend-best-practices/SKILL.md

backend-best-practices

Skill1 starsChanged 6 months agoMITView on GitHub

Personal backend engineering principles covering API design and testing. Stack-agnostic. Load this skill when designing APIs, writing tests, reviewing backend code, or building new endpoints. Triggers on tasks involving REST API design, endpoint creation, pagination, HTTP status codes, input validation, integration testing, or test strategy decisions.

Files
SKILL.md

Backend Best Practices

Personal backend engineering guidelines. Stack-agnostic — applies to any language or framework. Covers two domains: API Design and Testing.

When to Apply

Reference these guidelines when:

  • Designing or reviewing REST API endpoints
  • Deciding on response shapes, status codes, or URL structure
  • Writing any kind of backend tests
  • Deciding what and how to test (unit vs integration, mock strategy)
  • Adding pagination to list endpoints
  • Handling input validation at any layer

Domains

DomainKey Principles
API DesignStrict REST semantics, URL versioning, boundary validation, always paginate lists
TestingBehavior-focused, integration-first, minimal mocking

Quick Reference

API Design

  • api-rest-semantics — Use resource-based URLs and proper HTTP verbs
  • api-url-versioning — Version in URL path (/v1/)
  • api-boundary-validation — Validate all input at the entry point
  • api-paginate-always — All list endpoints are paginated from day one

Testing

  • test-behavior-not-impl — Test what the code does, not how it does it
  • test-integration-first — Prefer integration tests over unit tests
  • test-minimal-mocking — Only mock at external I/O boundaries

Full Guide

For the complete expanded guide: AGENTS.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.