branch-inspector
Pass
Audited by Gen Agent Trust Hub on Jun 19, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses local shell commands to interact with the git repository and the GitHub CLI (
gh). It executes commands such asgit fetch,git log, andgit diffto gather branch metadata. While the skill is designed to be read-only during the inspection phase, it generates actionable (and potentially destructive) commands likegit branch -Dorgit push origin --deletefor the user to run. The skill instructions mandate that the agent must not execute these commands automatically and must seek explicit user confirmation if asked to do so. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection (Category 8). It ingests untrusted data from the repository's history and source code.
- Ingestion points: The skill reads commit messages via
git logand code changes viagit diff(as specified inSKILL.mdandreferences/overview-fields.md). - Boundary markers: There are no explicit instructions to the agent to treat content within diffs or commit messages as untrusted or to ignore embedded instructions.
- Capability inventory: The agent has the capability to generate shell commands and suggest PR titles/bodies based on its analysis of the ingested data.
- Sanitization: No sanitization or validation of the commit messages or diff content is performed before processing. A malicious actor could craft commit messages or code comments designed to mislead the agent into recommending a specific action (e.g., 'keep' an abandoned branch) or influencing the content of a generated Pull Request.
Audit Metadata