Skip to content
Back to skills

Api Endpoints

ASecurity

Comprehensive guidance for building and changing HTTP API endpoints in the Mossback platform. Covers routes, handlers, controllers, request validation, response shapes, serializers, status codes, error responses, pagination, filtering, sorting, versioning, authentication middleware, rate limiting, idempotency keys, webhooks, and the OpenAPI document. Also covers how endpoints are registered, how request and response schemas are shared with the web client, and how a breaking change is introduc...

  • 198 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 12, 2026
ai-agentsgodebuggingapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add mblode/agent-skills --skill api-endpoints --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Endpoints?

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

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

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-endpoints
description: Comprehensive guidance for building and changing HTTP API endpoints in the Mossback platform. Covers routes, handlers, controllers, request validation, response shapes, serializers, status codes, error responses, pagination, filtering, sorting, versioning, authentication middleware, rate limiting, idempotency keys, webhooks, and the OpenAPI document. Also covers how endpoints are registered, how request and response schemas are shared with the web client, and how a breaking change is introduced under a new version. Helps with adding a new endpoint, changing an existing response, debugging a 4xx or 5xx, and keeping the OpenAPI document in step with the code. Use when the user mentions an endpoint, a route, the API, a handler, a request, a response, a status code, a webhook, REST, JSON, or OpenAPI, or asks how the client talks to the server. Always follows the Mossback platform conventions, house style, and established best practices.
---

# API Endpoints

## Rules

- Routes live in `src/api/routes/<resource>.ts` and are registered in `src/api/index.ts`.
- Schemas come from `packages/contracts`. Do not define one inline.
- Errors go through `problem()` in `src/api/problem.ts`.
- Run `pnpm openapi:write` after any route change and commit `openapi.json`.

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.