Help us improve
Share bugs, ideas, or general feedback.
From admin
Creates an isolated git worktree for developing a fix or feature in a separate working directory. Use when the user says "create a worktree", "set up a worktree", "new worktree for issue X", "start work on issue X", or needs an isolated branch workspace. Handles naming conventions, git config propagation, and baseline verification. NOT for creating git branches without worktrees, or for cloning repositories.
npx claudepluginhub cosmicdreams/claude-plugins --plugin adminHow this skill is triggered — by the user, by Claude, or both
Slash command
/admin:create-worktreeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create an isolated git worktree for developing a Drupal issue fix.
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.
Create an isolated git worktree for developing a Drupal issue fix.
Provide an issue number (required) and optional description.
Important: All relative paths (e.g. ./worktrees/...) assume you are executing from the Project Root (e.g. ~/OpenSource/SAME_PAGE_PREVIEW).
worktrees/ and kanban/ directories..../worktrees/1234), you must cd ../.. to return to the Project Root before running commands.Before creating any project-local worktree, verify the worktrees/ directory is git-ignored:
git check-ignore -q worktrees 2>/dev/null && echo "ignored" || echo "NOT ignored"
If worktrees/ is not ignored:
.gitignore at the project root should include a worktrees/ entry..gitignore and add the line worktrees/.worktrees/{issue_number}/ or worktrees/{issue_number}-{description}/issue-{issue_number} or issue-{issue_number}-{description}worktrees/main/ (bare repo root cannot resolve main branch)bash .claude/skills/create-worktree/scripts/git-create-worktree.shThe script lives at .claude/skills/create-worktree/scripts/git-create-worktree.sh.
cd ./worktrees/main
# Discover installed version first: ls ~/.claude/plugins/cache/local/admin/
bash ~/.claude/plugins/cache/local/admin/<ver>/skills/create-worktree/scripts/git-create-worktree.sh \
../2901667 \
issue-2901667 \
main
Parameters:
worktree-path: Relative or absolute path to create worktree (e.g., ../2901667)branch-name: Git branch name (e.g., issue-2901667)base-branch: Optional base branch (defaults to main)The script handles:
worktrees/{issue_number} or worktrees/{issue_number}-{short-desc}issue-{issue_number} or issue-{issue_number}-{short-desc}main (use version branches like 11.x only for backports)The bare repo root cannot resolve the main branch directly. Always cd to worktrees/main/ before running the script.
For issue 2897308:
cd ./worktrees/main
# Discover installed version first: ls ~/.claude/plugins/cache/local/admin/
bash ~/.claude/plugins/cache/local/admin/<ver>/skills/create-worktree/scripts/git-create-worktree.sh \
../2897308 \
issue-2897308 \
main
Before writing any code, confirm tests are green in the worktree.
Run the relevant test suite to establish a clean baseline. A passing baseline proves the problem is in your changes — not pre-existing — and gives you a safe reference point to return to.
ddev phpunit <relevant-test-path>
ddev phpunit core/modules/settings_tray/tests/npm test, pytest, go test ./...).If the baseline is not green before you start, stop and investigate. Do not begin implementation on a broken baseline — you will not be able to tell which failures are yours.
See /process-lifecycle skill (Phase 1: INIT) for the full DDEV setup, startup, and ready check procedures. That skill is the single source of truth for DDEV instance management.
See /ddev skill for the full DDEV command reference.
When done with the worktree, follow /process-lifecycle Phase 4: SHUTDOWN to release resources.