null-safety
/null-safety
Dodaje adnotacje nullability w Spring Boot 3 i Spring Framework 6, przy integracji Kotlina i statycznych kontrolach.
- Autor
- rrezartprebreza ↗
- Repozytorium
- spring-boot-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 22.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 4
- Skrypty
- 2
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 22.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: examples/bad-null-contract.java, examples/good-package-info.java
Co robi i kiedy
Dodaje adnotacje nullability w Spring Boot 3 i Spring Framework 6, przy integracji Kotlina i statycznych kontrolach.
Oryginalny opis (EN)
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.
Jak działa
- Gotchas
Podgląd SKILL.md
--- name: null-safety description: > 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. --- # 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. ```java @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 `@NonNullApi` without 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.
Pliki w paczce (4)
- SKILL.md 2 KB
- agents/openai.yaml 1 KB
- examples/bad-null-contract.java 1 KB
- examples/good-package-info.java 1 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · rrezartprebreza/spring-boot-skills | 100 | MIT |
| rrezartprebreza/spring-boot-skills | 100 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki 05d4ddb916ed (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100code-reviewer
Przegląda kod Spring Boot (pull request, diff, moduł): wolne endpointy i zapytania (N+1, JPA, Hibernate), bezpieczeństwo, null-safety JSpecify, granice architektury, migrację do Boot 4 i skuteczność testów. - 100spring-boot-expert
Wspiera pracę z Spring Boot, Spring Framework, API REST i mikroserwisami w Javie. - 90jspecify-skill
Dodaje do projektu Java adnotacje jspecify i konfiguruje Maven lub Gradle do sprawdzania nullability, by unikać NullPointerException. - 100spring-boot-kotlin
Pilnuje wzorców Spring Boot w Kotlinie, w tym korutyn, WebFlux, JPA i zabezpieczeń. - 100spring-boot-migration
Przygotowuje aplikację Spring Boot 3 do wersji Boot 4, usuwając przestarzałe API i audytując zależności. - 100spring-boot-migration
Prowadzi aktualizację aplikacji ze Spring Boot 3.5 do Boot 4 i diagnozuje problemy po migracji.