Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add CH3COOH/claude-skills --skill git-rebasegit clone --depth 1 https://github.com/CH3COOH/claude-skillsWrote 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.
[](https://agentmods.dev/skills/ch3cooh/claude-skills/git-rebase)<a href="https://agentmods.dev/skills/ch3cooh/claude-skills/git-rebase"><img src="https://agentmods.dev/badge/skills/ch3cooh/claude-skills/git-rebase/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.
<a href="https://agentmods.dev/skills/ch3cooh/claude-skills/git-rebase"><img src="https://agentmods.dev/badge/skills/ch3cooh/claude-skills/git-rebase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00083 | $0.01947 |
| Opus 5 | $0.00042 | $0.00974 |
| Sonnet 5 | $0.00017 | $0.00389 |
| Haiku 4.5 | $0.00008 | $0.00195 |
Grade A, and why
git-rebase 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Git Interactive Rebase スキル
指定範囲のコミットを1つに統合(squash)するための手順とコミットメッセージを生成します。
役割の分担:
- Claude が行う:
git log/git status/git branchなどの読み取りコマンドを実行し、状態を把握する - ユーザーが行う:
git rebase -iなどの履歴変更コマンドを実行する
使用例
例1: 直近3コミットをまとめる
ユーザー: 「直近3つのコミットを1つにまとめたい」
実行: git-rebase HEAD~3 HEAD
結果: 3コミットが1つのコミットに統合される
例2: 特定範囲のコミットを統合
ユーザー: 「abc1234からdef5678までのコミットをsquashして」
実行: git-rebase abc1234 def5678
結果: 指定範囲のコミットが統合され、適切なメッセージが提案される
例3: ブランチの作業をまとめる
ユーザー: 「featureブランチの全コミットを1つにしたい」 実行: mainブランチとの分岐点を特定し、rebaseコマンドを提示 結果: ブランチ上の全コミットが1つに統合される
事前バリデーション
以下を Bash ツールで確認し、問題があれば手順の提示前にユーザーへ案内すること:
| チェック項目 | 確認コマンド | 問題がある場合の対応 |
|---|---|---|
| 引数の数 | - | <from-commit> と <to-commit> の両方を教えてもらう |
| 作業ディレクトリ | git status --porcelain |
未コミットの変更があれば先に commit または stash するよう案内 |
| rebase中でないこと | .git/rebase-merge / .git/rebase-apply の存在を確認 |
進行中なら --abort または --continue で解決するよう案内 |
| コミットの存在 | git rev-parse --verify <from-commit> / <to-commit> |
存在しないハッシュはユーザーに再確認 |
| コミット順序 | git merge-base --is-ancestor <from> <to> |
from が to の祖先でない場合は順序を入れ替えるよう案内 |
| push済みか否か | git branch -r --contains <from-commit> |
push済みであれば force push が必要な旨を事前に警告 |
問題が確認された場合は、以降の処理を行わずユーザーに解決を依頼すること。
手順
Step 1: 現在の状態を確認(Claude が実行)
git status
git branch --show-current
git log --oneline -20
- detached HEAD 状態の場合は警告を表示
Step 2: 対象コミットの内容を分析(Claude が実行)
git log --oneline '<from-commit>^'..'<to-commit>'
git log --stat '<from-commit>^'..'<to-commit>'
git log --merges '<from-commit>^'..'<to-commit>'
- 統合対象のコミット数・変更内容・コミットメッセージの傾向を把握する
- マージコミットが含まれる場合は以下を案内:
⚠️ 対象範囲にマージコミットが含まれています。通常のrebaseではマージの履歴が失われます。 マージ履歴を保持する場合は
git rebase -i --rebase-merges '<from-commit>^'を使用してください。
Step 3: Interactive rebase コマンドをユーザーに提示
from-commit がリポジトリの最初のコミット(root commit)の場合
git rebase -i --root
通常の場合
git rebase -i '<from-commit>^'
Step 4: エディタでの操作手順を説明
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.
- 8d ago First seen · 201 lines · 83 tokens per session scan A 969f091b4db7
git-rebase is a skill published in the GitHub repository CH3COOH/claude-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 83 tokens to every session and 1,947 once invoked, about $0.0004 per session on Opus 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-31.
Other skills, from other repositories
commit-message
Write a Conventional Commits message from a description of code changes. Use when the user asks for a commit message or describes a diff.
prepare-merge-request
Use when about to open or update a pull/merge request, push a feature branch, run git add/git commit on finished work, or state that the test suite passes — in a Kotlin Multiplatform or Android Gradle project. Three gates in order - prove the suites actually ran by counting JUnit XML instead of trusting BUILD…
windows-compatibility
Cross-platform path handling and command patterns.
git-branching-workflow
Standardized Git branch creation, naming taxonomies (feat/, fix/, refactor/, hotfix/, release/, chore/), trunk-based integration, and PR isolation lifecycles. Use when creating branches, preparing pull requests, or standardizing team git workflows; do not use for resolving merge conflicts or low-level git plumbing.
create-pr
Creates a GitHub PR with a Linear-ticket-prefixed title and a decision-led, narrative description for prisma-next. Use when the user wants to create a pull request, open a PR, or submit changes for review.
git-commit
Generate well-formatted git commit messages following conventional commit standards.