crud-dto

Official

Ensure consistent, validated CRUD DTOs for PowerX.

AuthorArtisanCloud
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill codifies PowerX CRUD DTO conventions to prevent database model leakage into the transport layer, enforce consistent request/response shapes, and mandate pagination and validation rules for HTTP endpoints.

Core Features & Use Cases

  • Separation of concerns: DTOs are decoupled from models and must not include ORM or gorm tags.
  • Validation and binding: Handlers are required to use centralized binding/validation helpers and DTO fields must include json and validation tags.
  • Unified pagination and responses: Standard PaginationRequest and PaginationResponse types and ResponseList envelopes for list endpoints.
  • Use Case: When implementing a new CRUD HTTP handler, apply these templates to create Create/Update/Get/List DTOs, add validation tags, and ensure the handler uses the prescribed validate-and-bind helpers.

Quick Start

Create or validate DTO files under internal/transport/http following the provided templates and binding rules so handlers can call ValidateRequestWithContext or ValidateAndBindWithContext.

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: crud-dto
Download link: https://github.com/ArtisanCloud/PowerX/archive/main.zip#crud-dto

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.