amend-safely
Pass
Audited by Gen Agent Trust Hub on Aug 16, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: Uses standard Git commands (
git log,git status,git diff,git rev-parse,git ls-remote,git commit,git push) to perform repository inspection, amendment, and synchronization. These operations are directly aligned with the skill's stated purpose. - [SAFE]: Implements a robust check in Step 2 to verify if a commit has been pushed to a remote tracking branch or origin before allowing an amendment, preventing unintended history rewriting.
- [SAFE]: Enforces the use of
--force-with-leaseinstead of--forcewhen pushing amended commits to a remote, which is a security best practice to avoid overwriting changes made by others. - [PROMPT_INJECTION]: Includes specific instructions to strip AI-generated annotations and attribution from commit messages, ensuring repository history remains clean and consistent with project standards.
Audit Metadata