git:amend

Installation
SKILL.md

Amend Commit

Modifies the most recent commit by adding staged changes, updating the message, or both. Follows Conventional Commits specification for message formatting.

When to use

Use this skill when the user needs to:

  • Add forgotten files to the last commit
  • Fix a typo in the last commit message
  • Combine small fixes into the previous commit
  • Update commit message to follow conventions

Instructions

Step 1: Check Current State

  1. Run git log -1 --pretty=format:"%h %s" to show the last commit
  2. Run git diff --cached --stat to see if there are staged changes
  3. Run git diff --stat to see unstaged changes
Related skills
Installs
15
Repository
ikatsuba/skills
First Seen
Jan 24, 2026