controller-expert

Community

Build REST APIs with CQRS, validation, and zero-tolerance rules.

Authorryu-qqq
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill streamlines the creation of REST API controllers by enforcing a "Thin Controller" pattern, CQRS separation, and strict validation rules. It prevents common API design flaws, security vulnerabilities, and ensures consistent, high-quality API development.

Core Features & Use Cases

  • CQRS Controller Separation: Automatically generates distinct Command (POST, PATCH) and Query (GET) controllers, ensuring a clear separation of concerns for state changes and data retrieval.
  • Robust Validation & Response Wrapping: Enforces @Valid for all request DTOs and mandates ResponseEntity<ApiResponse<T>> wrapping for consistent, predictable API responses.
  • Zero-Tolerance Rules: Prohibits common anti-patterns like Lombok, direct DELETE methods (recommends PATCH for soft delete), and MockMvc for testing (enforces TestRestTemplate).
  • Use Case: When implementing a new REST endpoint, activate this skill to generate the controller, DTOs, and mappers. This ensures your API adheres to all architectural and quality standards, saving you from manual boilerplate and review cycles.

Quick Start

Generate a REST API controller for a 'Product' feature, including command and query endpoints, DTOs, and mappers.

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: controller-expert
Download link: https://github.com/ryu-qqq/AuthHub/archive/main.zip#controller-expert

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 223,000+ vetted skills library on demand.