Skip to content
Back to skills

Api Errors Public

ASecurity

Write API error response bodies for the public developer API. Use for any API error response.

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

Works with

  • api

Security analysis

A100/100

Scanned December 1, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Api Errors Public?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Errors Public
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/danielrispler-api-errors-public/badge)](https://www.skillsdirectory.com/skills/danielrispler-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-public
description: Write API error response bodies for the public developer API. Use for any API error response.
---

# api-errors-public

External developers read error bodies while debugging, so the body explains itself.

## Rules

- 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.
- Add a developer hint that starts with `Hint:` and says how to fix the request.
- Name the machine-readable code field `errorCode` (camelCase). Never use snake_case keys.
- Explain the error for humans in the `message` field.

## 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:

```
{
  "errorCode": "RATE_LIMIT_EXCEEDED",
  "message": "Rate limit of 100 requests per minute exceeded.",
  "details": ["limit=100/min", "endpoint=POST /v1/payments"],
  "timestamp": "2026-03-02T10:15:00Z",
  "severity": "medium"
}

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.