🌿
DevOpsJavaScript

Finishing a Development Branch

by jnMetaCode

Finishing a Development Branch is a DevOps skill for Claude Code, published by jnMetaCode in superpowers-zh.

7.7K stars729 forkson jnMetaCode/superpowers-zhAdded 2026/08/15Repository updated 2026/08/12
agent-skillsagentic-codingai-codingchineseclaude-codecode-reviewcursorgemini-clikiromcpnpm-packageprompt-engineeringskillssuperpowerstddtrae
Install in seconds
Install Finishing a Development Branch
Copy Finishing a Development Branch into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/jnMetaCode/superpowers-zh/tree/main/skills/finishing-a-development-branch ~/.claude/skills/finishing-a-development-branch

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/jnMetaCode/superpowers-zh.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/finishing-a-development-branch/SKILL.md in jnMetaCode/superpowers-zh
Installs to
~/.claude/skills/finishing-a-development-branch
Collection
One of 20 skills cataloged from this repository
Category
DevOps798 skills

What Finishing a Development Branch does

Finishing a Development Branch walks an agent through verifying tests, detecting the repository environment, presenting integration options (merge, PR, or keep), executing the chosen action, and cleaning up worktrees where appropriate. Use it when implementation is complete and a branch needs to be integrated.

Finishing a Development Branch is cataloged under DevOps on DirSkills. Finishing a Development Branch comes from a repository tagged agent-skills, agentic-coding, ai-coding, chinese and claude-code.

Documentation

README

收尾一个开发分支

概述

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

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

步骤 1:验证测试

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

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

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

[展示失败详情]

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

步骤 2:检测环境

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)

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

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Finishing a Development Branch

  • What else does jnMetaCode publish alongside Finishing a Development Branch?

    Finishing a Development Branch is one of 20 skills that DirSkills catalogs from jnMetaCode/superpowers-zh, the repository it ships in. Its siblings there include Brainstorming, Chinese Code Review and Chinese Commit Conventions. Each one is a separate skill with its own page in this directory, installs the same way Finishing a Development Branch does, and is maintained by jnMetaCode in that same repository. The rest of the collection is listed on the jnMetaCode/superpowers-zh page.

  • How does Finishing a Development Branch compare to other DevOps skills?

    Finishing a Development Branch ranks #123 by stars among the 798 DevOps skills in this catalog. The most-starred ones next to it are Backend Patterns, API Connector Builder and Migration. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Finishing a Development Branch against them. Open each page to compare what they document and how they install.

More from jnMetaCode/superpowers-zh

Finishing a Development Branch is one of 20 skills cataloged on DirSkills from jnMetaCode/superpowers-zh.

See all 20 skills
💡
2w ago

Brainstorming

Brainstorming turns ideas into design specifications through collaborative questioning before any implementation work. Use it before creating features, building components, adding functionality, or modifying behavior to explore user intent, requirements, and design.
AI Engineering
7.7K729
💬
2w ago

Chinese Code Review

Chinese Code Review provides communication templates and priority labels (must-fix/suggest/for-reference) for giving code review feedback in Chinese teams, avoiding over-politeness or bluntness. Use when explicitly invoked via /chinese-code-review to conduct or guide a code review.
Quality
7.7K729
📝
2w ago

Chinese Commit Conventions

Chinese Commit Conventions adapts Conventional Commits for Chinese teams with type tables, commit message templates, breaking change rules, issue linking, and changelog generation configs. Use it to set up commitlint, husky, and commitizen for Chinese-language commit workflows.
Quality
7.7K729
📝
2w ago

Chinese Documentation

Chinese Documentation provides a style guide for Chinese technical documentation, covering spacing, punctuation, terminology, and bilingual API doc formats. Use it when a user explicitly invokes /chinese-documentation to improve the readability and consistency of Chinese technical writing.
Writing
7.7K729
🔧
2w ago

Chinese Git Workflow

Chinese Git Workflow documents configuration differences for Gitee, Coding.net, Jihu GitLab, and CNB, covering SSH/HTTPS credentials, remote mirror sync, and CI/CD integration. Use it when setting up or standardizing Git workflows for teams in China.
DevOps
7.7K729
🤖
2w ago

Dispatching Parallel Agents

Dispatching Parallel Agents delegates independent debugging tasks to parallel subagents with isolated contexts, so each can work on a separate problem without interference. Use it when multiple unrelated test failures or subsystem issues can be investigated concurrently.
AI Engineering
7.7K729