git-clean-gone-branches
Pass
Audited by Gen Agent Trust Hub on Nov 20, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes output from
git branch -vvwhich contains branch names and commit messages. If a repository is sourced from an untrusted third party, these fields could contain instructions intended to influence the agent's behavior. - Ingestion points: The helper script
scripts/clean-goneparses the output ofgit branch -vvto identify stale branches, which is then passed back to the agent for display and action. - Boundary markers: The skill requires an explicit user confirmation step ('Delete all of them? (y/n)') before proceeding with any deletions.
- Capability inventory: The skill has the capability to delete local branches (
git branch -D) and remove file system directories via worktree removal (git worktree remove). - Sanitization: While the script uses
awkandsedto extract branch names, it does not perform specific sanitization for prompt injection patterns. - [COMMAND_EXECUTION]: The skill executes local shell scripts and Git commands to manage the repository state.
- Evidence: The workflow involves executing a bash script (
scripts/clean-gone) and several Git subcommands includingfetch,branch, andworktree.
Audit Metadata