lumina: Skill for Claude Code

.agents/skills/lumina_api_design/SKILL.md

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

A set of rules for designing REST APIs in Lumina. REST APIs let programs work with resources over HTTP, using methods such as GET, POST, PUT, PATCH, and DELETE.

In plain words
What is it for?
Designing controllers and DTOs, defining resource endpoints, implementing create/read/update/delete operations, handling special actions, validating parameters, and formatting success, error, and paginated responses.
Why use it?
It reduces inconsistency in URLs, request handling, validation, response shapes, errors, and pagination. Clients can then rely on a predictable API structure.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/zwl467135974/lumina/lumina_api_design"><img src="https://agentmods.dev/badge/skills/zwl467135974/lumina/lumina_api_design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,658 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: 1 finding, 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 Tool Misuse · line 24
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
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.00043 $0.01658
Opus 5.5 $0.00017 $0.00663
Sonnet 5.5 $0.00009 $0.00332
Haiku 4.5 $0.00004 $0.00166

Measured 2mo ago against content hash 3dcffeba8ebb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lumina_api_design 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 2mo 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_api_design/SKILL.md · 264 lines

How it starts

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

Lumina API 接口设计规范

功能概述

本技能包用于确保 Lumina 框架项目的 REST API 设计符合规范,包括 URL 设计、HTTP 方法使用、统一响应格式、参数校验等。

RESTful API 设计规范

URL 设计

基础路径: /api/v1/{domain}

资源操作:
GET    /api/v1/agents              # 列表查询
GET    /api/v1/agents/{id}          # 详情查询
POST   /api/v1/agents              # 创建
PUT    /api/v1/agents/{id}          # 更新
DELETE /api/v1/agents/{id}          # 删除

特殊操作:
POST   /api/v1/agents/{id}/execute  # 执行 Agent
POST   /api/v1/agents/{id}/pause     # 暂停 Agent

HTTP 方法使用

方法 用途 幂等性
GET 查询资源 ✅ 幂等
POST 创建资源或执行操作 ❌ 非幂等
PUT 完整更新资源 ✅ 幂等
PATCH 部分更新资源 ⚠️ 建议幂等
DELETE 删除资源 ✅ 幂等

统一响应格式

成功响应
{
  "code": 200,
  "msg": "操作成功",
  "data": { ... },
  "timestamp": 1704067200000
}
失败响应
{
  "code": 400,
  "msg": "参数错误",
  "data": null,
  "timestamp": 1704067200000,
  "errors": [
    {
      "field": "agentName",
      "message": "Agent名称不能为空"
    }
  ]
}
分页响应
{
  "code": 200,
  "msg": "查询成功",
  "data": {
    "list": [ ... ],
    "total": 100,
    "pageNum": 1,
    "pageSize": 10,
    "pages": 10
  },
  "timestamp": 1704067200000
}

状态码规范

状态码 含义 使用场景
200 成功 所有成功操作
400 参数错误 请求参数校验失败
401 未授权 未登录或 Token 过期
403 无权限 无操作权限
404 资源不存在 查询的资源不存在
409 资源冲突 资源已存在或状态冲突
500 服务器错误 系统内部错误

DTO 设计规范

Request DTO

// 创建请求
@Data
@EqualsAndHashCode(callSuper = false)
public class CreateAgentDTO {
    
    @NotBlank(message = "Agent名称不能为空")
    @Size(max = 100, message = "Agent名称长度不能超过100")
    private String agentName;
    
    @NotNull(message = "Agent类型不能为空")
    private AgentTypeEnum agentType;
    
    @Size(max = 500, message = "描述长度不能超过500")
    private String description;
}

// 查询请求
@Data
@EqualsAndHashCode(callSuper = false)
public class QueryAgentDTO {
    
    private String agentName;
    
    private AgentTypeEnum agentType;
    
    @Min(value = 1, message = "页码必须大于0")
    private Integer pageNum = 1;
    
    @Min(value = 1, message = "每页数量必须大于0")
    @Max(value = 100, message = "每页数量不能超过100")
    private Integer pageSize = 10;
}

Read the full file on GitHub · 264 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. 2mo ago First seen · 264 lines · 43 tokens per session scan A 3dcffeba8ebb

Subscribe to this mod's changes

lumina_api_design is a skill published in the GitHub repository zwl467135974/lumina (91 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 43 tokens to every session and 1,658 once invoked, about $0.0002 per session on Opus 5.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

lumina_api_design compared with skills from other repositories

lumina_api_design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lumina_api_designzwl467135974/luminaSkill911mo agoApache-2.0A43Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.2kyesterdayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.2kyesterdayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.0kyesterdayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill5032d agoMITA105Claude Code, Codex
migrate-segw-to-raparc-mcp/arc-1Skill252yesterdayMITA106Claude Code