Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add lambert0529/skills --skill java-response-wrappergit clone --depth 1 https://github.com/lambert0529/skillsWrote 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/lambert0529/skills/java-response-wrapper)<a href="https://agentmods.dev/skills/lambert0529/skills/java-response-wrapper"><img src="https://agentmods.dev/badge/skills/lambert0529/skills/java-response-wrapper/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/lambert0529/skills/java-response-wrapper"><img src="https://agentmods.dev/badge/skills/lambert0529/skills/java-response-wrapper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00083 | $0.00664 |
| Opus 5.5 | $0.00033 | $0.00266 |
| Sonnet 5.5 | $0.00017 | $0.00133 |
| Haiku 4.5 | $0.00008 | $0.00066 |
Grade A, and why
java-response-wrapper 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 1mo 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.
What it actually says
Java 统一响应格式规范
快速开始
实现统一响应格式的基本步骤:
- 创建统一响应包装类(使用
assets/ResultTemplate.java) - 创建分页响应类(使用
assets/PageResultTemplate.java) - 在 Controller 中使用统一响应格式
- 配置全局异常处理器返回统一格式
统一响应包装类
规范要求
- 所有 API 响应使用统一的格式
- 包含:状态码、消息、数据、时间戳
- 提供静态工厂方法
- 支持泛型
代码模板见 assets/ResultTemplate.java
分页响应格式
规范要求
- 包含数据列表、总数、页码、每页数量、总页数
- 提供便捷的构建方法
- 支持从 Spring Data 的 Page 对象转换
代码模板见 assets/PageResultTemplate.java
Controller 层使用
规范要求
- 所有 Controller 方法返回
ResponseEntity<Result<T>> - 使用
Result.success()或Result.failure()构建响应 - HTTP 状态码与业务状态码分离
示例
@GetMapping("/{id}")
public ResponseEntity<Result<UserDTO>> getUser(@PathVariable Long id) {
UserDTO user = userService.getById(id);
return ResponseEntity.ok(Result.success(user));
}
@PostMapping
public ResponseEntity<Result<UserDTO>> createUser(
@Valid @RequestBody CreateUserRequest request) {
UserDTO user = userService.create(request);
return ResponseEntity.status(HttpStatus.CREATED)
.body(Result.success("用户创建成功", user));
}
响应格式示例
详细示例见 references/response-formats.md
详细参考
- 响应格式示例:见 references/response-formats.md
- 分页响应:见 references/page-result.md
- 代码模板:见
assets/ResultTemplate.java和assets/PageResultTemplate.java
注意事项
- HTTP 状态码:HTTP 状态码表示请求处理状态,业务状态码表示业务结果
- 时间戳格式:使用毫秒时间戳,前端可根据需要转换
- 空值处理:成功时 data 可以为 null,失败时建议为 null
- 分页参数:页码从 1 开始,而非 0
- 向后兼容:响应格式变更时考虑向后兼容性
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago First seen · 81 lines · 83 tokens per session scan A acfbeb2a9bbc
java-response-wrapper is a skill published in the GitHub repository lambert0529/skills (11 stars, last pushed 9mo ago), licensed Apache-2.0. It adds 83 tokens to every session and 664 once invoked, about $0.0003 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.
Other skills, from other repositories
wxjava-api-contributor
A contributor guide for adding or maintaining official WeChat API support in WxJava, a Java software development kit. It covers services, request and response data objects, data conversion, HTTP handling, starter configuration, and regression tests.
azure-communication-callautomation-java
Build call automation workflows with Azure Communication Services Call Automation Java SDK. Use when implementing IVR systems, call routing, call recording, DTMF recognition, text-to-speech, or AI-powered call flows.
azure-communication-chat-java
Build real-time chat applications with Azure Communication Services Chat Java SDK. Use when implementing chat threads, messaging, participants, read receipts, typing notifications, or real-time chat features.
azure-communication-common-java
Azure Communication Services common utilities for Java. Use when working with CommunicationTokenCredential, user identifiers, token refresh, or shared authentication across ACS services.
azure-communication-sms-java
Send SMS messages with Azure Communication Services SMS Java SDK. Use when implementing SMS notifications, alerts, OTP delivery, bulk messaging, or delivery reports.
java-coding-standards
Java coding standards for Spring Boot services: naming, immutability, Optional usage, streams, exceptions, generics, and project layout.