secrets-manager
Skill by itsmostafa
AWS Secrets Manager is a skill that guides an assistant through storing, retrieving, updating and rotating credentials and API keys. It is for developers who manage secrets on AWS, including RDS database credentials.
Install secrets-manager
Built from the published package, never by AI.
git clone --depth 1 https://github.com/itsmostafa/aws-agent-skills /tmp/aws-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/aws-agent-skills/skills/secrets-manager ~/.claude/skills/secrets-managerRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/itsmostafa/aws-agent-skills /tmp/aws-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/aws-agent-skills/skills/secrets-manager ~/.gemini/antigravity-cli/skills/secrets-managerAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a reference guide for AWS Secrets Manager. It covers creating secrets with the AWS CLI and boto3, retrieving secret values in Python, and caching secrets with the aws_secretsmanager_caching package. It also explains secret versions (AWSCURRENT, AWSPENDING, AWSPREVIOUS) and how to update them.
The guide describes automatic rotation using Lambda functions, with a CloudFormation example for an RDS secret rotating every 30 days. It includes a CLI reference, access control policy examples, troubleshooting steps for AccessDeniedException, rotation failures and missing secrets. It is aimed at developers and operators who store credentials on AWS.
Written from the project's SKILL.md and checked against it.
What it can do
- Create secretsStore database credentials, API keys or binary data as a secret using the CLI or boto3.
- Retrieve secretsFetch a secret value in Python and parse JSON or binary content.
- Cache secretsReduce API calls by caching secret values with the caching package.
- Update secrets and versionsChange a secret value and move version staging labels such as AWSCURRENT.
- Configure rotationSet up automatic rotation with a Lambda function, including an RDS example.
- Troubleshoot access and rotationCheck resource policies, IAM permissions, rotation status and Lambda logs.
What you need
- An AWS account
- AWS CLI
- Python with boto3
- A Lambda function for rotation
Try asking
- Create a Secrets Manager secret for my production database credentials.
- Set up automatic 30-day rotation for my RDS secret.
- Write Python code to fetch and cache a secret from Secrets Manager.
Good to know
- Each secret can hold key-value pairs up to 64 KB.
- Rotation Lambda timeouts should be at least 30 seconds, according to the troubleshooting section.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/secrets-manager/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
rotation-strategies.md11 KB
Alternatives to secrets-manager
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
secrets-manager: common questions
What types of secrets can Secrets Manager store?
The guide lists database credentials, API keys, OAuth tokens and any key-value pairs up to 64 KB. Binary data such as certificates is also covered.
Which services support built-in rotation?
The source lists built-in rotation support for Amazon RDS, Amazon Redshift and Amazon DocumentDB. Custom secrets can also be rotated with a Lambda function.
How can an application access a secret without many API calls?
The guide suggests caching secrets with the aws_secretsmanager_caching package or using the AWS Parameters and Secrets Lambda Extension.
How do I install secrets-manager?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is secrets-manager free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is secrets-manager safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to secrets-manager?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
