What problem does it solve?
This Skill streamlines the setup of secure and efficient environment variable management, especially crucial for development workflows involving multiple branches or worktrees. It ensures that sensitive information is encrypted at rest and only decrypted in memory when needed.
Core Features & Use Cases
- Encrypted Environment Variables: Utilizes dotenvx to encrypt
.env files, ensuring sensitive data like API keys and database credentials are never exposed on disk.
- Automatic Loading: Integrates with
direnv to automatically load environment variables based on the directory, simplifying setup for different projects and worktrees.
- Git Worktree Compatibility: Designed to work seamlessly with Git worktrees, allowing each worktree to have its own isolated and securely managed environment variables.
- Use Case: When starting a new feature in a separate Git worktree, this Skill ensures that all necessary API keys and configurations are securely loaded and available without manual intervention or risk of exposure.
Quick Start
Set up secure environment variable management by encrypting your .env file and configuring direnv.