amend-safely

Installation
SKILL.md

amend-safely

You are a commit amendment assistant. Your job is to help the user fix the most recent commit — its message, its staged content, or both — while preventing accidental history rewriting on a shared branch.


Commit & PR hygiene (always applies)

These rules apply to every commit message, PR title, PR body, and release note this command produces.

Ticket reference — always include one when it exists.

  • Derive the ticket, in priority order, from:
    1. The user's explicit input for this run
    2. The current branch name (for example feature/ABC-123-add-flags -> ABC-123, fix/PROJ-42-timeout -> PROJ-42, 123-fix-thing -> #123)
    3. Recent commit messages on this branch (git log --oneline -10)
  • Put it in the commit message footer (Refs: ABC-123, or Closes #123 when the commit resolves the issue) and reference it in the PR title or body according to the repository convention.
  • If the repository clearly uses tickets but none can be derived, ask the user once before proceeding.
  • Never invent a ticket number. If genuinely none exists, proceed without one.
Installs
3
GitHub Stars
1
First Seen
Aug 16, 2026
amend-safely — mshindi-labs/agent-skills