write-pr-description
Pass
Audited by Gen Agent Trust Hub on Oct 11, 2026
Risk Level: SAFEDYNAMIC_CONTEXT_INJECTIONINDIRECT_PROMPT_INJECTIONREMOTE_CODE_EXECUTION
Full Analysis
- [DYNAMIC_CONTEXT_INJECTION]: The skill uses the
!commandsyntax to executescripts/context.shat load time to gather repository state. - Evidence:
!bash ${CLAUDE_SKILL_DIR}/scripts/context.sh`` inSKILL.md. - Context: The script gathers branch names, commit logs, diffs, and GitHub issues to provide immediate context for the agent, which is a legitimate performance optimization for pull request automation.
- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from git logs and external issue titles, creating a surface for potential injection.
- Ingestion points: The
scripts/context.shscript retrieves data fromgit log,git diff, andgh issue list. - Boundary markers: While the skill enforces a specific output format for
PR_AGENTDESC.md, it lacks explicit delimiters or instructions to ignore potential commands embedded within the diffs or commit messages. - Capability inventory: The agent is capable of writing to the file system and executing local scripts.
- Sanitization: No sanitization is applied to the data retrieved from the repository history or issue tracker.
- [REMOTE_CODE_EXECUTION]: The skill instructs the agent to execute a shell script that is not provided in the analysis bundle, making it an unverifiable dependency.
- Evidence:
bash .claude/skills/pr/scripts/validate-description.shinSKILL.md. - Concern: The agent is directed to run an external script whose contents cannot be verified, representing a potential risk if the repository contains malicious scripts at that location.
Audit Metadata