Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Api Errors Internal+Api Errors Public?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/danielrispler-api-errors-internal-api-errors-public)
---
name: api-errors-internal+api-errors-public
description: Merged skill that replaces `api-errors-internal` and `api-errors-public`. Use for any JSON error response body.
---
# Merged skill: api-errors-internal + api-errors-public
This skill replaces `api-errors-internal` and `api-errors-public`. It keeps every rule of both skills that can hold at the same time. Follow every rule below.
## Rules kept unchanged from `api-errors-internal`
- Name the machine-readable code field `error_code` (snake_case). Never use camelCase keys.
- Include a human-readable sentence in the field `message`.
- Include a boolean field `retryable`.
- Include the HTTP status as an integer in the field `status`.
- Include a field `docs` with an `https://` link to the error documentation.
## Rules kept unchanged from `api-errors-public`
- Include a field `timestamp` with a UTC time in the form `2026-03-02T10:15:00Z`.
- Include a field `severity` with the value `low`, `medium` or `high`.
- Include a field `details` that holds a non-empty list of specifics.
## Reconciled rules (each one satisfies a rule of both skills at once)
- Add a developer hint that starts with `Hint:` and says how to fix the request, and put it inside the JSON object as the string value of a field `hint`, for example `"hint": "Hint: wait 60 seconds before retrying"`. The reply must be exactly one JSON object and nothing else, so that it parses as JSON, so never write the hint or any other text before or after the object.
## Example
Request: Write the JSON error response body for a request that exceeded the rate limit of 100 requests per minute on POST /v1/payments.
Output:
```
{
"error_code": "rate_limit_exceeded",
"message": "Rate limit of 100 requests per minute exceeded on POST /v1/payments.",
"retryable": true,
"status": 429,
"docs": "https://docs.example.com/errors/rate_limit_exceeded",
"timestamp": "2026-03-02T10:15:00Z",
"severity": "medium",
"details": ["limit=100/min", "endpoint=POST /v1/payments"],
"hint": "Hint: wait 60 seconds before retrying, or request a higher limit."
}
```