pr-writing
Pass
Audited by Gen Agent Trust Hub on Sep 29, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The helper script
scripts/pr_writer.pyand the test scriptscripts/test_cli.pyutilizesubprocess.runto execute the localgitbinary and the Python interpreter. These calls are used to query repository metadata (logs, diffs, branches) and verify script versions. The commands are invoked using argument lists, which mitigates shell injection risks. - [DYNAMIC_EXECUTION]: The test script
scripts/test_cli.pyusesimportlibto load and execute thepr_writer.pyandbitbucket_server_pr.pyscripts from the local file system for verification purposes. This is a standard testing practice for skill modules. - [INDIRECT_PROMPT_INJECTION]: The skill ingests commit messages and project manifests (
package.json,pubspec.yaml,go.mod) from local git repositories. This creates a potential surface for indirect prompt injection if a malicious repository contains instructions designed to influence the agent's PR drafting process. - Ingestion points: Commit logs via
git log, file change lists viagit diff, and repository manifest files parsed inscripts/pr_writer.py. - Boundary markers: The generated output uses Markdown headers (e.g.,
## Description,## Test Plan) to structure content, but does not provide explicit warnings to the agent to treat repository content as untrusted. - Capability inventory: The skill is capable of executing
gitcommands and reading local files within the repository context. - Sanitization: Values are formatted for output using
json.dumpsto ensure correct serialization, though commit messages are included in the final draft as-is.
Audit Metadata