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_metadatatool and reference code fromget_design_contextfetched 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, andBashcapabilities 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.jsinto the page to callmeasureAgainstFigmafor 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.shexecutes apnpm installto download the project's dependencies from well-known official registries.
Audit Metadata