env-secrets-manager

Audit local repositories for hardcoded credentials using regex pattern matching.

Updated Nov 3, 2016
One-click install
npx skills add https://github.com/xleliberty/mydotfiles --skill env-secrets-manager-xleliberty
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: env-secrets-manager
Source: https://github.com/xleliberty/mydotfiles/tree/main/.config/.claude/plugins/cache/claude-code-skills/engineering-advanced-skills/2.1.2/env-secrets-manager
Command: npx skills add https://github.com/xleliberty/mydotfiles --skill env-secrets-manager-xleliberty

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill addresses the critical risk of accidental credential exposure in source code and environment files, providing a systematic approach to auditing, rotating, and managing sensitive configuration data.

Core Features & Use Cases

  • Secret Leak Detection: Scans local repositories for hardcoded credentials like API keys, tokens, and private keys using regex-based pattern matching.
  • Lifecycle Management: Provides operational guidance for rotating secrets and maintaining secure environment variable hygiene.
  • Use Case: Before pushing code to a shared repository, use this skill to audit your working tree for accidentally committed secrets, ensuring your production credentials remain secure.

Quick Start

Run the env auditor script on your current repository directory to identify and report any potential secret leaks.

Frequently Asked Questions about env-secrets-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan a local repository for hardcoded credentials and secret leaks?

You can scan a local repository for hardcoded credentials by running the env auditor script on your working directory. It uses regex-based pattern matching to detect exposed API keys, tokens, and private keys in source code and configuration files before you push to a shared remote repository.

What types of sensitive environment variables can be detected in source code?

Sensitive environment variables detected in source code include hardcoded credentials like API keys, access tokens, and private keys. The audit targets configuration files and source code across both development and production environments to prevent accidental security leaks.

How does regex-based pattern matching find accidentally committed secrets?

Regex-based pattern matching finds accidentally committed secrets by systematically scanning local repository files against predefined credential patterns. This mechanism identifies potential secret exposure in source code and generates structured reports for remediation and security rotation workflows.

Can I audit environment files across both development and production environments?

Yes, you can audit environment files across development and production environments. The skill facilitates the identification of secret exposure in configuration files throughout your entire infrastructure, ensuring consistent environment variable hygiene and security compliance.

What should I do after detecting exposed API keys and tokens in my working tree?

After detecting exposed API keys and tokens, you should follow the provided lifecycle management guidance for rotating secrets. The structured reporting output supports remediation workflows, allowing you to securely rotate compromised credentials before pushing code to a shared repository.