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

  1. NEVER display .env file contents - they contain secrets
  2. ALWAYS ask before overwriting - if .env already exists, confirm with user first
  3. Validate paths - ensure the root path exists and is a valid git repository
  4. No arbitrary paths - only sync from the actual git root repository

Instructions for Agent

Related skills
Installs
10
GitHub Stars
1
First Seen
Jan 21, 2026