crud

Generate multi-layered CRUD code modules with SQL, DAO, service, and controllers.

27|12|Updated May 26, 2020
One-click install
npx skills add https://github.com/wujun728/jun_product_center --skill crud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: crud
Source: https://github.com/wujun728/jun_product_center/tree/main/.claude/skills/crud
Command: npx skills add https://github.com/wujun728/jun_product_center --skill crud

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of complete, boilerplate code for new business modules, significantly reducing development time and ensuring consistency.

Core Features & Use Cases

  • Full-Stack Code Generation: Generates SQL, Entity, DAO, XML, Repository, Service, Controller, Mapper, and POJO (DTO/VO/QO) based on requirements.
  • Automated Setup: Handles project environment detection (package name, author) for seamless integration.
  • Use Case: When you need to quickly add a new "product management" feature, this Skill can generate all the necessary backend code, allowing you to focus on custom business logic.

Quick Start

Use the crud skill to generate a new 'customer' management module with fields for name, email, and phone number.

Frequently Asked Questions about crud

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

FAQPage Schema
How do I generate full-stack Spring Boot CRUD boilerplate code for a new module?

To generate full-stack CRUD boilerplate, define your new business feature requirements and the skill automatically outputs SQL, Entity, DAO, XML, Service, and Controller layers. It detects your project package name and author info to ensure generated code adheres to Alibaba Java standards.

Can I automatically generate MyBatis mapper XML and POJO classes from a database schema?

Yes, you can generate MyBatis mapper XML files and POJO classes like DTO, VO, and QO from your database schema. The skill creates these data access objects and mappers alongside the service logic to provide a complete multi-layered backend module.

Does this code generation tool follow the Alibaba Java Development Manual standards?

Yes, the generated code adheres to the Alibaba Java Development Manual standards. The skill enforces these standards automatically while detecting your project environment to ensure consistency across all generated entities, repositories, and controllers.

What's the best way to quickly scaffold a backend management feature without writing boilerplate?

The best way to scaffold a backend management feature is to provide the field definitions like name, email, and phone number. The skill then instantly generates the complete API controller, service logic, and data access objects, letting you focus purely on custom business rules.

How does automated project package name detection work for Spring Boot code generation?

Automated project package name detection scans your existing Spring Boot project environment to identify the base package and author information. This ensures the generated SQL, DAO, and service layers integrate seamlessly into your current architecture without manual configuration.

When do I need to generate a complete multi-layered code module for new business features?

You need to generate a complete multi-layered code module when adding new business features like customer or product management. This approach automates the creation of database schemas, data access objects, and API controllers, significantly reducing repetitive development time.