Issue Worktree — Git skill for Claude Code
Fix GitHub issue with tests and PR using git worktree.
How to install Issue Worktree
Installs to ~/.claude/commands/zieka-cpm-public-registry-issue-worktree.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/zieka/cpm-public-registry/HEAD/.claude/commands/issue-worktree.md -o ~/.claude/commands/zieka-cpm-public-registry-issue-worktree.md Restart Claude Code, or start a new session, for it to be picked up.
What Issue Worktree does
name: issue-worktree description: Fix GitHub issue with tests and PR using git worktree args: required
Issue Command
Analyze and fix a GitHub issue with automated workflow.
Arguments
$1or$ISSUE_NUMBER: GitHub issue number to fix
Workflow
Follow these steps:
- Ensure that .worktrees/ is in the .gitignore file. If not add it.
- Create a git worktree for the issue
- Use
gh issue viewto get the issue details
- Use
- Take time to think about the problem d
Alternatives in Git
- Git Worktree Docs Issue: Dependency Installation — GitHub — Community feedback on official docs with full worktree lifecycle walkthrough 81.1k ★
- Git Worktree Setup — Create isolated git worktrees with instant feedback and background Rust verification 25.5k ★
- Worktree Parallel Init — Create multiple git worktrees for parallel development: $ARGUMENTS 23.4k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Fix GitHub Issue
by jeremymailen - Analyzes and fixes GitHub issues using a structured approach with GitHub CLI for issue detai
Issue Autofix
Autofix one queued GitHub issue — in an isolated git worktree off main, implement the smallest fix, conflict-c
Codex Loop
Use Codex as a second, differently-trained reviewer of your branch, fix every real finding with regression tes
Worktree Add
Add a new git worktree from branch name or issue URL, copy settings, install deps, and open in current IDE
Setup Worktree
Create a git worktree for working on a GitHub issue
Commit Quick Fix
Ship changes by creating a worktree, PR, merging, and rebuilding
Related Agents
Parallel Worker
Executes parallel work streams in a git worktree. This agent reads issue analysis, spawns sub-agents for each
Code Author
Developer worker. Runs the project's implement-issue or fix-pr skill in a clean context and returns the PR num
Exec Implementer
The implementation worker of stage 4 — receives ONE issue cold and takes it from reading to committed, test-fi