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에서 보기