lumina: Skill for Claude Code

.agents/skills/lumina_architecture/SKILL.md

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

A set of rules for organizing Lumina code into separate API, service, domain, and infrastructure layers. Each layer has a distinct responsibility, such as handling requests, business logic, or database access.

In plain words
What is it for?
Designing new modules, placing controllers and data objects, organizing services and domain models, and deciding where optional repositories, events, or value objects fit.
Why use it?
It reduces confusion about where new code belongs and helps keep different concerns separate. This makes the module structure more predictable.

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_architecture/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_architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/zwl467135974/lumina/lumina_architecture/github.svg)](https://agentmods.dev/skills/zwl467135974/lumina/lumina_architecture)
Your own site
<a href="https://agentmods.dev/skills/zwl467135974/lumina/lumina_architecture"><img src="https://agentmods.dev/badge/skills/zwl467135974/lumina/lumina_architecture/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_architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/zwl467135974/lumina/lumina_architecture"><img src="https://agentmods.dev/badge/skills/zwl467135974/lumina/lumina_architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,199 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 pass 7 Sept 2026
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.00047 $0.01199
Opus 5 $0.00023 $0.00600
Sonnet 5 $0.00009 $0.00240
Haiku 4.5 $0.00005 $0.00120

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

Security

Grade A, and why

lumina_architecture 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 12d 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_architecture/SKILL.md · 115 lines

How it starts

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

Lumina 简化分层架构规范

功能概述

本技能包用于确保 Lumina 框架项目遵循简化分层架构,包括层次划分、职责定义、依赖关系等。

标准分层结构

lumina-modules/
└── lumina-{domain}/
    └── src/main/java/io/lumina/
        └── {domain}/
            ├── api/                    # 接口层 (API Layer)
            │   ├── controller/         # REST 控制器
            │   └── dto/                # 数据传输对象 (Request/Response)
            │
            ├── service/                 # 业务服务层 (Service Layer) - 核心
            │   ├── {业务}Service.java  # 业务服务接口
            │   └── impl/                # 业务服务实现
            │
            ├── domain/                 # 领域模型层 (Domain Layer)
            │   ├── model/               # 领域实体(包含业务方法)
            │   └── enums/               # 领域枚举
            │   │
            │   # 以下为可选(根据业务复杂度决定是否使用)
            │   ├── valueobject/        # 值对象(复杂场景使用)
            │   ├── event/              # 领域事件(如需要事件驱动)
            │   └── repository/         # 仓储接口(如需要抽象持久化)
            │
            └── infrastructure/          # 基础设施层 (Infrastructure Layer)
                ├── mapper/              # MyBatis Mapper
                ├── entity/              # 数据库实体 (DO - Data Object)
                └── converter/           # DO <-> Domain 转换器(可选)
                │
                # 以下为可选
                ├── external/            # 外部服务调用
                └── config/              # 配置类

层次职责说明

API 层 (接口层)

  • 职责: 处理 HTTP 请求/响应,参数校验,权限控制
  • 包含: Controller、DTO (Request/Response)
  • 规则:
    • Controller 只负责接收请求、调用 Service、返回响应
    • 不包含业务逻辑
    • 使用 DTO 进行数据传输

Service 层 (业务服务层) - 核心

  • 职责: 业务逻辑处理,事务管理,业务流程编排
  • 包含: Service 接口和实现
  • 规则:
    • 包含应用服务逻辑(编排、事务)
    • 包含领域服务逻辑(复杂业务规则)
    • 调用 Domain 模型的方法
    • 调用 Infrastructure 的 Mapper
    • 负责 DTO 与 Domain 对象的转换

Domain 层 (领域模型层)

  • 职责: 领域实体和业务规则
  • 包含: Entity、枚举
  • 可选: Value Object、Domain Event、Repository 接口(根据业务复杂度决定)
  • 规则:
    • Entity 包含业务方法和业务规则
    • 不依赖其他层(保持领域模型的纯净)
    • 简单场景: 直接使用基本类型(String、Long 等)
    • 复杂场景: 使用 Value Object 封装业务规则
    • Repository 接口可选,简单场景直接使用 Mapper

Read the full file on GitHub · 115 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. 12d ago First seen · 115 lines · 47 tokens per session scan A 0552191ea39b

Subscribe to this mod's changes

lumina_architecture is a skill published in the GitHub repository zwl467135974/lumina (66 stars, last pushed 22d ago), licensed Apache-2.0. It adds 47 tokens to every session and 1,199 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens