finishing-a-development-branch
当实现完成、所有测试通过、需要决定如何集成工作时使用——通过提供合并、PR 或清理等结构化选项来引导开发工作的收尾
Skill by eivmosn
Chalk Labs
Need help deploying finishing-a-development-branch?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/eivmosn-finishing-a-development-branch
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
finishing-a-development-branch- Description
- 当实现完成、所有测试通过、需要决定如何集成工作时使用——通过提供合并、PR 或清理等结构化选项来引导开发工作的收尾
- License
- MIT
- Instructions
- 272 lines in SKILL.md · view on GitHub
Before installing
- Instructions read files in your home folder (~/.ssh, ~/.aws…)
Files (1)
- SKILL.md
SKILL.md (first lines)
# 完成开发分支 ## 概述 通过提供清晰的选项并执行所选工作流来引导开发工作的收尾。 **核心原则:** 验证测试 → 检测环境 → 展示选项 → 执行选择 → 清理。 **开始时宣布:** "我正在使用 finishing-a-development-branch 技能来完成这项工作。" ## 流程 ### 步骤 1:验证测试 **在展示选项之前,验证测试通过:** ```bash # 运行项目的测试套件 npm test / cargo test / pytest / go test ./... ``` **如果测试失败:** ``` 测试失败(<N> 个失败)。必须先修复才能继续: [显示失败信息] 在测试通过之前无法进行合并/PR。 ``` 停止。不要继续到步骤 2。 **如果测试通过:** 继续步骤 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) ``` 这决定了展示哪种菜单、以及清理方式: | 状态 | 菜单 | 清理 | |------|------|------| | `GIT_DIR == GIT_COMMON`(普通仓库) | 标准 4 个选项 | 无 worktree 可清理 | | `GIT_DIR != GIT_COMMON`,命名分支 | 标准 4 个选项 | 按来源判断(见步骤 6) | | `GIT_DIR != GIT_COMMON`,分离 HEAD | 收敛 3 个选项(无合并) | 无清理(由外部管理) | ### 步骤 3:确定基础分支 ```bash # 尝试常见的基础分支 git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null ``` 或者询问:"这个分支是从 main 分出来的——对吗?" ### 步骤 4:展示选项 **普通仓库和命名分支 worktree —— 准确展示以下 4 个选项:** ``` 实现已完成。你想怎么做? 1. 在本地合并回 <base-branch> 2. 推送并创建 Pull Request 3. 保持分支现状(我稍后处理) 4. 丢弃这项工作 选哪个? ``` **分离 HEAD —— 准确展示以下 3 个选项:** ``` 实现已完成。你在分离 HEAD 上(由外部管理的工作区)。 1. 作为新分支推送并创建 Pull Request 2. 保持现状(我稍后处理) 3. 丢弃这项工作 选哪个? ``` **不要添加解释** —— 保持选项简洁。 ### 步骤 5:执行选择 #### 选项 1:本地合并 ```bash # 切到主仓库根目录,保证 CWD 安全 MAIN_ROOT=$(git -C "$(git rev-parse --git-common-dir)/.." rev-parse --show-toplevel) cd "$MAIN_ROOT" # 先合并 —— 在删除任何东西之前先验证合并成功 git checkout <base-branch> git pull git merge <feature-branch> # 在合并结果上验证测试 <test command> # 合并成功之后再:清理 worktree(步骤 6),然后删除分支 ``` 然后:清理 worktree(步骤 6),再删除分支: ```bash git branch -d <feature-branch> ``` #### 选项 2:推送并创建 PR ```bash
From eivmosn/workflow, MIT.
More from eivmosn/workflow
- 0.466score
dispatching-parallel-agents
eivmosn
当面对 2 个以上可以独立进行、无共享状态或顺序依赖的任务时使用
SkillCFreshness: CClaude Code +9 - 0.466score
executing-plans
eivmosn
当你有一份书面实现计划需要在单独的会话中执行,并设有审查检查点时使用
SkillCFreshness: CClaude Code +9 - 0.441score
frontend-design
eivmosn
Create distinctive, production-grade frontend interfaces with high design quality.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 17, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/eivmosn/workflow
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from eivmosn
- 0.466score
dispatching-parallel-agents
eivmosn
当面对 2 个以上可以独立进行、无共享状态或顺序依赖的任务时使用
SkillCFreshness: CClaude Code +9 - 0.466score
executing-plans
eivmosn
当你有一份书面实现计划需要在单独的会话中执行,并设有审查检查点时使用
SkillCFreshness: CClaude Code +9 - 0.441score
frontend-design
eivmosn
Create distinctive, production-grade frontend interfaces with high design quality.
SkillCFreshness: CClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get finishing-a-development-branch running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
finishing-a-development-branch skill. Agent Mart. https://agentmart.dev/skills/eivmosn-finishing-a-development-branch (last updated 2026-10-24)