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.
curl -O https://raw.githubusercontent.com/zwl467135974/lumina/master/.agents/skills/lumina_code_style/SKILL.mdgit clone --depth 1 https://github.com/zwl467135974/luminaWrote 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.
[](https://agentmods.dev/skills/zwl467135974/lumina/lumina_code_style)<a href="https://agentmods.dev/skills/zwl467135974/lumina/lumina_code_style"><img src="https://agentmods.dev/badge/skills/zwl467135974/lumina/lumina_code_style/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.
<a href="https://agentmods.dev/skills/zwl467135974/lumina/lumina_code_style"><img src="https://agentmods.dev/badge/skills/zwl467135974/lumina/lumina_code_style.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00046 | $0.01058 |
| Opus 5 | $0.00023 | $0.00529 |
| Sonnet 5 | $0.00009 | $0.00212 |
| Haiku 4.5 | $0.00005 | $0.00106 |
Grade A, and why
lumina_code_style 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Lumina 代码风格规范
功能概述
本技能包用于确保 Lumina 框架项目的代码风格一致性,包括命名规范、包结构、类组织、注释规范等。
核心规范
包命名规范
基础包名: io.lumina
模块包名: io.lumina.{domain}
示例: io.lumina.agent, io.lumina.system, io.lumina.user
类命名规范
| 类型 | 命名规则 | 示例 |
|---|---|---|
| Controller | {业务}Controller |
AgentController, UserController |
| Service | {业务}Service |
AgentService, TaskService |
| Service Impl | {业务}ServiceImpl |
AgentServiceImpl |
| Entity (Domain) | {实体名} |
Agent, Task, User |
| DO (Data Object) | {实体}DO |
AgentDO, TaskDO |
| DTO | {业务}{操作}DTO |
CreateAgentDTO, QueryAgentDTO |
| VO | {业务}VO |
AgentVO, TaskVO |
| Mapper | {实体}Mapper |
AgentMapper, TaskMapper |
| Converter | {实体}Converter |
AgentConverter |
| Exception | {业务}Exception |
AgentNotFoundException |
| Enum | {业务}{类型}Enum |
TaskStatusEnum, AgentTypeEnum |
方法命名规范
| 类型 | 命名规则 | 示例 |
|---|---|---|
| Controller 方法 | {操作}{资源} |
createAgent, getAgent, listAgents, updateAgent, deleteAgent |
| Service 方法 | {操作}{实体} |
createAgent, getAgentById, listAgents, executeTask |
| Mapper 方法 | select{条件}, insert, update, delete |
selectById, selectByName, insert, deleteById |
| Domain 方法 | {业务动作} |
executeTask, validate, activate |
变量命名规范
- 实体对象: 使用实体名,如
agent,task,user - 集合: 使用复数形式,如
agents,tasks,users - 布尔值: 使用
is/has前缀,如isActive,hasPermission - 常量: 全大写,下划线分隔,如
MAX_RETRY_COUNT,DEFAULT_TIMEOUT
注释规范
类注释
/**
* Agent 领域实体
*
* <p>Agent 是系统的核心领域对象,代表一个可执行的 AI 智能体。
* 它封装了 Agent 的业务逻辑和业务规则。
*
* @author Lumina Team
* @since 1.0.0
*/
public class Agent {
// ...
}
方法注释
/**
* 执行 Agent 任务
*
* <p>根据任务配置执行 Agent,支持同步和异步两种模式。
*
* @param taskId 任务ID
* @param command 执行命令
* @return 任务执行结果
* @throws AgentNotFoundException 当 Agent 不存在时
* @throws TaskExecutionException 当任务执行失败时
*/
public TaskResult executeTask(Long taskId, ExecuteTaskDTO dto) {
// ...
}
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.
- 11d ago First seen · 114 lines · 46 tokens per session scan A 9105f721a913
lumina_code_style is a skill published in the GitHub repository zwl467135974/lumina (65 stars, last pushed 20d ago), licensed Apache-2.0. It adds 46 tokens to every session and 1,058 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.
Other skills, from other repositories
solid-principles
SOLID principles checklist with Java examples. Use when a class has too many responsibilities, an abstraction leaks, or a dependency points the wrong way, and when the user asks about Single Responsibility, Open/Closed, Liskov, Interface Segregation or Dependency Inversion. For naming, duplication and method length…
concurrency-review
Review Java concurrency code for thread safety, race conditions, deadlocks, and modern patterns (Virtual Threads, CompletableFuture, @Async). Use when user asks "check thread safety", "concurrency review", "async code review", or when reviewing multi-threaded code.
java-code-review
Systematic code review for Java with null safety, exception handling, concurrency, and performance checks. Use when user says "review code", "check this PR", "code review", or before merging changes.
121-java-object-oriented-design
Use when reviewing, improving, or refactoring Java object-oriented design, including applying SOLID, DRY, or YAGNI; improving classes and interfaces; correcting encapsulation, inheritance, or polymorphism; resolving God Class, Feature Envy, or Data Clumps; and improving object creation, methods, or exception…
053-design-simple-rules
Use when Java design, refactoring, or implementation tradeoffs should be evaluated with Kent Beck's simple design rules, including passes the tests, reveals intention, has no duplication, and has the fewest elements. This should trigger for requests such as Apply simple design rules; Review this design with Beck's…
java-api-consistency-validator
Validate API consistency between two versions of Java libraries. Use when you need to compare API behavior, signatures, and exceptions between Java library versions to identify breaking changes, incompatible modifications, and behavior differences. The skill performs static analysis of Java code, compares method…