gause started a new conversation+100 XP
1mo ago
Hey everyone,
I've been running multiple Claude Code sessions on the same Laravel project and kept hitting the same wall - each git worktree needs its own database, Herd domain, Vite port, and .env. Setting it all up manually every time defeats the purpose of worktrees.
So I built a Claude Code plugin skill that generates all the setup/teardown scripts for your project. You install it once, run /setup-worktrees, and from then on:
Create a worktree:
claude-worktree.sh feature-billing
This creates a fresh database, installs dependencies, runs migrations, links a Herd domain with HTTPS, and assigns a free Vite port. Under a minute.
Remove it:
claude-worktree-remove.sh feature-billing
Drops the database, removes the Herd domain, cleans up everything.
It also installs Claude Code hooks so worktrees get auto-configured when entered and auto-cleaned when removed.
Supports: MySQL, PostgreSQL, SQLite. Detects your package manager (pnpm/yarn/npm). Reads everything from your .env.
Install:
/plugin marketplace add gausejakub/claude-skills
/plugin install laravel-worktrees@gause-claude-skills
Full writeup with details on how it works: https://gause.cz/blog/git-worktrees-with-claude-code-laravel-and-herd
Source: https://github.com/gausejakub/claude-skills
Would love to hear if anyone tries it or has ideas for improvements.