o-gi

Gw Env Sync — Development skill for Claude Code

Development community

Sync .env files from root to all worktrees.

How to install Gw Env Sync

Installs to ~/.claude/skills/o-gi-claude-code-commands-gw-env-sync/SKILL.md

Terminal
mkdir -p ~/.claude/skills/o-gi-claude-code-commands-gw-env-sync && curl -fsSL https://raw.githubusercontent.com/o-gi/claude-code-commands/HEAD/commands/gw-env-sync.md -o ~/.claude/skills/o-gi-claude-code-commands-gw-env-sync/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Gw Env Sync does

Sync .env files from root to all worktrees.

Purpose

Synchronize all .env* files from the root directory (and monorepo app directories) to worktrees using symbolic links. This ensures consistent environment variables across all parallel development environments.

Usage

# Sync to all worktrees
/user:gw-env-sync

# Sync to specific worktree only
/user:gw-env-sync issue-42

# List current .env files and their link status
/user:gw-env-sync --status

Workflow

0. Display se

Alternatives in Development

  • Clean Worktree (Interactive) — Interactive cleanup of worktrees: lists merged/stale branches and asks confirmation before deleting 25.5k ★
  • Worktree Cleanup — Remove worktrees and branches that have been merged: $ARGUMENTS 23.4k ★
  • 05 Env And Auth — Prompt 05: Environment Configuration & API Authentication 2.3k ★

Full documentation available on GitHub

View Source Repository