Agent skill · software engineering · aiskillstore

add-endpoint

Add new HTTP endpoints to Catalyst-Relay server. Use when creating routes, API endpoints, or HTTP handlers.

Why this skill is useful

Provides a structured pattern for adding HTTP endpoints with specific requirements and validation that the AI wouldn't reliably generate on its own.

What it needs

About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Adding HTTP Endpoints When to Use Creating a new HTTP route Adding an API endpoint Wiring a new handler to the Hono app Route File Pattern Each endpoint gets its own file with colocated schema, types, and handler. Location: src/server/routes/{category}/{endpoint}.ts Wiring Routes Register routes in src/server/routes/index.ts: Response Format All endpoints use a consistent envelope: Use as const for literal types in discriminated unions. Library Mode Mapping If the endpoint wraps core functionality, add a method to ADTClient: HTTP Endpoint Library Method -------------- ---------------- POST /login client.login() GET /packages client.getPackages() POST /objects/read client.read(objects) Documentation Requirements Create endpoint docs in docs/endpoints/{category}.md. Required structure: 1. Title and description 2. ## Sections TOC with anchor links 3. Per-endpoint: Description paragraph Request table (Method, Path, Auth Required) Request Body table (Field, Type, Required, Description) Response table (Field, Type, Description) Example request/response JSON Error codes table Use cases list Library Usage section See docs/endpoints/auth.md for a complete example. Checklist

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/add-endpoint

View the source on GitHub

Browse the @skills marketplace