create-handler

Scaffold backend API handlers with routing, validation, and error handling.

28|3|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/girijashankarj/cursor-handbook --skill create-handler-girijashankarj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-handler
Source: https://github.com/girijashankarj/cursor-handbook/tree/main/.cursor/skills/backend/create-handler
Command: npx skills add https://github.com/girijashankarj/cursor-handbook --skill create-handler-girijashankarj

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates the creation of backend API handlers, eliminating repetitive boilerplate and ensuring consistent patterns across projects.

Core Features & Use Cases

  • Scaffolds a complete handler directory structure under src/apis/handlers/v1 for a chosen entity/operation.
  • Generates request/response schemas, logic stubs, and a handler entry point wired for routing, logging, and error handling.
  • Includes a step-by-step guide to add tests, validate schemas, and register routes to maintain quality and consistency.

Quick Start

Ask me to scaffold a new API handler by providing the entity and operation, and I will generate the complete directory structure and files.

Frequently Asked Questions about create-handler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new backend API handler with TypeScript quickly?

To scaffold a backend API handler, provide the entity and operation to generate a complete directory structure under src/apis/handlers/v1, This creates logic stubs, schemas, and tests with routing.

What is the standard directory layout for TypeScript API routes in microservices?

The standard directory layout for API routes follows src/apis/handlers/v1/{entity}/{operation}, ensuring a consistent pattern across microservices by organizing files hierarchically.

Can I automatically generate validation schemas when creating new API endpoints?

Yes, when creating new API endpoints, the scaffolding process automatically generates request and response validation schemas alongside the logic stubs to ensure data integrity.

Does this scaffolding approach include error handling and routing configuration?

Yes, this scaffolding approach wires a fully functional handler that includes built-in routing, logging, and error handling configuration to eliminate repetitive boilerplate.

What is the best way to maintain consistent API handler patterns across multiple microservices?

The best way to maintain consistent API handler patterns is automating the creation of backend handlers, which scaffolds all required files, tests, and directory structures uniformly.

Do I need to manually register routes after generating a new API handler?

After generating a new API handler, you follow a step-by-step guide to register routes and validate schemas, ensuring the newly scaffolded endpoint is fully integrated.