finishing-a-development-branch
Warn
Audited by Gen Agent Trust Hub on May 4, 2026
Risk Level: MEDIUMCOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill automatically executes shell scripts located at
.agents/bin/detect-worktree-links.shandresolve-worktree-links.shwithin the repository being operated on. These scripts are triggered during the 'Merge Locally' workflow (Option 1) if they are present and executable. - [COMMAND_EXECUTION]: The skill constructs the paths to these scripts using
git rev-parse --show-toplevel, making the execution path relative to the current project. There is no verification of the script content or origin, which allows a malicious repository to provide its own scripts that the agent will execute. - [COMMAND_EXECUTION]: The skill performs a
git commit --amendafter running these scripts if they identify issues. This could be used to silently modify the codebase or commit history without the user's explicit review of the changes made by the scripts. - [COMMAND_EXECUTION]: The skill demonstrates an indirect prompt injection surface by ingesting file names from
git diffand passing them as arguments to external scripts. - Ingestion points: File names are retrieved from
git diff --name-onlyinto theCHANGED_FILESvariable inSKILL.md. - Boundary markers: Absent; the skill does not use delimiters or warnings for the agent regarding the content of the file names.
- Capability inventory: Subprocess execution for custom scripts,
git merge,git push, andgh pr createinSKILL.md. - Sanitization: Absent; file names are passed directly to
xargswithout validation or escaping.
Audit Metadata