agentleFS
dekozadekoza/oh-my-slop/skills/practice/production-readiness/SKILL.md

production-readiness

Skill4 starsChanged 9 months agoUnlicenseView on GitHub

Services, APIs, jobs, queues, deployment paths, and critical flows that must survive production failures, overload, latency, bad data, and operational mistakes. Based on Release It! (Michael T. Nygard). Covers: timeouts, retries, circuit breakers, bulkheads, backpressure, load shedding, observability, deployment safety, failure mode design. Triggers on: "production", "reliability", "resilience", "timeout", "retry", "circuit breaker", "deployment", "health check", "observability", "failure mode", "overload", "backpressure", "bulkhead", "load shedding", or when building any service that will run in production.

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use database-design, incident-response and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CloudAI-XSkill

    database-design

    Designs database schemas, indexing strategies, query optimization, and migration patterns for SQL and NoSQL databases. Use when designing tables, optimizing queries, fixing N+1 problems, planning migrations, or when asked about database performance, normalization, ORMs, or data modeling.

    Also in 3 projects that use this

  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 3 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 3 projects that use this

  • OpenAISkill

    dispatching-parallel-agents

    Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

    Also in 3 projects that use this

  • OpenAISkill

    using-git-worktrees

    Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback

    Also in 3 projects that use this

  • +3 more from openai

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 11

    Distinctive

    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:

    If you are reading this, the user is building or changing something that must survive production.

    line 18
  2. Distinctive:

    Put explicit, intentional time limits on every outbound call and wait.

    line 34
  3. Distinctive:

    Do not duplicate retry logic across layers — if the caller retries, the callee shouldn't also retry.

    line 37
  4. Distinctive:

    Use slow-work isolation — don't let slow dependencies block fast paths.

    line 42
  5. Distinctive:

    Treat external input and external responses as untrusted: validate syntax, shape, business plausibility, status, content type, and …

    line 50
  6. Distinctive:

    Treat hostile traffic, abusive users, and malformed requests as production load cases — not edge cases.

    line 55
  7. Distinctive:

    Keep DNS, service discovery, routing, and load balancing health-aware and current.

    line 59
  8. Distinctive:

    Avoid secrets in logs. Avoid retry-storm log spam.

    line 63
  9. Distinctive:

    Ensure health signals reflect real ability to serve — traffic should only reach ready components.

    line 68
  10. Distinctive:

    Avoid holding locks or expensive connections across slow remote calls.

    line 72
  11. Very specific:

    Adding health checks/routing/handshakes: Ensure traffic reaches only ready components.

    line 80
  12. Distinctive:

    Before shipping to production:

    line 102

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “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

Production Readiness

When This Skill Loads

If you are reading this, the user is building or changing something that must survive production. A passing happy path is not production readiness. Design the failure semantics before production defines them for you.

Core Principle

Assume every dependency, queue, cache, timeout, caller retry, and degraded state can fail in slow, partial, or prolonged ways.

Code must assume production mess instead of merely tolerating it by accident. Prefer designs that:

  • Fail visibly (don't hide errors)
  • Limit blast radius (one failure doesn't cascade)
  • Shed load (drop low-value work before core functions collapse)
  • Preserve core service (degrade gracefully, don't go fully down)
  • Make diagnosis possible (structured logs, correlation IDs, metrics)

Decision Rules

Timeouts and Retries

  • Put explicit, intentional time limits on every outbound call and wait. Never rely on library defaults or allow infinite waits.
  • Retry only when the operation is safe for caller and provider. Bound count and total time. Use backoff or jitter.
  • Do not retry validation errors, permanent failures, or non-idempotent operations.
  • Do not duplicate retry logic across layers — if the caller retries, the callee shouldn't also retry.

Isolation

  • Isolate dependency and workload failures with circuit breakers, fast failure, bulkheads, and separate resource pools.
  • One outage must not consume all threads, connections, or workers.
  • Use slow-work isolation — don't let slow dependencies block fast paths.

Overload Behavior

  • Design overload behavior explicitly: back pressure, finite queues, demand limits, capacity reserved for critical traffic.
  • Load shedding: drop lower-value work before core functions collapse.
  • Bound every queue, buffer, pool, cache, and result set. Define what happens when each is full.

External Input Validation

  • Treat external input and external responses as untrusted: validate syntax, shape, business plausibility, status, content type, and semantics.
  • Prevent malformed data from poisoning caches, queues, or downstream systems.

Security and Hostile Traffic

  • Production readiness includes security: secrets, permissions, administrative access, dependency trust, and input handling.
  • Treat hostile traffic, abusive users, and malformed requests as production load cases — not edge cases.

Interconnects and Routing

  • Design interconnects to avoid concentrated demand, hidden single points of failure, uncontrolled fan-out, and fragile chattiness.
  • Keep DNS, service discovery, routing, and load balancing health-aware and current.

Observability

  • Build observability into boundaries and failure points: structured context, correlation identifiers, latency, throughput, error counts, saturation, queue depth, retry counts, breaker state, dependency health, version, configuration.
  • Avoid secrets in logs. Avoid retry-storm log spam.

Deployment and Operations

  • Make startup, health checks, migrations, one-time jobs, and operational automation idempotent or restartable where practical.
  • Give operational changes durable state, auditability, verification, and rollback/roll-forward paths.
  • Ensure health signals reflect real ability to serve — traffic should only reach ready components.

Resource Budgeting

  • Budget scarce resources explicitly. Release them deterministically.
  • Avoid holding locks or expensive connections across slow remote calls.
  • Stream or paginate large payloads instead of defaulting to huge in-memory batches.

Trigger Rules

  • Adding an outbound call: Define timeout, retry eligibility, retry bounds, fallback/degraded mode, validation, and caller-survival behavior.
  • Adding a queue/buffer/pool/cache/log stream/job/collection-returning API: Define capacity, full behavior, cleanup, miss/stampede/staleness behavior, dead-letter/poison-message handling, pacing, pagination/streaming, and saturation monitoring.
  • Touching deployment/config/startup/migrations: Make it idempotent or restartable. Give it durable state, auditability, verification, and rollback.
  • Adding health checks/routing/handshakes: Ensure traffic reaches only ready components. Health signals must reflect real ability to serve.
  • Designing API/integration contracts: Make failure modes explicit. Distinguish retryable from non-retryable. Prefer coarse-grained resilient interactions. Document timeout, retry, version, compatibility.
  • Reviewing an incident: Identify the failure chain, missing defenses, detection gaps, demand, saturation, latency distribution, queue age, dependency behavior, traffic concentration.
  • Adding admin controls/hostile-traffic handling/production testing (launch checks, capacity tests, game days, chaos/disaster simulations): Require authorization, auditability, safe defaults, clear stop mechanisms, bounded blast radius, recovery paths.

Stability Patterns

PatternWhen to Use
Circuit breakerDependency is failing — stop calling it fast, probe for recovery
BulkheadIsolate resource pools so one failure can't exhaust all capacity
Fail fastContinuing hides unrecoverable trouble or holds scarce resources
BackpressureUpstream needs to slow down — propagate pressure, don't buffer infinitely
Load sheddingSystem is overloaded — drop low-priority work to protect core functions
GovernorExpensive behavior needs rate-limiting to protect shared resources
HandshakingComponents must signal readiness before receiving traffic
Steady stateRoutine cleanup and bounded growth (logs, caches, temp data) without human intervention
Let it crashClean restart beats limping — only with supervision and isolation
Decoupling middlewareQueues/messaging decouple callers from providers — only with depth/lag monitoring

Final Checklist

Before shipping to production:

  • Explicit timeouts on all outbound calls — no infinite waits?
  • Retries safe, bounded, backed off/jittered, not duplicated across layers?
  • Queues, buffers, pools, caches, payloads, jobs bounded?
  • Failure isolated with breakers, bulkheads, fast failure, degradation, or load shedding?
  • External input and dependency responses validated before they affect state?
  • Diagnostics cover logs, metrics, health, correlation, dependencies, saturation, queue depth, retries, breaker state?
  • Startup, deployment, migration, automation restartable, observable, authorized, auditable?
  • API contracts document failure modes, timeouts, retry expectations?
  • Interconnects, APIs, caches, scheduled work, security, and chaos tests have explicit production failure behavior?

Reference

FileUse When
Failure ModesDesigning specific failure semantics for a service or integration
Stability PatternsChoosing between circuit breaker, bulkhead, backpressure, load shedding, governor
ObservabilityBuilding diagnostics into boundaries and failure points
Deployment SafetyMaking deployments, migrations, and operational changes safe and reversible

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.