typescript-refactor
Pass
Audited by Gen Agent Trust Hub on Jul 9, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes several shell commands for file inspection, text manipulation, and verification.
- Uses
gitcommands (status,diff) to identify changes. - Employs
perl -pi -efor automated search-and-replace normalization of em-dash characters. - Executes project-level verification tools via
npx(tsc,eslint,prettier) andnpm testto ensure code quality and behavioral parity. - [INDIRECT_PROMPT_INJECTION]: The skill includes a vulnerability surface for indirect prompt injection by reading external data that could influence the agent's behavior.
- Ingestion points: The workflow specifically instructs the agent to read context from
/tmp/<dirname>/code-review.mdin step 2. - Boundary markers: Absent. The instructions do not define delimiters or provide specific warnings to the agent to treat the contents of the review file as untrusted data.
- Capability inventory: The agent has the capability to write to the filesystem (via
perl) and execute arbitrary code defined in the project's test scripts (vianpm test). - Sanitization: No validation or sanitization of the review file content is performed before the agent acts upon the findings listed within it.
Audit Metadata