env-secrets-manager
Skill1 starsChanged 2 months agoMITView on GitHub
Environment variable hygiene, secret leak detection, and credential rotation workflows. TRIGGER when: working with .env files, secret management, credential rotation, pre-commit secret scanning, or investigating leaked credentials. DO NOT TRIGGER when: general config file editing, non-secret environment setup, or infrastructure provisioning (use relevant infra skill).
- Reads credentials
We split this skill into the rules it gives an agent
8 rules. 5 are common, 0 are distinctive, and 3 are very specific to this project.
5
Common
Most of the 7 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Common: line 31
Before pushing commits that touched env/config files
- Common: line 33
When onboarding contributors who need safe env conventions
- Common: line 34
When validating that no obvious secrets are hardcoded
- Very specific: line 41
Update .env.example and .gitignore as needed
- Common: line 42
Add or tighten pre-commit/CI secret scanning gates
- Very specific: line 72
Use a secret manager as the production source of truth (never .env in prod)
- Common: line 73
Keep dev env files local and gitignored
- Very specific: line 76
Commit only .env.example, never .env
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Env & Secrets Manager
Manage environment-variable hygiene and secrets safety across local development and production workflows. Covers auditing, leak detection, rotation, and preventive controls.
What You Get
- Secret leak detection with regex-based scanning (staged files and git history)
- Severity-based findings (critical/high/medium) with response playbook
- Credential rotation workflows (AWS, Stripe, GitHub PAT, DB, JWT)
- Cloud secret store integration guidance (Vault, AWS SM, Azure KV, GCP SM)
- CI/CD secret injection patterns (GitHub Actions, GitLab CI)
- Pre-commit detection setup (gitleaks, detect-secrets)
When to Use
- Before pushing commits that touched env/config files
- During security audits and incident triage
- When onboarding contributors who need safe env conventions
- When validating that no obvious secrets are hardcoded
Recommended Workflow
- Scan the repository for likely secret leaks (see
references/secret-patterns.md) - Prioritize
criticalandhighfindings first - Rotate real credentials and remove exposed values
- Update
.env.exampleand.gitignoreas needed - Add or tighten pre-commit/CI secret scanning gates
WRONG: secrets in code and examples
# WRONG: real credentials in .env.example
DATABASE_URL=postgres://admin:s3cret@prod.db.internal/myapp
STRIPE_SECRET_KEY=sk_live_abc123xyzCORRECT: placeholders only
# CORRECT: .env.example with safe placeholders
DATABASE_URL=postgres://user:password@localhost/myapp_dev
STRIPE_SECRET_KEY=sk_test_REPLACE_MECommon Pitfalls
| Mistake | Why it's bad |
Committing real values in .env.example | Example files get pushed; real secrets in git history |
| Rotating one system but missing downstream consumers | Partial rotation causes outages |
| Logging secrets during debugging | Logs persist in CI artifacts, observability platforms |
| Treating suspected leaks as low urgency | Automated scrapers act within minutes of public exposure |
Using echo on secrets in CI pipelines | Even with masking, secrets can leak via toJSON() or redirects |
Best Practices
- Use a secret manager as the production source of truth (never
.envin prod) - Keep dev env files local and gitignored
- Enforce detection in CI before merge
- Re-test application paths immediately after credential rotation
- Commit only
.env.example, never.env
Reference Docs
| File | Contents |
references/secret-patterns.md | Detection regex by severity, response playbook |
references/rotation-and-detection.md | Validation scripts, scanning tools, rotation workflow, pre-commit setup, cloud stores, CI/CD patterns |
Cloud Secret Store Quick Reference
| Provider | Best For | Key Feature |
| HashiCorp Vault | Multi-cloud / hybrid | Dynamic secrets, policy engine |
| AWS Secrets Manager | AWS-native | Lambda/ECS/EKS integration, auto RDS rotation |
| Azure Key Vault | Azure-native | Managed HSM, Azure AD RBAC |
| GCP Secret Manager | GCP-native | IAM-based access, versioning |
| 1Password | Developer workflows | CLI (op), Connect server, SSH agent |
Selection: Single cloud -> cloud-native store. Multi-cloud -> Vault. Developer/team -> 1Password or Doppler.
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- Hassaan146/claude-skills★ 18same name
- scayver/marketing-skills★ 8same name
- Cure-Consulting-Group/ProductEngineeringSkills★ 3same name
- csiddhant796-blip/claude-skills-collection★ 2same name
- Hussain-Elfalah/Agentic-Skills★ 2same name
- mahiunfiltered/claude-code-skills★ 1same name
- Arnav-0/claude-code-setup★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adversarial-reviewerSkill
- agent-designerSkill
- architectSkill
- autoresearchSkill
- blockscoutSkill
- ci-cd-pipeline-builderSkill
- claude-apiSkill
- codebase-onboardingSkill
- code-reviewSkill
- coingeckoSkill
- database-designerSkill
- dependency-auditorSkill
- design-uxSkill
- digestSkill
- droo-stackSkill
- ethskillsSkill
- ffmpeg-asmSkill
- focused-fixSkill
- frontend-slop-auditSkill
- git-guardrailsSkill
- git-worktree-managerSkill
- humanizerSkill
- interface-designerSkill
- llm-cost-optimizerSkill
- local-browser-inspectorSkill
- mcp-server-builderSkill
- native-codeSkill
- nixSkill
- noirSkill
- observability-designerSkill
- patchbotSkill
- performance-profilerSkill
- playwrightSkill
- polymathSkill
- prd-to-planSkill
- prepperSkill
- property-testingSkill
- qaSkill
- rag-architectSkill
- raxol-paymentsSkill
- raxolSkill
- raxol-symphonySkill
- recallSkill
- refactoring-strategySkill
- regenSkill
- releaseSkill
- security-auditorSkill
- self-improving-agentSkill
- sentinelSkill
- signozSkill
- skill-creatorSkill
- solidity-auditorSkill
- tddSkill
- tech-debt-trackerSkill
- ubiquitous-languageSkill
- watchdogSkill
- web-asset-generatorSkill
- writing-voiceSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

