Fold fixups into a branch without losing a message, a marker or somebody else's branch — the amend!

Custom licenceAuto-check passedDevelopment

Install History Rewriting

skills CLI
$ npx skills add stylelint-stylistic/stylelint-stylistic --skill history-rewriting -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install stylelint-stylistic/stylelint-stylistic history-rewriting --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/stylelint-stylistic/stylelint-stylistic.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/history-rewriting .claude/skills/history-rewriting && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
history-rewriting
GitHub stars
106
Token cost
~826 tokens
SKILL.md length
436 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
Custom licence

At a glance

Fold fixups into a branch without losing a message, a marker or somebody else's branch — the amend!

  • Tasks that involve Commit messages
  • SKILL.md covers The amend! file, What a rebase does behind your… and The pre-commit hook's copy has…
  • Calls git, vitest and make
  • Tasks that involve Git workflow

What it does

History Rewriting is an agent skill from stylelint-stylistic/stylelint-stylistic. Fold fixups into a branch without losing a message, a marker or somebody else's branch — the amend! file's shape, what rebase --continue and a zero-exit editor really do, rebase.updateRefs, and the pre-commit hook's blind spot. Use before git commit --fixup, git rebase --autosquash, a rebase that rewrites a commit message, or a commit the hook refuses.

Its SKILL.md is about 830 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Commit messages and Git workflow. It works with Git. The repository describes itself as: A collection of stylistic rules for Stylelintin in a form of a plugin.

When your agent uses it

  • Tasks that involve Commit messages
  • Tasks that involve Git workflow

Example prompts

  • “s branch — the amend! file”
  • “/history-rewriting”

What it can do on your machine

Read from SKILL.md and the folder at commit 52bbb57. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • vitest
    • make

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

History Rewriting loads about 826 tokens when it runs. Until then it costs about 96 tokens; SKILL.md has 436 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~96
When it runs · the whole SKILL.md, loaded when a task matches
~826

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 436 words (~826 tokens).

“Every one of these ends with git saying it succeeded. Read git log --oneline after each step rather than the command's last line.”

— opening of SKILL.md by stylelint-stylistic, Custom licence
name
history-rewriting

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/history-rewriting of stylelint-stylistic/stylelint-stylistic.

Open the folder on GitHubat commit 52bbb57

Compare with similar skills

History Rewriting next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

History Rewriting compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
History Rewriting this skillstylelint-stylistic/stylelint-stylistic106—~826Automated safety check: PassCustom licence
ToolJet Multi-Repo CommitToolJet/ToolJet41k—~1.3kAutomated safety check: PassAGPL-3.0
Git Workflow and Versioningaddyosmani/agent-skills105k2 repos~3.5kAutomated safety check: NotesMIT
React Router Pull Request Creatorremix-run/react-router57k—~2.5kAutomated safety check: PassMIT
Saleor Commit Workflowsaleor/saleor23k—~575Automated safety check: PassBSD-3-Clause
Emoji Commit ConventionsbaptisteArno/typebot.io11k—~424Automated safety check: PassCustom licence

Similar skills

  • Commits changes across ToolJet's root repo and its server/ee and frontend/ee submodules, writing messages from the diffs and updating submodule pointers in order.

    41k GitHub stars~1.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Git Workflow and Versioning

    addyosmani/agent-skills

    Sets git habits for every change: short-lived branches, atomic commits with descriptive messages, clean pull requests, plus versioning, tagging and changelogs for releases.

    105k GitHub starsUsed in 2 repos~3.5k tokens
    DevelopmentAuto-check: notes
  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.

    23k GitHub stars~575 tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Emoji Commit Conventions

    baptisteArno/typebot.io

    Sets the repository's convention for commit messages and pull request titles: one emoji prefix for the main intent, a concise title and clean follow-up commits.

    11k GitHub stars~424 tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Draft Pull Request Creator

    wordpress-mobile/WordPress-Android

    Commits and pushes current changes, writes a pull request title and body from the branch history and template, and opens a draft PR on GitHub after you approve it.

    3.2k GitHub stars~881 tokensUpdated yesterday
    DevelopmentAuto-check: notes

More from stylelint-stylistic/stylelint-stylistic

  • Base Comparison

    stylelint-stylistic/stylelint-stylistic

    Measure a branch against the commit it stands on — extract the base instead of flipping the working tree, pick the base by hash, and prove a new test case red on it.

    106 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Engine Probes

    stylelint-stylistic/stylelint-stylistic

    Ask a real engine what a stylesheet means instead of reasoning about tokens — the Less compiler, lightningcss, dart-sass, and a custom syntax's own parser.

    106 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Outward Prose

    stylelint-stylistic/stylelint-stylistic

    Write a commit body, a changelog entry, a PR body, an issue comment or a code comment so that no sentence in it is a claim nobody ran.

    106 GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Stacks And Issues

    stylelint-stylistic/stylelint-stylistic

    The GitHub mechanics of this repository — building and re-rooting a gh stack, why CI runs on the bottom PR alone, which hash is stable after a merge, and how an umbrella issue closes.

    106 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Sweeps And Oracles

    stylelint-stylistic/stylelint-stylistic

    Build a corpus that can see the change, and read what the oracles and sweeps report without over-reading it.

    106 GitHub stars~4.4k tokensUpdated 5 days ago
    Auto-check passed

Works with

Categories

Questions about History Rewriting

What does History Rewriting do?

Fold fixups into a branch without losing a message, a marker or somebody else's branch — the amend! History Rewriting is an agent skill from stylelint-stylistic/stylelint-stylistic. Fold fixups into a branch without losing a message, a marker or somebody else's branch — the amend!

When should I use History Rewriting?

History Rewriting fits situations like: tasks that involve Commit messages; tasks that involve Git workflow.

How do I install History Rewriting in Claude Code?

Run `npx skills add stylelint-stylistic/stylelint-stylistic --skill history-rewriting -a claude-code`. Or copy the skill folder (.agents/skills/history-rewriting in stylelint-stylistic/stylelint-stylistic) into .claude/skills/history-rewriting in your project. Claude Code loads it when a task matches its description.

How do I install History Rewriting in Codex?

Run `npx skills add stylelint-stylistic/stylelint-stylistic --skill history-rewriting -a codex`. Or copy the skill folder (.agents/skills/history-rewriting in stylelint-stylistic/stylelint-stylistic) into .agents/skills/history-rewriting in your project. Codex loads it when a task matches its description.

Can I use History Rewriting in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add stylelint-stylistic/stylelint-stylistic --skill history-rewriting -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/history-rewriting, .gemini/skills/history-rewriting, .github/skills/history-rewriting and .opencode/skills/history-rewriting in your project.

What does History Rewriting need to run?

Going by SKILL.md and its folder, History Rewriting needs the command-line tools its instructions call (git, vitest and make).

Does History Rewriting access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is History Rewriting safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does History Rewriting use?

History Rewriting has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does History Rewriting use?

About 826 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to History Rewriting?

Skills that share tags, products or a category with History Rewriting: ToolJet Multi-Repo Commit (ToolJet/ToolJet, 41k stars), Git Workflow and Versioning (addyosmani/agent-skills, 105k stars), React Router Pull Request Creator (remix-run/react-router, 57k stars) and Saleor Commit Workflow (saleor/saleor, 23k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains History Rewriting?

stylelint-stylistic (a GitHub organization) maintains it in stylelint-stylistic/stylelint-stylistic, which has 106 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 11, 2026.

Source: stylelint-stylistic/stylelint-stylistic on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.