kb: Skill for Claude Code

.agents/skills/git-rebase/SKILL.md

git-rebase is a skill for Claude Code, Codex from compozy/kb. It costs 32 tokens per session (584 once invoked), scanned A, original, MIT.

A careful workflow for resolving conflicts during a Git rebase, which reapplies one branch's changes on top of another. It preserves the required intent from both sides and leaves the files in a clean, resolved state.

In plain words
What is it for?
Use it to inspect conflicted files, resolve each conflict, stage understood resolutions, check Git's status, and leave the final commit to the integration workflow.
Why use it?
It reduces the risk of losing behavior, weakening tests, or hiding errors while combining competing code changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is compozy/kb's own configuration. It tells Claude Code and Codex how to work on kb 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 kb configures →

View source ↗ compozy/kb
Reuse

Borrowing it

Nothing to install: this file belongs to compozy/kb. 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/compozy/kb/main/.agents/skills/git-rebase/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/compozy/kb

Made for: Claude Code, Codex.

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 git-rebase

README.md
[![agentmods](https://agentmods.dev/badge/skills/compozy/kb/git-rebase/github.svg)](https://agentmods.dev/skills/compozy/kb/git-rebase)
Your own site
<a href="https://agentmods.dev/skills/compozy/kb/git-rebase"><img src="https://agentmods.dev/badge/skills/compozy/kb/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.

agentmods 80×15 button for git-rebase

Your own site · 80×15
<a href="https://agentmods.dev/skills/compozy/kb/git-rebase"><img src="https://agentmods.dev/badge/skills/compozy/kb/git-rebase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 584 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.00032 $0.00584
Opus 5.5 $0.00013 $0.00234
Sonnet 5.5 $0.00006 $0.00117
Haiku 4.5 $0.00003 $0.00058

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

Security

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 25d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/analyze-conflicts.sh, scripts/pre-rebase-backup.sh, scripts/validate-merge.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/git-rebase/SKILL.md · 23 lines

What it actually says

Git Rebase

Carry out the requested rebase while preserving both sides' intended behavior and unrelated work. A rebase request does not by itself authorize squashing, dropping commits, changing global Git settings, or publishing a rewritten branch.

  1. Inspect status, current branch, target, and any in-progress rebase. Reuse a known target and current fetch evidence. Preserve dirty work; do not auto-stash, reset, checkout, clean, or stage unrelated paths. Use an isolated checkout when needed.
  2. Before starting a new rebase, record HEAD and keep a backup ref when rewriting valuable history. bash <skill-dir>/scripts/pre-rebase-backup.sh creates a backup for a clean branch without modifying tracked files. An existing verified backup needs no duplicate.
  3. Rebase onto the requested target directly by default. Use interactive/squash/reorder operations only when the user requested that history change; commit count is not a reason to squash. Consult references/strategies.md for an actual strategy decision.
  4. When conflicts occur, inspect the replayed commit, base, and both sides. During rebase, ours is the target plus commits already replayed; theirs is the commit being replayed. Trace changed APIs and preserve intended security, state, and compatibility contracts rather than accepting one side wholesale.
  5. Resolve the affected files, inspect their diff, stage only those resolved paths, then continue. Reuse valid observations for repeated conflicts. Do not add merge-history comments to production code or run a full suite after every file.
  6. At the completed rebase, inspect the resulting patch series/diff and run checks for affected behavior plus the project's required delivery gate. Tests that expose a regression require a production fix, not weaker assertions.
  7. Publish only when already authorized. Use --force-with-lease for a rewritten remote branch, and follow the project's current-head CI policy. If the lease fails, inspect the new remote commits; do not replace it with unconditional force.

Use references/resolution-patterns.md for semantic conflicts and references/troubleshooting.md for diagnosed operational failures. Helpers live under this skill's actual scripts/ path; analyze-conflicts.sh/validate-merge.sh are optional aids after checking their repository assumptions. They do not replace the owning tests or gate. Recovery that discards work still needs the repository's explicit permission; a backup ref is evidence, not permission to reset.

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 25d ago Changed · -36 lines · -1 tokens per session bd5793cc45c0
  2. 1mo ago First seen · 59 lines · 33 tokens per session scan A 6eeb7540ca0e

Subscribe to this mod's changes

git-rebase is a skill published in the GitHub repository compozy/kb (112 stars, last pushed 3d ago), licensed MIT. It adds 32 tokens to every session and 584 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.