skills/nrwl/nx/vitest-migration/Gen Agent Trust Hub

vitest-migration

Pass

Audited by Gen Agent Trust Hub on Oct 17, 2026

Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill provides the agent with access to a broad set of shell commands through the Bash tool, including nx, pnpm, git, node, sed, grep, and gh. These are used to survey the codebase, run tests, and perform codemod operations.
  • [DYNAMIC_EXECUTION]: The skill instructions involve advanced Node.js environment manipulation, specifically patching Module._resolveFilename and Module._load within tools/vitest/setup.mts to handle custom module resolution and mocking. It also uses @swc-node/register for runtime TypeScript compilation and incorporates a write-guard through execArgv to monitor filesystem operations during test execution.
  • [INDIRECT_PROMPT_INJECTION]: The skill represents an attack surface for indirect injection as it ingests and processes untrusted data from repository files (source code, Jest/Vitest configurations, TSConfigs) and external sources such as nx-cloud sandbox reports and GitHub PR data. The agent possesses high-privilege capabilities (file writing and shell execution) to act upon this data without explicit instruction boundary markers or sanitization steps mentioned in the workflow.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 17, 2026, 10:11 PM