agentleFS
sivaprasadreddysivaprasadreddy/sivalabs-agent-skills/skills/reliability-and-performance/SKILL.md

reliability-and-performance

Skill198 starsChanged 4 days agoMITView on GitHub

Design applications for predictable performance and graceful behavior under load, dependency failure, resource pressure, and partial outages.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when defining non-functional requirements, designing critical workflows, integrating dependencies, scaling workloads, or investigating …

    line 12
  2. Distinctive:

    Use timeouts for all remote calls and cancellation where possible.

    line 20
  3. Distinctive:

    Use circuit breakers, bulkheads, rate limits, and load shedding when justified by failure modes.

    line 22
  4. Distinctive:

    Consider capacity, cost, and operational complexity together.

    line 25
  5. Distinctive:

    Test load, stress, soak, and recovery scenarios appropriate to risk.

    line 34
  6. Distinctive:

    Use pagination, streaming, or asynchronous processing for large workloads.

    line 39
  7. Distinctive:

    Avoid N+1 queries, unbounded scans, and excessive serialization.

    line 40
  8. Distinctive:

    Avoid synchronized retry behavior across many clients.

    line 42
  9. Distinctive:

    Consider graceful degradation and clear user feedback when optional capabilities fail.

    line 44
  10. Distinctive:

    Do not claim scalability based solely on architecture labels or theoretical horizontal scaling.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Reliability and Performance

Purpose

Improve user-visible reliability and performance through explicit budgets, failure handling, capacity awareness, and measurement.

When to use

Use when defining non-functional requirements, designing critical workflows, integrating dependencies, scaling workloads, or investigating performance and availability problems.

Principles

  • Define user-visible expectations before optimizing.
  • Measure representative workloads; do not rely on intuition or microbenchmarks alone.
  • Set end-to-end latency and resource budgets.
  • Bound queues, concurrency, payload sizes, and expensive operations.
  • Apply backpressure rather than allowing unbounded work to accumulate.
  • Use timeouts for all remote calls and cancellation where possible.
  • Retry only transient failures, with limits and jitter.
  • Use circuit breakers, bulkheads, rate limits, and load shedding when justified by failure modes.
  • Design degraded behavior for non-critical dependencies.
  • Make background jobs safe to retry and recover.
  • Consider capacity, cost, and operational complexity together.

Workflow

  1. Identify critical journeys and define measurable performance/reliability targets.
  2. Model expected and peak traffic, payload sizes, data growth, and dependency limits.
  3. Measure baseline latency, throughput, error rate, and resource usage.
  4. Locate bottlenecks using profiling and traces.
  5. Prioritize changes by user impact and evidence.
  6. Define overload and dependency-failure behavior.
  7. Test load, stress, soak, and recovery scenarios appropriate to risk.
  8. Re-measure and compare against the baseline and targets.

Common design considerations

  • Cache only when freshness, invalidation, and failure behavior are understood.
  • Use pagination, streaming, or asynchronous processing for large workloads.
  • Avoid N+1 queries, unbounded scans, and excessive serialization.
  • Prevent thread, connection, worker, and memory pool exhaustion.
  • Avoid synchronized retry behavior across many clients.
  • Design startup, shutdown, and deployment behavior to avoid dropping critical work.
  • Consider graceful degradation and clear user feedback when optional capabilities fail.

Review checklist

  • Are targets measurable and tied to user experience?
  • Are workloads and capacity assumptions explicit?
  • Are all queues and resource pools bounded?
  • Are timeouts, retries, and cancellation coherent end-to-end?
  • Is overload behavior safe?
  • Are bottlenecks supported by measurements?
  • Can the system recover after dependency or instance failure?

Do not claim scalability based solely on architecture labels or theoretical horizontal scaling.

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.