Skill for creating and managing isolated git worktrees (`.worktrees/issue-NNN`) for issue execution branches. USE ONLY when setting up or cleaning up isolated git worktrees for specific issue execution. DO NOT USE for managing local task files (use `task-agent`) or escalating tasks to issues (use `github-issue-backlog-agent`).
Scanned 9/2/2026
Install to Claude Code
npx -y skills add richfrem/agent-plugins-skills --skill issue-worktree-agent --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Issue Worktree Agent?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/richfrem-issue-worktree-agent)More formats (shields.io, HTML) on the badges page.
---
name: issue-worktree-agent
plugin: dev-utils
description: >
Skill for creating and managing isolated git worktrees (`.worktrees/issue-NNN`) for issue execution branches.
USE ONLY when setting up or cleaning up isolated git worktrees for specific issue execution.
DO NOT USE for managing local task files (use `task-agent`) or escalating tasks to issues (use `github-issue-backlog-agent`).
allowed_tools:
- run_command
- view_file
- write_to_file
- replace_file_content
- multi_replace_file_content
- grep_search
- list_dir
---
# Issue Worktree Agent (`issue-worktree-agent`)
> **Routing Directive:** USE ONLY when setting up, listing, or removing isolated git worktrees (`.worktrees/issue-NNN`) for issue execution branches. DO NOT USE for managing local scratch tasks (use `task-agent` instead) or managing GitHub PR lifecycles (use `issue-pr-lifecycle-agent` instead).
The `issue-worktree-agent` skill manages isolated workspace environments using `git worktree`. It ensures agent work on specific issues takes place in isolated branches under `.worktrees/issue-NNN` without dirtying or interfering with the main working directory.
---
## Safety & Security Contracts
1. **Path Isolation:** All worktrees created by this skill are strictly scoped within `.worktrees/issue-NNN`.
2. **Branch Management:** Automatically creates feature branches named `issue-NNN` (or a custom branch name) off a specified base branch (default: `main`).
3. **Safe Cleanup:** Worktree removal requires explicit call; supports `--force` flag for uncommitted change cleanup.
---
## Usage catalog
### Create, List, and Remove Worktrees
- **Helper Script:** `plugins/dev-utils/skills/issue-worktree-agent/scripts/issue_worktree_manage.py`
- **CLI Usage:**
```bash
# Create a worktree for Issue #123:
python3 plugins/dev-utils/skills/issue-worktree-agent/scripts/issue_worktree_manage.py create --issue 123 --base main
# List active worktrees:
python3 plugins/dev-utils/skills/issue-worktree-agent/scripts/issue_worktree_manage.py list
# Remove a worktree for Issue #123:
python3 plugins/dev-utils/skills/issue-worktree-agent/scripts/issue_worktree_manage.py remove --issue 123
```
---
## Python API Interface
```python
from plugins.dev_utils.skills.issue_worktree_agent.scripts.issue_worktree_manage import (
create_worktree,
list_worktrees,
remove_worktree,
)
# Create worktree
res = create_worktree(issue_number=123, branch_name="fix-issue-123", base_branch="main")
# List worktrees
worktrees = list_worktrees()
# Remove worktree
remove_worktree(issue_number=123, force=False)
```

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!