clean-commit-history
Pass
Audited by Gen Agent Trust Hub on Mar 23, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill orchestrates several local git commands including
status,log,diff,add,commit,rebase, andpush. These commands are standard for the tool's intended purpose of managing repository state and are executed within the local environment. - [SAFE]: The skill incorporates several security best practices and safety rails:
- Branch Protection: It explicitly forbids operations on
mainormasterbranches to prevent accidental disruption of production code. - Data Integrity: It enforces the use of
--force-with-leaserather than the destructive--forceflag, ensuring remote changes are not overwritten. - Process Verification: It prohibits the use of
--no-verify, ensuring that local git hooks (such as linters or security scanners) are always executed. - Human-in-the-Loop: For any complex or ambiguous cleanup tasks, the skill requires the agent to enter plan mode and obtain user approval before proceeding.
Audit Metadata