rest-api-test-generator — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited rest-api-test-generator (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Ask the user:
POST /api/users)Provide an upfront estimate: 15-20 credits per test scenario.
Generate exactly 3 test scenarios:
Use RestAssured template:
@Test
void shouldCreateUser_whenValidRequest() {
given()
.contentType(ContentType.JSON)
.body(validUserRequest)
.when()
.post("/api/users")
.then()
.statusCode(201)
.body("id", notNullValue())
.body("email", equalTo("[email protected]"));
}STOP after 3 tests. Ask the user to run and confirm responses match.
Validation command:
python scripts/validate_api_tests.py <TestClassName> --base-url http://localhost:8080Do NOT generate more tests until the user confirms the current batch passes.
If tests fail:
hasKey, anyOf)This usually indicates an API contract mismatch or environment issue -- not something more iterations will fix.
After a passing batch, offer:
Endpoint: POST /api/users
Tests Generated: N
Status Codes Covered: 201, 400, 401, 409
Skipped: N (with reasons)Credit costs vary by Kiro account, model, and endpoint complexity. To get accurate numbers for your environment, follow these steps.
Run the built-in benchmark with a simple GET endpoint:
python track_credits.py benchmark api-simpleThis measures the cheapest possible API test on your account (e.g., 0.077 credits/test).
Real API tests get more expensive with nested JSON, auth, and more assertions:
| What makes API tests cost more | How it's scored |
|---|---|
| Deeper request/response JSON | +1 for each nesting level |
| More response assertions | +1 for every 3 assertions |
| Authentication setup | +1 for Bearer, +2 for OAuth flows |
| More status codes to test | +1 for every 3 codes |
python track_credits.py estimate \
--type api \
--nesting-levels 2 \
--branches 4 \
--annotations 3 \
--tests 3# Note credit balance before and after, then record:
python track_credits.py add "UsersAPI-POST-3tests" <before> <after> "3 RestAssured tests, auth"Your measurements improve future estimates automatically. See ../../../skills-workshop/credit-estimation/CREDIT-ESTIMATION-GUIDE.md for the full guide.
references/examples/UserApiTest.java - Complete RestAssured example../../../skills-workshop/credit-estimation/CREDIT-ESTIMATION-GUIDE.md - Credit measurement methodology~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.