awesome-git-author-rewrite

awesome-git-author-rewrite is a skill for Claude Code from khasky/awesome-agent-skills. It costs 49 tokens per session (7,460 once invoked), scanned A, original, MIT.

A guide for changing the author or committer identity stored in one or more Git commits. Because that identity is part of each commit's data, changing it also changes the commit's identifier and those of later commits.

In plain words
What is it for?
Use it to correct a wrong name or email on a commit or across a range of commits when the replacement identity belongs to the user.
Why use it?
It adds checks and a confirmation step before rewriting shared history and force-pushing it. This helps prevent changing more commits than intended, using an unowned identity, losing signatures, or overwriting teammates' work.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is printf '%s\n' 'New Name <new@email> <OLD_EMAIL>' > ../identity.mailmap.

Part of the awesome-agent-skills plugin — 49 skills shipped together

Good fit Use it to correct a wrong name or email on a commit or across a range of commits when the replacement identity belongs to the user.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/khasky/awesome-agent-skills
agentmods
npx agentmods add skills/khasky/awesome-agent-skills/awesome-git-author-rewrite

Made for: Claude Code.

Or install awesome-agent-skills, the plugin that ships this one along with the rest of its 49 skills.

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 awesome-git-author-rewrite

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/khasky/awesome-agent-skills/awesome-git-author-rewrite"><img src="https://agentmods.dev/badge/skills/khasky/awesome-agent-skills/awesome-git-author-rewrite.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,460 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 15
    YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).
    Fix: Remove the malware payload or compromised file entirely. Investigate how it entered the skill and audit all other artifacts for additional indicators of compromise.
  • high Memory Poisoning · line 19
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
  • high Tool Misuse · line 192
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 294
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 362
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Excessive Agency · line 26
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00049 $0.07460
Opus 5.5 $0.00020 $0.02984
Sonnet 5.5 $0.00010 $0.01492
Haiku 4.5 $0.00005 $0.00746

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

Security

Grade A, and why

awesome-git-author-rewrite scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| Bitbucket, Gitea/Forgejo, Azure DevOps, plain SSH remote | none assumed | — | the host's REST API over `curl` with a token, if the user supplies one |
skills/awesome-git-author-rewrite/SKILL.md · 400 lines

How it starts

The opening of the file, as written. The whole thing — 400 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Author Rewrite

Replace the identity stamped on a commit — the author and committer name/email headers — with an identity the user actually owns, then force-push. The file tree, the commit messages, and the dates are preserved byte-for-byte; only the identity headers and, as a consequence, every affected commit hash change.

Why the ceremony: identity lives inside the commit object, so changing it changes the commit's hash, and every descendant commit's hash with it. That makes this an irreversible rewrite of a shared remote, not an edit. The steps below each close a specific way it goes wrong: rewriting a hash range far larger than the user pictured, pushing without write access, replacing one unowned email with another unowned email so the attribution still doesn't land, silently invalidating signatures, or force-pushing over a teammate's commit you never saw. A second clone that never got reset will push the old identity back the next day.

Core principle

NOTHING IRREVERSIBLE UNTIL FIVE THINGS HOLD: the new identity is proven to belong to the user's account, write access is confirmed, a mirror backup exists and is verified, the hash blast radius has been counted and shown, and the user has explicitly confirmed. If any one is missing, stop at that gate.

Four invariants hold throughout:

  • Never operate on the user's existing checkout. Work in a fresh clone in a scratch directory. If the rewrite is wrong, the scratch clone is disposable and the user's working copy was never touched.
  • Author and committer are two different fields. Rewriting only the author leaves the old address in the object and on the host's commit page ("X authored and Y committed"). Rewrite both unless the user asks for one.
  • One commit is never one commit. Rewriting commit C rewrites every commit that has C as an ancestor. Count them and show the number before asking for confirmation.
  • Never delete the backup, and never delete a remote ref, without asking. The backup is the only rollback path.

Read the full file on GitHub · 400 lines

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. 1mo ago Changed 5cca8ba2af01
  2. 1mo ago Changed · +15 lines 310dba1578f5
  3. 2mo ago Changed · +1 lines · -85 tokens per session 42331a3474b4
  4. 2mo ago Changed · +1 lines af83e10b359b
  5. 2mo ago Changed 2c753663a8b5
  6. 2mo ago Changed · -94 tokens per session 7eb2da3a6ede
  7. 3mo ago First seen · 383 lines · 228 tokens per session scan A a3ec1bc025dc

Subscribe to this mod's changes

awesome-git-author-rewrite is a skill published in the GitHub repository khasky/awesome-agent-skills (46 stars, last pushed 5d ago), licensed MIT. It adds 49 tokens to every session and 7,460 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

awesome-git-author-rewrite compared with skills from other repositories

awesome-git-author-rewrite next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
awesome-git-author-rewritekhasky/awesome-agent-skillsSkill465d agoMITA49Claude Code
git-workflow-and-versioningaddyosmani/agent-skillsSkill122k9d agoMITA131Claude Code
chinese-commit-conventionsjnMetaCode/superpowers-zhSkill8.7k2d agoMITA65Claude Code
git-workflowDevelopersGlobal/ai-agent-skillsSkill2218d agoMITA27Claude Code, Codex
to-stackhelderberto/agent-skillsSkill21yesterdayMITA29Claude Code
commithelderberto/agent-skillsSkill21yesterdayMITA44Claude Code
argocdG1Joshi/Agent-SkillsSkill162mo agoMITA44Claude Code, Codex