Help us improve
Share bugs, ideas, or general feedback.
From planner
Use when starting isolated development on a branch and need a git worktree with auto-detected project setup and baseline test verification
npx claudepluginhub jugrajsingh/skillgarden --plugin plannerHow this skill is triggered — by the user, by Claude, or both
Slash command
/planner:worktreesThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Set up an isolated git worktree for a branch or task, auto-detect project setup, and run baseline tests.
Creates p5.js generative art with seeded randomness, noise fields, and interactive parameter exploration. Use for algorithmic art, flow fields, or particle systems.
Share bugs, ideas, or general feedback.
Set up an isolated git worktree for a branch or task, auto-detect project setup, and run baseline tests.
$ARGUMENTS = branch name or task slug.
If $ARGUMENTS is empty, ask:
AskUserQuestion:
question: "What branch name should I create the worktree for?"
header: "Branch Name"
Check if the branch already exists:
git branch --list {BRANCH_NAME}
git branch -r --list "origin/{BRANCH_NAME}"
If the branch does not exist, confirm creation:
AskUserQuestion:
question: "Branch '{BRANCH_NAME}' doesn't exist. Create it?"
header: "New Branch"
options:
- label: "Yes, create from current HEAD"
description: "New branch based on current position"
- label: "Yes, create from develop"
description: "New branch based on develop"
- label: "Cancel"
description: "Don't create the worktree"
If "Cancel", exit with no changes.
Check for existing worktree directory conventions:
test -d .worktrees && echo ".worktrees exists"
test -d worktrees && echo "worktrees exists"
If neither exists, ask:
AskUserQuestion:
question: "Where should worktrees be stored?"
header: "Worktree Directory"
options:
- label: ".worktrees/ (hidden, recommended)"
description: "Hidden directory, keeps project root clean"
- label: "worktrees/"
description: "Visible directory in project root"
- label: "Custom path"
description: "Specify a different location"
If "Custom path" is selected, ask for the path.
Ensure the directory is in .gitignore:
grep -q "{WORKTREE_DIR}" .gitignore 2>/dev/null || echo "{WORKTREE_DIR}/" >> .gitignore
If creating a new branch:
git worktree add {WORKTREE_DIR}/{BRANCH_NAME} -b {BRANCH_NAME}
Or from a specific base:
git worktree add {WORKTREE_DIR}/{BRANCH_NAME} -b {BRANCH_NAME} develop
If the branch already exists:
git worktree add {WORKTREE_DIR}/{BRANCH_NAME} {BRANCH_NAME}
Verify creation:
git worktree list
If the worktree already exists at that path, report it and skip creation.
Check for manifest files (package.json, pyproject.toml, Cargo.toml, go.mod) and run appropriate setup command. See references/setup-detection.md for manifest-to-command mapping.
Detect test runner from project manifests and run tests. Report pass/fail counts to establish baseline. See references/setup-detection.md for test runner detection table.
Print branch name, location, setup result, and test results. Include cd and removal commands. See references/setup-detection.md for report template.
git worktree listgit worktree add {PATH} -b {NAME} origin/{NAME}