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_api_design/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_api_design)<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.
<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>- NVIDIA SkillSpector warn
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.
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.00043 | $0.01658 |
| Opus 5.5 | $0.00017 | $0.00663 |
| Sonnet 5.5 | $0.00009 | $0.00332 |
| Haiku 4.5 | $0.00004 | $0.00166 |
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.
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;
}
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.
- 2mo ago First seen · 264 lines · 43 tokens per session scan A 3dcffeba8ebb
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.
lumina_api_design compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lumina_api_designzwl467135974/lumina | Skill | 91 | 1mo ago | Apache-2.0 | A | 43 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 68k | 2d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.0k | yesterday | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 503 | 2d ago | MIT | A | 105 | Claude Code, Codex |
| migrate-segw-to-raparc-mcp/arc-1 | Skill | 252 | yesterday | MIT | A | 106 | Claude Code |