Skip to content
Agent Workspaces
Skill

/merge

作業ブランチを main にマージして push し、ブランチと worktree を片付ける

From plugin
ccpocket
1.1k18 skills2 agents2 MCP

Claude Code

$ npx -y skills add K9i-0/ccpocket --skill merge --agent claude-code

SKILL.md

merge.SKILL.md
name: merge
description: 作業ブランチを main にマージして push し、ブランチと worktree を片付ける
allowed-tools: Bash(git:*)

ブランチマージ

作業ブランチを main に `--no-ff` でマージし、push して片付ける。

方針

  • 検証は必須にしない。マージ直前に足りないと判断したものだけ確認する(例: 未検証の変更、main との競合解消後の該当テスト)。作業中に通った検証は繰り返さない。
  • 共有の作業ディレクトリが他のブランチを checkout している場合は、そのブランチを切り替えない。main 用の一時 worktree でマージする。

手順

git fetch origin
git status --short   # 今回の作業の未コミット変更があればコミットする
git worktree add ../<repo>-merge main   # main を checkout できる場所があればそこを使う
cd ../<repo>-merge
git merge --ff-only origin/main
git merge --no-ff <branch>
git push origin main
  • コンフリクトは両側の意図を確認して解消し、影響範囲だけ検証する。判断できない場合だけユーザーに確認する。
  • 後片付け: `git worktree remove` で一時 worktree と `<branch>` の worktree を削除し、`git branch -d <branch>` でブランチを消す。
  • 最後に `git log --oneline -3` でマージ結果を報告する。
@k9i-0
Ships withccpocket

Your agents. In your pocket. Codex and Claude, with a chat UI made for your phone. Start a task, approve the next step, and review the result. Pick up the same work on your tablet or Mac.

1.1k18 skills2 agents2 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.1k
Star history of K9i-0/ccpocket on GitHub, a chart by star-history.com

Other skills on ccpocket.

codex-guide

codex-guide

Codex の使い方、CLI/app/IDE、rules・hooks・AGENTS.md・skills・subagents・config などを案内する。Codex や OpenAI…

@k9i-0@k9i-0Install Skill
flutter-ui-design

flutter-ui-design

Flutter UI実装のアーキテクチャ規約・コンポーネント分割・状態管理ガイド(Bloc/Cubit版)

@k9i-0@k9i-0Install Skill
flutter-upgrade

flutter-upgrade

Flutter SDKのアップグレード、または指定バージョンへの移行影響を調査するときに使う。

@k9i-0@k9i-0Install Skill
mobile-automation

mobile-automation

FlutterアプリのUI動作をシミュレーター・エミュレーター・実機で検証する、BridgeとのE2Eを確認する、または権限ダイアログ等のネイティブUIを操作するときに使う。

@k9i-0@k9i-0Install Skill
playwright-cli

playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to…

@k9i-0@k9i-0Install Skill
release-app

release-app

ccpocketアプリのバージョン更新と、指定プラットフォーム向けリリースを行う。

@k9i-0@k9i-0Install Skill

More skills from other plugins.

paseo

paseo

Paseo reference for managing hosts, projects, workspaces, workspace scripts, agents, schedules, and heartbeats.

paseo10d23k
@getpaseo@getpaseoInstall Skill
10x
Auto-invoked

10x

Personalized audit that teaches the advanced Paradev (formerly Superset) features the user isn't using yet (automations, parallel…

paradev1d16k
@superset-sh@superset-shInstall Skill
capabilities

capabilities

Your capability catalog — read this at boot. Lists the temporal date-range skills and the external integrations (reached via the…

@chaitanyagiri@chaitanyagiriInstall Skill

Questions about merge.

Which coding agents can use merge?
merge installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.