Skip to main content

java

Use when: write or review modern, idiomatic Java with immutability, clear types, and clean structure.

ソース情報

リポジトリ
kimtth/agent-skill-100-lines-or-less
ソースの最終更新活動
2026年6月26日 02:15
検出された SKILL.md の言語
英語
スター
2
フォーク
0

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
java
description
Use when: write or review modern, idiomatic Java with immutability, clear types, and clean structure.
Goal: modern Java that is immutable by default, null-safe, and testable. Use for: - new classes, services, or APIs in Java - reviewing structure, immutability, and error handling - modernizing verbose or legacy patterns Workflow: 1. Model immutable data with records and final fields. 2. Use Optional for absence; avoid returning null. 3. Prefer the Streams API for transformations over manual loops. 4. Throw specific exceptions; never swallow them silently. 5. Manage resources with try-with-resources. 6. Verify with JUnit, a static analyzer, and the formatter. Idioms: - records for immutable value types - Optional return types instead of null - switch expressions and pattern matching - var for obvious local types - dependency injection over static singletons Rules: - do not return or pass null; use Optional or explicit checks - close resources with try-with-resources, not manual finally - keep classes focused; favor composition over inheritance - program to interfaces for testability
GitHubで見る