worktree-tidy SKILL.md skillA

worktree-tidy from adonis0123/adonis-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add adonis0123/adonis-skills/worktree-tidy@v1.0.0

Pins v1.0.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
adonis0123/adonis-skills
Path
skills/worktree-tidy/SKILL.md
Versions recorded
2
Latest version
v1.0.0, committed Oct 18, 2026
First version recorded
Oct 15, 2026
Size
8,168 bytes
Repository stars
4
License
MIT

Find and remove stale git worktrees across one or many repositories: prune records of worktrees whose folder is gone, report every linked worktree with its idle days, uncommitted changes and pull/merge request state (GitHub, cnb.cool, GitLab), and remove clean ones the user confirms (idle by default, with an explicit recent-only exception), keeping their branches unless the request is merged or closed. Use when the user asks, in any language, to clean up, list, audit or prune git worktrees, or…

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 Tidy

Keep the number of git worktrees down without losing work. Read [references/glossary.md](references/glossary.md) first and use its terms in reports.

`TIDY=<this skill's directory>/scripts/worktree_tidy.py` is the engine (Python 3.9+, standard library only). It decides what is Stale from facts; you show the report, the user chooses, the script removes and checks again before each removal.

## Hard rules

- Remove only what the script reports as `removable`, and only after the user confirms the list. Exception: the user may explicitly choose hand-removal of a worktree whose `blockers` is exactly `["recent"]`; pass `--allow-recent` only for those paths. This bypasses only the idle threshold, never any other Blocker, alone or combined with `recent`. The script still re-assesses blockers and checks dirty and non-regenerable ignored files immediately before removal. `remove` without `--yes` is a dry run; pass `--yes` only after confirmation.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add adonis0123/adonis-skills/worktree-tidy@sha256:1b8ef3f4b1d2a150

The line at the top of this page pins the label v1.0.0, 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_cylngvex4fgvxl57.svg)](https://markdownregistry.com/a/art_cylngvex4fgvxl57)

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

Versions

The registry has recorded 2 versions of this file, between Oct 15, 2026 and Oct 18, 2026, about one every 3 days.

versioncommittedcommitsizeaudit
v1.0.0 latest2026-10-18 09d3be9 8,168 BA view · diff
v1.0.02026-10-15 0684c7a 4,673 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 (8168 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

adonis0123/adonis-skills · 4 stars · license MIT · pushed 2026-10-20 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_cylngvex4fgvxl57
GET https://markdownregistry.com/api/v1/resolve?ref=adonis0123/adonis-skills/worktree-tidy
GET https://markdownregistry.com/api/v1/blob/1b8ef3f4b1d2a15023066c9e4ca0d2313173270a77a979107c8d3c5e14eda458

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 adonis0123/adonis-skills

agent-symlink-init SKILL.md skill
adonis0123/adonis-skills · .agents/skills/agent-symlink-init/SKILL.md · Initialize or migrate agent-skill symlinks in any repository. Use when a project needs `.claude/skills` linked to…
git:20260914.ce3286b · audit A · 4 stars
code-inspector-init SKILL.md skill
adonis0123/adonis-skills · .agents/skills/code-inspector-init/SKILL.md · Set up or migrate code-inspector-plugin across modern frontend frameworks. Use when you need click-to-source IDE…
git:20260914.ce3286b · audit A · 4 stars
commit SKILL.md skill
adonis0123/adonis-skills · .agents/skills/commit/SKILL.md · Generate read-only emoji-prefixed Conventional Commit messages or create focused local commits from staged changes or a…
git:20260923.3e02ac9 · audit A · 4 stars
copywriting SKILL.md skill
adonis0123/adonis-skills · .agents/skills/copywriting/SKILL.md · When the user wants to write, rewrite, or improve marketing copy for any page — including homepage, landing pages…
v1.0.0 · audit A · 4 stars
css-tailwind-styling SKILL.md skill
adonis0123/adonis-skills · .agents/skills/css-tailwind-styling/SKILL.md · Expert guidance for writing clean, performant CSS and Tailwind CSS. Use when creating styles, designing components…
git:20260923.15ed8b9 · audit A · 4 stars
lingui-best-practices SKILL.md skill
adonis0123/adonis-skills · .agents/skills/lingui-best-practices/SKILL.md · Implement or review Lingui message macros, catalog configuration, locale loading, and React or JavaScript integration…
git:20260923.15ed8b9 · audit A · 4 stars
lingui-workflow SKILL.md skill
adonis0123/adonis-skills · .agents/skills/lingui-workflow/SKILL.md · Choose and troubleshoot extract, translation-check, compile, and catalog-manifest commands in an existing Lingui…
git:20260905.8844a98 · audit A · 4 stars
repo-skill-creator SKILL.md skill
adonis0123/adonis-skills · .agents/skills/repo-skill-creator/SKILL.md · Create and maintain repository skills for adonis-skills. Use when users ask to scaffold a new skill under skills/…
git:20260923.15ed8b9 · audit A · 4 stars
weekly-report SKILL.md skill
adonis0123/adonis-skills · .agents/skills/weekly-report/SKILL.md · Generate structured weekly reports from Git commit history across one or multiple repositories. Use when you need…
v1.1.1 · audit A · 4 stars
AGENTS.md AGENTS.md file
adonis0123/adonis-skills · AGENTS.md
git:20260317.cd91537 · audit B · 4 stars
CLAUDE.md CLAUDE.md file
adonis0123/adonis-skills · CLAUDE.md
git:20261018.53d2379 · audit A · 4 stars
DESIGN.md DESIGN.md file
adonis0123/adonis-skills · DESIGN.md · Catalog site for Nika's agent skills. Near-white warm gray pages, one fresh leaf-green accent used on small areas, and…
alpha · audit A · 4 stars

Every file in adonis0123/adonis-skills

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