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.
git clone --depth 1 https://github.com/yunsii/wezdecknpx agentmods add skills/yunsii/wezdeck/worktree-recycleWrote 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/yunsii/wezdeck/worktree-recycle)<a href="https://agentmods.dev/skills/yunsii/wezdeck/worktree-recycle"><img src="https://agentmods.dev/badge/skills/yunsii/wezdeck/worktree-recycle/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/yunsii/wezdeck/worktree-recycle"><img src="https://agentmods.dev/badge/skills/yunsii/wezdeck/worktree-recycle.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.00086 | $0.01702 |
| Opus 5.5 | $0.00034 | $0.00681 |
| Sonnet 5.5 | $0.00017 | $0.00340 |
| Haiku 4.5 | $0.00009 | $0.00170 |
Grade A, and why
worktree-recycle 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 20d 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.
How it starts
The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Worktree recycle (platform skill — single source)
Who runs: the coding agent, not the human.
Never tell the user to copy-paste worktree-task recycle as the primary path — load this skill and run the co-located runner.
Hard git ops stay in worktree-task recycle (dirty check, optional delivered gate, allowlisted clean, branch align to slug, reset --hard origin/HEAD, sync origin/<branch>).
This skill owns soft preflight and readiness hints. Project bootstrap is not part of recycle — the next task initializes what it needs.
When to load / run
| User intent (examples) | You do |
|---|---|
| 重置开发分支 / 重置工作站 / recycle / 收尾换下一轮 | preflight (optional glance) → recycle -y |
| 重置并开始做 X / recycle with task X | same, pass --task "X" |
| 只要看看能不能重置 | preflight or recycle --dry-run only |
| 主 worktree / primary / master 对齐最新主分支 | same recycle path on the primary checkout |
wezdeck standing close-out: worktree round delivered onto origin/HEAD / 「合入主分支后收尾」 |
same recycle path — default, not optional |
Skip / redirect:
- Short-lived
task-*/hotfix-*end-of-life →worktree-task reclaim/Ctrl+k g r(not this skill) - Pure
git resetwithout this skill → do not bypass; still use the runner
wezdeck policy: worktrees = isolation; delivery = direct mainline (no PR).
Invariant: idle dev/* tip must equal origin/HEAD. After landing on mainline (or when mainline moved while the workstation sat idle), immediately recycle — do not leave dev/* behind. See docs/workspaces.md → Maintenance loop.
Resolve TOOL_HOME (first hit wins)
1. $WORKTREE_RECYCLE_HOME
2. directory of this SKILL.md if run.sh is co-located
3. $HOME/.agents/skills/worktree-recycle
4. $WEZDECK_ROOT/skills/worktree-recycle
5. $HOME/github/wezterm-config/skills/worktree-recycle
TOOL_HOME=… # dir that contains run.sh
R="$TOOL_HOME/run.sh"
Install / refresh discovery (idempotent, from wezdeck):
What ships with it
4 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.
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.
- 20d ago Changed 157bffa0c247
- 26d ago Changed · -3 lines · +9 tokens per session e99d50e3abac
- 1mo ago First seen · 135 lines · 77 tokens per session scan A 6abb83b92b64
worktree-recycle is a skill published in the GitHub repository yunsii/wezdeck (5 stars, last pushed yesterday), licensed MIT. It adds 86 tokens to every session and 1,702 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-13.
Other skills, from other repositories
author-contributions
Identify all files a specific author contributed to on a branch vs its upstream, tracing code through renames. Use when asked who edited what, what code an author contributed, or to audit authorship before a merge. This skill should be run as a subagent — it performs many git operations and returns a concise table.
commit
Commit staged or unstaged changes with an AI-generated commit message that matches the repository's existing commit style. Use when the user asks to 'commit', 'commit changes', 'create a commit', 'save my work', or 'check in code'.
release-announcement
Write a release announcement — changelog, blog post, in-app note, or social post — that leads with user impact, names the audience, and includes upgrade/migration steps without filler.
github-pr-workflow
Prepare a GitHub pull request from a feature branch — branch hygiene, commit shape, title/body, verification notes, screenshots for UI work, and replies to review comments.
contributor-onboarding
Help a new contributor get productive on this checkout - inspect sync state against main, build, run the repository's exact verification gate, and produce a local what's-new digest. Never fetches, pulls, or modifies a dirty tree on its own. Explicit-only.
codew-release-qa-sweep
Use before claiming Codewhale release work is done: run the full gate sweep and list the manual QA targets.