141-java-refactoring-with-modern-features SKILL.md skillA
141-java-refactoring-with-modern-features from jabrena/plinth is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add jabrena/plinth/141-java-refactoring-with-modern-features@v0.19.0Pins v0.19.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- jabrena/plinth
- Path
skills/141-java-refactoring-with-modern-features/SKILL.md- Versions recorded
- 6
- Latest version
- v0.19.0, committed Sep 26, 2026
- First version recorded
- Apr 26, 2026
- Size
- 3,719 bytes
- Repository stars
- 461
- License
- Apache-2.0
Use when you need to refactor Java code to adopt modern Java features (Java 8+) — including migrating anonymous classes to lambdas, replacing Iterator loops with Stream API, adopting Optional for null safety, switching from legacy Date/Calendar to java.time, using collection factory methods, applying text blocks, var inference, or leveraging Java 25 features like flexible constructor bodies and module import declarations. This should trigger for requests such as Review Java code for modern…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Modern Java Development Guidelines (Java 8+) Identify and apply modern Java (Java 8+) refactoring opportunities to improve readability, maintainability, and performance. **What is covered in this Skill?** - Lambda expressions and method references (over anonymous classes) - Stream API for declarative collection processing - `Optional` for null-safe APIs - `java.time` API (replacing `Date`/`Calendar`) - Default interface methods, `var` type inference - Unmodifiable collection factory methods (`List.of()`, `Set.of()`, `Map.of()`) - Text blocks for multi-line strings - Java 25 Flexible Constructor Bodies (JEP 513) - Java 25 Module Import Declarations (JEP 511) **Scope:** The reference is organized by examples (good/bad code patterns) for each core area. Apply recommendations based on applicable examples. ## Constraints Before applying any modern Java refactoring, ensure the project compiles. If compilation fails, stop immediately — do not proceed until the project compiles successfully. After applying improvements, run full verification. - **MANDATORY**: Run `./mvnw compile` or `mvn compile` before applying any changes …
Read the whole file at its exact version.
How to install
mdr add jabrena/plinth/141-java-refactoring-with-modern-features@sha256:0bbaf7ee031e1770The line at the top of this page pins the label v0.19.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_xscjljhb62j4mc6n)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 6 versions of this file, between Apr 26, 2026 and Sep 26, 2026, about one every 31 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v0.19.0 latest | 2026-09-26 | 9569c35 | 3,719 B | A | view · diff |
| v0.18.0 | 2026-08-01 | 26b0e71 | 3,719 B | A | view · diff |
| v0.17.0 | 2026-07-10 | aaee915 | 3,719 B | A | view · diff |
| v0.16.0 | 2026-06-15 | b73c9d3 | 3,403 B | A | view · diff |
| v0.15.0 | 2026-05-29 | a800339 | 3,403 B | A | view · diff |
| v0.15.0-SNAPSHOT | 2026-04-26 | 819f349 | 3,412 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3719 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
jabrena/plinth · 461 stars · license Apache-2.0 · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_xscjljhb62j4mc6n GET https://markdownregistry.com/api/v1/resolve?ref=jabrena/plinth/141-java-refactoring-with-modern-features GET https://markdownregistry.com/api/v1/blob/0bbaf7ee031e1770572e9d547eb4650e5164f7a283d22c1ad563e05c0f10c116
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.