Provides AWS Secrets Manager patterns for AWS SDK for Java 2.x, including secret retrieval, caching, rotation-aware access, and Spring Boot integration.
SkillScore91Maintained
Automatic
◆Coding pack
Last verified 8/21/2026
What it changes
Passed 20 of 22 test cases with the skill, and 14 of 22 without it.
Without skill64%
With skill91%
Checks it passed that the model alone missed
The SecretsManagerClient bean is defined in a configuration class.
The SecretsManagerClient builder explicitly specifies DefaultCredentialsProvider.
The builder explicitly includes DefaultCredentialsProvider.create() for credential resolution.
and 4 more in the full report
6 fixed14 passed either way2 still failing0 broke
Pass-rate lift
+27 pp
Tokens
+30%
Agent turns
0%
Response time
-16%
Model gemini-3.6-flashMeasured 8/21/2026v120 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 6
Prompt
Our Java microservice calls AWS Secrets Manager on every incoming HTTP request to fetch a third-party API token, which is causing high latency and driving up API costs. Can you show how to write a Java wrapper service using the AWS Java SDK v2 that caches the secret locally for hot-path lookups while keeping client creation isolated?
What was checked, without and with the skill
Checked
Without skill
With skill
The solution uses SecretCache from the AWS Secrets Manager caching library to manage cached secrets.
Missed
Passed
The SecretsManagerClient bean creation is isolated in a configuration class separate from the caching service.
Passed
Passed
The SecretsManagerClient builder explicitly specifies DefaultCredentialsProvider.
Missed
Passed
case-01 · gemini-3.6-flash · 8/21/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md159 lines4 files
AWS SDK for Java 2.x - AWS Secrets Manager
Overview
Use this skill to manage application secrets with AWS Secrets Manager from Java services.
It focuses on the operational flow that matters in production:
how to retrieve and deserialize secrets safely
when to add local caching
how to integrate secret access into Spring Boot without leaking values into logs or configuration files
Keep large API notes and extended setup details in the bundled references.
When to Use
Use this skill when:
replacing hardcoded passwords, API keys, or tokens with managed secrets
loading database credentials or third-party API credentials at runtime
adding caching to reduce Secrets Manager latency and API cost
handling secret version stages such as AWSCURRENT and AWSPENDING
wiring secret access into Spring Boot beans or configuration services
preparing rotation-aware applications or Lambda rotation workflows
Typical trigger phrases include java secrets manager, spring boot secret, aws secret cache, load db credentials from secrets manager, and rotate secret.
Instructions
1. Model the secret before writing access code
Decide:
the secret name and path convention
whether the value is plain text or structured JSON
which application boundary is allowed to read it
whether the caller needs the latest value on every request or can tolerate a cache
Prefer JSON secrets for multi-field credentials such as database connection details.
2. Create one reusable client per application configuration
Use a single SecretsManagerClient with explicit region and the default credential provider chain unless the environment requires something more specific.
Generates a structured Bug Fix Brief (BFB) to document issue corrections. Includes root cause analysis, repro steps, fix options, and fix checklist. Use when user asks to create a BFB, document a bug fix, or generate a bug correction document.