git-squash
Pass
Audited by Gen Agent Trust Hub on Sep 26, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill performs Git operations using a Python helper script (
scripts/git-squash.py) that wraps thegitbinary. - The script uses
subprocess.runwith arguments passed as a list, which is a secure implementation that avoids shell injection vulnerabilities. - The operations are limited to standard Git maintenance tasks such as
git reset --soft,git commit,git log, andgit status. - The script includes safety checks to ensure the working tree is clean and that the repository state has not changed between the planning and application phases.
- [INDIRECT_PROMPT_INJECTION]: The skill is designed to process external data (Git commit messages and diffs) which serves as a surface for indirect prompt injection.
- Ingestion points: The
preflightfunction inscripts/git-squash.pyreads commit subjects and author information from the Git log. - Boundary markers: The
SKILL.mdinstructions explicitly scope the agent's attention to the "plan's commits and the net diff" to generate the final commit message. - Capability inventory: The agent has the capability to write a new commit message to a file and execute a
git commitvia the helper script. - Sanitization: The skill relies on the agent's own semantic evaluation of the diff versus the commit messages to ensure the final output is accurate, acting as a natural check against malicious instructions embedded in commit history.
- [EXTERNAL_DOWNLOADS]: The skill instructions reference the use of
uv, a well-known and widely used Python package manager, to execute the local helper script. This is a standard development practice and does not involve fetching untrusted code from remote sources during execution.
Audit Metadata