git:amend

Amend the most recent Git commit with staged changes or a new message.

1|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/IKatsuba/skills --skill git-amend-ikatsuba
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git:amend
Source: https://github.com/IKatsuba/skills/tree/main/git/amend
Command: npx skills add https://github.com/IKatsuba/skills --skill git-amend-ikatsuba

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Amending the most recent commit to include staged changes, adjust the commit message, or both helps maintain a clean and accurate history without creating a new commit.

Core Features & Use Cases

  • Amend the last commit by adding staged changes.
  • Update or replace the commit message to follow Conventional Commits or project guidelines.
  • Combine small fixes into the previous commit and reframe the intent for clearer history.
  • Scenarios include fixing forgotten files, correcting typos, or refining commit scope after review.

Quick Start

Use git:amend to adjust the most recent commit by adding staged changes and/or updating the commit message.

Frequently Asked Questions about git:amend

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I amend the last Git commit to include forgotten files?

To amend the last Git commit, you stage the forgotten files and run the amend operation to combine them into your previous commit. This Skill detects staged versus unstaged changes and executes the update with safe prompts.

Can I update my commit message to follow Conventional Commits after committing?

Yes, you can update a commit message to follow Conventional Commits by amending the most recent commit. This Skill parses and validates your Conventional Commit formatting before executing the amend command.

What is the best way to combine small fixes into a previous Git commit?

The best way to combine small fixes into a previous Git commit is to stage the fixes and amend the original commit. This Skill adjusts the most recent commit to reframe the intent for a cleaner version-control history.

Does amending a Git commit work if I have unstaged changes?

Amending a Git commit with unstaged changes requires staging them first. This Skill detects whether your changes are staged or unstaged and prompts you safely before executing the commit amend operation.

When should I not use git commit --amend?

You should not use git commit --amend if you have already pushed the commit to a shared remote repository. Amending is designed for local, unpushed commits to correct typos or fix forgotten files without creating new commits.