api-routes

Define API routes with authentication and validation middleware.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/charlie83Gs/communities --skill api-routes-charlie83gs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-routes
Source: https://github.com/charlie83Gs/communities/tree/main/.claude/skills/api-routes
Command: npx skills add https://github.com/charlie83Gs/communities --skill api-routes-charlie83gs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires express.

What problem does it solve?

Defining and organizing API routes, applying middleware, and managing access control can become messy and hard to maintain as an application grows. This skill provides clear patterns for structured and secure routing.

Core Features & Use Cases

  • Structured Routing: Define clear, resource-oriented API endpoints with proper nesting and versioning, improving API discoverability and maintainability.
  • Authentication Middleware: Easily apply required or optional authentication to protect your routes, centralizing security concerns.
  • Validation Integration: Integrate request validation middleware to ensure incoming data meets expected formats, preventing invalid data from reaching business logic.
  • Use Case: Add new endpoints for managing a nested resource, such as /communities/:id/councils. You'll define the routes, apply authentication, and ensure proper validation middleware is in place, streamlining development and enhancing security.

Quick Start

Define a new POST route /api/v1/items for creating items, ensuring it requires authentication and uses the appropriate validation middleware.