Mybatis Plus Generator

🌐Community
by teachingai · vlatest · Repository

Generates SQL code and Java entities from database tables using MyBatis Plus, streamlining development and reducing boilerplate.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add mybatis-plus-generator npx -- -y @trustedskills/mybatis-plus-generator
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "mybatis-plus-generator": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/mybatis-plus-generator"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill automates the generation of code for database access layers using MyBatis-Plus. It allows users to quickly scaffold CRUD operations and other common database interactions based on defined entity classes, significantly reducing boilerplate code and development time. The generated code is tailored to follow MyBatis-Plus conventions and best practices.

When to use it

  • Rapid Prototyping: Quickly generate initial database access layers for a new project or feature.
  • Code Generation Automation: Automate the repetitive task of creating CRUD operations from existing database schemas or entity definitions.
  • Standardized Codebase: Ensure consistency in your database access code by using a standardized generation process.
  • Reducing Boilerplate: Minimize manual coding effort and reduce the risk of errors associated with writing repetitive database interaction logic.

Key capabilities

  • Code Generation based on Entity Classes
  • CRUD (Create, Read, Update, Delete) Operation Generation
  • MyBatis-Plus Convention Adherence
  • Database Schema Integration

Example prompts

  • "Generate MyBatis-Plus code for the User entity."
  • "Create a DAO interface and mapper XML file for the Product model."
  • "Scaffold database access layer for all entities in my project."

Tips & gotchas

  • Ensure that your entity classes are properly defined with appropriate annotations.
  • The skill relies on MyBatis-Plus being configured correctly within your project environment.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
teachingai
Installs
0

🌐 Community

Passed automated security scans.