cleaning-commit-history

cleaning-commit-history is a skill for Claude Code from TrevorS/dot-claude. It costs 56 tokens per session (1,137 once invoked), scanned A, original, no licence file.

A tool for reorganising a feature branch's Git commit history into logical commits that are easier to review. Git commits are saved snapshots of code changes.

In plain words
What is it for?
Use it before review to split formatting from logic changes, fix intermediate commits, organise changes, or combine work-in-progress commits.
Why use it?
Messy work-in-progress commits can hide the actual changes and make review difficult. Cleaning the history separates unrelated changes and removes broken intermediate states.

Skill for Claude Code

Written for Claude Code: background in frontmatter. Also seen: model in frontmatter.

Good fit Use it before review to split formatting from logic changes, fix intermediate commits, organise changes, or combine work-in-progress commits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/trevors/dot-claude/cleaning-commit-history
Install

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.

Any agent
npx skills add TrevorS/dot-claude --skill cleaning-commit-history
Clone the repo
git clone --depth 1 https://github.com/TrevorS/dot-claude

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 cleaning-commit-history

README.md
[![agentmods](https://agentmods.dev/badge/skills/trevors/dot-claude/cleaning-commit-history.svg)](https://agentmods.dev/skills/trevors/dot-claude/cleaning-commit-history)
Your own site
<a href="https://agentmods.dev/skills/trevors/dot-claude/cleaning-commit-history"><img src="https://agentmods.dev/badge/skills/trevors/dot-claude/cleaning-commit-history.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,137 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.
Origin unknown 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.00056 $0.01137
Opus 5 $0.00028 $0.00568
Sonnet 5 $0.00011 $0.00227
Haiku 4.5 $0.00006 $0.00114

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

Security

Grade A, and why

cleaning-commit-history 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 7d 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.

skills/cleaning-commit-history/SKILL.md · 140 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

1 file 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. 7d ago First seen · 140 lines · 56 tokens per session scan A b2ff06fb00f1

Subscribe to this mod's changes

cleaning-commit-history is a skill published in the GitHub repository TrevorS/dot-claude (10 stars, last pushed yesterday), with no licence file. It adds 56 tokens to every session and 1,137 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

review-implement-phase

Implements triaged review actions, commits focused fixes, and posts Done plus resolves threads. Use when the user wants only the implementation phase of the review-framework workflow.

prisma/orm · 38 tokens

github-pr-workflow

Prepare a GitHub pull request from a feature branch — branch hygiene, commit shape, title/body, verification notes, screenshots for UI work, and replies to review comments.

paperclipai/paperclip · 39 tokens

github-automation

GitHub workflow automation, PR management, issue tracking, and code review coordination. Integrates with GitHub Actions and repository management. Use when: PR creation, code review, issue management, release automation, workflow setup. Skip when: local-only changes, non-GitHub repositories.

ruvnet/ruflo · 61 tokens

review-delta

Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.

tirth8205/code-review-graph · 24 tokens

work-unit-commits

Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.

Gentleman-Programming/gentle-ai · 33 tokens

github-contributor

End-to-end playbook for shipping high-quality pull requests to open-source projects you don't maintain — discovery, CONTRIBUTING compliance, PR-size check, minimal-diff implementation, PR description with AI-assisted disclosure, conflict resolution, and post-submission maintainer interaction. Use whenever creating…

daymade/claude-code-skills · 133 tokens