resources/boost/skills/saloon-development/SKILL.md
Build and work with SaloonPHP API integrations, including connectors, requests, and responses.
npx skillsauth add saloonphp/laravel-plugin saloon-developmentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when working with SaloonPHP features:
Use web-search for docs at https://docs.saloon.dev. Check composer.json for version (v2, v3 or v4).
saloon:connector, saloon:request, saloon:response, saloon:plugin, saloon:auth. Example:php artisan saloon:connector GitHub GitHubConnector
php artisan saloon:request GitHub GetUserRequest
Saloon\Http\Connector. Example:use Saloon\Http\Connector;
class GitHubConnector extends Connector
{
public function resolveBaseUrl(): string
{
return 'https://api.github.com';
}
}
Saloon\Http\Request, set $method via Saloon\Enums\Method. Example:use Saloon\Enums\Method;
use Saloon\Http\Request;
class GetUserRequest extends Request
{
protected Method $method = Method::GET;
public function resolveEndpoint(): string
{
return '/user';
}
}
$response = $connector->send(new GetUserRequest);
$response->json(); // Array
$response->successful(); // Bool
Body Types: Implement HasBody + trait (HasJsonBody, HasFormBody, HasMultipartBody, HasXmlBody, HasStringBody, HasStreamBody).
Authentication: Use TokenAuthenticator, BasicAuthenticator, QueryAuthenticator, or implement Saloon\Contracts\Authenticator.
Plugins: Built-in traits: AcceptsJson, AlwaysThrowOnErrors, HasTimeout, HasRetry, HasRateLimit, WithDebugData, CastsToDto.
Middleware: Use middleware()->onRequest() and middleware()->onResponse(), or implement boot() method.
DTOs: Implement createDtoFromResponse() in request classes, use $response->dto() or $response->dtoOrFail().
Laravel Facade: Mock requests in tests. Example:
Saloon::fake([GetUserRequest::class => MockResponse::make(['name' => 'Sam'])]);
config/saloon.php:'default_sender' => \Saloon\Laravel\HttpSender::class,
v3 Retry: Set $tries, $retryInterval, $useExponentialBackoff on connectors/requests.
v3 Pagination: Requires saloonphp/pagination-plugin.
Store classes in app/Http/Integrations/{ServiceName}/ (configurable in config/saloon.php).
HasBody interface when sending body dataSaloon\Enums\Method)HttpSender config for TelescopeUse web-search with these docs for specific topics:
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.