I released Laravel Herd Worktree, a new Claude Code skill that automates the setup of git worktrees for Laravel projects served by Laravel Herd, eliminating the repetitive friction of working on multiple feature branches simultaneously.
Developers working on Laravel projects often face the pain of context switching between branches—stashing changes, reconfiguring environment files, and dealing with broken session cookies. This skill solves that problem with a single command.
Running /laravel-herd-worktree creates an isolated worktree, links it to Herd at http://your-branch.test, configures the .env file with correct APP_URL, SESSION_DOMAIN, and SANCTUM_STATEFUL_DOMAINS settings, installs Composer and npm dependencies, and starts Vite with proper CORS configuration. Each worktree operates as a fully independent development environment.
The skill also handles the end of the workflow, developers can create pull requests directly from the worktree, transfer changes back to the main project directory, or cleanly remove the worktree with proper Herd unlinking. Laravel Herd Worktree is free and open source, available on the Claude Code marketplace via /plugin install laravel-herd-worktree@harrisrafto-laravel-tools or on https://github.com/harris21/laravel-herd-worktree.