Database Expert
Installation
SKILL.md
Database Expert Skill (MySQL + MyBatis)
This skill focuses on Data Integrity, Query Performance, and MyBatis Configuration quality.
💾 Core Principles
- Schema First: Changes to Java Entities (
AgCart) must match Database Schema (ag_cart) EXACTLY. - MyBatis Consistency:
resultMapis preferred overresultTypeto handlesnake_casetocamelCasemapping safely.- Always explicitely list columns in
<select>; avoidSELECT *.
- Performance:
- Use
PageHelper.startPage()BEFORE the query execution for pagination. - Ensure Foreign Keys (e.g.,
product_id) are indexed in MySQL.
- Use
🛠️ Common Workflows
1. Adding New Fields
Context: You added receiver_address to the table.
Checklist:
- DB: Run
ALTER TABLEscript.
Related skills
More from chrysaliscat/designgraduation
ui/ux pro max
Expert UI/UX design intelligence for creating professional, modern, and accessible interfaces in RuoYi-Vue.
8frontend expert
Expert guidance for Vue.js 2.x and Element UI development in the RuoYi-Vue framework.
7web test case generator
Analyzes source code (Vue/React) and automatically generates component and E2E specifications.
7mini program expert
Expert guidance for transforming RuoYi-Vue into a WeChat Mini Program backend and developing the corresponding frontend (Native or UniApp).
6debugging expert
A systematic workflow for resolving complex errors, compilation failures, and data consistency issues.
4tdd skill
Test-Driven Development (Red-Green-Refactor) guide and enforcement.
4