From superpowers-laravel
Configures Laravel HTTP client with timeouts, retries, backoff, logging, and concurrency for resilient outbound API calls. Use for predictable, observable requests.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-laravel:http-client-resilienceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Design outbound calls to be predictable and observable.
Design outbound calls to be predictable and observable.
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),
]);
}
pool() for concurrency when calling multiple endpointsnpx claudepluginhub jpcaparas/superpowers-laravel --plugin superpowers-laravelIHttpClientFactory patterns with Polly for retries, circuit breakers, timeouts, and resilient HTTP communication. Includes best practices for HTTP client configuration and error handling. Use when configuring resilient HTTP clients in ASP.NET Core, implementing retry policies with Polly, or setting up circuit breakers for external service calls.
Implements Python resilience patterns: retries with tenacity, exponential backoff, jitter, timeouts, and decorators. For fault-tolerant services handling transient failures and network issues.
Generates PSR-18 compliant HTTP client for PHP 8.4 using cURL with request sending, exception handling, and unit tests. For external API integrations, microservices, and HTTP service calls.