design-to-code-fidelity
Pass
Audited by Gen Agent Trust Hub on Nov 2, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes shell scripts (
scripts/figma-export.sh,scripts/visual-diff.sh) to wrap system commands such ascurl,python3, and ImageMagick. While these scripts handle user-provided inputs like node IDs, they employ sanitization (e.g., viased) and safe parameter passing (e.g.,curl --data-urlencode) to mitigate injection risks. - [DYNAMIC_EXECUTION]:
scripts/render-capture.mjsenables the execution of arbitrary JavaScript and CSS within the Playwright-controlled browser via theINIT_SCRIPTandNEUTRALIZE_CSSenvironment variables. This is an intended feature for freezing UI state (e.g., mockingDate.now) but provides a vector for code execution within the browser environment. - [DYNAMIC_EXECUTION]:
scripts/render-capture.mjsperforms dynamic imports of@playwright/testorplaywrightrelative to the current working directory. This allows the tool to use the project's installed dependencies but depends on the security of the localnode_modulesenvironment. - [INDIRECT_PROMPT_INJECTION]: The skill captures screenshots of arbitrary web URLs provided by users. This creates an indirect prompt injection surface, as the agent processes the visual and structural results of these external pages, which could contain malicious content designed to influence the agent's analysis.
- [EXTERNAL_DOWNLOADS]:
scripts/figma-export.shdownloads reference images from URLs returned by the Figma REST API. These external resources originate from Figma's trusted image hosting infrastructure. - [CREDENTIALS_UNSAFE]: The skill manages Figma API tokens through environment variables (
FIGMA_TOKEN,FIGMA_API_KEY) rather than hardcoding them. The implementation includes explicit warnings against passing secrets as command-line arguments.
Audit Metadata