kienbui1995/magic-powers/agentic-reliability
Claude Code and agent skill by kienbui1995/magic-powers
- community
Checking that the SKILL.md file is still in the repository.
Use when designing reliable AI agent systems — retry strategies, circuit breakers, fallbacks, graceful degradation, timeout management, and handling compound failures in multi-step agent workflows.
Install
npx vskill@latest install kienbui1995/magic-powers/agentic-reliabilitySKILL.md
The same SKILL.md was published earlier as kienbui1995/magic-powers/agentic-reliability.
Agentic Reliability
Overview
Agent systems fail differently than single API calls. Failures compound multiplicatively across steps, a stuck loop can run indefinitely, and a single slow dependency can freeze the entire pipeline. Reliability must be designed in — it cannot be bolted on after the fact.
When to Use
- An agent calls external APIs that can fail or rate-limit
- Building multi-step agent workflows where failures compound
- Designing fallback behavior when an AI model is unavailable
- Agent loops that can get stuck or run indefinitely
- Production agents that must degrade gracefully, not crash
Core Jobs
1. The Compounding Failure Problem
Agent reliability compounds multiplicatively — unlike single LLM calls:
Implication: Each component must be extremely reliable individually, or agent system reliability collapses. Target 99.9% per step for a 10-step workflow to achieve 99% system reliability. This is why agent reliability engineering is harder than regular API reliability.
2. Retry Strategy
Never retry: Validation errors (400), authorization errors (401/403) — retrying wastes time and money. Always retry with backoff: Rate limits (429), timeouts, transient server errors (500/503).
3. Circuit Breaker
Prevent cascading failures by temporarily stopping calls to a failing service:
Production thresholds: Open after 5 failures in 60 seconds. Attempt recovery after 60 seconds. Close after 2 consecutive successes. Expose circuit state in your observability dashboard — patterns in circuit events reveal infrastructure problems.
4. Fallbacks & Graceful Degradation
Design every agent action with a fallback:
Degradation tiers:
- Primary path (full quality)
- Secondary provider (same quality, different vendor)
- Cached response (stale but available)
- Template response (predetermined, no AI)
- Graceful error (clear user message, no crash)
Always set degraded=True on fallback responses. Callers need to know the response quality is reduced.
5. Timeout Management
Never use infinite timeouts. Always set explicit timeouts on every external call. A single hanging tool call can freeze an entire agent pipeline indefinitely.
6. Loop Detection & Step Limits
Agents can get stuck in infinite loops — detect and break:
Always return a partial result when hitting step limits. Hard crashes leave users with no information about what was accomplished before the limit was reached.
7. Partial Result Extraction
When an agent cannot complete fully, extract what was done:
Key Concepts
- Circuit breaker — stops calling a failing service temporarily; prevents cascade failures where one slow dependency brings down the whole pipeline
- Retry with backoff — exponential delay between retries; reduces thundering herd and gives the failing service time to recover
- Graceful degradation — agent continues with reduced capability when a component fails; partial value beats total failure
- Timeout — maximum time to wait for any operation; never use infinite timeouts in production agents
- Loop detection — count repeated actions; break after MAX_LOOPS repetitions of the same tool+params combination
- Step limit — maximum agent steps; prevents runaway execution, unbounded cost, and infinite loops
- Fallback chain — ordered list of alternatives to try when primary fails; each tier reduces quality but maintains availability
- Partial result — return what was completed even if task didn't finish; always better than a crash with no output
Checklist
- [ ] Every external API call has explicit timeout set?
- [ ] Retry logic with exponential backoff for transient errors?
- [ ] Circuit breaker configured for each external service dependency?
- [ ] Fallback defined for each critical agent action?
- [ ] Max steps limit set and enforced (hard cap, not advisory)?
- [ ] Loop detection implemented (repeated action counter per tool+params)?
- [ ] Partial results returned when agent hits step limit or gets stuck?
- [ ] Different retry strategies for different error types (no retry for 400/401/403)?
- [ ] Circuit breaker state exposed in observability dashboard?
- [ ] Degraded responses flagged so callers know quality is reduced?
Key Outputs
- Reliability design doc: retry strategies per error type, circuit breaker thresholds, fallback chains per action
- Timeout budget per operation type (LLM call, tool call, full task, human approval)
- Graceful degradation tiers: what the agent can still do if X fails
Output Format
- 🔴 Critical — no timeouts (agent hangs forever on slow dependency), no step limit (infinite loop risk with unbounded cost), no retry on transient errors (unnecessary failures on rate limits and brief outages)
- 🟡 Warning — same retry strategy for all error types (retrying 400s wastes money), no circuit breaker (one degraded service cascades to full pipeline failure), no fallback defined (hard fail on primary failure with no recovery path)
- 🟢 Suggestion — implement partial result extraction for interrupted tasks so users get value even from incomplete runs, add reliability dashboard tracking circuit breaker state and retry rates per service
Anti-Patterns
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agentic-reliability/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kienbui1995/magic-powers/agentic-reliability)