design-to-code
Warn
Audited by Gen Agent Trust Hub on Nov 3, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/visual-check.mjsdynamically installs Node.js packages (playwright-core,pngjs,pixelmatch@5) usingexecSyncat runtime if they are not already installed. Additionally, it utilizes a dynamicimport()call to load thescripts/visual-targets.mjsconfiguration file from a path resolved during execution. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to interpret data from
products/design/DESIGN.md,products/prototype/, andproducts/fspec/as the primary 'source of truth' for generating production code. This creates a surface where malicious instructions embedded within these design files could be followed by the agent, potentially leading to the injection of backdoors or malicious logic into the generated React components. - Ingestion points:
products/design/DESIGN.md,products/prototype/, and various specification files in theproducts/directory. - Boundary markers: None; the skill explicitly instructs the agent to treat these external files as authoritative sources for the visual and structural layer of the application.
- Capability inventory: The skill has permissions to write to the project's source directory (
src/) and execute shell/Node.js commands. - Sanitization: No sanitization or validation of the design input content is performed before processing it as a set of instructions for code generation.
- [EXTERNAL_DOWNLOADS]: The skill fetches the
shadcnlibrary and other development tools from the public NPM registry. While these originate from a well-known and standard service for the skill's purpose, they represent the introduction of external code at runtime. - [COMMAND_EXECUTION]: The workflow relies on executing several CLI tools and custom scripts, including
pnpm dlx,npm install, and the providedvisual-check.mjsandvisual-freeze.shscripts. These operations allow the skill to read source code, interact with the local filesystem, and run automated tests against a live application URL.
Audit Metadata