git-post-merge-cleanup SKILL.md skillA
git-post-merge-cleanup from mishrashardendu22/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add mishrashardendu22/agent-skills/git-post-merge-cleanup@git:20260917.f685a8fPins git:20260917.f685a8f in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- mishrashardendu22/agent-skills
- Path
.agents/skills/git-post-merge-cleanup/SKILL.md- Versions recorded
- 5
- Latest version
- git:20260917.f685a8f, committed Sep 17, 2026
- First version recorded
- Aug 31, 2026
- Size
- 6,848 bytes
- Repository stars
- 6
- License
- MIT
Rules, safety constraints, and automated procedures for post-merge local Git cleanup, synchronizing main with GitHub, deleting stale local branches, and performing deep repository garbage collection (git gc, reflog expire, prune) strictly upon explicit human user request.
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 Post-Merge Repository & Branch Cleanup Skill This skill defines the official protocol and step-by-step procedures for cleaning up local development branches, pulling the latest `main` from GitHub after a Pull Request is merged, and executing deep Git repository garbage collection and maintenance. --- ## 1. Strict Permission & Trigger Boundary > [!IMPORTANT] > **EXPLICIT HUMAN INSTRUCTION ONLY**: > AI agents MUST NEVER run local branch deletions, branch resets, or aggressive garbage collection automatically. > This workflow is triggered **ONLY** when the human user explicitly instructs the agent to perform cleanup (e.g. *"clean up local branches"*, *"sync main and do git gc"*, *"I merged the PR, please clean up"*). > > The typical workflow is: > 1. AI agent finishes work on a feature branch, passes pre-commit checks, commits locally, pushes branch, and opens a PR targeting `main`. > 2. The human user reviews and merges the Pull Request on GitHub. > 3. The human user prompts the AI agent to perform local cleanup. > 4. The AI agent executes the safe post-merge cleanup runbook below. --- ## 2. Core Cleanup Principles …
Read the whole file at its exact version.
How to install
mdr add mishrashardendu22/agent-skills/git-post-merge-cleanup@sha256:075f653f4d5a6e9fThe line at the top of this page pins the label git:20260917.f685a8f, 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_mszgtb6ljyeack65)
6 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Aug 31, 2026 and Sep 17, 2026, about one every 4 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260917.f685a8f latest | 2026-09-17 | f685a8f | 6,848 B | A | view · diff |
| git:20260914.d848bee | 2026-09-14 | d848bee | 4,700 B | A | view · diff |
| git:20260914.e06e21c | 2026-09-14 | e06e21c | 4,342 B | A | view · diff |
| git:20260905.a73d7ea | 2026-09-05 | a73d7ea | 4,327 B | A | view · diff |
| git:20260831.0978e7e | 2026-08-31 | 0978e7e | 6,621 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 (6848 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
mishrashardendu22/agent-skills · 6 stars · license MIT · pushed 2026-09-17 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_mszgtb6ljyeack65 GET https://markdownregistry.com/api/v1/resolve?ref=mishrashardendu22/agent-skills/git-post-merge-cleanup GET https://markdownregistry.com/api/v1/blob/075f653f4d5a6e9fec45dbe0ea2822cdea98c39c222c0edc632c328623d3cfd5
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 mishrashardendu22/agent-skills
Every file in mishrashardendu22/agent-skills