wk-self-review
Pass
Audited by Gen Agent Trust Hub on Aug 24, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from GitHub PR diffs and source files to generate its documentation. An attacker could embed malicious instructions in PR comments or code that the agent might interpret as instructions or incorporate into its output.
- Ingestion points:
gh pr diffandgh pr viewoutput, and full file content of changed files (Step 1). - Boundary markers: The skill does not explicitly define markers to isolate code content from instructions during the analysis phase.
- Capability inventory: Access to
gh apifor posting reviews and theWritetool for local file creation. - Sanitization: No specific sanitization or filtering of external code content is mentioned prior to prompt interpolation.
- [DATA_EXPOSURE]: The skill performs a scan of local environment files (
$HOME/.claude/settings.json) usinggrepin Step 0.5. While the stated purpose is to check forgh apipermissions to warn the user early, this involves reading files that may contain other sensitive environment configurations. - [COMMAND_EXECUTION]: The skill relies on the
Bashtool to interact with the GitHub CLI (gh). It executes commands with variables derived from the PR context (e.g., branch names, file paths, repository owners). The skill mitigates common command injection risks by requiring that large prose payloads be written to a temporary JSON file using theWritetool rather than being passed via shell heredocs or command-line arguments.
Audit Metadata