Install
$ agentstack add skill-ondrejdrapalik-worktree-management-skills-wt-cleanup-loop ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Watch For Merged PRs
wt cleanup-loop $ARGUMENTS
Run it in the background. It prints one line per tick, so the user sees closures as they happen without the loop blocking you.
wt cleanup-loop # 5m tick, 3h duration
wt cleanup-loop 2m 1h
wt cleanup-loop 10m # 10m tick, 3h duration
Why this is a shell loop, not an agent loop
The check is gh pr list per open worktree. Pure lookup, no judgement. An earlier version woke a background subagent every tick to run it, which cost tokens on every sweep and added a failure mode (an agent mis-transcribing the safety rules) to a task that has no ambiguity in it. The loop lives in wt-cleanup-loop, which calls wt clear --merged-only and sleeps.
Two consequences worth passing on to the user:
- It only closes merged PRs. Closed-without-merge often means the work is
still wanted, so it is left alone; wt clear without the flag sweeps those too.
- Nothing is deleted. Checkouts and branches stay in
~/_wtand git; `wt open
brings any of them back. Deleting is wt-remove`.
Do not build your own polling wrapper. That re-adds the cost this design removed.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: OndrejDrapalik
- Source: OndrejDrapalik/worktree-management-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.