javascript-refactor
Pass
Audited by Gen Agent Trust Hub on Jul 6, 2026
Risk Level: SAFECOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses
perlto perform global text normalization (replacing em-dashes with hyphens) across the project files. - [REMOTE_CODE_EXECUTION]: The workflow involves executing
npx eslint,npx prettier, andnpm test. These commands execute scripts defined within the local project'spackage.json, which is a standard procedure for code verification but relies on the integrity of the project being refactored. - [PROMPT_INJECTION]: The skill is configured to read instructions from a local temporary file at
/tmp/$(basename "$PWD")/code-review.md. This represents an indirect prompt injection surface where external data could potentially influence the agent's refactoring logic. - Ingestion points: SKILL.md (Workflow Step 2) reads
/tmp/$(basename "$PWD")/code-review.md. - Boundary markers: None identified; the skill is instructed to fix findings listed in the file.
- Capability inventory: File modification via
perl, execution vianpxandnpm test. - Sanitization: None; the skill treats the file content as actionable review findings.
Audit Metadata