Install
openclaw skills install @may4748854-rgb/http-testBuild reusable HTTP API test artifacts from user-provided endpoints, authentication, request data, expected results, and validation rules. Use this skill when the user wants to create .http files, run HTTP/REST API checks, replay browser or curl requests, validate JSON fields or response markers, compare expected vs actual responses, or generate formatted PASS/FAIL API test reports.
openclaw skills install @may4748854-rgb/http-testUse this skill to turn one-off HTTP checks into reusable .http cases and a runnable verification script.
Generate two artifacts by default:
<feature>.api-tests.http<feature>.api-verify.shThe .http file is the source of truth. The shell script executes the cases, prints readable PASS/FAIL/SKIP output, and exits non-zero when any non-skipped case fails.
templates/ for a new endpoint.examples/ when the endpoint looks similar to an existing example.references/complex-scenarios.md for multi-step or advanced validation.<feature>.api-tests.http<feature>.api-verify.shbash -n './<feature>.api-verify.sh'
bash './<feature>.api-verify.sh'
COOKIE='full Cookie header' AUTH_TOKEN='token value' bash './<feature>.api-verify.sh'
See references/debugging-cookbook.md for the failure checklist.
Ask only for fields the user did not already provide.
| Input | Needed for |
|---|---|
| Base URL / host | Resolving request targets |
| HTTP method | Building the request |
| Authentication | Cookie, bearer, custom headers, or none |
| Request data | Path params, query params, JSON body, form body |
| Cases | Positive, negative, auth failure, boundary checks |
| Expected results | Status, JSON path, marker text, list membership, error behavior |
| Output preference | Brief summary, key fields, raw response save path |
For cookie-based tests, tell the user to copy the full Cookie: request header from a successful browser Network request. Do not reconstruct cookies from the storage panel.
Generated comments and final usage notes should follow the user's language.
templates/basic.api-tests.http.txt
templates/basic.api-verify.sh
examples/resource-detail/
examples/auth-login-required/
examples/list-assertions/
examples/async-job-polling/
Note: publishable skill assets use .http.txt to satisfy upload restrictions, while generated runtime artifacts should still use .api-tests.http.
The generated .http file should:
@host, @cookie, @token, @resourceId### titles for each caseexpect.* commentsThe generated shell script should:
.http file{{variable}} placeholdersPASS/FAIL/SKIP output for each case@cookie = <set via COOKIE> and @token = <set via AUTH_TOKEN>.SKIP with a clear reason instead of crashing the parser.rg -n "password|secret|session_id|auth_token|access_token|refresh_token" <artifact-dir>
rg -n "Authorization: Bearer [A-Za-z0-9._-]+|C[o]okie: [A-Za-z0-9_%-]+=" <artifact-dir>
references/assertion-cheatsheet.mdreferences/complex-scenarios.mdreferences/debugging-cookbook.mdreferences/http_test_artifact_example.mdAfter generating artifacts, run:
bash -n './<feature>.api-verify.sh'
bash './<feature>.api-verify.sh'
COOKIE='full Cookie header' AUTH_TOKEN='token value' bash './<feature>.api-verify.sh'
Interpretation:
bash -n catches shell syntax errors.SKIP behavior.