laravel:http-client-resilience

SkillDev tools

Use the HTTP client with sensible timeouts, retries, and backoff; capture context and handle failures explicitly

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the laravel:http-client-resilience skill

What this skill tells your AI

The instructions your AI receives, as published by jpcaparas/superpowers-laravel in skills/http-client-resilience/SKILL.md and read by ahel’s review.

Design outbound calls to be predictable and observable.

Commands

use Illuminate\Support\Facades\Http;

$res = Http::baseUrl(config('services.foo.url'))
    ->timeout(5)
    ->retry(3, 200, throw: false)
    ->withHeaders(['Accept' => 'application/json'])
    ->get('/v1/things', ['q' => 'bar']);

if (!$res->successful()) {
    Log::warning('foo api failure', [
        'status' => $res->status(),
        'body' => substr($res->body(), 0, 500),
    ]);
}

Patterns

  • Set timeouts explicitly (client and server defaults differ)
  • Use limited retries with backoff for transient failures only
  • Prefer dependency injection for testability
  • Add request/response context to logs (redact sensitive data)
  • Use pool() for concurrency when calling multiple endpoints

Signals

GitHub stars
153
Forks
2
Last commit
Jul 2026
Advanced
Catalog kind
skill
Gateway key
laravel-http-client-resilience
Source
github.com/jpcaparas/superpowers-laravel