ai-observability
Use when adding Spring AI-specific model observations, token usage, latency, externally configured cost attribution, advisor…
Use when introducing or correcting grouped Spring Boot configuration, typed property binding, validation, profiles or secret injection. Do not rewrite unrelated single-value configuration.
Claude Code
$ npx -y skills add rrezartprebreza/spring-boot-skills --skill configuration-properties --agent claude-code
Codex
$ npx skills add rrezartprebreza/spring-boot-skills --skill configuration-properties -a codex -y
Cursor
$ npx skills add rrezartprebreza/spring-boot-skills --skill configuration-properties -a cursor -y
Gemini CLI
$ npx skills add rrezartprebreza/spring-boot-skills --skill configuration-properties -a gemini-cli -y
GitHub Copilot
$ npx skills add rrezartprebreza/spring-boot-skills --skill configuration-properties -a github-copilot -y
OpenCode
$ npx skills add rrezartprebreza/spring-boot-skills --skill configuration-properties -a opencode -y
Windsurf
$ npx skills add rrezartprebreza/spring-boot-skills --skill configuration-properties -a windsurf -y
name: configuration-properties description: > Use when introducing or correcting grouped Spring Boot configuration, typed property binding, validation, profiles or secret injection. Do not rewrite unrelated single-value configuration.
The examples use Java 17 and Jakarta APIs supported by this Boot version. Keep dependencies managed by the project's Boot BOM.
Inspect existing property prefixes and external deployment configuration before renaming keys. Use a typed ConfigurationProperties record for a related group of settings. Register it with EnableConfigurationProperties or ConfigurationPropertiesScan; a record is not automatically a bean. Use Validated and Jakarta constraints, and include spring-boot-starter-validation. Validate nested objects with Valid. A single record constructor needs no ConstructorBinding annotation.
Use explicit units for durations and sizes. Provide defaults only when they are operationally safe; missing credentials or required endpoints should fail startup. Do not assume NotNull rejects zero or negative Duration values; add a duration constraint or an explicit invariant.
[ClientProperties](examples/ClientProperties.java) and [its configuration](examples/good-client.yml) show a validated prefix with explicit duration units. Do not turn a full API token into a record component: generated toString can expose secrets. Resolve secrets at the integration boundary or use a redacting value type.
Document the public property keys and validate actual environment-variable binding in a test. Use environment variables or a mounted secret/config tree according to the deployment platform. Higher-precedence property sources can override packaged defaults; test the intended profile and override path. Avoid depending on YAML list merging: lists are generally replaced. Keep profile activation outside documents activated by that same profile.
Do not publish configprops/env actuator endpoints publicly or disable sanitization to debug. Binding is normally at startup; changing a file or secret does not imply live refresh. Define restart/rotation behavior when configuration changes.
Document who owns each secret, how consumers reload it, and when the old credential is revoked. Configuration binding at startup does not automatically refresh a connection pool, HTTP client, signing key or cached credential. Test the real restart/reload path before a rotation rollout. Where a provider supports overlapping keys, keep the overlap bounded and verify that consumers accept the new key before removing the old one. A compromised key may require immediate revocation through the incident owner rather than a normal overlap window.
Check config files, build output, container layers and CI logs for accidental credential exposure. Use synthetic canary values in tests, never production secrets. Test that binding failures, generated toString methods and startup logs do not echo credentials. If exposure is found, coordinate revocation and evidence handling; deleting a file does not invalidate its credential. Do not publish secret-bearing diagnostics or rewrite repository history without approval.
Use ApplicationContextRunner with EnableConfigurationProperties to assert valid binding and startup failure on missing or invalid settings. Test nested validation, unit conversion and the override path you actually deploy. Include at least one invalid duration test.
Production-grade Claude Code and Codex skills for Spring Boot developers
Use when adding Spring AI-specific model observations, token usage, latency, externally configured cost attribution, advisor…
Use when versioning Spring MVC or WebFlux APIs in Spring Boot 3 / Spring Framework 6. Covers explicit URL, header, and media-type…
Use when packaging a Spring Boot 3 application as an OCI image or GraalVM native executable. Covers buildpacks, layered images,…
Use when evolving aggregate invariants, value objects or domain events in an existing DDD-style Spring Boot 3 application, or…
Use when implementing Kafka, RabbitMQ, Pulsar, or JMS producers and consumers in Spring Boot 3. Covers event contracts,…
Use when creating database migrations, schema changes, seed data, or any SQL that modifies database structure. Covers Flyway…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.