review-pr
Warn
Audited by Gen Agent Trust Hub on Aug 24, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses
!"command"syntax inSKILL.mdto execute shell commands at load time. This includesgh pr view,git remote -v, andgh auth status. These commands are used to populate the agent's context with repository and PR metadata. - [REMOTE_CODE_EXECUTION]: The skill launches a persistent background process using a local script:
${CLAUDE_PLUGIN_ROOT}/skills/review-pr/scripts/review-loop.sh. This script performs continuous polling of the GitHub API for CI status and PR comments. While the script is local to the skill, it represents a persistent background execution pattern. - [PROMPT_INJECTION]: In
SKILL.md, the$ARGUMENTSvariable is directly interpolated into a shell command within the dynamic context block:gh pr view "$ARGUMENTS". If a user provides a malicious PR argument (e.g.,; rm -rf /), this could lead to command injection, although the use of double quotes and2>/dev/nullprovides some mitigation. - [INDIRECT_PROMPT_INJECTION]: The skill's primary function is to ingest and act upon data from external sources (GitHub PR comments and CI logs).
- Ingestion points: PR comments (issue-level, inline, and review summaries) and CI logs are fetched via
ghCLI inscripts/review-loop.shand Phase 3 ofSKILL.md. - Boundary markers: The skill instructs the agent to use a 'skeptical code reviewer' persona and an 'independent review-triage agent' with a 'clean context' to evaluate comments, which acts as a logical boundary.
- Capability inventory: The skill has significant capabilities, including
Edit,Write, andBash(viaghandgitfor committing and pushing code fixes), andPushNotificationfor escalating issues. - Sanitization: The skill uses
jqto extract data from JSON responses andgsubto remove newlines from comment bodies before processing, but it does not perform deep sanitization of the natural language content within comments before feeding them to the triage agent.
Audit Metadata