git-cleanup SKILL.md skillA
git-cleanup from mostafa-drz/claude-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add mostafa-drz/claude-skills/git-cleanup@git:20260911.22df896Pins git:20260911.22df896 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- mostafa-drz/claude-skills
- Path
code/git-cleanup/SKILL.md- Versions recorded
- 3
- Latest version
- git:20260911.22df896, committed Sep 11, 2026
- First version recorded
- Feb 23, 2026
- Size
- 8,522 bytes
- Repository stars
- 5
- License
- MIT
Identifies and removes stale git branches, orphaned remote branches, and unused worktrees. Cross-references with Linear (or other integrations) to check issue status before deleting. Use when your repos have accumulated stale branches and you want to tidy up.
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
# Git Cleanup Intelligently identify and remove stale branches, orphaned remotes, and unused worktrees — with confirmation at every step. ## Preferences Before starting, use the `Read` tool to read `~/.claude/skills/git-cleanup/preferences.md`. If the file does not exist, treat as "no preferences set". ## Context _On startup, use Bash to detect: working directory, git repos in cwd (directories with `.git`), and current git branch. Skip any that fail._ ## Command routing Check `$ARGUMENTS`: - **`help`** → display help then stop - **`config`** → interactive setup then stop - **`reset`** → delete `~/.claude/skills/git-cleanup/preferences.md`, confirm, stop - **anything else** → parse as natural language or repo path, then run ### Help ``` Git Cleanup — Smart cleanup of stale branches, remotes, and worktrees Usage: /git-cleanup Auto-detect repos, clean everything /git-cleanup ai-assemble Clean a specific repo /git-cleanup just local branches Natural language — local only /git-cleanup dry run Show what would be deleted /git-cleanup skip linear Skip Linear issue checks …
Read the whole file at its exact version.
How to install
mdr add mostafa-drz/claude-skills/git-cleanup@sha256:c123468117cbed9aThe line at the top of this page pins the label git:20260911.22df896, 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.
[](https://markdownregistry.com/a/art_tvby3w4ievzjjre5)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Feb 23, 2026 and Sep 11, 2026, about one every 100 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260911.22df896 latest | 2026-09-11 | 22df896 | 8,522 B | A | view · diff |
| git:20260224.494a754 | 2026-02-24 | 494a754 | 8,401 B | A | view · diff |
| git:20260223.bffe3ae | 2026-02-23 | bffe3ae | 8,497 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (8522 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
mostafa-drz/claude-skills · 5 stars · license MIT · pushed 2026-10-26 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_tvby3w4ievzjjre5 GET https://markdownregistry.com/api/v1/resolve?ref=mostafa-drz/claude-skills/git-cleanup GET https://markdownregistry.com/api/v1/blob/c123468117cbed9ae6a2826ad9789092edffc338e46c1fcc959f5ef571832be3
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 mostafa-drz/claude-skills
Every file in mostafa-drz/claude-skills