val1813/kwcode/mybatis
Claude Code and agent skill by val1813/kwcode
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install val1813/kwcode/mybatisSKILL.md
领域知识
- Mapper接口方法名与XML中id一一对应,namespace为接口全限定名
- 动态SQL标签:<if test=""> 条件拼接、<choose>/<when>/<otherwise> 多分支、<foreach> 集合遍历
- ResultMap:一对一用<association>,一对多用<collection>,嵌套查询用select属性
- 参数传递:单参数直接用#{param},多参数用@Param注解或封装DTO
- #{} 预编译防注入,${} 字符串替换仅用于动态表名/列名
- 分页:配合PageHelper插件,Mapper方法前调用PageHelper.startPage()
- 批量操作:insert用<foreach>拼接VALUES,update用<foreach>+CASE WHEN
- 缓存:一级缓存SqlSession级别默认开启,二级缓存需在XML加<cache/>
- 通用字段(create_time/update_time)用拦截器自动填充
- XML文件放在 resources/mapper/ 目录,与接口包路径对应
经验规则(自动生成)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingkaiwu/builtin_experts/mybatis/SKILL.md
Popularity
- Repository stars
- 655
- Repository forks
- 92
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/val1813/kwcode/mybatis)