Install Null Safety
Pick your agent. Every command is ready to paste.
npx skills add rrezartprebreza/spring-boot-skills --skill null-safetyThe open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads null-safety when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the null-safety skill”. In Codex, type $null-safety.
Null Safety (Boot 3 / Framework 6)
Use the nullability model supported by the project. Spring Framework 6 commonly uses
org.springframework.lang.Nullable, @NonNull, and package-level @NonNullApi. JSpecify can be
introduced deliberately, but do not assume Framework 7 migration semantics in a Boot 3 module.
@NonNullApi
package com.example.orders;
import org.springframework.lang.NonNullApi;
Annotate genuine nullable results and parameters with @Nullable. Keep repository return types
explicit, validate external input at boundaries, and use Kotlin compiler settings that match the
annotations when Java and Kotlin are mixed. If the project standardizes JSpecify independently,
apply it consistently at module boundaries and document the chosen checker.
Gotchas
- Agent assumes Framework 7 JSpecify defaults - Boot 3 projects usually use Spring's legacy annotations.
- Agent uses
@NonNullApiwithout importing the package annotation - package metadata must compile and be checked in. - Agent marks every value
@NonNull- establish a package default and annotate only nullable exceptions. - Agent treats annotations as runtime validation - use Bean Validation or explicit checks for input validation.
- Agent changes a repository's nullable contract without updating callers - preserve
Optional, nullable, and empty collection semantics. - Agent mixes JSpecify and Spring annotations without a migration plan - choose one module boundary policy.
Tips for Null Safety
- • Start a fresh session after installing so your agent picks up the new skill.
- • It bundles reference files. The agent reads them only when needed, so they cost no context until then.
- • It is part of a pack with 30 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Null Safety
What does the Null Safety skill do?
Use when annotating nullability in Spring Boot 3 / Spring Framework 6 code, integrating Kotlin, or adding static nullability checks without assuming Spring Framework 7 JSpecify defaults.
How do I install Null Safety?
Run "npx skills add rrezartprebreza/spring-boot-skills --skill null-safety" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Null Safety work in Cursor and Codex?
Yes. Null Safety uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
Is Null Safety free?
Null Safety is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.
Who made Null Safety?
Null Safety is published by rrezartprebreza in the rrezartprebreza/spring-boot-skills repository, together with 29 other skills.


