mybatis-plus-generator

Generate MyBatis-Plus code artifacts from database tables for Java or Kotlin.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/cooker/wx-apartment-ledger --skill mybatis-plus-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mybatis-plus-generator
Source: https://github.com/cooker/wx-apartment-ledger/tree/main/.agents/skills/mybatis-plus-generator
Command: npx skills add https://github.com/cooker/wx-apartment-ledger --skill mybatis-plus-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the generation of MyBatis-Plus boilerplate code from database schemas, reducing manual setup time and ensuring consistent architecture-aligned skeletons across projects.

Core Features & Use Cases

  • Generates Entity, Mapper, Service, ServiceImpl, Controller, DTO, VO, and BO scaffolds from database tables for MVC, DDD, and layered architectures in Java or Kotlin.
  • Offers customizable method templates (CRUD and common queries) and architecture-aware directory structure.
  • Supports optional Swagger/OpenAPI annotations and Lombok, with configurable package layouts for different architectures.

Quick Start

Invoke the generator with your database schema and architecture, and run the generator to produce fully-structured MyBatis-Plus code scaffolds (entities, mappers, services, controllers, DTOs, VOs, and BOs) aligned to your chosen architecture.

Frequently Asked Questions about mybatis-plus-generator

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

FAQPage Schema
How do I generate MyBatis-Plus code scaffolds from database tables?

To generate MyBatis-Plus code scaffolds from database tables, provide your database schema and target architecture. The generator produces Entity, Mapper, Service, and Controller artifacts aligned to your chosen directory structure.

Can I generate MyBatis-Plus code for DDD and layered architectures in Kotlin?

Yes, you can generate MyBatis-Plus code for DDD, MVC, and layered architectures in both Java and Kotlin. The generation includes architecture-aware directory mappings and customizable method templates for your specific structure.

Does the generated MyBatis-Plus code support Swagger annotations and Lombok?

Yes, the generated MyBatis-Plus code supports optional Swagger/OpenAPI annotations and Lombok integration. It creates context-aware comments and configurable package layouts to ensure code quality and maintainability.

What is the best way to automate MyBatis-Plus boilerplate creation for multiple architectures?

Automating MyBatis-Plus boilerplate creation is best handled by generating artifacts like DTOs, VOs, and BOs directly from database schemas. This ensures consistent architecture-aligned skeletons across projects while reducing manual setup time.

How do I customize CRUD method templates when generating MyBatis-Plus entities?

You can customize CRUD method templates by specifying your required method sets during generation. The generator aligns these customizable templates with your database schema to produce tailored Service and Controller code scaffolds.