create-worktree-from-issue

create-worktree-from-issue is a skill for Claude Code, Codex from cboone/agent-harness-plugins. It costs 109 tokens per session (1,588 once invoked), scanned A, original, MIT.

A workflow for finding a GitHub issue and creating a separate Git worktree, branch, and tmux window for it. A GitHub issue is a tracked task or problem in a repository.

In plain words
What is it for?
Use it to begin work from an issue number or description, including assigning and labeling an open issue.
Why use it?
It connects the issue's details to an isolated coding session, making it easier to start the right work.

Skill for Claude CodeCodex

Part of the create-worktree-from-issue plugin — 1 skill shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cboone/agent-harness-plugins/create-worktree-from-issue
Any agent
npx skills add cboone/agent-harness-plugins --skill create-worktree-from-issue
Clone the repo
git clone --depth 1 https://github.com/cboone/agent-harness-plugins

Made for: Claude Code, Codex.

Or install create-worktree-from-issue, the plugin that ships this one along with the rest of its 1 skill.

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 create-worktree-from-issue

README.md
[![agentmods](https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/create-worktree-from-issue.svg)](https://agentmods.dev/skills/cboone/agent-harness-plugins/create-worktree-from-issue)
Your own site
<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/create-worktree-from-issue"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/create-worktree-from-issue.svg" alt="Measured on agentmods" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,588 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00109 $0.01588
Opus 5 $0.00055 $0.00794
Sonnet 5 $0.00022 $0.00318
Haiku 4.5 $0.00011 $0.00159

Measured 3d ago against content hash 5c6491b88bfc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-worktree-from-issue 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 3d ago.

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/create-worktree-from-issue/skills/create-worktree-from-issue/SKILL.md · 135 lines

How it starts

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

Create Worktree from Issue

Find a GitHub issue and create a dedicated worktree + tmux window via workmux add.

Workflow

1. Find the Issue

The user provides either an issue number or descriptive text.

By number:

gh issue view NUMBER --json number,title,labels,body,state

By text (fuzzy search):

gh issue list --search "USER_TEXT" --state all --json number,title,labels,state --limit 10

If the search returns exactly one result, proceed automatically with that issue without asking for additional confirmation.

If the search returns multiple results, present them to the user and ask which one to use.

If no results, try broadening the search or ask the user to refine their query.

2. Mark Issue In Progress

If the issue is open, signal that work is starting. Skip this step for closed issues.

Self-assign:

gh issue edit NUMBER --add-assignee @me

Ensure the label exists, then add it:

gh label create "in progress" --description "Work is actively being done" --color FBCA04 2> /dev/null || true
gh issue edit NUMBER --add-label "in progress"

The gh label create command is safe to run even if the label already exists — 2>/dev/null suppresses the "already exists" error and || true ensures a zero exit code so the subsequent command always runs. This ensures the label is available before gh issue edit --add-label attempts to use it, since gh does not auto-create labels.

Self-assignment is idempotent — safe to re-run if the assignee already exists.

If any command fails, warn the user but continue with worktree creation. Status marking is best-effort and must never block the primary workflow.

The "in progress" label is intentionally retained beyond worktree creation and local implementation. It represents active issue lifecycle state until the related pull request is merged or the user explicitly abandons the effort. Do not remove it as part of creating the worktree.

3. Build the Branch Name

Read the full file on GitHub · 135 lines

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. 3d ago First seen · 135 lines · 109 tokens per session scan A 5c6491b88bfc

Subscribe to this mod's changes

create-worktree-from-issue is a skill published in the GitHub repository cboone/agent-harness-plugins (2 stars, last pushed 1mo ago), licensed MIT. It adds 109 tokens to every session and 1,588 once invoked, about $0.0005 per session on Opus 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-08-31.