lumina: Skill for Claude Code

.agents/skills/lumina_mybatis_plus/SKILL.md

lumina_mybatis_plus is a skill for Claude Code, Codex from zwl467135974/lumina. It costs 46 tokens per session (1,683 once invoked), scanned A, original, Apache-2.0.

A set of rules for using MyBatis-Plus, a Java library that simplifies communication between an application and its database. It covers database operations, mapper interfaces, complex queries, pagination, and batch changes.

In plain words
What is it for?
Use it when creating database access code, mapper interfaces, or SQL queries in a Lumina Java project. It helps implement create, read, update, delete, filtered, paginated, and batch operations.
Why use it?
It keeps database code consistent and avoids putting business rules inside SQL. Simple operations use the library's built-in methods, while custom SQL is reserved for cases they cannot handle.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is zwl467135974/lumina's own configuration. It tells Claude Code and Codex how to work on lumina itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything lumina configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zwl467135974/lumina. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/zwl467135974/lumina/master/.agents/skills/lumina_mybatis_plus/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/zwl467135974/lumina

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lumina_mybatis_plus

README.md
[![agentmods](https://agentmods.dev/badge/skills/zwl467135974/lumina/lumina_mybatis_plus/github.svg)](https://agentmods.dev/skills/zwl467135974/lumina/lumina_mybatis_plus)
Your own site
<a href="https://agentmods.dev/skills/zwl467135974/lumina/lumina_mybatis_plus"><img src="https://agentmods.dev/badge/skills/zwl467135974/lumina/lumina_mybatis_plus/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lumina_mybatis_plus

Your own site · 80×15
<a href="https://agentmods.dev/skills/zwl467135974/lumina/lumina_mybatis_plus"><img src="https://agentmods.dev/badge/skills/zwl467135974/lumina/lumina_mybatis_plus.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,683 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 123
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
  • high Prompt Injection · line 123
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.01683
Opus 5 $0.00023 $0.00842
Sonnet 5 $0.00009 $0.00337
Haiku 4.5 $0.00005 $0.00168

Measured 13d ago against content hash 6e5bc809d60e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

lumina_mybatis_plus scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/lumina_mybatis_plus/SKILL.md · 221 lines

How it starts

The opening of the file, as written. The whole thing — 221 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Lumina MyBatis-Plus 使用规范

功能概述

本技能包用于确保 Lumina 框架项目正确使用 MyBatis-Plus,包括基础 CRUD、复杂查询、分页、批量操作等。

核心原则

  1. 优先使用 MyBatis-Plus - 所有简单 CRUD 操作必须使用 MyBatis-Plus
  2. 复杂 SQL 才用 XML - 仅当 MyBatis-Plus 无法满足时,才使用 XML Mapper
  3. 禁止 SQL 函数和存储过程 - 不允许在 SQL 中编写函数、存储过程、触发器
  4. 业务逻辑在 Java 代码中 - 所有业务逻辑必须在 Java 代码中实现,不允许写在 SQL 中

MyBatis-Plus 基础使用

Mapper 接口

/**
 * Agent Mapper - 继承 BaseMapper,获得基础 CRUD 能力
 */
@Mapper
public interface AgentMapper extends BaseMapper<AgentDO> {
    
    // 基础 CRUD 方法已由 BaseMapper 提供,无需重复定义:
    // - insert(AgentDO entity)
    // - deleteById(Serializable id)
    // - updateById(AgentDO entity)
    // - selectById(Serializable id)
    // - selectList(Wrapper<AgentDO> queryWrapper)
    // - selectPage(IPage<AgentDO> page, Wrapper<AgentDO> queryWrapper)
    // - selectCount(Wrapper<AgentDO> queryWrapper)
    
    // 复杂查询才需要自定义方法(见 5.2.2)
}

常用操作示例

条件查询
// 根据名称查询
AgentDO agentDO = agentMapper.selectOne(
    new LambdaQueryWrapper<AgentDO>()
        .eq(AgentDO::getAgentName, agentName)
        .eq(AgentDO::getDeleted, 0)
);

// 条件查询列表
LambdaQueryWrapper<AgentDO> wrapper = new LambdaQueryWrapper<AgentDO>()
    .eq(AgentDO::getDeleted, 0);
if (StringUtils.isNotBlank(dto.getAgentName())) {
    wrapper.like(AgentDO::getAgentName, dto.getAgentName());
}
List<AgentDO> list = agentMapper.selectList(wrapper);
分页查询
// 创建分页对象
Page<AgentDO> page = new Page<>(dto.getPageNum(), dto.getPageSize());

// 构建查询条件
LambdaQueryWrapper<AgentDO> wrapper = new LambdaQueryWrapper<AgentDO>()
    .eq(AgentDO::getDeleted, 0)
    .orderByDesc(AgentDO::getCreateTime);

// 执行分页查询
Page<AgentDO> result = agentMapper.selectPage(page, wrapper);
条件更新
// 更新状态
agentMapper.update(null,
    new LambdaUpdateWrapper<AgentDO>()
        .set(AgentDO::getStatus, status.getValue())
        .set(AgentDO::getUpdateTime, LocalDateTime.now())
        .eq(AgentDO::getAgentId, agentId)
        .eq(AgentDO::getDeleted, 0)
);

Read the full file on GitHub · 221 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 221 lines · 46 tokens per session scan A 6e5bc809d60e

Subscribe to this mod's changes

lumina_mybatis_plus is a skill published in the GitHub repository zwl467135974/lumina (66 stars, last pushed 22d ago), licensed Apache-2.0. It adds 46 tokens to every session and 1,683 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

jpa-patterns

JPA/Hibernate patterns for entity design, relationships, query optimization, transactions, auditing, indexing, pagination, and pooling in Spring Boot.

affaan-m/ECC · 33 tokens

azure-data-tables-java

Build table storage applications with Azure Tables SDK for Java. Use when working with Azure Table Storage or Cosmos DB Table API for NoSQL key-value data, schemaless storage, or structured data at scale.

microsoft/skills · 47 tokens

azure-cosmos-java

Azure Cosmos DB SDK for Java. NoSQL database operations with global distribution, multi-model support, and reactive patterns. Triggers: "CosmosClient java", "CosmosAsyncClient", "cosmos database java", "cosmosdb java", "document database java".

microsoft/skills · 59 tokens

jpa-patterns

JPA/Hibernate patterns and common pitfalls (N+1, lazy loading, transactions, queries). Use when user has JPA performance issues, LazyInitializationException, or asks about entity relationships and fetching strategies.

decebals/claude-code-java · 47 tokens

413-frameworks-quarkus-db-migrations-flyway

Use when you need to add or review Flyway database migrations in a Quarkus application — quarkus-flyway extension, db/migration scripts, quarkus.flyway. configuration, migrate-at-start, and alignment with JDBC or Panache. This should trigger for requests such as Add or review Flyway migrations in a Quarkus project…

jabrena/plinth · 136 tokens

311-frameworks-spring-jdbc

Use when you need to write or review programmatic JDBC with Spring — including JdbcClient (Spring Framework 7+) as the default API, JdbcTemplate only where batch/streaming APIs require JdbcOperations, NamedParameterJdbcTemplate for legacy named-param code, parameterized SQL, RowMapper mapping to records, batch…

jabrena/plinth · 173 tokens