github-issue-worktree-agent

github-issue-worktree-agent is a skill for Claude Code from richfrem/agent-plugins-skills. It costs 84 tokens per session (703 once invoked), scanned A, original, MIT.

A manager for Git worktrees assigned to GitHub issues. A worktree is a separate working folder linked to a Git branch, so issue work can be isolated from the main checkout.

In plain words
What is it for?
Use it to create, list, or remove isolated worktrees for issue branches, with folders based on issue numbers.
Why use it?
It prevents changes for one issue from dirtying or interfering with the main working directory.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 plugins/agent-scaffolders/scripts/audit_skill.py plugins/dev-utils/skills/github-issue-worktree-agent --mode source.

Part of the dev-utils plugin — 19 skills shipped together

Good fit Use it to create, list, or remove isolated worktrees for issue branches, with folders based on issue numbers.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills
agentmods
npx agentmods add skills/richfrem/agent-plugins-skills/github-issue-worktree-agent

Made for: Claude Code.

Or install dev-utils, the plugin that ships this one along with the rest of its 19 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for github-issue-worktree-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/github-issue-worktree-agent/github.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/github-issue-worktree-agent)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/github-issue-worktree-agent"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/github-issue-worktree-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for github-issue-worktree-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/github-issue-worktree-agent"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/github-issue-worktree-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 703 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.00703
Opus 5.5 $0.00034 $0.00281
Sonnet 5.5 $0.00017 $0.00141
Haiku 4.5 $0.00008 $0.00070

Measured 17d ago against content hash 5622b9ecde4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

github-issue-worktree-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/issue_worktree_manage.py, tests/test_issue_worktree.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dev-utils/skills/github-issue-worktree-agent/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub Issue Worktree Agent (github-issue-worktree-agent)

Provisions and manages isolated git worktrees (.worktrees/issue-NNN) for clean issue execution branches.

Contents

Critical Constraints

  • Scope Boundary: USE ONLY for worktree lifecycle operations. DO NOT USE for PR lifecycles (use github-issue-pr-lifecycle-agent) or issue logging (use github-issue-agent).
  • Standard Location: Worktrees must strictly reside within .worktrees/issue-NNN relative to repository root.
  • Safe Teardown: Check git status prior to removal; never force-prune uncommitted work without confirmation.
  • Branch Tracking: Branch naming must consistently map to the issue identifier (issue-NNN).

Quick start

# Provision isolated worktree for Issue #123
python3 plugins/dev-utils/skills/github-issue-worktree-agent/scripts/issue_worktree_manage.py \
  create --issue 123 --base main

# List active worktrees
python3 plugins/dev-utils/skills/github-issue-worktree-agent/scripts/issue_worktree_manage.py list

# Clean up worktree after resolution
python3 plugins/dev-utils/skills/github-issue-worktree-agent/scripts/issue_worktree_manage.py \
  remove --issue 123

Workflow

  1. Phase 1: Workspace Inspection: Check for existing worktree directories or branch name collisions.
  2. Phase 2: Worktree Provisioning: Spawn isolated worktree at .worktrees/issue-NNN tracking trunk.
  3. Phase 3: Implementation Context: Guide agent execution to occur within the isolated worktree directory.
  4. Phase 4: Teardown & Pruning: Confirm committed state, prune worktree directory, and clean local branch.

Verification

# Verify active worktree state
python3 plugins/dev-utils/skills/github-issue-worktree-agent/scripts/issue_worktree_manage.py list

# Audit skill compliance
python3 plugins/agent-scaffolders/scripts/audit_skill.py plugins/dev-utils/skills/github-issue-worktree-agent --mode source

Read the full file on GitHub · 71 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago Changed · +23 lines 5622b9ecde4b
  2. 1mo ago First seen · 48 lines · 84 tokens per session scan A 3f33c0478ab0

Subscribe to this mod's changes

github-issue-worktree-agent is a skill published in the GitHub repository richfrem/agent-plugins-skills (7 stars, last pushed yesterday), licensed MIT. It adds 84 tokens to every session and 703 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.

Related

Other skills, from other repositories

release

Cut and publish a full stable NAC release after main, release-PR, and publication CI pass. Use when a maintainer asks for a stable version bump, tag, or GitHub Release. Never use for release candidates; NAC RC releases are automated.

arcee-ai/nac · 53 tokens

triage

Triage a GitHub repository's open issues by finding exact duplicates, rejecting evidenceably off-base requests, requesting concrete clarification, applying only existing labels, and opening a linked root-cause issue when multiple reports share one underlying invariant failure. Use when a maintainer asks to triage…

arcee-ai/nac · 65 tokens

factory-handoff

Hand one exact agent-ready ticket to the central Factory runtime over the configured SSH forced-command boundary. Use when an operator asks to hand off an existing ticket or a prose request instead of implementing it in the current session.

watt-mind/factory · 47 tokens

gh-find-prs

Survey open Codewhale PRs and triage each for mergeability and disposition against the real landing branch.

Hmbown/CodeWhale · 27 tokens

release-revoke

Revoke or rollback a pi-agent-dashboard release: delete the GitHub Release, remove the git tag locally and on origin, deprecate the npm version (npm unpublish is blocked after 72h), and optionally revert the release commit. Use when the user says "revoke release", "rollback release", "delete release", "unpublish…

BlackBeltTechnology/pi-agent-dashboard · 85 tokens

ap-work-group-manager

Divide one accepted work group only when at least two useful workers can have non-overlapping ownership.

Spielewoy/autoprompt-skill · 24 tokens