Skip to content
Back to skills

Api Design

ASecurity

Design REST APIs: resources, naming, status codes, pagination, filtering, error format, idempotency keys and versioning.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsapibackend

Works with

  • cursor
  • api

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add karthikrshet/saarthi --skill api-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Design?

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

Security grade badge for Api Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karthikrshet-api-design/badge)](https://www.skillsdirectory.com/skills/karthikrshet-api-design)

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-design
description: "Design REST APIs: resources, naming, status codes, pagination, filtering, error format, idempotency keys and versioning."
tags: [api, backend, architecture]
---

# Api Design

## When to use

- New endpoints or public APIs

## Procedure

1. Model resources as nouns
2. Use standard status codes
3. Define a single error shape (RFC 9457 problem+json)
4. Cursor pagination for large lists
5. Idempotency-Key header for unsafe retries
6. Document with OpenAPI

## Example

```json
{ "type": "https://api.example.com/errors/insufficient-funds", "title": "Insufficient funds",
  "status": 422, "detail": "Balance 1200 is less than 5000", "instance": "/payouts/po_123" }
```

## Checklist

- [ ] Consistent naming
- [ ] Breaking changes versioned
- [ ] Auth scopes documented

## Anti-patterns

- Verbs in URLs
- 200 with error bodies
- Offset pagination on huge tables

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.