skills/bajpainaman/solve/pr-review/Gen Agent Trust Hub

pr-review

Pass

Audited by Gen Agent Trust Hub on Nov 20, 2026

Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
  • [COMMAND_EXECUTION]: The bash script pr-review.sh sources a local configuration file from ~/.config/pr-review/config.sh or an environment-defined path (PR_REVIEW_CONFIG), which allows for the execution of arbitrary commands within the user's shell environment when the script is run.
  • [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process code from external GitHub Pull Requests. Maliciously crafted code, comments, or documentation within these PRs could attempt to influence the agent's behavior or override review instructions.
  • Ingestion points: GitHub Pull Request diffs, repository files (e.g., REVIEW.md), and branch content are read into the model's context via the claude CLI.
  • Boundary markers: The script uses a highly structured instruction prompt with specific output requirements (e.g., Markdown tables, specific prose styles) to help isolate findings from potentially malicious PR content.
  • Capability inventory: The AI agent is restricted to a read-only toolset defined in the CLAUDE_PERM variable, which includes Read, Grep, Glob, and read-only git subcommands (diff, log, show, status, branch).
  • Sanitization: While the script uses a subst function to perform token replacement in the prompt, there is no explicit sanitization of the untrusted code content itself before it is passed to the LLM.
  • [DYNAMIC_EXECUTION]: The script dynamically constructs the instructions for the AI by substituting runtime variables (like repository name, branch, and SHAs) and external rule files (panels and lenses) into a quoted heredoc template before executing the claude CLI.
  • [EXTERNAL_DOWNLOADS]: The script uses gh repo clone and git fetch to download external code from GitHub repositories to a local cache directory (~/pr-reviews/repos/) for analysis.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 20, 2026, 08:19 PM