一键导入
safe-refactor
Refactor Java/Spring code safely without changing external behavior, REST contracts, RabbitMQ contracts or domain rules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Refactor Java/Spring code safely without changing external behavior, REST contracts, RabbitMQ contracts or domain rules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Prepare, review or implement an AWS ECS Fargate deployment for MS-SIMULATION using one Spring Boot Modulith Docker image, Amazon ECR, Amazon ECS Fargate, Amazon RDS PostgreSQL, CloudAMQP RabbitMQ, IAM/OIDC and GitHub Actions.
Review the simulation clock module, time advancement domain logic, persistence flow, time.advanced.v1 publication and related tests. Do not require current-day endpoints beyond GET /tick/current.
Apply Clean Code and SOLID principles when generating, reviewing, or refactoring Java production code. Use for descriptive names, small methods, single responsibility, low coupling, high cohesion, no duplication, and clear architecture boundaries.
Document a module, use case, REST endpoint, RabbitMQ event or architecture flow in MS-SIMULATION clearly and technically.
Generate or update Java tests for domain, application, infrastructure, REST controllers, RabbitMQ publishers/listeners and persistence adapters in MS-SIMULATION.
Make Java tests readable and maintainable with descriptive names, clear given/when/then structure, behavior-focused assertions and minimal mocking.
| name | safe-refactor |
| description | Refactor Java/Spring code safely without changing external behavior, REST contracts, RabbitMQ contracts or domain rules. |
Use this skill when refactoring existing code.
Refactor without changing behavior unless the user explicitly asks for a behavior change.
Before changing files:
simulationclock and mapstate separated.After editing:
./mvnw test or ./mvnw verify.Stop and ask for user decision if: