agentleFS
sohaibdevvsohaibdevv/AI-AGENT-SKILLS/skills/backend-engineering/SKILL.md

backend-engineering

Skill2 starsChanged 6 months agoMITView on GitHub

Design services that are reliable, observable, secure, and maintainable

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before implementing a new service or significant backend feature

    line 14
  2. Distinctive:

    When a service has reliability, performance, or security issues

    line 15
  3. Distinctive:

    Document: endpoints/methods, request/response schemas, error codes, authentication requirements, rate limits.

    line 21
  4. Distinctive:

    Every outbound call must have: timeout, retry with backoff, circuit breaker, fallback.

    line 24
  5. Distinctive:

    All write operations should be idempotent where possible.

    line 30
  6. Distinctive:

    Read replicas for read-heavy workloads

    line 35
  7. Very specific:

    No secrets in logs or responses See security-and-hardening.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Overview

Backend services are the load-bearing walls of software systems. They must be reliable under partial failure, observable in production, and secure against malicious input. This skill applies the engineering discipline required for production-grade services.

When to Use

  • Before implementing a new service or significant backend feature
  • When a service has reliability, performance, or security issues
  • As part of the /review workflow for backend PRs

Process

Step 1: Define the contract

Document: endpoints/methods, request/response schemas, error codes, authentication requirements, rate limits. No implementation before the contract is defined.

Step 2: Design for failure

Every outbound call must have: timeout, retry with backoff, circuit breaker, fallback. Services that don't handle dependency failures will fail when their dependencies fail.

Step 3: Input validation at the boundary

Validate all incoming data before processing: types, required fields, length limits, format constraints. Reject invalid input - don't try to fix it.

Step 4: Idempotency for mutations

All write operations should be idempotent where possible. Use idempotency keys for payment and other sensitive operations.

Step 5: Database access

  • No N+1 queries
  • Transactions for operations that must be atomic
  • Read replicas for read-heavy workloads
  • Connection pooling configured

Step 6: Logging and observability

Implement structured logging, metrics (four golden signals), and distributed tracing. See observability-and-monitoring.

Step 7: Security

  • Authenticate every request
  • Authorize every resource access
  • Validate all inputs
  • No secrets in logs or responses See security-and-hardening.

Step 8: Graceful shutdown

Handle: SIGTERM, drain in-flight requests, close database connections, flush logs. Services that don't handle graceful shutdown cause errors during deployments.

Verification Requirements

  • Contract documented before implementation
  • All outbound calls have timeout and retry
  • Input validation at the service boundary
  • No N+1 queries
  • Authentication and authorization on every request/resource
  • Graceful shutdown implemented
  • Four golden signals instrumented

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.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.