/mauriciovieira-skills:setup-worktreefrom mauriciovieira-skills
Use when the user is in a linked git worktree and needs to bootstrap it from the main repo - symlinks language-agnostic dependency directories (node_modules, .venv, vendor, target, deps) and copies env files. Trigger phrases include "setup worktree", "/setup-worktree", "bootstrap worktree", or when the user just created a worktree and wants to install/run dev.
Ships in mauriciovieira-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Bootstrap a linked git worktree from its main repo without re-installing dependencies. Language-agnostic: detects manifests (package.json, pyproject.toml, requirements.txt, Pipfile, setup.py, Gemfile, go.mod, Cargo.toml, composer.json, mix.exs) and symlinks the matching deps dir from main if it exists.
For each manifest found in the main repo, symlinks the corresponding deps dir into the worktree at the same relative path:
| Manifest | Deps dir candidates (every one that exists in main is linked) |
|---|---|
package.json | node_modules |
pyproject.toml / requirements.txt / Pipfile / setup.py | .venv, venv, env |
Gemfile | vendor/bundle, .bundle |
go.mod | vendor |
Cargo.toml | target |
composer.json | vendor |
mix.exs | deps, _build |
Env files copied (not linked, since they may diverge per branch): .env, .env.local, .env.development, .env.test.
git worktree add .worktrees/<name> and wants to start working without npm ci / bundle install / pip install again..env / node_modules / .venv / vendor and the main repo has them.target may bloat — user can rm the symlink if they want isolation).~/.claude/skills/setup-worktree/setup-worktree.sh
Or via slash command: /setup-worktree (alias defined in ~/.claude/commands/setup-worktree.md).
Run from inside the worktree (any subdirectory works — script resolves the worktree root via git rev-parse --show-toplevel).
git rev-parse --git-common-dir against --git-dir).Repos that previously had a hand-rolled setup-worktree Make target should replace it with a thin wrapper:
setup-worktree:
@~/.claude/skills/setup-worktree/setup-worktree.sh
If the script isn't installed (other contributors not using this skill), the Make target should fall back to a clear error message pointing at the skill repo.
not in a linked worktree. Run from inside .worktrees/<name>/ instead.node_modules reflects main's last install. If your branch changes package.json, run a fresh install in the worktree (which will replace the symlink with a real dir).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
45 skills in this plugin
/ansible-kamalUse when bootstrapping a Rails project that needs Ubuntu VPS provisioning (Ansible) and Kamal 2 deploy (kamal-proxy on 80/443) — scaffolds infra/ansible, infra/kamal, config/deploy*.yml, .kamal/secrets* templates from a hardened reference layout, asking IP, DNS, and whether the host runs both staging+production or only a single domain./babysit-with-github-copilotBabysit a PR through GitHub Copilot review until merge. Use when the user asks to "babysit PR/batch-grill-meA relentless interview that asks every frontier question at once, round by round./chrome-devtools-mcpScaffolds a dedicated Chrome instance with an isolated, persistent profile plus a chrome-devtools-mcp (CDP) server registration, so Claude can inspect authenticated network traffic in a web app - list open tabs, navigate, and read real requests (method, URL, sensitive headers, body, response shape) to reverse-engineer an API. Use when the user wants to inspect authenticated traffic in a browser, capture real headers/cookies for an integration, reverse-engineer a web app's undocumented API, or asks to set up chrome-devtools-mcp / CDP debugging./claude-handoffHand the current conversation off to a fresh background agent that picks up the work immediately./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.npx claudepluginhub mauriciovieira/skills --plugin mauriciovieira-skills