finish-branch SKILL.md skillA
This file is byte-identical to the first copy the registry indexed. Same content hash, so the same checks give both the same grade.
finish-branch from khaledsaeed18/dotclaude is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add khaledsaeed18/dotclaude/finish-branch@git:20260921.3a2f779Pins git:20260921.3a2f779 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- khaledsaeed18/dotclaude
- Path
skills/version-control/finish-branch/SKILL.md- Versions recorded
- 4
- Latest version
- git:20260921.3a2f779, committed Sep 21, 2026
- First version recorded
- Jun 9, 2026
- Size
- 4,711 bytes
- Repository stars
- 5
- License
- MIT
Wrap up a completed development branch by verifying tests pass, detecting the workspace state, then presenting clear merge / PR / keep / discard options and executing the chosen one safely, including correct worktree and branch cleanup. Use when implementation is done, tests should be green, and you need to integrate or put away the work.
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
Bring a finished branch to a clean conclusion: confirm the work actually passes, figure out what kind of workspace you're in, offer the user a small set of concrete options, and carry out their choice without losing anything. The shape is always the same: verify, detect, present, execute, clean up. ## Step 1: Verify tests before offering anything Run the project's full test suite (`npm test` / `cargo test` / `pytest` / `go test ./...` as appropriate). If anything fails, stop here: show the failures and say the work can't be merged or turned into a PR until they pass. Don't present the options menu over a red suite. (The `verify-completion` skill is the standard: run it, read the output, then proceed.) ## Step 2: Detect the workspace state ```bash GIT_DIR=$(cd "$(git rev-parse --git-dir)" 2>/dev/null && pwd -P) GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" 2>/dev/null && pwd -P) ``` - `GIT_DIR == GIT_COMMON`: a normal repo checkout; no worktree to clean up. - `GIT_DIR != GIT_COMMON`, on a named branch: a linked worktree; cleanup depends on who created it (Step 5). - `GIT_DIR != GIT_COMMON`, detached HEAD, externally managed; offer the reduced menu and don't clean up. …
Read the whole file at its exact version.
How to install
mdr add khaledsaeed18/dotclaude/finish-branch@sha256:5361794bdbfa606cThe line at the top of this page pins the label git:20260921.3a2f779, 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_t7beek6hn6qtk3fi)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Jun 9, 2026 and Sep 21, 2026, about one every 35 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260921.3a2f779 latest | 2026-09-21 | 3a2f779 | 4,711 B | A | view · diff |
| git:20260921.6c17ffd | 2026-09-21 | 6c17ffd | 4,412 B | A | view · diff |
| git:20260921.36d6832 | 2026-09-21 | 36d6832 | 4,454 B | A | view · diff |
| git:20260609.13bdd5a | 2026-06-09 | 13bdd5a | 4,457 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 (4711 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
khaledsaeed18/dotclaude · 5 stars · license MIT · pushed 2026-11-05 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_t7beek6hn6qtk3fi GET https://markdownregistry.com/api/v1/resolve?ref=khaledsaeed18/dotclaude/finish-branch GET https://markdownregistry.com/api/v1/blob/5361794bdbfa606c72880099cdd977aa431434d5a11b9d5442489815ab47d140
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 khaledsaeed18/dotclaude
Every file in khaledsaeed18/dotclaude