skills/mrm0bi/bstack/babysit-pr/Gen Agent Trust Hub

babysit-pr

Pass

Audited by Gen Agent Trust Hub on Oct 27, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from external GitHub pull requests, such as comments and review bodies, which could potentially contain malicious instructions intended to influence the agent's behavior.
  • Ingestion points: The Watcher.poll method in scripts/pr-wait fetches PR comments (pr['comments']['nodes']), reviews (pr['reviews']['nodes']), and thread content via the GitHub GraphQL API.
  • Boundary markers: The script does not wrap ingested text in specific boundary markers or delimiters when printing events to stdout for the agent.
  • Capability inventory: The skill allows the agent to execute various GitHub CLI (gh) commands, including viewing, commenting, and potentially merging PRs. It also performs local file writes to ~/.local/state/pr-wait/ for state management.
  • Sanitization: The plain() function in scripts/pr-wait uses regular expressions to strip HTML comments and tags; the snippet() function truncates the output to 100 characters, which limits the payload size of any injected instructions.
  • [COMMAND_EXECUTION]: The scripts/pr-wait script executes the GitHub CLI (gh) using subprocess.run.
  • Evidence: The script calls gh for GraphQL queries, repository views, and checking PR status.
  • Mitigation: Input parameters such as the PR number and repository name are validated using integer casting and regular expression matching ([\w.-]+/[\w.-]+) before being passed as list arguments to subprocess.run, which effectively prevents shell command injection.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 27, 2026, 10:38 AM