Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides AWS Secrets Manager patterns for AWS SDK for Java 2.x, including secret retrieval, caching, rotation-aware access, and Spring Boot integration. Use when storing or reading secrets in Java services, replacing hardcoded credentials, or wiring secret-backed configuration into applications.
.claude/skills/giuseppe-trisciuoglio-aws-sdk-java-v2-secrets-manager/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 3% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 37% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 38% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 39% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 21% | 0% |
Use this skill to manage application secrets with AWS Secrets Manager from Java services.
It focuses on the operational flow that matters in production:
Keep large API notes and extended setup details in the bundled references.
Use this skill when:
AWSCURRENT and AWSPENDINGTypical trigger phrases include java secrets manager, spring boot secret, aws secret cache, load db credentials from secrets manager, and rotate secret.
Decide:
Prefer JSON secrets for multi-field credentials such as database connection details.
Use a single SecretsManagerClient with explicit region and the default credential provider chain unless the environment requires something more specific.
Keep client creation in configuration code, not in business services.
At the integration boundary:
GetSecretValueRequestsecretString() or include it in thrown exception messagesUse caching when:
Document cache TTL expectations clearly, especially if the secret rotates.
If the secret rotates:
AWSPENDING during verification workflowsBefore shipping:
java@Configuration public class SecretsConfiguration { @Bean SecretsManagerClient secretsManagerClient() { return SecretsManagerClient.builder() .region(Region.of("eu-south-2")) .credentialsProvider(DefaultCredentialsProvider.create()) .build(); } } @Service public class SecretsService { private final SecretsManagerClient client; private final ObjectMapper objectMapper; public SecretsService(SecretsManagerClient client, ObjectMapper objectMapper) { this.client = client; this.objectMapper = objectMapper; } public DatabaseSecret loadDatabaseSecret(String secretId) throws JsonProcessingException { GetSecretValueResponse response = client.getSecretValue( GetSecretValueRequest.builder().secretId(secretId).build() ); return objectMapper.readValue(response.secretString(), DatabaseSecret.class); } }
javapublic class CachedSecretsService { private final SecretCache cache; public CachedSecretsService(SecretsManagerClient client) { this.cache = new SecretCache(client); } public String apiToken(String secretId) { return cache.getSecretString(secretId); } }
Use this pattern only when the application can tolerate the chosen cache refresh behavior.
references/api-reference.mdreferences/caching-guide.mdreferences/spring-boot-integration.mdaws-sdk-java-v2-coreaws-sdk-java-v2-kmsspring-boot-dependency-injection| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-04 | pass→pass | 13,706 | 9,292 | -32% | 1 | 1 | 0% | 2,402 | 2,899 | +21% | 0 | 0 | — |
case-01 | fail→pass | 18,945 | 12,763 | -33% | 1 | 1 | 0% | 3,561 | 3,656 | +3% | 0 | 0 | — |
case-02 | pass→pass | 10,873 | 9,910 | -9% | 1 | 1 | 0% | 1,978 | 2,937 | +48% | 0 | 0 | — |
case-03 | pass→pass | 15,648 | 11,267 | -28% | 1 | 1 | 0% | 2,671 | 3,249 | +22% | 0 | 0 | — |
case-05 | pass→pass | 12,334 | 9,707 | -21% | 1 | 1 | 0% | 2,452 | 2,994 | +22% | 0 | 0 | — |
case-06 | pass→pass | 8,393 | 6,143 | -27% | 1 | 1 | 0% | 1,511 | 2,256 | +49% | 0 | 0 | — |
case-07 | fail→pass | 14,447 | 12,616 | -13% | 1 | 1 | 0% | 2,559 | 3,505 | +37% | 0 | 0 | — |
case-08 | fail→pass | 11,558 | 8,948 | -23% | 1 | 1 | 0% | 1,992 | 2,751 | +38% | 0 | 0 | — |
case-09 | pass→pass | 22,346 | 28,195 | +26% | 1 | 1 | 0% | 4,378 | 4,156 | -5% | 0 | 0 | — |
case-10 | pass→pass | 9,610 | 8,338 | -13% | 1 | 1 | 0% | 1,686 | 2,760 | +64% | 0 | 0 | — |
case-11 | pass→pass | 14,886 | 14,673 | -1% | 1 | 1 | 0% | 2,389 | 3,816 | +60% | 0 | 0 | — |
case-12 | pass→pass | 11,786 | 8,067 | -32% | 1 | 1 | 0% | 1,833 | 2,720 | +48% | 0 | 0 | — |
case-13 | pass→pass | 15,627 | 13,096 | -16% | 1 | 1 | 0% | 3,002 | 3,827 | +27% | 0 | 0 | — |
case-14 | pass→pass | 12,955 | 13,351 | +3% | 1 | 1 | 0% | 2,599 | 3,998 | +54% | 0 | 0 | — |
case-15 | pass→pass | 12,363 | 11,380 | -8% | 1 | 1 | 0% | 1,906 | 3,003 | +58% | 0 | 0 | — |
case-16 | fail→fail | 16,064 | 11,634 | -28% | 1 | 1 | 0% | 2,672 | 3,304 | +24% | 0 | 0 | — |
case-17 | fail→pass | 11,653 | 8,082 | -31% | 1 | 1 | 0% | 1,898 | 2,640 | +39% | 0 | 0 | — |
case-18 | fail→pass | 13,237 | 10,199 | -23% | 1 | 1 | 0% | 2,673 | 3,246 | +21% | 0 | 0 | — |
case-19 | pass→pass | 12,694 | 8,368 | -34% | 1 | 1 | 0% | 2,149 | 2,619 | +22% | 0 | 0 | — |
case-20 | fail→pass | 11,386 | 7,881 | -31% | 1 | 1 | 0% | 1,852 | 2,461 | +33% | 0 | 0 | — |
case-21 | fail→fail | 17,827 | 12,970 | -27% | 1 | 1 | 0% | 3,135 | 3,428 | +9% | 0 | 0 | — |
case-22 | pass→pass | 9,642 | 12,678 | +31% | 1 | 1 | 0% | 1,604 | 2,337 | +46% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +27 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.