env-sync
Installation
SKILL.md
Env Sync - Git Worktree Environment File Synchronization
This skill syncs .env files from a git root repository to git worktrees.
When to Use
- User asks to sync env or copy env
- User mentions missing environment variables or .env file
- Working in a git worktree that lacks a .env file
- User asks to set up environment for a worktree
Security Rules
- NEVER display .env file contents - they contain secrets
- ALWAYS ask before overwriting - if .env already exists, confirm with user first
- Validate paths - ensure the root path exists and is a valid git repository
- No arbitrary paths - only sync from the actual git root repository