From mind-java-core
MIND CTI Java coding standards and best practices for JDK 17. Covers naming, structure, error handling, collections, streams, concurrency, logging principles, testing, and documentation. This skill is language-level only — framework-specific patterns (Spring Boot, Quarkus, Jakarta EE) are in their respective skills. Use this skill whenever working on any Java file.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mind-java-core:java-coreThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> MIND CTI company-wide standard — language-level and library-level practices.
MIND CTI company-wide standard — language-level and library-level practices. Framework-specific patterns are in their own skills:
spring-boot,quarkus,jakarta-ee.
This skill applies to every .java file across all MIND CTI projects, regardless of framework. It covers Java language features, naming, structure, error handling, collections, concurrency, logging principles, and testing fundamentals. For DI, web, data access, and framework config, see the appropriate framework skill.
Target: Java 17 (LTS). JDK 17 features (records, sealed classes, text blocks, pattern matching for instanceof) are encouraged for new code. V10.00 legacy modules on Java 11 should follow these rules except where explicitly noted as JDK 17+.
final fields, records, and unmodifiable collections unless mutation is required.@RequiredArgsConstructor in Spring Boot, @Inject in Quarkus/Jakarta EE).final fields, List.of(), List.copyOf(), Collections.unmodifiable*() unless mutation is needed.var when type is obvious — var list = new ArrayList<String>() is fine. var x = service.call() is not.RuntimeException, carry error codes.Objects.requireNonNull() in constructors.@Nullable/@NonNull at API boundaries for null-safety documentation.Optional — return from methods that may have no result. Never use as a field or method parameter.assertThat(x).isEqualTo(y), not JUnit assertEquals.@ExtendWith(MockitoExtension.class) — Not MockitoAnnotations.initMocks().methodName_scenario_expectedBehavior — e.g., getAccount_withInvalidId_throwsNotFoundException.com.mind.* package prefix for all MIND CTI code.*Adapter classes. Do not introduce MapStruct.com.mind.* (e.g., com.mind.csr.api, com.mind.auth, com.mind.pos)MindBill-BOM (V10.00), MindBill-GitBOM (git/ projects) manage dependency versions centrally.*Adapter classes for DTO↔Entity mapping. This is the approved approach — do not introduce MapStruct.npx claudepluginhub indra031/marketplace --plugin java-coreProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.