vibe.tool-fallback

Solid

Use when a tool or provider returns API errors, search failures, timeouts, 429, 5xx, or overload responses and a circuit-breaker fallback is required.

AI & Automation 0 stars 1 forks Updated today MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
0
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Tool Fallback Strategies ## Pre-check (K1) > Did a tool just fail? If the error is a simple typo or wrong path, fix the input first. This skill is for persistent failures (429, 5xx, timeouts). ## Circuit Breaker State Machine ``` ┌─────────┐ 3 failures ┌─────────┐ 30s cooldown ┌─────────────┐ │ CLOSED │ ─────────────→ │ OPEN │ ───────────────→ │ HALF-OPEN │ │ (normal)│ │ (block) │ │ (test 1 req)│ └─────────┘ └─────────┘ └─────────────┘ ↑ │ │ success │ └────────────────────────────────────────────────────────┘ ``` | State | Behavior | |-------|----------| | CLOSED | Normal operation, count failures | | OPEN | Skip tool immediately, use alternative | | HALF-OPEN | Allow 1 test request after cooldown | ## Decision Trees Select exactly one conditional reference for the failing capability; unrelated failures do not load it: - Web search failure → `references/web-search.md` - External LLM failure → `references/external-llm.md` - File/code lookup failure → `references/file-lookup.md` ## Error Response Actions | Error | Action | Circuit Impact | |-------|--------|---------------| | 429 Rate Limit | Skip to next alternative (don't retry) | +1 failure | | 5xx Server Error | Retry with backoff, then switch | +1 failure | | 529 Overloaded | Wait and retry once | +1 failure | | Timeout...

Details

Author
su-record
Repository
su-record/vibe
Created
8 months ago
Last Updated
today
Language
TypeScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category