smart-commit-gen
Pass
Audited by Gen Agent Trust Hub on Jul 1, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/analyze_diff.pyexecutes localgitcommands usingsubprocess.run(). It follows security best practices by passing arguments as a list and avoiding the use of a shell (shell=True), which mitigates command injection risks. The--repoparameter allows specifying a repository directory, which is used as the execution context context via thecwdargument. - [PROMPT_INJECTION]: The skill analyzes
git diffoutput, which constitutes an ingestion point for untrusted external data that could contain indirect prompt injections. - Ingestion points: The
get_changed_filesandget_diff_statsfunctions inscripts/analyze_diff.pyingest data from the local repository using git commands. - Boundary markers: Absent. The output does not wrap diff-derived data in security delimiters or 'ignore instructions' warnings.
- Capability inventory: The skill can execute local
gitcommands and produce text output that the agent is instructed to use for generating commit messages. - Sanitization: The script parses the git output to extract metadata (e.g., file statuses and change counts) to build a commit message, rather than outputting raw diff contents. The agent is also instructed to review and manually adjust the result, providing a human-in-the-loop validation step.
Audit Metadata