finishing-a-development-branch
Skill1.3k starsChanged 7 months agoMITView on GitHub
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.
123 other projects use a version of this.
Trending
Quiet since October.about the whole repository
Most recently taken up by
- andreymudri/fleetmatestheir own version, first seen Oct 5, 2026
- LayneChai/superpowers-dshtheir own version, first seen Oct 3, 2026
- HanksChen0110/skillstheir own version, first seen Oct 3, 2026
- JameMy0001/antigravity-skills-hubtheir own version, first seen Oct 2, 2026
- lsy041015/orchestratheir own version, first seen Oct 2, 2026
- Wenaixi/dsh-superpowertheir own version, first seen Oct 1, 2026
Who's talking about GanyuanRan/Aegis
- hashgraph-online/awesome-codex-plugins“Add Aegis - agentic skills framework and software development methodology”GitHub · May 7, 2026 · 2 reactions
- sudosubin/agents.nix“agent-skills.github.ganyuanran.aegis: 2.10.7 → 2.12.1”GitHub · Oct 3, 2026
- ProSkillsMD/proskills“[Candidate] ganyuanran/aegis/skills/communicating-concisely - communicating-concisely”GitHub · Oct 2, 2026
- ProSkillsMD/proskills“[Candidate] ganyuanran/aegis/skills/brainstorming - brainstorming”GitHub · Oct 2, 2026
- ProSkillsMD/proskills“[Candidate] ganyuanran/aegis/skills/anti-entropy-governance - anti-entropy-governance”GitHub · Oct 2, 2026
The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 15
Talked about on GitHub (15 times).
On GitHub · 15
- May 7, 2026Add Aegis - agentic skills framework and software development methodology — hashgraph-online/awesome-codex-plugins2 reactions · 2 comments
- Oct 3, 2026agent-skills.github.ganyuanran.aegis: 2.10.7 → 2.12.1 — sudosubin/agents.nix0 reactions
- Oct 2, 2026[Candidate] ganyuanran/aegis/skills/communicating-concisely - communicating-concisely — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 2, 2026[Candidate] ganyuanran/aegis/skills/brainstorming - brainstorming — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 2, 2026[Candidate] ganyuanran/aegis/skills/anti-entropy-governance - anti-entropy-governance — ProSkillsMD/proskills0 reactions · 1 comment
10 more on GitHub
- Sep 30, 20260.1.22 在 DSH 0.2.0(会话格式 v4)下写入被拒:每轮对话结束抛未捕获的 promise rejection(附最小修复) — TelosmaYLX/dsh-session-notify0 reactions · 1 comment
- Sep 27, 2026agent-skills.github.ganyuanran.aegis: init at 2.10.7 — sudosubin/agents.nix0 reactions
- Sep 14, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions · 1 comment
- Aug 29, 2026Misclassifies missing Git executable as plugin repository failure — dshplugin/dsh-plugin-hub0 reactions · 1 comment
- Aug 24, 2026fix: use explicit HTTPS URLs for GitHub plugin installs — dshplugin/dsh-plugin-hub0 reactions · 3 comments
- Aug 22, 2026[Audit] aegis — SoberReport-AI/DeepGuard0 reactions · 19 comments
- Jun 15, 2026weekly sync — 2026-06-15 — norbert-pap/claudebert0 reactions
- May 25, 2026Add Aegis — composio-community/awesome-claude-plugins0 reactions
- May 25, 2026Add Aegis — filipecalegario/awesome-vibe-coding0 reactions
- May 25, 2026Add skill: GanyuanRan/Aegis — VoltAgent/awesome-agent-skills0 reactions
Used with
Projects with it also use diagnosing-superpowers, testing-anti-patterns and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
obraSkilldiagnosing-superpowers
Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.
Also in 6 projects that use this
MicrosoftSkilltesting-anti-patterns
Use when writing or changing tests, adding mocks, or tempted to add test-only methods to production code - prevents testing mock behavior, production pollution with test-only methods, and mocking without understanding dependencies
Also in 5 projects that use this
MorningStar0709Skillchinese-git-workflow
Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".
Also in 4 projects that use this
shibit-netSkillchinese-code-review
中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
shibit-netSkillchinese-commit-conventions
中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
MorningStar0709Skillworkflow-runner
Run an agency-orchestrator style YAML workflow inside the current Trae conversation by simulating or coordinating multiple roles. Use when the user provides a `.yaml` or `.yml` workflow, asks for multi-role collaboration, says things like “用多个角色一起评审这个 PRD”“多角色协作”“先生成工作流再执行”“让产品经理、架构师、QA 一起看一下”, or wants roles such as product manager, architect, reviewer, or QA to work together. Supports layered execution, role prompting, variable interpolation, document-backed inputs, and parallel steps only when the current environment has a clear subagent mapping. Do not use for ordinary implementation plans, simple code changes, or tasks already covered by `writing-plans`, `executing-plans`, `subagent-driven-development`, or single-purpose review/debug skills.
Also in 4 projects that use this
- +1 more from shibit-net
Other versions123 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 123
- obra/superpowers★ 314ksame name
- jnMetaCode/superpowers-zh★ 8.3ksame name
- openai/plugins★ 7.3ksame name
- microsoft/FluidFramework★ 4.9ksame name
- coco-research/coco★ 437same name
- Ibrahim-3d/orchestrator-supaconductor★ 380same name
- totvs/engpro-advpl-tlpp-skills★ 138same name
- Houseofmvps/ultraship★ 123same name
- LayneChai/superpowers-dsh★ 102same name
- shibit-net/xuanji-community★ 93same name
113 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- anti-entropy-governanceSkill
- brainstormingSkill
- communicating-conciselySkill
- dispatching-parallel-agentsSkill
- establishing-project-contextSkill
- executing-plansSkill
- first-principles-reviewSkill
- goal-framingSkill
- long-task-continuationSkill
- receiving-code-reviewSkill
- recording-architecture-decisionsSkill
- requesting-code-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- ui-ux-governanceSkill
- update-aegisSkill
- using-aegisSkill
- using-git-worktreesSkill
- verification-before-completionSkill
- writing-plansSkill
- writing-skillsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 10 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 114 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 20
Read the task's TaskStartSnapshot and current repository state.
- Distinctive: line 27
Stop on conflicts, detached state, failed verification, dirty/untracked state in a cleanup target, or unknown ownership.
- Very specific: line 33
If no task-created branch/worktree exists and integration was not requested, skip this workflow: report the local task commit plus Task …
- Distinctive: line 39
Run the smallest current-authority test set that proves the completed task.
- Distinctive: line 45
When a task branch actually needs disposition, present only applicable choices:
- Distinctive: line 49
keep the branch for later integration.
- Distinctive: line 60
Verify the target checkout is safe, switch to the recorded base, merge without an implicit pull, and rerun verification on the merged …
- Distinctive: line 77
After exact confirmation, remove only the named clean task-owned worktree, then the named branch.
- Distinctive: line 82
Use evidence matching the merge strategy:
- Distinctive: line 90
Never delete a branch merely because a PR was opened or a similarly named commit exists.
- Very specific: line 98
remove/unregister the worktree first with git worktree remove <exact-path>.
- Distinctive: line 100
verify the exact path no longer exists.
- Distinctive: line 101
only then delete an integrated or exactly confirmed branch.
- Very specific: line 102
read back branch refs, HEAD, and repository status.
- Very specific: line 104
Do not use routine --force, global git worktree prune, wildcard deletion, or cleanup of resources absent from the task ownership record.
“Common” is measured: kept by at least 6 in 10 of the 114 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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,
skip this workflow: report the local task commit plus Task clean and
Repository clean; do not invent merge/PR ceremony.
Step 2: Fresh Verification
Run the smallest current-authority test set that proves the completed task. If it fails, preserve all work and return to diagnosis. Do not present the branch as ready.
Step 3: Choose the Authorized Outcome
When a task branch actually needs disposition, present only applicable choices:
- merge into the recorded base locally;
- push and create/update a PR;
- keep the branch for later integration;
- discard the exact task-owned branch/worktree.
Push, PR, remote deletion, release, and force operations require explicit user authorization. Discard requires a fresh, exact typed confirmation naming branch, worktree path, and commits/delta to lose. Generic agreement is insufficient.
Step 4: Execute Without Hidden Mutation
Local merge
Verify the target checkout is safe, switch to the recorded base, merge without an implicit pull, and rerun verification on the merged result. If integration or verification fails, preserve both histories and stop.
Push or PR
Push only the authorized task branch and create/update the PR with summary and fresh test evidence. PR creation does not itself prove merge and does not require the temporary worktree to remain.
Keep branch
Retain the branch. Remove a clean task-created temporary worktree by default; retain it only for an explicit ongoing-checkout need and report why.
Discard
After exact confirmation, remove only the named clean task-owned worktree, then the named branch. If either differs from the confirmation, stop and ask again.
Step 5: Prove Integration Before Branch Deletion
Use evidence matching the merge strategy:
- merge/fast-forward: prove the task tip is an ancestor of the recorded base;
- squash/rebase: use fresh PR merge metadata plus strategy-appropriate patch
equivalence (
git cherryfor rebased commits; stable patch-id or bounded changed-path/tree comparison for squashes), not an ancestor-only test; - unmerged/open PR: keep the branch unless discard was exactly confirmed.
Never delete a branch merely because a PR was opened or a similarly named commit exists.
Step 6: Cleanup in Dependency Order
For a clean task-owned resource:
- move to another safe registered checkout; never remove the current working directory;
- remove/unregister the worktree first with
git worktree remove <exact-path>; - read back
git worktree list --porcelain; - verify the exact path no longer exists;
- only then delete an integrated or exactly confirmed branch;
- read back branch refs,
HEAD, and repository status.
Do not use routine --force, global git worktree prune, wildcard deletion, or
cleanup of resources absent from the task ownership record. On Windows, Git may
unregister a worktree while its directory remains locked: re-check registration
and the exact resolved path, remove only a proven task-owned clean residual when
safe, otherwise retain it and report the lock/path. Never widen deletion scope.
Final Git Receipt
Report:
- current branch and commit SHA/message, or the reason no commit exists;
Task clean: yes|noandRepository clean: yes|noindependently;- branch/worktree created, removed, or retained, with evidence/reason;
- integration evidence and any remaining user action.
Task clean means no uncommitted task-owned delta remains. Repository clean
means no staged, unstaged, or untracked repository state remains.
This is a local Git receipt, not authoritative completion or merge truth beyond the evidence read back.
Integration
Called only when branch/worktree integration or explicit lifecycle handling is
in scope. Pairs with using-git-worktrees and
verification-before-completion.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

