Development v1.0.0

java-change-with-tests

java-change-with-tests When to use - Any Java change that must be merged safely (feature/refactor/bugfix). Inputs to...

Java changing with tests 更新于 2026-11-23 1 浏览
下载 SKILL

技能说明

java-change-with-tests When to use - Any Java change that must be merged safely (feature/refactor/bugfix). Inputs to request (if missing) - Acceptance criteria (1-3 bullets). - Module name (if multi-module repo). - Build tool and test conventions. - Whether integration tests are required for the cha

使用场景

java-change-with-tests When to use - Any Java change that must be merged safely (feature/refactor/bugfix). Inputs to request (if missing) - Acceptance criteria (1-3 bullets). - Module name (if multi-module repo). - Build tool and test conventions. - Whether integration tests are required for the cha

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/java-change-with-tests
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 14 kB
SKILL.md text/markdown
# java-change-with-tests

## When to use
- Any Java change that must be merged safely (feature/refactor/bugfix).

## Inputs to request (if missing)
- Acceptance criteria (1-3 bullets).
- Module name (if multi-module repo).
- Build tool and test conventions.
- Whether integration tests are required for the change.

## Steps
1. Repo map (brief): identify the module, entrypoint, and test location.
2. Plan: smallest diff that meets acceptance criteria.
3. Implement: minimal edits.
4. Tests:
   - prefer fast unit tests first
   - add integration tests only when required to validate behavior
5. Verify:
   - run targeted tests
   - run `mvn -q test` (or module-scoped equivalent)
6. Output PR-ready summary with evidence.

## Verification commands (project-specific)
- Use the repo's build tool and record the exact commands and results.
- Prefer targeted unit tests before full test suites.

## Output contract
1) Plan (3-6 steps)
2) Files changed + intent
3) Commands run + results
4) Risks + follow-ups

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。