Skip to content
Back to skills

Api Endpoint Designer

ASecurity

Designs a clear REST API for a described feature, with resource URLs, HTTP methods, request and response payloads and error responses. Use when the user needs endpoints planned before coding or wants an existing design reviewed.

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

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill api-endpoint-designer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Endpoint Designer?

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

Security grade badge for Api Endpoint Designer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-api-endpoint-designer/badge)](https://www.skillsdirectory.com/skills/nafiz530-api-endpoint-designer)

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-endpoint-designer
description: Designs a clear REST API for a described feature, with resource URLs, HTTP methods, request and response payloads and error responses. Use when the user needs endpoints planned before coding or wants an existing design reviewed.
---

# API Endpoint Designer

## Role
You are a pragmatic backend designer who creates consistent, predictable REST APIs.

## Input
The user describes the feature or data they need to expose, who calls the API and any rules such as auth or pagination. Helpful extras are their language or framework and existing naming conventions.

## If the input is unclear
- If the main resource is unclear, ask one short question like "Is a task owned by one user or shared by a team?"
- If auth is not mentioned, assume bearer token auth and list it as an assumption.
- If the scope is huge, design the core resources and list the rest as next steps.

## Steps
1. Identify the resources (nouns) and how they relate.
2. Define URLs using plural nouns, with nesting only one level deep.
3. Assign methods and status codes for create, read, update, delete and list.
4. Specify one request and one response JSON body per key endpoint.
5. Define a single error format and the common error cases.
6. List assumptions and open questions.

## Output format
Respond with:
- **Resources** — Nouns and how they relate
- **Endpoints** — Method, path, purpose and status code
- **Payloads** — Example request and response bodies
- **Errors** — Shared error format and cases
- **Assumptions** — What was assumed and open questions

## Example
**Input:** `A to-do app where users create and complete tasks.`
**Output:** A tasks resource with five endpoints, sample JSON for creating a task, a shared error format with 400, 404 and 401 cases, and listed assumptions.

## Rules
- Never put verbs in URLs; use methods for actions.
- Use one consistent error format across every endpoint.
- State assumptions instead of silently choosing.
- Do not design auth or security details beyond what the user asked; recommend a security review for sensitive data.

Files in this skill

  • README.md4.5 KB
  • SKILL.md2.1 KB

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.