st-code-review
Pass
Audited by Gen Agent Trust Hub on Oct 16, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/code-review.cjsexecutes local system binaries, specificallygitfor diffing andxmllintfor XML validation. - [COMMAND_EXECUTION]: The skill dispatches prompts to various local AI CLI tools (including
claude,gemini,copilot, andcursor-agent) and instructs them to perform tasks. This includes a 'readiness probe' where the skill directs another agent to execute a shell command to verify connectivity. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from the repository, such as git diffs and plan documents. These files could contain instructions designed to manipulate the behavior of the reviewer agent.
- Ingestion points: Cumulative diffs and plan documents are read from the workspace using
git diffand standard file reads inscripts/code-review.cjs. - Boundary markers: The skill uses explicit delimiters like
<<<BEGIN CUMULATIVE DIFF>>>and<<<BEGIN REVIEW XML>>>to isolate untrusted content and model outputs. - Capability inventory: The skill can execute various AI CLI tools and system commands via
child_process.spawnandexecFileSync. - Sanitization: The skill validates the XML output using
xmllintwith the--nonetflag to prevent external entity resolution and ensure compliance with a local schema.
Audit Metadata