worktree-cleanup SKILL.md skillA

worktree-cleanup from figelwump/toastty is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add figelwump/toastty/worktree-cleanup@git:20261010.76cfc50

Pins git:20261010.76cfc50 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
figelwump/toastty
Path
examples/skills/worktree-cleanup/SKILL.md
Versions recorded
10
Latest version
git:20261010.76cfc50, committed Oct 10, 2026
First version recorded
Sep 26, 2026
Size
5,001 bytes
Repository stars
14
License
MIT

Use when the user asks which pull requests or task worktrees are ready to merge, asks to merge specific ready PRs, or asks to clean up merged worktrees, branches, and their Toastty workspaces or task spaces. Run it from outside the task workspaces.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Worktree Cleanup

Report which task PRs are ready, merge the ones the user names, and clean up task
worktrees whose PR has merged. Run it from a workspace other than the tasks being
cleaned up, usually the repository's main checkout.

Resolve `scripts/worktree-status.py` relative to this loaded package. Run it with
`--repo <any checkout of the repository>`; it needs `git`, an authenticated `gh`,
and, for cleanup, `TOASTTY_CLI_PATH` pointing at a Toastty with `workspace.list`.
Cleanup refuses to run from a workspace-scoped session, because that session sees
only some workspaces. A project session that launched tasks with `worktree-create`
is scoped. Ask the user whether to clear this session's scope with
`"$TOASTTY_CLI_PATH" session scope clear`, or to run cleanup from a new session;
do not clear it without their answer.

## Report status

Run `worktree-status.py` and summarize its verdicts:

- **ready**: open, not draft, GitHub reports it mergeable with required checks
  met, no check failing or still running, the worktree is clean at exactly
  the PR head, and the description lists no merge prerequisites.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add figelwump/toastty/worktree-cleanup@sha256:88d07f50def87061

The line at the top of this page pins the label git:20261010.76cfc50, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_2m4dlknpnofz4smz.svg)](https://markdownregistry.com/a/art_2m4dlknpnofz4smz)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 10 versions of this file, between Sep 26, 2026 and Oct 10, 2026, about one every 2 days.

versioncommittedcommitsizeaudit
git:20261010.76cfc50 latest2026-10-10 76cfc50 5,001 BA view · diff
git:20261008.bb441e42026-10-08 bb441e4 4,999 BA view · diff
git:20261007.f9129292026-10-07 f912929 5,452 BA view · diff
git:20261007.f26298d2026-10-07 f26298d 5,014 BA view · diff
git:20261006.eb5f81f2026-10-06 eb5f81f 5,017 BA view · diff
git:20261002.8ae7f622026-10-02 8ae7f62 4,629 BA view · diff
git:20260929.5033df02026-09-29 5033df0 4,616 BA view · diff
git:20260926.d991ead2026-09-26 d991ead 4,453 BA view · diff
git:20260926.0ae54352026-09-26 0ae5435 3,956 BA view · diff
git:20260926.28539772026-09-26 2853977 3,502 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5001 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

figelwump/toastty · 14 stars · license MIT · pushed 2026-10-22 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_2m4dlknpnofz4smz
GET https://markdownregistry.com/api/v1/resolve?ref=figelwump/toastty/worktree-cleanup
GET https://markdownregistry.com/api/v1/blob/88d07f50def87061b6984ff7d65080ca8a374c457f1ad9c8d50a5530b1063539

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from figelwump/toastty

toastty-computer-use SKILL.md skill
figelwump/toastty · .agents/skills/toastty-computer-use/SKILL.md · Use this skill when a Toastty GUI bug, fix, or uncertainty needs human-like remote Computer Use interaction beyond the…
git:20260504.5e543a4 · audit A · 14 stars
toastty-debug SKILL.md skill
figelwump/toastty · .agents/skills/toastty-debug/SKILL.md · Use this skill when debugging Toastty bugs, crashes, regressions, logs, runtime state, ambiguous running instances…
git:20260605.48a3b8d · audit A · 14 stars
toastty-dev-run SKILL.md skill
figelwump/toastty · .agents/skills/toastty-dev-run/SKILL.md · Use this skill when building, launching, or validating a live Toastty dev/debug/test app instance with runtime…
git:20260906.d5f2578 · audit A · 14 stars
toastty-diagnostics SKILL.md skill
figelwump/toastty · .agents/skills/toastty-diagnostics/SKILL.md · Use this skill when listing recent Toastty diagnostics submissions, fetching, saving, or analyzing a submitted Toastty…
git:20260821.466cb0c · audit A · 14 stars
toastty-publish SKILL.md skill
figelwump/toastty · .agents/skills/toastty-publish/SKILL.md · Use this skill when publishing an existing Toastty release artifact to GitHub Releases, using already-authored release…
git:20260713.8e1e71a · audit A · 14 stars
toastty-release SKILL.md skill
figelwump/toastty · .agents/skills/toastty-release/SKILL.md · Use this skill when preparing a Toastty app release build, including Ghostty artifact installation, signed DMG…
git:20260713.8e1e71a · audit A · 14 stars
toastty-verify SKILL.md skill
figelwump/toastty · .agents/skills/toastty-verify/SKILL.md · Use this skill when selecting, running, or reporting Toastty verification after code, project, dependency, build, test…
git:20261010.7a86468 · audit A · 14 stars
AGENTS.md AGENTS.md file
figelwump/toastty · AGENTS.md
git:20261017.48aae0e · audit A · 14 stars
worktree-create SKILL.md skill
figelwump/toastty · examples/skills/worktree-create/SKILL.md · Create a named Toastty task workspace and Git worktree, nested as a task space under the current session, for planning…
git:20261018.8b14e79 · audit A · 14 stars
worktree-done SKILL.md skill
figelwump/toastty · examples/skills/worktree-done/SKILL.md · Use when the user says they are done reviewing or testing this worktree or task space and want its pull request merged…
git:20261017.9a6a8fd · audit A · 14 stars
toastty-capabilities SKILL.md skill
figelwump/toastty · plugins/toastty/skills/toastty-capabilities/SKILL.md · Use this skill when a user asks an agent to orchestrate, inspect, automate, control, coordinate, or present work inside…
git:20261018.8b14e79 · audit A · 14 stars
toastty-open-markdown SKILL.md skill
figelwump/toastty · plugins/toastty/skills/toastty-open-markdown/SKILL.md · Use this skill when you want to show the user a markdown file in Toastty for review, such as a plan, design doc, or…
git:20260802.e89d458 · audit A · 14 stars

Every file in figelwump/toastty

Other files named worktree-cleanup

worktree-cleanup SKILL.md skill
wpfleger96/ai-agent-rules · src/ai_rules/config/skills/worktree-cleanup/SKILL.md · Clean up stale git worktrees to reclaim disk space. Detects merged branches, deleted remotes, and abandoned worktrees…
v1.1.0 · audit A · 10 stars

Browse by kind, by grade A, or by owner.