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 plannerThis skill is limited to using the following tools:
Set up an isolated git worktree for a branch or task, auto-detect project setup, and run baseline tests.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
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}