pr-writing
Pass
Audited by Gen Agent Trust Hub on Sep 19, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/pr_writer.pyusessubprocess.runto execute localgitcommands for retrieving branch information, commit history, and file diffs. These calls use argument lists rather than shell strings, which mitigates standard shell injection risks.\n- [DYNAMIC_EXECUTION]: The test scriptscripts/test_cli.pyuses theimportliblibrary to dynamically load and execute modules for testing purposes. This is restricted to local scripts within the skill's expected directory structure.\n- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from the local repository, including git commit messages and project configuration files (package.json,pubspec.yaml,go.mod), to populate the PR description template.\n - Ingestion points: Data is pulled from git logs via
commits()andchanged_files()inscripts/pr_writer.py, and from project manifest files viadetect_framework().\n - Boundary markers: None identified in the generated markdown output.\n
- Capability inventory: The skill has the capability to execute shell commands via
subprocess.runinscripts/pr_writer.pyandscripts/test_cli.py.\n - Sanitization: Content is processed into markdown strings but no specific escaping or sanitization of commit message content is performed prior to inclusion in the draft.
Audit Metadata