🗄️
AI EngineeringPython

Mybatis Expert

by val1813

Mybatis Expert is an AI Engineering skill for Claude Code, published by val1813 in kwcode.

688 stars92 forkson val1813/kwcodeAdded 2026/08/12Repository updated 2026/05/14
Install in seconds
Install Mybatis Expert
Copy Mybatis Expert into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/val1813/kwcode/tree/master/kaiwu/builtin_experts/mybatis ~/.claude/skills/mybatis

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/val1813/kwcode.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
kaiwu/builtin_experts/mybatis/SKILL.md in val1813/kwcode
Installs to
~/.claude/skills/mybatis
Collection
One of 19 skills cataloged from this repository
Category
AI Engineering2451 skills

What Mybatis Expert does

Mybatis Expert explains MyBatis mapper interfaces, XML mapping, dynamic SQL, result maps, pagination, batch operations, and caching. Use it when writing or reviewing MyBatis data access code.

Mybatis Expert is cataloged under AI Engineering on DirSkills.

Documentation

README

领域知识

  • Mapper接口方法名与XML中id一一对应,namespace为接口全限定名
  • 动态SQL标签: 条件拼接、// 多分支、 集合遍历
  • ResultMap:一对一用,一对多用,嵌套查询用select属性
  • 参数传递:单参数直接用#{param},多参数用@Param注解或封装DTO
  • #{} 预编译防注入,${} 字符串替换仅用于动态表名/列名
  • 分页:配合PageHelper插件,Mapper方法前调用PageHelper.startPage()
  • 批量操作:insert用拼接VALUES,update用+CASE WHEN
  • 缓存:一级缓存SqlSession级别默认开启,二级缓存需在XML加
  • 通用字段(create_time/update_time)用拦截器自动填充
  • XML文件放在 resources/mapper/ 目录,与接口包路径对应

经验规则(自动生成)

Frequently asked about Mybatis Expert

  • What else does val1813 publish alongside Mybatis Expert?

    Mybatis Expert is one of 19 skills that DirSkills catalogs from val1813/kwcode, the repository it ships in. Its siblings there include API Expert, Bug Fix Expert and DeepSeek API Expert. Each one is a separate skill with its own page in this directory, installs the same way Mybatis Expert does, and is maintained by val1813 in that same repository. The rest of the collection is listed on the val1813/kwcode page.

  • How does Mybatis Expert compare to other AI Engineering skills?

    Mybatis Expert ranks #1742 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Mybatis Expert against them. Open each page to compare what they document and how they install.

More from val1813/kwcode

Mybatis Expert is one of 19 skills cataloged on DirSkills from val1813/kwcode.

See all 19 skills