adopt-pr
Pass
Audited by Gen Agent Trust Hub on Nov 13, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes multiple shell commands via the
gh(GitHub) CLI andgitto fetch PR metadata, review threads, and diffs. These operations are restricted to standard development workflows and include significant safety guards. - The skill mandates the creation of a separate
POLICY_BASE_DIRusinggit worktree add. This ensures that instructions are read from a trusted branch tip rather than the potentially malicious checked-out branch. - Variable expansion in shell scripts is mitigated by using quoted heredocs (
<<'EOF') when handling potentially untrusted reviewer or author text. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from GitHub PR bodies, issue descriptions, and review comments.
- Ingestion points: PR metadata, issue descriptions, and review thread comments (fetched via
gh apiandgh pr view). - Boundary markers: The skill uses a
check-autoload-safety.shhelper to sanitizeissue-brief.mdandpr-decisions.mdbefore they are written. - Capability inventory: File writes to
.claude/skills/branch-context/,git worktreemanagement, and GitHub API interactions. - Sanitization: The skill explicitly instructs to strip leading
@symbols from contributor references to prevent unintentional tagging or triggering of agent behaviors, and uses strict quoting for shell arguments.
Audit Metadata