# Review API Inputs and Responses

API contracts do not always show which controls the application enforces. Compare authorized contracts and source to identify validation gaps, response risks, and missing runtime evidence.

## Install

```bash
npx skillstore add flint-research/api-input-review
```

## Metadata

- Status: approved
- Slug: flint-research-api-input-review
- Skillstore revision: r1
- Version status: missing
- Tree hash: e3bfb2c897aa0d3e74c7b59f61cc0754d0c73d4ff0e4b50058cb14a7a2d5c6a1
- Author: flint-research
- GitHub username: flint-research
- Repository: https://github.com/flint-research/skills/tree/b739665d19cd1d924d41c680722e1372867a1bff/auditing/api-security/skills/api-input-review
- Ref: d715043e3196bdd213a9eb9e5f78632e50554733
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: network, filesystem
- Quality score: 73
- Public page: https://skillstore.pages.dev/skills/flint-research-api-input-review
- Manifest: https://skillstore.pages.dev/api/skills/flint-research-api-input-review/manifest

## Capabilities

- Compare documented request shapes and value bounds with handler-side validation.
- Review response declarations against field allowlists and error behavior.
- Review rate limits and resource controls, including GraphQL query and resolver limits.
- Check outbound destination policies where the reviewed API makes outbound requests.
- Link observations to available evidence and identify controls that require runtime verification.

## Use Cases

- Check Validation Before a Code Review: Compare an endpoint contract with its handler to see which input rules are enforced.
- Review Response Fields and Errors: Check whether response fields and error details match what the API is intended to expose.
- Assess Resource Controls Before Release: Review evidence for rate limits, GraphQL query limits, and resolver controls before a release.

## Prompt Templates

### Check One Request Field

```
Review the documented limit for the selected request field and compare it with the supplied handler. Cite the evidence and state what remains unknown.
```

### Review Responses and Errors

```
Compare declared response fields with the fields allowed by the implementation. Note any extra fields or error details and recommend protective controls.
```

### Review GraphQL Resource Limits

```
Review query limits and resolver-specific controls in the supplied files. Separate declared limits from enforcement shown in code and identify missing evidence.
```

### Assess Outbound Destination Controls

```
Review how the supplied handlers validate input used to select outbound destinations. Compare the controls with the stated policy and document unresolved enforcement questions.
```

## Limitations

- A declaration alone cannot establish that a runtime control works.
- The reviewed package does not include the referenced offline helper or review guide.
- The review depends on the completeness of the supplied contracts, source, and control metadata.
- Data retention and minimization inventories belong to a separate privacy review.

## Best Practices

- Provide only authorized, scoped contracts and source, including shared validators when available.
- Include control configuration when asking about rate limits, GraphQL limits, or outbound destinations.
- Separate contract declarations, implementation evidence, and unresolved runtime questions.

## Anti Patterns

- Do not assume a documented maximum is enforced at runtime.
- Do not share production credentials or unredacted customer payloads.
- Do not run helper scripts or load references from outside the reviewed package without verifying them.

## Security Audit

- Audited at: 2026-11-29T12:04:20.545\+00:00
- Summary: The website URL is an attribution link, with no instruction to contact it. Two links direct the agent outside the reviewed package to run an unverified script or consult an unverified reference. No evidence of prompt injection or data transfer was found in the reviewed file.

## Stats

- Views: 0
- Downloads: 0
- Favorites: 0
- Popularity score: 0
