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.
npx skills add ishida-supsys/oretachi --skill worktree-cleanupgit clone --depth 1 https://github.com/ishida-supsys/oretachiWrote 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.
[](https://agentmods.dev/skills/ishida-supsys/oretachi/worktree-cleanup)<a href="https://agentmods.dev/skills/ishida-supsys/oretachi/worktree-cleanup"><img src="https://agentmods.dev/badge/skills/ishida-supsys/oretachi/worktree-cleanup/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.
<a href="https://agentmods.dev/skills/ishida-supsys/oretachi/worktree-cleanup"><img src="https://agentmods.dev/badge/skills/ishida-supsys/oretachi/worktree-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00096 | $0.00924 |
| Opus 5.5 | $0.00038 | $0.00370 |
| Sonnet 5.5 | $0.00019 | $0.00185 |
| Haiku 4.5 | $0.00010 | $0.00092 |
Grade A, and why
worktree-cleanup 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 1mo 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.
What it actually says
worktree-cleanup スキル
ワークツリー追加先ディレクトリ配下のワークツリー群を棚卸しし、不要になったものを ユーザーの承認を得てから削除する。
手順
oretachi_get_worktree_statusで全ワークツリーを取得する。isHome: true(ホーム自身)とisRepository: true(リポジトリのルート)は対象外。- 各ワークツリーについて
oretachi_inspect_worktreeを呼び、dirtyCount/mergedInto/lastCommitAtを取得する。 - ターミナルが残っているものは
oretachi_list_terminalsで状態を確認し、 停止しているものはoretachi_read_terminalで末尾を読んで停止理由を把握する。 - 下記の判定基準で分類し、表にして提示する。根拠(マージ先・dirty 数・最終コミット)を必ず添える。
- ユーザーが承認したものだけ
oretachi_close_worktreeを呼ぶ。
判定基準
| 区分 | 条件 |
|---|---|
| 削除推奨 | 対象ブランチにマージ済み・dirtyCount == 0・ターミナルが停止済み |
| 要確認 | 未マージだが 30 日以上更新なし・dirtyCount == 0 |
| 残す | dirtyCount > 0、またはターミナルが動作中 |
提示フォーマット
区分 ワークツリー ブランチ 根拠
削除推奨 oretachi-k3p1 fix/tray-focus merged→main / dirty 0 / 12 日前
要確認 oretachi-z0f4 worktree/spike-ui 未マージ / 31 日更新なし
残す oretachi-jaqo worktree/home-... dirty 3
そのうえで「削除推奨の N 件を削除しますか?」と尋ね、返答を待つ。
禁止事項
- ユーザーの承認なしに
oretachi_close_worktreeを呼ばない dirtyCount > 0のワークツリーを削除推奨に入れない- 「要確認」を勝手に削除推奨へ格上げしない
- ホーム(
isHome: true)とリポジトリ(isRepository: true)を削除しようとしない(サーバー側でも拒否される)
削除時のオプション
oretachi_close_worktree には次を渡せる。ユーザーの意向を確認してから決める。
merge_to: 削除前にマージするターゲットブランチdelete_branch: ブランチも削除するか(マージ済みなら通常 true)force_branch: 未マージブランチを強制削除するか(既定は使わない)
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.
- 1mo ago First seen · 56 lines · 96 tokens per session scan A 73ff58a4a302
worktree-cleanup is a skill published in the GitHub repository ishida-supsys/oretachi (2 stars, last pushed 3d ago), licensed MIT. It adds 96 tokens to every session and 924 once invoked, about $0.0004 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-08-31.
Other skills, from other repositories
ccmanager-config
Set up, review, or repair a CCManager config — .ccmanager.json at a git repository root, or the global /.config/ccmanager/config.json. Use when someone wants ccmanager to launch a different agent CLI (codex, gemini, cursor-agent, copilot…), add command presets, run a command on session state changes or worktree…
ox-cli-pr-header
Emit and paste the SageOx credit line at the TOP of a pull-request description — the human-facing counterpart to the machine SageOx-Session: trailer. Run ox pr header at PR-creation time; it renders a thin, on-brand, dark/light-aware single line linking the session(s), plan(s), and discussion(s) that produced the…
ox-cli-init
Initialize SageOx for this repository.
intuitive-port-worktree
Port commits or patches between worktrees when explicitly requested; preserve the target branch and unrelated edits.
intuitive-squash
Safely rewrite noisy local history into reviewable commits, with aggressive or moderate plan choices, when the user explicitly asks to squash.
bump-version
Use when preparing a Sessions Chronicle release that needs synchronized version metadata updates and Flatpak build verification, especially when release notes are missing and need a reviewed draft.