simonepri/ifttt-lint / .agents/skills/amend
amend
VerifiedAmend the last commit with current changes and/or an updated message.
Amend
Amend the last commit. Assumes the existing commit message is correct — only update it to reflect the delta.
- Safety: check if the last commit exists on the remote. If it does, warn that amending requires a force push and ask for confirmation.
- Stage relevant files. If $ARGUMENTS contains file paths, stage only those.
- 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). - Amend: create a unique temp file with
mktemp /tmp/commit-msg.XXXXXX.txt, write the message to it, and rungit commit --amend -F <temp-file>— do not add Co-Authored-By or other trailers.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |