AGENTS.md for a Spring Boot service
A starting AGENTS.md for a Spring Boot service: build and test commands, layering and transaction rules, and the safety rules agents should follow.
このリソースは英語のみで提供されています。
種類: AGENTS.md
KitLocal があなたのコンピューターにファイルを書き込むことはありません。結果をコピーするか、ご自身でダウンロードしてください。
変数を入力
入力した内容はこのブラウザ内にのみ残り、URL への追加、保存、外部への送信は行われません。
プレビュー
未入力: Service name, Base package
# {{serviceName}}: agent guide
Spring Boot service on Java 21, built with Maven. Base package: `{{basePackage}}`.
## Commands
- Build and verify: `./mvnw -q verify`
- Tests: `./mvnw -q test`
Run the tests for the code you changed before declaring a task complete.
## Layering
- Controllers handle HTTP only: validate input (Bean Validation), call a service, map to a DTO.
- Business logic lives in services; transactions are declared on service methods, not controllers.
- Never return JPA entities from controllers; use DTOs.
- Repositories contain queries only. Watch for N+1 queries and unbounded result sets.
## Safety
- Do not log secrets, tokens or personal data.
- Schema changes go through migrations; never edit applied migrations.
- Do not add dependencies, change the Java version or alter security configuration without asking.
- Do not commit, push or deploy.
## Project-specific rules
このカタログについて
同梱スナップショット · 2026/11/15 6:05 に公開 · カタログのリビジョン 5bc079fe355af2214bc0
アプリに同梱されたスナップショットを表示しています(コンテンツソースが設定されていません)。ソース側にはより新しいコンテンツがある可能性があります。