<< All versions
Skill v1.0.0
currentAutomated scan100/100jxoesneon/ciel/java-springboot-development
──Details
PublishedSeptember 27, 2026 at 09:35 PM
Content Hashsha256:f756a2daaa687cb8...
Git SHA
──Files
Files (1 file, 2.0 KB)
SKILL.md2.0 KBactive
SKILL.md · 47 lines · 2.0 KB
version: "1.0.0" name: java-springboot-development description: CIEL's framework for Java 17+ and Spring Boot 3+ development, security, and TDD. license: MIT metadata: ciel-version: 1.0.0 ciel-extension: ciel.yaml
CIEL ADAPTATION: Java & Spring Boot (The Enterprise Layer)
This skill formalizes the development of production-grade Java services using Spring Boot. It mandates immutability, fail-fast error handling, and security-first configuration.
Java Standards (17+)
- Immutability: Favor
recordandfinalfields. No setters. - Null Safety: Accept
@Nullableonly when unavoidable. UseOptionalfor return types. - Fail Fast: Use domain-specific unchecked exceptions (e.g.,
EntityNotFoundException). - Streams: Keep pipelines short and readable. Favor
List.of()and.toList().
Spring Boot Architecture
- Layered Discipline: Controller (thin) -> Service (pure logic) -> Repository (abstract access).
- Injection: Use constructor injection; prohibit
@Autowiredon fields. - Transactions: Use
@Transactional(readOnly = true)for all GETs. - Validation: Enforce
@Validon all RequestBody DTOs via Bean Validation (Zod-like patterns).
Security Review
- Auth: Default to stateless JWT. Use
OncePerRequestFilterfor validation. - CSRF: Disable for pure APIs; Enable for session-based browser apps.
- SQLi: Prohibit string concatenation in
@Query. Use:parambindings only. - PII: Never log full payloads or sensitive fields. Redact centrally.
TDD Workflow
- Unit: JUnit 5 + AssertJ + Mockito. 100% logic coverage.
- Web:
MockMvcfor controller boundary testing. - Persistence:
DataJpaTestwith Testcontainers (no H2 in CI).
Anti-Patterns
- Lombok Over-use: Using
@Dataon immutable domain entities (use@Valueorrecord). - Magic Numbers: Hardcoding timeouts or page sizes.
- Silent Catch: Catching
Exceptionwithout rethrowing or structured logging.