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
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
| Domain | Key Principles |
| API Design | Strict REST semantics, URL versioning, boundary validation, always paginate lists |
| Testing | Behavior-focused, integration-first, minimal mocking |
Quick Reference
API Design
api-rest-semantics— Use resource-based URLs and proper HTTP verbsapi-url-versioning— Version in URL path (/v1/)api-boundary-validation— Validate all input at the entry pointapi-paginate-always— All list endpoints are paginated from day one
Testing
test-behavior-not-impl— Test what the code does, not how it does ittest-integration-first— Prefer integration tests over unit teststest-minimal-mocking— Only mock at external I/O boundaries
Full Guide
For the complete expanded guide: AGENTS.md
In this repository36 other files it gives its agents.
- skills/backend-best-practices/AGENTS.mdAGENTS.md
- adr-writerSkill
- application-healthchecksSkill
- bspec-prd-discoverySkill
- bspec-story-implementationSkill
- bspec-story-reviewSkill
- bspec-story-syncSkill
- bspec-technical-architectureSkill
- bspec-workflowSkill
- conventional-commitsSkill
- copier-scaffoldSkill
- devenvSkill
- direnvSkill
- docker-composeSkill
- dockerfileSkill
- docker-setupSkill
- docs-writerSkill
- github-actions-dockerSkill
- gitleaks-setupSkill
- golang-developmentSkill
- golang-slogSkill
- golang-testingSkill
- playwright-devenvSkill
- project-webappSkill
- readme-writerSkill
- release-drafter-setupSkill
- release-drafterSkill
- release-notesSkill
- renovate-pr-triageSkill
- renovate-setupSkill
- structured-loggingSkill
- summarize-articleSkill
- summarize-youtube-videoSkill
- tailwind-v4Skill
- vicinae-extensionsSkill
- zensical-setupSkill
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.

