Home / ganyuanran / aegis · skills/finishing-a-development-branch/SKILL.md · GitHub

finishing-a-development-branch skillA

finishing-a-development-branch is agent-read markdown (skill) from ganyuanran/aegis: Use when verified work needs integration or cleanup of an existing task-created branch/worktree, or the user explicitly requests merge, PR, or branch lifecycle handling..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Finishing a Development Branch

## Overview

Integration choice and checkout lifetime are separate. Verify first, mutate only
task-owned resources, then prove what was removed or retained.

**Core principle:** fresh evidence -> authorized integration -> ownership-aware
cleanup -> Git/path readback.

**Announce at start:** explain which branch/worktree lifecycle is being closed.

## Step 1: Environment and Ownership Detection

Read the task's `TaskStartSnapshot` and current repository state. Record:

- root, `HEAD`, branch/detached state, upstream divergence, and active Git ops;
- staged/unstaged/untracked paths and the task-owned delta;
- `git worktree list --porcelain`;
- branch/worktree creator, task ownership, base branch, and cleanup trigger.

Stop on conflicts, detached state, failed verification, dirty/untracked state in
a cleanup target, or unknown ownership. Do not infer the base from the names
`main` or `master`; use task records, repository authority, or explicit user
direction. Never auto-stash, reset, clean, pull, rebase, amend, force-push, or
bypass hooks.

If no task-created branch/worktree exists and integration was not requested,
…

Read the whole file at its exact version.

How to install

Latest version
mdr add ganyuanran/aegis/finishing-a-development-branch@git:20260809.f62395b
Exact content
mdr add ganyuanran/aegis/finishing-a-development-branch@sha256:995a2a17fdb5dc33

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

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

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260809.f62395b latest2026-08-09 f62395b 5,222 BA view · diff
git:20260731.818d42f2026-07-31 818d42f 5,211 BA view · diff
git:20260723.88b8ec92026-07-23 88b8ec9 4,204 BA view · diff
git:20260510.b9bb3172026-05-10 b9bb317 4,202 BA view · diff
git:20260430.0f6a91b2026-04-30 0f6a91b 4,250 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, 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 (5222 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

ganyuanran/aegis · 1,280 stars · license MIT · pushed 2026-09-24 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_aavh53fukbcbte7h
GET https://markdownregistry.com/api/v1/resolve?ref=ganyuanran/aegis/finishing-a-development-branch
GET https://markdownregistry.com/api/v1/blob/995a2a17fdb5dc33573db5e7d60c49babb4f2ce4f245fef7ab87048520cda775

Your agent 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.

More from ganyuanran/aegis

AGENTS.md agents
ganyuanran/aegis · AGENTS.md
git:20260813.0c73270 · audit A · 1,280 stars
CLAUDE.md claude
ganyuanran/aegis · CLAUDE.md
git:20260813.0c73270 · audit A · 1,280 stars
anti-entropy-governance skill
ganyuanran/aegis · skills/anti-entropy-governance/SKILL.md · Use when touching retiring old logic, collapsing duplicate owners, removing fallbacks, or…
git:20260830.8e0cee3 · audit A · 1,280 stars
brainstorming skill
ganyuanran/aegis · skills/brainstorming/SKILL.md · Use when defining ambiguous or high-complexity new features, product behavior, UI/component design, architecture…
git:20260916.9a51c7a · audit A · 1,280 stars
communicating-concisely skill
ganyuanran/aegis · skills/communicating-concisely/SKILL.md · Use when the user asks for caveman mode, fewer tokens, brief responses, compressed communication, or otherwise…
git:20260723.88b8ec9 · audit A · 1,280 stars
dispatching-parallel-agents skill
ganyuanran/aegis · skills/dispatching-parallel-agents/SKILL.md · Use when facing 2+ independent tasks without a written plan, with no conflicting shared mutable state or sequential…
git:20260920.8265b5c · audit A · 1,280 stars
establishing-project-context skill
ganyuanran/aegis · skills/establishing-project-context/SKILL.md · Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or…
git:20260809.f62395b · audit A · 1,280 stars
executing-plans skill
ganyuanran/aegis · skills/executing-plans/SKILL.md · Use when executing a written implementation plan across sessions or with review checkpoints. Small or single-slice…
git:20260828.f7ae3a7 · audit A · 1,280 stars
first-principles-review skill
ganyuanran/aegis · skills/first-principles-review/SKILL.md · Use when asked for first-principles or Occam's-razor review, or when high-risk decisions involve competing constraints…
git:20260905.878cac9 · audit A · 1,280 stars
goal-framing skill
ganyuanran/aegis · skills/goal-framing/SKILL.md · Use when the user explicitly sets an Aegis goal with /aegis-goal, Aegis goal:, or asks to define goal, success…
git:20260723.88b8ec9 · audit A · 1,280 stars
long-task-continuation skill
ganyuanran/aegis · skills/long-task-continuation/SKILL.md · Use when a task is multi-step, may span context resets or sessions, uses subagents, or risks losing state before…
git:20260916.9a51c7a · audit A · 1,280 stars
receiving-code-review skill
ganyuanran/aegis · skills/receiving-code-review/SKILL.md · Use when receiving code review feedback before implementing suggestions, especially when feedback is unclear, risky…
git:20260723.88b8ec9 · audit A · 1,280 stars

Every file in ganyuanran/aegis

Other files named finishing-a-development-branch

finishing-a-development-branch skill
obra/superpowers · skills/finishing-a-development-branch/SKILL.md · Use when implementation is complete, all tests pass, and you need to decide how to integrate the work
git:20260812.b36e082 · audit A · 291,204 stars
finishing-a-development-branch skill
jnmetacode/superpowers-zh · skills/finishing-a-development-branch/SKILL.md · 当实现完成、所有测试通过、需要决定如何集成这份工作时使用
v1.0.0 · audit A · 8,203 stars
finishing-a-development-branch skill
a5c-ai/babysitter · library/methodologies/superpowers/skills/finishing-a-development-branch/SKILL.md · Use when implementation is complete, all tests pass, and you need to decide how to integrate the work.
git:20260601.da7723a · audit A · 1,809 stars
finishing-a-development-branch skill
coco-research/coco · skills/finishing-a-development-branch/SKILL.md · Use when implementation is done and tests pass and the user must choose to merge locally, open a PR, keep the branch…
git:20260914.e75f220 · audit A · 478 stars
finishing-a-development-branch skill
jamditis/claude-skills-journalism · superjawn/skills/finishing-a-development-branch/SKILL.md · Presents options for merge, PR, or cleanup. Use when work is complete, tests pass, and you must decide how to integrate.
git:20260818.3e0e3a8 · audit A · 401 stars
finishing-a-development-branch skill
ed3dai/ed3d-plugins · plugins/ed3d-plan-and-execute/skills/finishing-a-development-branch/SKILL.md · Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides…
git:20260616.eb1d79c · audit A · 249 stars
finishing-a-development-branch skill
arbiterforge/codearbiter · plugins/ca/skills/finishing-a-development-branch/SKILL.md · The terminal step of /feature and /sprint. Routed to once commit-gate has cleared, to decide the branch's fate — merge…
git:20260917.8f29537 · audit A · 145 stars
finishing-a-development-branch skill
arbiterforge/codearbiter · plugins/ca-pi/routines/finishing-a-development-branch/SKILL.md · The terminal step of /feature and /sprint. Routed to once commit-gate has cleared, to decide the branch's fate — merge…
git:20260917.8f29537 · audit A · 145 stars

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