Atlas / Skills / val1813 / Java

JavaSAFE

skills/val1813/java

一个能持续增强本地开源模型的cli,专门为本地部署模型优化的coding窗口。目前仍然处于mvp未能大规模测试和端到端跑通,欢迎指正🙏🏻🙏🏻🙏🏻

Verdict
SAFE
Grade
B
Trust score
89 /100
Version
1.0.0
Hosts
—
License
—
Stars
685
01

Overview

一个能持续增强本地开源模型的cli,专门为本地部署模型优化的coding窗口。目前仍然处于mvp未能大规模测试和端到端跑通,欢迎指正🙏🏻🙏🏻🙏🏻

Read from source at commit 55367f81de56OBSERVED · 2026-10-13
Advertisement
02

What it tells the agent

The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.

---
name: JavaExpert
version: 1.0.0
trigger_keywords: [java, spring, springboot, maven, gradle, jvm, servlet, hibernate, jpa]
trigger_min_confidence: 0.90
pipeline: [locator, generator, verifier]
lifecycle: mature
---

## 领域知识

你是Java专家。

### 代码风格
- 遵循 Google Java Style Guide
- 类名 PascalCase,方法/变量 camelCase,常量 UPPER_SNAKE_CASE
- 包名全小写,反向域名(com.example.project)
- 每个公共类一个文件,文件名与类名一致

### 异常处理
- 检查异常(checked):可恢复的业务错误
- 非检查异常(unchecked/RuntimeException):编程错误
- 不要捕获 Exception/Throwable 除非在最顶层
- 使用 try-with-resources 管理资源
- 自定义异常继承合适的基类

### Spring Boot 规范
- `@RestController` + `@RequestMapping` 定义 API
- `@Service` 业务逻辑,`@Repository` 数据访问
- 构造器注入优于字段注入(`@Autowired` 在构造器上)
- `application.yml` 配置,`@ConfigurationProperties` 绑定
- 使用 `@Transactional` 管理事务边界

### 设计模式
- 工厂模式:隐藏创建逻辑
- 策略模式:运行时切换算法
- 观察者模式:事件驱动解耦
- 单例:Spring Bean 默认就是单例

### 测试
- JUnit 5 + Mockito
- `@SpringBootTest` 集成测试
- `@MockBean` 替换 Spring Bean
- Maven: `mvn test`,Gradle: `gradle test`
- 测试文件:`src/test/java/` 镜像 `src/main/java/`

### 项目结构
- Maven: `src/main/java/`, `src/test/java/`, `pom.xml`
- Gradle: 同上,`build.gradle`
- 分层:controller → service → repository → entity
- DTO 与 Entity 分离,使用 MapStruct 转换

## 经验规则(自动生成)
03

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeNA
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (1)

LOWInventory / provenance · inv.no_license · CWE-1104
Why it matters. no LICENSE file and no repo licence
Fix. add a licence

Gates applied: no_behavioural_pass, no_license.

Audited 2026-10-13 · audit v0.4.1 · source sha 55367f81de56full audit observations/trust-audit/skill/val1813__java.json · Report an issue / request a re-scan
04

Audit history

Every audit this skill has had.

DateSourceVerdictGradeScoreChange
2026-10-1355367f81de56SAFEB89first audit
05

Questions

What does the Java skill do?

一个能持续增强本地开源模型的cli,专门为本地部署模型优化的coding窗口。目前仍然处于mvp未能大规模测试和端到端跑通,欢迎指正🙏🏻🙏🏻🙏🏻

Is Java safe to install?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.

What can Java access on my machine?

The audit observed no filesystem, network or shell use at all in its source.

How current is this page?

The grade is for one exact copy of the source (55367f81de56), read on 2026-10-13. The repository is watched, and a new audit runs when it changes — this is the first audit.

Advertisement