# Finishing A Development Branch

> 所有任务完成、所有测试通过后使用。验证测试 → 提供合并/PR/保留/丢弃四个选项 → 执行选择。触发词：完成了、做完了、合并、提交PR、收尾、finish、merge。

- **Type:** Skill
- **Install:** `agentstack add skill-yinqd3-workbuddy-skills-finishing-a-development-branch`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [yinqd3](https://agentstack.voostack.com/s/yinqd3)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [yinqd3](https://github.com/yinqd3)
- **Source:** https://github.com/yinqd3/workbuddy-skills/tree/main/superpowers/finishing-a-development-branch

## Install

```sh
agentstack add skill-yinqd3-workbuddy-skills-finishing-a-development-branch
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 完成开发分支

## 步骤 1：验证测试

运行项目测试套件。测试失败 → 停止，不能继续。

```bash
# Python
pytest -q

# Node/TS
pnpm test
```

如果失败，必须先用 `systematic-debugging` 修复。

## 步骤 2：确定基准分支

```bash
git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null
git branch --show-current
```

## 步骤 3：呈现四个选项

```
实现完成。你想怎么做？

1. 合并回 （本地）
2. 推送并创建 Pull Request
3. 保留分支现状（我稍后处理）
4. 丢弃这些工作

选哪个？
```

## 步骤 4：执行选择

### 选项 1：本地合并

```bash
git checkout 
git pull
git merge 
# 运行测试
git branch -d 
```

### 选项 2：推送 + PR

```bash
git push -u origin 
gh pr create --title "" --body "## 概要
- 
- 

## 测试计划
- [ ] "
```

### 选项 3：保留现状

报告："保留分支 ``。稍后可以继续。"

### 选项 4：丢弃

**先确认：**
```
这将永久删除:
- 分支 
- 自  以来的所有提交

输入"discard"确认。
```

等待精确输入 "discard" 后再执行：
```bash
git checkout 
git branch -D 
```

## 常见错误

- 提供选项前不验证测试 → 总是先验证
- 合并不拉取最新基准 → 总是先 `git pull`
- PR 未合并就删分支 → 等待合并确认

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [yinqd3](https://github.com/yinqd3)
- **Source:** [yinqd3/workbuddy-skills](https://github.com/yinqd3/workbuddy-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-yinqd3-workbuddy-skills-finishing-a-development-branch
- Seller: https://agentstack.voostack.com/s/yinqd3
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
