What problem does it solve?
This Skill solves the repetitive work of manually writing boilerplate Go code for the project’s four-layer architecture (Service Interface → ServiceImpl → DAO Interface → DAOImpl), ensuring consistency in structure, responsibilities, and documentation.
Core Features & Use Cases
- ServiceImpl auto-generation: Creates the Service implementation that delegates method calls to the corresponding DAO, following the required file path and struct/callback conventions.
- DAO interface auto-generation: Generates DAO interfaces with method responsibilities aligned to the Service needs.
- DAOImpl CRUD scaffolding: Produces DAO implementations using gorm and the project’s context utilities (e.g., user/department info), including table naming behavior and baseline CRUD methods.
- Use Case: When you define a new dataset-related
Service interface (e.g., under aidatasetservice) and need consistent persistence and service-layer code immediately, this Skill generates the full scaffolding so you can focus on business rules rather than plumbing.
Quick Start
Ask the AI to generate the missing ServiceImpl and DAO/DAOImpl code for your new I<Name> Service interface, producing files in the specified aidatasetserviceimpl and aidatasetdao locations with complete Go-style comments.