Notre avis
Gère les worktrees Git avec l'outil gwt pour travailler simultanément sur plusieurs branches.
Points forts
- Bascule automatique entre les répertoires de travail
- Stockage centralisé des worktrees dans ~/.gwt_store
- Création automatique des worktrees lors du changement de branche
- Détection intelligente des branches distantes
Limites
- Nécessite que gwt soit installé sur le système
- Peut nécessiter un apprentissage du concept de worktree
- Ne fonctionne que si le dépôt est compatible avec la configuration de gwt
Utilisez gwt lorsque vous travaillez sur plusieurs branches en parallèle, pour des revues de code, des tests ou des expérimentations sans interférence.
Évitez gwt si vous ne travaillez que sur une seule branche ou si vous préférez les commandes git natives.
Analyse de sécurité
SûrThe skill describes standard git worktree management commands via the 'gwt' tool. There are no destructive commands, exfiltration attempts, obfuscation, or disabling of safety mechanisms. All listed operations are local to the repository and expected for branch management.
Aucun point d'attention détecté
Exemples
Switch to branch 'feature/new-login' using gwt, creating a worktree if it doesn't exist.List all my git worktrees with truncated branch names.Remove the worktree for branch 'feature/old-ui' and delete the branch since it's been merged.name: gwt description: Manage git worktrees using gwt for branch-based workflow. Use when switching branches, creating worktrees, listing worktrees, or cleaning up after merging PRs.
GWT Worktree Management Skill
You have access to gwt, a Git worktree management tool that simplifies working with multiple branches simultaneously. Use gwt instead of raw git worktree commands for a streamlined workflow.
Available Commands
Switch to a Branch Worktree
gwt sw <branch> # Switch to existing branch (creates worktree if needed)
gwt sw -b <branch> # Create new branch and switch to it
gwt sw -m # Switch to main/master branch
gwt sw <branch> --remote <remote> # Switch to branch from specific remote
List Worktrees
gwt ls # List all worktrees (truncated branch names)
gwt ls --full # List with full branch names
Remove Worktrees
gwt rm <branch> # Remove worktree for branch (prompts for confirmation)
gwt rm <branch> -y # Remove without confirmation
gwt rm <branch> -b # Remove worktree and delete the branch
gwt rm <branch> -B # Remove worktree and force-delete branch
gwt rm --this # Remove current worktree (switches to home first)
Navigation
gwt home # Return to the main repository worktree
gwt current # Show current branch and worktree path (alias: gwt c)
Workflow Patterns
Starting Work on a Feature
- Use
gwt sw -b feature/nameto create a new branch and worktree - Work on the feature in the isolated worktree
- The original repository remains on its branch
Switching Between Tasks
- Use
gwt sw other-branchto switch to another worktree - No need to stash changes - each worktree is independent
- Use
gwt lsto see all available worktrees
Cleaning Up After PR Merge
- Use
gwt hometo return to main repository - Use
gwt rm feature/name -bto remove worktree and delete merged branch - Or use
gwt rm --this -bif still in the feature worktree
Checking Current Location
Use gwt current to see which branch and worktree you're in.
Key Benefits
- Automatic directory switching: gwt changes your shell's working directory automatically
- Centralized storage: Worktrees are stored in
~/.gwt_store, keeping repos clean - Just-in-time creation: Worktrees are created automatically when switching to new branches
- Smart remote lookup: Automatically finds and tracks remote branches
When to Use gwt
- Switching between branches for code review or testing
- Working on multiple features in parallel
- Isolating experimental changes without affecting main work
- Quick context switching without stashing changes
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.