/crewforth:worktreefrom Crewforth
Isolates risky or parallel file-mutating work in a git worktree so the main tree's uncommitted changes are never clobbered. Useful for fan-out agents, throwaway experiments, or any change you may want to discard cleanly.
Ships in Crewforth. 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.
None: SKILL.md is the whole skill.
Trigger phrases: "worktree", "git worktree", "isolate the changes", "sandbox this work", "parallel file edits"
One rule: never let risky or parallel work run on top of uncommitted changes in the shared tree. A git worktree gives a second working copy of the same repo on its own branch — you experiment or fan out agents there, and the main tree (with your in-progress edits) is physically untouched. Throw the worktree away and nothing you cared about is lost.
Crewforth adaptation (local, .claude/): this exists because verification/fan-out subagents have discarded a session's uncommitted work by running a destructive git command over the shared tree. Those commands (
reset --hard,clean -f,checkout -- .,restore) are §4.5-gated — but the real fix is to not put them near unsaved work. The Agent tool'sisolation: "worktree"does this automatically for parallel mutating agents; reach for it there.
reset --hard.[ "$(git rev-parse --git-dir)" != "$(git rev-parse --git-common-dir)" ] is true inside one; don't nest. A submodule answers true as well: when git rev-parse --show-superproject-working-tree prints a path, you are in a submodule, not a worktree.git worktree add ../wt-<name> -b <branch> (new branch) or git worktree add ../wt-<name> <existing>. It shares the object store, so it's cheap. Before -b <branch>, check git show-ref --verify --quiet refs/heads/<branch>: if the branch exists, do not reuse the name silently; ask whether to work on that existing branch. A branch you adopted that way is the user's, and cleanup never deletes it..claude/ is gitignored in most installs, so a worktree made with git worktree add has none: entering it with the EnterWorktree tool copies it in, and /crew-doctor names a worktree that still lacks it.git -C ../wt-<name> status --porcelain and git log <upstream-or-base>..<branch> --oneline. Uncommitted files or commits that exist nowhere else mean you list them and ask the user; git worktree remove ../wt-<name> only when both are empty, and --force only after the user has seen that list and said to drop it.git worktree prune removes stale entries. Never leave orphaned worktrees around. Delete only a branch you created for the worktree (git branch -d, which refuses an unmerged one), never one you adopted in step 2.A database, dev server or queue the worktrees all use is shared state, not part of your copy.
checkout -- . to undo"; the undo is worktree remove.remove + prune when done.--force and no branch -D without their word.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
60 skills in this plugin
/a11yUse when building or changing UI, before shipping a user-facing screen, and when something cannot be
reached with a keyboard, read by a screen reader, or seen at low contrast.
/adrArchitecture Decision Record: context-decision-consequences, for decisions that are expensive to reverse.
Written under docs/adr/.
/api-designUse when an API contract is designed or changed: a new endpoint or resource, how its errors and pages
are returned, a field to add or remove, or a version to cut without breaking a consumer.
/automode-policyAuto-mode classifier config: inspect what the classifier that answers permission prompts is configured
with, and catch the silent case where a custom autoMode block drops the built-in block rules.
/backend-architectureDecide, record and apply the backend stack and architecture pattern.
Use when backend work starts with no recorded stack, or a framework/DB/pattern must be chosen.
/brainstormUse when the ask is still fuzzy and no direction is chosen yet: "not sure what we want", several ways to go,
or a scope to settle before any plan is written.
npx claudepluginhub crewforth/crewforth --plugin crewforthOther plugins' skills for the same job