Api endpoint

From berkcangumusisik/claude-code-practices · View interactive version

Api endpoint is an AI agent skill from the GitHub repository berkcangumusisik/claude-code-practices. Scaffolds a complete API endpoint with validation, error handling, and tests

How to use this skill

Skill file

Generate API Endpoint

Method + Path: $1 $2

Description: $3

  1. Detect framework:
cat package.json | grep -E '"express"|"fastify"|"hono"|"koa"|"nestjs"'
ls src/routes/ src/api/ src/handlers/ 2>/dev/null | head -10
  1. Read 1-2 existing route files to match patterns exactly.
  1. Generate the route handler with:
  1. Register the route in the router file.
  1. Generate tests:
  1. Update API docs if docs/api.md or OpenAPI spec exists.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.