Response validation

From vladkesler/initrunner · View interactive version

Response validation is an AI agent skill from the GitHub repository vladkesler/initrunner. Validate API response structure and content. Detects schema drift, unexpected null values, and abnormal response sizes.

How to use this skill

Skill file

API response validation skill.

When to activate

unexpected (wrong content type, empty body, unusual size)

Check command

curl -s --max-time 10 <URL>

Capture the full response body for analysis.

Checks

1. Content-Type

Verify the response Content-Type matches what is expected. JSON APIs

should return application/json. Use -i flag to see headers:

curl -s -i --max-time 10 <URL> | head -20

2. Valid JSON

If the endpoint is expected to return JSON, verify the body parses

as valid JSON. Look for HTML error pages returned instead of JSON

(common failure mode).

3. Expected fields

Compare the response structure against the last known structure

stored in semantic memory (category: "response_schema"). Look for:

4. Null values

Check for null values in fields that were previously non-null. This

can indicate upstream data pipeline failures.

5. Response size

Compare the response body size against the baseline from memory

(category: "response_size"). Significant deviations (>50% smaller

or >200% larger) may indicate issues.

MUST

"response_schema") for future comparison

"response_size")

MUST NOT

length data (search results, paginated lists) without checking

if the variance is normal

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.