Skip to content
cccskills
FreePublished on GitHub

amend

Amend the last commit with current changes and/or an updated message.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md984 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Amend

Amend the last commit. Assumes the existing commit message is correct — only update it to reflect the delta.

  1. Safety: check if the last commit exists on the remote. If it does, warn that amending requires a force push and ask for confirmation.
  2. Stage relevant files. If $ARGUMENTS contains file paths, stage only those.
  3. Message: read the existing commit message and the newly staged diff (git diff --staged). Update the message only if the delta changes the "what" or "why" — don't rewrite from scratch. Use the same body format as /commit (Problem + Solution with ## headings).
  4. Amend: create a unique temp file with mktemp /tmp/commit-msg.XXXXXX.txt, write the message to it, and run git commit --amend -F <temp-file> — do not add Co-Authored-By or other trailers.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

commit

Free

Stage changes and create a commit with a conventional commit message.

The English summary is being prepared. Showing the original description.

simonepri/ifttt-lint29Updated Sep 29, 2026

cook

Free

Full autopilot — plan, implement, and polish a task end-to-end.

The English summary is being prepared. Showing the original description.

simonepri/ifttt-lint29Updated Sep 29, 2026

diff

Free

Fetch and display diffs for various scopes (PR, commit, branch, staged, working tree). Used by other skills that need to analyze changes.

The English summary is being prepared. Showing the original description.

simonepri/ifttt-lint29Updated Sep 29, 2026

Execute a plan file — parse phases, spawn parallel subagents, handle failures.

The English summary is being prepared. Showing the original description.

simonepri/ifttt-lint29Updated Sep 29, 2026

fork

Free

Start or end a forked session for exploring rabbit holes without losing the main conversation's context.

The English summary is being prepared. Showing the original description.

simonepri/ifttt-lint29Updated Sep 29, 2026

plan

Free

Structured design intake for non-trivial tasks. Asks clarifying questions and produces a design proposal.

The English summary is being prepared. Showing the original description.

simonepri/ifttt-lint29Updated Sep 29, 2026

See all skills by simonepri

Report a problem with this skill