implement-figma-component

Pass

Audited by Gen Agent Trust Hub on Sep 30, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill instructs the agent to ingest and process external data from the Figma API, including node metadata and design context. This introduces a surface where maliciously crafted Figma files could attempt to inject instructions through node names or properties to influence the code implementation.
  • Ingestion points: XML metadata from the get_metadata tool and reference code from get_design_context fetched in Step 1 (SKILL.md).
  • Boundary markers: The workflow does not define specific delimiters or warnings to ignore potentially malicious instructions embedded within the design data.
  • Capability inventory: The agent is configured with Edit, Write, and Bash capabilities which could be targeted by successful injection during the implementation phase (eval configuration).
  • Sanitization: The instructions do not require explicit sanitization of content fetched from Figma before it is used for prompt interpolation or code generation.
  • [DYNAMIC_EXECUTION]: The workflow involves injecting a local script into the runtime browser environment to verify layout accuracy.
  • Execution method: The agent is instructed to load scripts/measure.js into the page to call measureAgainstFigma for comparing rendered boxes against Figma metadata (SKILL.md Step 4).
  • Functionality: The script calculates bounding box deltas and typography metrics, providing a verification step for pixel fidelity.
  • [EXTERNAL_DOWNLOADS]: The setup process for the evaluation environment fetches configuration and packages from the public npm registry.
  • Evidence: evals/setup-workspace.sh executes a pnpm install to download the project's dependencies from well-known official registries.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 30, 2026, 12:30 PM