modern-java-guidance

Installation
SKILL.md

Modern Java Guidance

Overview

Prevents AI coding agents from defaulting to Java 8 and Spring Boot 2.x legacy patterns (javax.*, WebSecurityConfigurerAdapter, RestTemplate, @Autowired field injection, Executors.newFixedThreadPool(), list.get(list.size() - 1)). Unlike general persona skills such as java-pro, this skill pairs lightweight instructions with version-gated CLI scanning (mjg detect, mjg check, mjg search, mjg retrieve) and respects older Java 8/11 and Spring Boot 2.x codebases without forcing upgrades.

When to Use

  • Writing, refactoring, or reviewing Java 17/21/25+ or Spring Boot 3.x+ application code.
  • Auditing an existing Java or Spring Boot codebase for deprecated Boot 2.x or Java 8 idioms.
  • Prefer java-pro for broader JVM/GraalVM tuning topics not covered by this skill's rules.

Prerequisites

  • Local workspace containing a Java or Spring Boot project (pom.xml, build.gradle, build.gradle.kts, or .java-version).
  • Optional: Python 3.11+ with the mjg CLI (https://github.com/wkd09/modern-java-guidance) for automated version detection and scanning. Everything runs 100% offline with zero external network calls or credentials.

How It Works

Installs
2
GitHub Stars
50.6K
First Seen
2 days ago