finishing-a-development-branch SKILL.md skillA

finishing-a-development-branch from jnmetacode/superpowers-zh is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add jnmetacode/superpowers-zh/finishing-a-development-branch@v1.0.0

Pins v1.0.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
jnmetacode/superpowers-zh
Path
skills/finishing-a-development-branch/SKILL.md
Versions recorded
6
Latest version
v1.0.0, committed Sep 7, 2026
First version recorded
May 12, 2026
Size
8,238 bytes
Repository stars
8,348
License
MIT

当实现完成、所有测试通过、需要决定如何集成这份工作时使用.

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

# 收尾一个开发分支

## 概述

**核心原则:** 验证测试 → 检测环境 → 展示选项 → 执行选择 → 清理。

**开始时宣告:** "我正在使用 finishing-a-development-branch 技能来收尾这份工作。"

## 步骤 1:验证测试

运行项目的完整测试套件(`npm test` / `cargo test` / `pytest` / `go test ./...`)。

**如果测试失败**,报告失败并停下——菜单是在测试全绿之后才出现的:

```
测试失败(<N> 个)。完成之前必须先修:

[展示失败详情]
```

**如果测试通过:** 继续步骤 2。

## 步骤 2:检测环境

```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)
# 现在就捕获 —— 此刻还在工作区里面。步骤 5 会切换目录,
# 而清理(步骤 6)需要这个值
WORKTREE_PATH=$(git rev-parse --show-toplevel)
```

这决定了展示哪种菜单、以及清理方式:

| 状态 | 菜单 | 清理 |
|------|------|------|
| `GIT_DIR == GIT_COMMON`(普通仓库) | 标准 3 个选项 | 无 worktree 可清理 |
| `GIT_DIR != GIT_COMMON`,命名分支 | 标准 3 个选项 | 按来源判断(见步骤 6) |
| `GIT_DIR != GIT_COMMON`,分离 HEAD | 收敛为 2 个选项(不含合并) | 由外部管理——原地别动 |

## 步骤 3:确定基础分支

基础分支就是这份工作从哪儿分出来的那个——通常在计划里、对话里,或者分支的 upstream 里已经写明了。如果还不知道,就问:"这个分支是从 <你的最佳猜测> 分出来的,对吗?"**合并之前先确认:合并到错误的基础分支,代价很高。**

## 步骤 4:展示选项

**普通仓库和命名分支 worktree——精确展示这 3 个选项:**

```
实现已完成。你想怎么做?

1. 本地合并回 <base-branch>
2. 推送并创建 Pull Request
3. 保留分支不动(我稍后自己处理)

选哪个?
```

**分离 HEAD——精确展示这 2 个选项:**

```
实现已完成。你当前处于分离 HEAD(由外部管理的工作区)。

1. 作为新分支推送并创建 Pull Request
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add jnmetacode/superpowers-zh/finishing-a-development-branch@sha256:1038c93b17fcbcf1

The line at the top of this page pins the label v1.0.0, 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.

Badge

mdr badge

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

5 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 6 versions of this file, between May 12, 2026 and Sep 7, 2026, about one every 24 days.

versioncommittedcommitsizeaudit
v1.0.0 latest2026-09-07 ab9f1c2 8,238 BA view · diff
v1.0.02026-08-07 3f6ffd5 7,416 BA view · diff
v1.0.02026-08-07 a662295 7,740 BA view · diff
v1.0.02026-06-19 cf5f6da 7,239 BA view · diff
v1.0.02026-06-16 952fc29 7,313 BA view · diff
git:20260512.473b0112026-05-12 473b011 7,237 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the 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 (8238 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

jnmetacode/superpowers-zh · 8,348 stars · license MIT · pushed 2026-10-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_rliycdmvne5ws46u
GET https://markdownregistry.com/api/v1/resolve?ref=jnmetacode/superpowers-zh/finishing-a-development-branch
GET https://markdownregistry.com/api/v1/blob/1038c93b17fcbcf116a2c251a3e03be489703643b51e208e4fc08e71500e1e5a

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 jnmetacode/superpowers-zh

AGENTS.md AGENTS.md file
jnmetacode/superpowers-zh · AGENTS.md
git:20260510.a9e02b5 · audit B · 8,348 stars
CLAUDE.md CLAUDE.md file
jnmetacode/superpowers-zh · CLAUDE.md
git:20260907.3437ce2 · audit A · 8,348 stars
brainstorming SKILL.md skill
jnmetacode/superpowers-zh · skills/brainstorming/SKILL.md · 在任何创造性工作之前必须使用此技能——创建功能、构建组件、添加功能、修改行为,或筹划任何新东西,无论是软件还是软件之外(一场分享、一门生意、一次装修)。
v1.0.0 · audit A · 8,348 stars
chinese-code-review SKILL.md skill
jnmetacode/superpowers-zh · skills/chinese-code-review/SKILL.md · 中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。
v1.0.0 · audit A · 8,348 stars
chinese-commit-conventions SKILL.md skill
jnmetacode/superpowers-zh · skills/chinese-commit-conventions/SKILL.md · 中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog…
v1.0.0 · audit A · 8,348 stars
chinese-documentation SKILL.md skill
jnmetacode/superpowers-zh · skills/chinese-documentation/SKILL.md · 中文文档排版参考——中英文空格、全半角标点、术语保留、链接格式、中文文案排版指北约定。仅在用户显式 /chinese-documentation 时调用,不要根据上下文自动触发。
v1.0.0 · audit A · 8,348 stars
chinese-git-workflow SKILL.md skill
jnmetacode/superpowers-zh · skills/chinese-git-workflow/SKILL.md · 国内 Git 平台配置参考——Gitee、Coding.net、极狐 GitLab、CNB 的 SSH/HTTPS/凭据/CI 接入差异与镜像同步配置。仅在用户显式 /chinese-git-workflow…
v1.0.0 · audit A · 8,348 stars
diagnosing-superpowers SKILL.md skill
jnmetacode/superpowers-zh · skills/diagnosing-superpowers/SKILL.md · 当一次 superpowers 会话出了问题、你的人类伙伴想知道原因时使用——重复劳动、无视计划、磕磕绊绊、结果质量差、某个技能没触发、"太慢了"、"为什么这么贵"、"它到底在干什么"——或者想给 superpowers 维护者整理一份…
v1.0.0 · audit A · 8,348 stars
dispatching-parallel-agents SKILL.md skill
jnmetacode/superpowers-zh · skills/dispatching-parallel-agents/SKILL.md · 当面对 2 个以上可以独立进行、无共享状态或顺序依赖的任务时使用
v1.0.0 · audit A · 8,348 stars
executing-plans SKILL.md skill
jnmetacode/superpowers-zh · skills/executing-plans/SKILL.md · 当你要在当前会话里亲自担任实现者执行一份实现计划时使用——你的人类伙伴选择了内联执行,或者没有可用的子智能体工具
v1.0.0 · audit A · 8,348 stars
mcp-builder SKILL.md skill
jnmetacode/superpowers-zh · skills/mcp-builder/SKILL.md · 在构建 MCP 服务器或 MCP 工具时使用 —— 系统化的生产级 MCP 构建方法论,覆盖工具设计、错误处理、传输层选择与测试,让 AI 助手连接外部能力
v1.0.0 · audit A · 8,348 stars
receiving-code-review SKILL.md skill
jnmetacode/superpowers-zh · skills/receiving-code-review/SKILL.md · 收到代码审查反馈后、实施建议之前使用,尤其当反馈不明确或技术上有疑问时——需要技术严谨性和验证,而非敷衍附和或盲目执行
v1.0.0 · audit A · 8,348 stars

Every file in jnmetacode/superpowers-zh

Other files named finishing-a-development-branch

finishing-a-development-branch SKILL.md 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 · 302,424 stars
finishing-a-development-branch SKILL.md 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,862 stars
finishing-a-development-branch SKILL.md skill
ganyuanran/aegis · skills/finishing-a-development-branch/SKILL.md · Use when verified work needs integration or cleanup of an existing task-created branch/worktree, or the user explicitly…
git:20261010.8d5b88e · audit A · 1,371 stars
finishing-a-development-branch SKILL.md 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 · 827 stars
finishing-a-development-branch SKILL.md skill
xu123-bob/baize · agent/skills/superpowers/5.1.0/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:20260912.5e131e8 · audit A · 581 stars
finishing-a-development-branch SKILL.md 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 · 427 stars
finishing-a-development-branch SKILL.md skill
ibrahim-3d/orchestrator-supaconductor · 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:20260327.87e3ef5 · audit A · 380 stars
finishing-a-development-branch SKILL.md 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 · 253 stars

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