ccpocket: Skill for Claude Code

.claude/skills/merge/SKILL.md

merge is a skill for Claude Code from K9i-0/ccpocket. It costs 16 tokens per session (521 once invoked), scanned A, original, MIT.

A workflow for merging a completed Git branch into main and removing the finished branch and its linked worktree. A branch is a separate line of changes, and a worktree is another local directory connected to that branch.

In plain words
What is it for?
Use it when finished changes need to be merged into main, provided the work is committed and the current branch is not main.
Why use it?
It provides checks for uncommitted work and handles the cleanup after a merge, reducing leftover branches and directories.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is K9i-0/ccpocket's own configuration. It tells Claude Code how to work on ccpocket itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ccpocket configures →

About the project

CC Pocket is a mobile and desktop client for controlling Codex and Claude coding-agent sessions through a self-hosted Bridge Server running on another computer. It lets users start sessions, approve actions, answer questions, review changes, and continue coding from supported devices. The catalogue entries provide the skills, hooks, MCP servers, agents, instructions, and settings used by this client.

K9i-0/ccpocket · 1,093 stars · on GitHub · k9i-0.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to K9i-0/ccpocket. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/K9i-0/ccpocket/main/.claude/skills/merge/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/K9i-0/ccpocket

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for merge

README.md
[![agentmods](https://agentmods.dev/badge/skills/k9i-0/ccpocket/merge/github.svg)](https://agentmods.dev/skills/k9i-0/ccpocket/merge)
Your own site
<a href="https://agentmods.dev/skills/k9i-0/ccpocket/merge"><img src="https://agentmods.dev/badge/skills/k9i-0/ccpocket/merge/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for merge

Your own site · 80×15
<a href="https://agentmods.dev/skills/k9i-0/ccpocket/merge"><img src="https://agentmods.dev/badge/skills/k9i-0/ccpocket/merge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 521 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00521
Opus 5.5 $0.00006 $0.00208
Sonnet 5.5 $0.00003 $0.00104
Haiku 4.5 $0.00002 $0.00052

Measured 1mo ago against content hash fbfd46dd00cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

merge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/merge/SKILL.md · 76 lines

What it actually says

ブランチマージ & クリーンアップ

作業ブランチを main にマージし、不要になったブランチと worktree を削除する。

前提条件

  • 作業ブランチで全ての変更がコミット済みであること
  • 現在のブランチが main でないこと

手順

1. 事前確認

git branch --show-current
  • 現在のブランチ名を記録する(= <branch> とする)
  • main の場合はマージ対象がないため中断する
git status --short
  • 未コミットの変更があれば、今回の作業に属する変更だけを検証してコミットする。無関係な変更は混ぜず、上書きせずにマージできる作業場所を使う。変更の帰属が判断できずマージを妨げる場合だけ確認する。

2. main に切り替え

git checkout main

3. マージ (--no-ff)

git merge --no-ff <branch>
  • マージコンフリクトは両側の変更意図を調べて解消し、関連する検証を実施してマージを完了する。意図が両立せず、コードや依頼から判断できない場合だけ、競合箇所と選択による違いを示して確認する。

4. 作業ブランチの削除

git branch -d <branch>

5. worktree のクリーンアップ

git worktree list
  • <branch> に紐づく worktree がある場合のみ以下を実行:
git worktree remove <worktree-path>
  • worktree ディレクトリが残っている場合は手動削除が必要な旨を通知する

6. 完了報告

最終状態を表示する:

git log --oneline -5
git branch
git worktree list
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -1 lines fbfd46dd00cc
  2. 1mo ago First seen · 77 lines · 16 tokens per session scan A f3db0f4e0457

Subscribe to this mod's changes

merge is a skill published in the GitHub repository K9i-0/ccpocket (1,093 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 521 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.