Skip to content
Back to skills

Api Errors Internal+Api Errors Public

ASecurity

Merged skill that replaces `api-errors-internal` and `api-errors-public`. Use for any JSON error response body.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add danielrispler/skill-truce --skill api-errors-internal+api-errors-public --agent claude-code

Installs into .claude/skills of the current project.

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.

Security grade badge for Api Errors Internal+Api Errors Public
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/danielrispler-api-errors-internal-api-errors-public/badge)](https://www.skillsdirectory.com/skills/danielrispler-api-errors-internal-api-errors-public)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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."
}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.