create-controller

Community

Create robust HTTP controllers quickly.

Authormadooei
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Controllers are the thin layer between HTTP requests and business logic, enabling clean routing and service orchestration without embedding logic in routes.

Core Features & Use Cases

  • Generates a fully structured controller class skeleton with CRUD handlers wired to services.
  • Promotes dependency injection, typed AppEnv usage, and consistent error handling patterns.
  • Use Case: Create a NoteController that handles GET, POST, PATCH, DELETE with NotFoundError on missing entities.

Quick Start

Create src/controllers/{entity}.controller.ts and wire it to src/services/{entity}.service.ts using the existing schemas and patterns.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: create-controller
Download link: https://github.com/madooei/backend-template/archive/main.zip#create-controller

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.