Automatically identifies Git repositories and worktree names based on the current directory path convention.
This skill enables Claude to automatically determine the correct Git repository and worktree names by parsing the user's current working directory. Specifically designed for environments using the /workspace/repos/<repo>/<worktree> convention, it eliminates the friction of manually providing arguments during worktree operations like merging, spawning, or cleaning up. It features robust validation to prevent accidental operations on the main repository branch and maintains accuracy even when the user is deep within nested subdirectories.
Key Features
01Graceful error handling for paths outside the workspace convention
02Smart validation to prevent destructive operations on the main worktree
03Automatic extraction of repository and worktree identifiers from PWD
04Support for deeply nested subdirectories within feature worktrees
050 GitHub stars
06Seamless fallback logic for explicit command-line overrides
Use Cases
01Automating context-aware operations within devcontainer environments
02Simplifying multi-repo management by inferring targets from current location
03Running worktree lifecycle scripts without typing repetitive arguments