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/noobke-finish-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
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/finish-branch
What's inside
- Skill name
finish-branch- Description
- 实现完成、所有测试通过时使用 — 呈现结构化选项:merge/PR/保留/丢弃
- License
- MIT
- Instructions
- 83 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: missing
Files (1)
- SKILL.md
SKILL.md (first lines)
# Finish Branch — 完成开发分支 ## 概述 完成开发工作后,呈现清晰选项并执行选择的工作流。 **核心原则:** 验证测试 → 检测环境 → 呈现选项 → 执行选择 → 清理。 ## 流程 ### 步骤 1: 验证测试 ```bash npm test # 或其他测试命令 ``` **测试失败?** 停下来。不能继续。先修复。 ### 步骤 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) BRANCH=$(git branch --show-current) ``` ### 步骤 3: 确定 base 分支 ```bash git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null ``` ### 步骤 4: 呈现选项 ``` 实现完成。你想怎么做? 1. 合并回 <base-branch>(本地) 2. Push 并创建 Pull Request 3. 保持分支现状(我之后处理) 4. 丢弃这个工作 选哪个? ``` ### 步骤 5: 执行选择 **选项 1 — 本地合并:** ```bash git checkout <base-branch> git pull git merge <feature-branch> npm test # 验证合并结果 git worktree remove .worktrees/<branch-name> git branch -d <feature-branch> ``` **选项 2 — Push 并创建 PR:** ```bash git push -u origin <feature-branch> gh pr create --title "<title>" --body "<summary>" ``` **不要清理 worktree** — 用户需要它来做 PR 迭代。 **选项 3 — 保持现状:** 报告 "保留分支 <name>。Worktree 保留在 <path>。" **选项 4 — 丢弃:** 先确认。等用户输入 "discard" 确认后: ```bash git checkout <base-branch> git worktree remove .worktrees/<branch-name> git branch -D <feature-branch> ``` ## 记住 - 不要在有失败测试的情况下继续 - 不要未经确认就删除工作 - 不要在 worktree 内部运行 `git worktree remove`(要先 cd 到主仓库) - 清理后运行 `git worktree prune`
From noobke/reasonix-skills, MIT.
More from noobke/reasonix-skills
- 0.504score
gh-fix-ci
noobke
GitHub Actions CI 失败时使用 — 用 gh CLI 检查 PR checks、拉日志、总结失败原因、生成修复方案
SkillCFreshness: C★ 3Claude Code +9 - 0.504score
find-docs
noobke
需要任何库/框架/SDK 的最新文档时使用 — 用 Context7 CLI 拉取最新 API 参考和代码示例,不要靠训练数据
SkillCFreshness: C★ 3Claude Code +9 - 0.504score
planning-with-files
noobke
复杂多步骤任务时使用 — 用 task_plan.md + findings.md + progress.md 持久化追踪进度,不怕 /clear
SkillCFreshness: C★ 3Claude Code +9 - 0.501score
frontend-design
noobke
需要高质量前端界面时使用 — 精致的排版、间距、动效。适合 Landing Page、App UI、Demo 原型
SkillCFreshness: C★ 3Claude Code +9 - 0.501score
get-api-docs
noobke
写第三方 API/SDK 集成代码前使用 — 用 chub CLI 获取最新的 API 文档,不要依赖训练数据
SkillCFreshness: C★ 3Claude Code +9 - 0.501score
git-worktrees
noobke
开始需要隔离的功能开发时使用 — 用 git worktree 创建隔离工作空间,保护当前分支
SkillCFreshness: C★ 3Claude Code +9 - 0.501score
agent-browser
noobke
需要浏览器自动化时使用 — 导航、填表、截图、抓取、端到端测试
SkillCFreshness: C★ 3Claude Code +9 - 0.501score
api-client-gen
noobke
需要从 OpenAPI spec 生成类型安全的 API 客户端时使用
SkillCFreshness: C★ 3Claude Code +9 - 0.501score
autoresearch
noobke
需要自主目标驱动迭代时使用 — 修改→验证→保留/丢弃的自动循环,支持多种模式
SkillCFreshness: C★ 3Claude Code +9 - 0.501score
brainstorming
noobke
写代码前先对齐需求 — 探索用户意图、约束和方案,产出设计文档后才开始实现
SkillCFreshness: C★ 3Claude Code +9 - 0.501score
doc-writer
noobke
需要从代码生成文档时使用 — 自动生成 API 文档、README 或模块说明
SkillCFreshness: C★ 3Claude Code +9 - 0.501score
executing-plans
noobke
有实施计划时使用 — 加载计划、批判性审阅、逐任务执行、完成时汇报
SkillCFreshness: C★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 28, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/noobke/reasonix-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from noobke
- 0.504score
planning-with-files
noobke
复杂多步骤任务时使用 — 用 task_plan.md + findings.md + progress.md 持久化追踪进度,不怕 /clear
SkillCFreshness: C★ 3Claude Code +9 - 0.504score
gh-fix-ci
noobke
GitHub Actions CI 失败时使用 — 用 gh CLI 检查 PR checks、拉日志、总结失败原因、生成修复方案
SkillCFreshness: C★ 3Claude Code +9 - 0.504score
find-docs
noobke
需要任何库/框架/SDK 的最新文档时使用 — 用 Context7 CLI 拉取最新 API 参考和代码示例,不要靠训练数据
SkillCFreshness: C★ 3Claude Code +9 - 0.501score
db-migration
noobke
需要数据库迁移时使用 — 生成 migration 文件,含 up 和 down(回滚)
SkillCFreshness: C★ 3Claude Code +9 - 0.501score
get-api-docs
noobke
写第三方 API/SDK 集成代码前使用 — 用 chub CLI 获取最新的 API 文档,不要依赖训练数据
SkillCFreshness: C★ 3Claude Code +9 - 0.501score
frontend-design
noobke
需要高质量前端界面时使用 — 精致的排版、间距、动效。适合 Landing Page、App UI、Demo 原型
SkillCFreshness: C★ 3Claude Code +9
Cite this page
finish-branch skill. Agent Mart. https://agentmart.dev/skills/noobke-finish-branch (last updated 2026-10-24)