java-null-safety
OfficialEnforce null-safety with JSpecify annotations.
Authorcuioss
Version1.0.0
Installs0
System Documentation
What problem does it solve?
The Java Null Safety Skill helps teams prevent null-related bugs by applying JSpecify annotations and package-level configuration to enforce a default non-null contract throughout codebases.
Core Features & Use Cases
- Enforce non-null by default using @NullMarked at the package level.
- Explicitly mark nullable types with @Nullable and non-null types with @NonNull.
- Ensure safe return semantics and guide migration from legacy code to Optional where appropriate.
- Use package-info.java conventions to maintain consistent null-safety across modules.
- Use in real-world scenarios like data validation, API boundaries, and defensive API design.
Quick Start
Annotate your package with @NullMarked and begin using @Nullable and @NonNull to enforce non-null by default.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: java-null-safety Download link: https://github.com/cuioss/plan-marshall/archive/main.zip#java-null-safety Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.