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.
git clone --depth 1 https://github.com/mywand/cusrsor-do-itWrote 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/rules/mywand/cusrsor-do-it/java)<a href="https://agentmods.dev/rules/mywand/cusrsor-do-it/java"><img src="https://agentmods.dev/badge/rules/mywand/cusrsor-do-it/java/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/rules/mywand/cusrsor-do-it/java"><img src="https://agentmods.dev/badge/rules/mywand/cusrsor-do-it/java.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.00000 | $0.10544 |
| Opus 5.5 | $0.00000 | $0.04218 |
| Sonnet 5.5 | $0.00000 | $0.02109 |
| Haiku 4.5 | $0.00000 | $0.01054 |
Grade A, and why
java 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 3mo 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 — 993 lines — stays where its author put it; the contents beside it link to each section on GitHub.
最近更新: 2025-10-17 最近审阅: 2025-10-17
Java 编码与工程规约(增强版)
核心目标:提升代码一致性、可维护性、可观测性与交付质量
技术基线:覆盖现代 Java (17/21 LTS) 特性,提供"可执行 / 可验证"规则
文件编码:所有源代码文件统一使用 UTF-8 编码,无 BOM
适用范围:本规约与
coding-standards.mdc/quality.mdc/security.mdc协同使用;冲突时以本文件中"专用 Java 细则"优先
目录
- 语言与版本策略
- 项目结构
- 依赖与制品管理
- 命名与基本编码
- 语言特性与风格
- 面向对象与设计
- 异常与错误码
- 日志与可观测性
- 并发与线程模型
- 性能与资源优化
- 测试策略
- 安全与合规
- 序列化与 JSON
- 构建与质量守护
- 配置与环境管理
- 数据访问与持久化
- API 设计与契约
- 版本控制与分支
- 代码质量度量
- 事务管理
- 工具类与通用组件
- 缓存策略
- 部署与运行
- 扩展与演进建议
(章节已重新编号,去除重复与缺失;测试/性能/安全/配置的重复内容已合并。)
使用指南
快速导航
- 核心规范 - 语言特性、版本策略、基础编码
- 项目结构 - 包结构、分层架构、目录组织
- 依赖管理 - 版本控制、依赖评估、安全扫描
- 编码规范 - 命名规约、注释规范、代码风格
- Lombok 使用 - Lombok 注解、最佳实践
- 设计原则 - SOLID、设计模式、架构原则
- 异常处理 - 异常设计、错误码、统一处理
- 日志监控 - 日志规范、指标监控、链路追踪
- 并发编程 - 线程池、并发控制、线程安全
- 性能优化 - 性能调优、资源管理、监控
- 测试策略 - 单元测试、集成测试、测试覆盖
- 安全合规 - 输入校验、SQL 注入、权限控制
- 序列化 - JSON 处理、序列化规范
- 构建质量 - 构建工具、静态分析、质量门禁
- 配置管理 - 环境配置、配置类、敏感信息
- 数据访问 - ORM 使用、数据库操作、事务管理
- API 设计 - REST 设计、响应格式、版本管理
- 版本控制 - Git 规范、分支策略、提交规范
- 代码质量 - 复杂度控制、代码审查、质量度量
- 事务管理 - 声明式事务、编程式事务
- 工具组件 - 工具类设计、通用组件
- 缓存策略 - 缓存使用、一致性、性能优化
- 部署运维 - 环境配置、健康检查、运行时保护
- 扩展演进 - 架构演进、新技术引入
按场景使用
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.
- 3mo ago First seen · 993 lines · 0 tokens per session scan A 902ebf2f8e85
java is a cursor rule published in the GitHub repository mywand/cusrsor-do-it (2 stars, last pushed 10mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 10,544 tokens. 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-31.
java compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| javamywand/cusrsor-do-it | Cursor rule | 2 | 10mo ago | Apache-2.0 | A | 0 | Cursor |
| gradlesanjeed5/awesome-cursor-rules-mdc | Cursor rule | 3.6k | 9d ago | CC0-1.0 | A | 1,896 | Cursor |
| mockitosanjeed5/awesome-cursor-rules-mdc | Cursor rule | 3.6k | 9d ago | CC0-1.0 | A | 1,653 | Cursor |
| java-import-fqnhenryxm/autumn | Cursor rule | 50 | yesterday | Apache-2.0 | A | 443 | Cursor |
| springboot-jpa-best-practicesholtwood/awesome-cursorrules-zh | Cursor rule | 244 | 1mo ago | MIT | A | 0 | Cursor |
| graftcode-javagrft-dev/graftcode | Cursor rule | 1.2k | 9d ago | none | A | 4,704 | Cursor |
| component-parameter-key-no-dotxc404/kiwi | Cursor rule | 7 | 22d ago | MIT | A | 803 | Cursor |