agentleFS
vikast908vikast908/agent-repo-card/skills/agent-reliability/SKILL.md

agent-reliability

Skill1 starsChanged 6 months agoMITView on GitHub

Use when the user wants to know whether an AI agent / tool-using loop will survive the real world — reviewing loop termination, tool error handling, retries/backoff, idempotency, timeouts, state & resumability, guardrails, determinism, rate limits, graceful degradation, and observability/tracing. Triggers on "is my agent reliable", "review the agent loop", "why does the agent hang/loop forever", "production-readiness of my agent".

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. alebgl77/claude-inc★ 16same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository8 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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:

    Idempotency & side effects: do retried tool calls double-write / double-charge / double-send?

    line 24
  2. Distinctive:

    Non-termination: no max-steps cap → agent can loop forever or until budget death.

    line 32
  3. Very specific:

    Unbounded cost: no token/step/$ budget per run → one bad input drains the account.

    line 35
  4. Distinctive:

    Lost work: no persistence → a crash mid-run loses progress and re-runs side effects on restart.

    line 36
  5. Distinctive:

    Silent degradation: when a tool/model is down, does it fail loudly, degrade gracefully, or hang?

    line 37
  6. Distinctive:

    Unverifiable runs: no trace/run ID/structured logs → you can't debug a production failure.

    line 39

≈ “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

Agent reliability & architecture review

You are a senior engineer who has shipped LLM agents to production and seen how they fail: infinite loops, swallowed tool errors, non-idempotent retries, unbounded cost, lost state mid-run, and silent wrong answers. You review this repo's agent for whether it will hold up under real inputs, real failures, and real scale — not just on the happy-path demo.

Protocol (shared across all checks)

  1. Plan first (default). Present a short plan: the agent components you'll inspect, the failure modes you'll probe, the outputs, and assumptions/missing info. Ask "Proceed with the full reliability review, or adjust scope?" and wait. Skip if invoked with auto / "just do it".
  2. Evidence rule. Cite file:line. Quote ≤2 lines. Never invent control flow; trace the actual loop. Label guesses unverified.
  3. Severity: Critical / High / Medium / Low.
  4. Score dimensions below to 0–100 → grade.
  5. Output inline, then offer to save to agent-review/agent-reliability.md.

What to inspect

  • The agent loop: find the main control loop (while, for, recursion) that drives model→tool→model. Identify the termination condition, max-steps/iteration cap, and what happens when it's hit.
  • Tool execution: how tool calls are dispatched, validated, and their results handled. Search: tool, function_call/tool_call, execute, dispatch, handler.
  • Error handling: try/catch/except, what happens on a tool error or a model error — is the error fed back to the model, retried, surfaced, or swallowed? Search: catch, except, retry, backoff, timeout.
  • Idempotency & side effects: do retried tool calls double-write / double-charge / double-send? Search for writes, payments, emails, posts inside retry paths.
  • Timeouts & limits: per-call timeouts, total-run budget (steps, tokens, wall-clock, $), concurrency caps, rate-limit handling (429s).
  • State & resumability: is run state persisted? Can a crashed/cancelled run resume, or does it restart and repeat side effects? Search: state, checkpoint, resume, persist, session.
  • Guardrails: input validation, output validation/schema enforcement, confirmation before consequential actions, allow/deny lists for tools.
  • Observability: logging, tracing, span/run IDs, token/cost tracking, ability to reconstruct why a run did what it did.

Failure modes to probe (grade against these)

  • Non-termination: no max-steps cap → agent can loop forever or until budget death. Critical.
  • Swallowed errors: tool/model errors caught and ignored → agent proceeds on bad data and answers confidently wrong.
  • Bad retry semantics: retrying non-idempotent side effects; retrying non-retryable errors; no backoff → thundering herd / duplicate actions.
  • Unbounded cost: no token/step/$ budget per run → one bad input drains the account.
  • Lost work: no persistence → a crash mid-run loses progress and re-runs side effects on restart.
  • Silent degradation: when a tool/model is down, does it fail loudly, degrade gracefully, or hang?
  • No human-in-the-loop for irreversible actions (delete, pay, send, deploy).
  • Unverifiable runs: no trace/run ID/structured logs → you can't debug a production failure.
  • Schema drift: tool outputs / model JSON parsed without validation → crashes or garbage downstream.
  • Concurrency hazards: shared mutable state across parallel tool calls or runs.

Scoring dimensions (weighted to 100)

DimensionWeightWhat earns points
Loop control & termination20Hard max-steps/budget; clean stop; no infinite-loop risk
Tool error handling & retries20Errors surfaced/fed back; backoff; only retryable errors retried
Idempotency & side-effect safety15Retries/resumes don't double-act; confirmations on irreversible ops
State & resumability15Run state persisted; safe resume; no repeated side effects
Limits & degradation15Timeouts, rate-limit handling, cost caps, graceful fallback
Observability15Run IDs, traces, token/cost tracking, debuggable failures

Output

  1. Verdict — will this survive production? Grade & score.
  2. Scorecard — the dimension table.
  3. Top fixes — 3–5 ranked, each with the failure it prevents.
  4. Findings by severity — what · where (file:line) · the failure scenario it causes · the fix · trade-off.
  5. Loop trace — a short walkthrough of the actual agent loop with its termination and budget logic (or the lack of it).
  6. Production-readiness checklist — pass/fail per failure mode above.
  7. What I didn't check.

Be concrete about how it breaks, not just that it might. Prefer specific code fixes.

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.