codemod
Pass
Audited by Gen Agent Trust Hub on Sep 18, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill instructions provide examples for executing local Node.js scripts using the
misetask runner to manage migration recipes (e.g.,mise exec -- node scripts/list-codemods.mjs).- [DYNAMIC_EXECUTION]: The runner scriptscripts/run-codemod.mjsuses dynamicimport()to load transformation logic fromtransform.mjsfiles within the migration recipes. This is an intended design pattern for the skill's extensible architecture and is limited to local files.- [INDIRECT_PROMPT_INJECTION]: The skill facilitates the agent reading and applying instructions from markdown files to modify a project's source code, which constitutes a potential vulnerability surface. The skill mitigates this through: - Ingestion points: Loading project files via
ts-morphand readinginstructions.mdfrom codemod directories. - Boundary markers: Instructions explicitly advise verifying changes and inspecting diffs in dry-run mode before final application.
- Capability inventory: The skill modifies AST structures and saves changes to the file system.
- Sanitization: The
assertWritableTargetfunction prevents the tool from modifying files in protected or output-only directories such as.git,dist, andnode_modules.
Audit Metadata