worktree-assign

worktree-assign is a skill for Claude Code from ishida-supsys/oretachi. It costs 98 tokens per session (742 once invoked), scanned A, original, MIT.

A worktree assignment guide for creating a Git worktree and sending a coding task to an AI agent. A worktree is a separate working directory that lets a branch be worked on independently.

In plain words
What is it for?
Use it to check repositories and existing worktrees, prepare a task prompt, select an optional workgroup, and launch the work asynchronously.
Why use it?
It helps choose the right repository, avoid duplicate tasks, clarify vague requests, and give the assigned agent enough context to start correctly.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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/ishida-supsys/oretachi/worktree-assign
Any agent
npx skills add ishida-supsys/oretachi --skill worktree-assign
Clone the repo
git clone --depth 1 https://github.com/ishida-supsys/oretachi

Made for: Claude Code.

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 worktree-assign

README.md
[![agentmods](https://agentmods.dev/badge/skills/ishida-supsys/oretachi/worktree-assign.svg)](https://agentmods.dev/skills/ishida-supsys/oretachi/worktree-assign)
Your own site
<a href="https://agentmods.dev/skills/ishida-supsys/oretachi/worktree-assign"><img src="https://agentmods.dev/badge/skills/ishida-supsys/oretachi/worktree-assign.svg" alt="Measured on agentmods" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 742 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.1 $0.00098 $0.00742
Opus 5 $0.00049 $0.00371
Sonnet 5 $0.00020 $0.00148
Haiku 4.5 $0.00010 $0.00074

Measured 5d ago against content hash 69962a9b0dd8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

worktree-assign 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 5d 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.

src-tauri/skills-home/worktree-assign/SKILL.md · 38 lines

What it actually says

worktree-assign スキル

新しい作業を受け取り、ワークツリーを作ってエージェントに割り当てる。

手順

  1. oretachi_list_repository で登録リポジトリと branchNamePattern を確認する。
  2. oretachi_get_worktree_status で、同じ作業のワークツリーが既に無いか確認する。 description やブランチ名が近いものがあれば、新規作成せずそちらを使うようユーザーに提案する。
  3. 作業内容が曖昧なら、着手前に 1〜2 点だけ確認する(対象リポジトリ・スコープ)。
  4. ユーザーが追加先ワークグループを指定している場合のみ、oretachi_list_workgroups で 一覧を取得して該当する name(または id)を確認する。 指定が無ければ引数を省略する。この場合の追加先は UI で現在選択中のワークグループで、 isDefault: true のグループとは限らない。どこに入ったかを断定して報告しないこと。
  5. oretachi_add_task にプロンプトを渡す。oretachi 側が ワークツリー作成 → セットアップスクリプト実行 → エージェント起動まで非同期で行う。 追加先を指定する場合は workgroup_name(表示名)か workgroup_id を併せて渡す。 一致しない名前を渡すとエラーになり、タスクは作成されない。

プロンプトの書き方

oretachi_add_task に渡すプロンプトは、割り当て先のエージェントがそのまま読む指示になる。

  • 対象リポジトリ名を明記する
  • 何を達成すれば完了かを 1 行で書く
  • 既知の制約(触ってはいけない箇所、参照すべきファイル)があれば添える

禁止事項

  • 重複するワークツリーを確認せずに作らない
  • 作業内容が全く不明なまま oretachi_add_task を呼ばない
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. 5d ago First seen · 38 lines · 98 tokens per session scan A 69962a9b0dd8

Subscribe to this mod's changes

worktree-assign is a skill published in the GitHub repository ishida-supsys/oretachi (2 stars, last pushed yesterday), licensed MIT. It adds 98 tokens to every session and 742 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.