Skip to main content

Overview

The annotation_conversion_strategy prompt guides AI agents through converting manual annotations (numbered/alphabetical indicators with connected descriptions) into Figma’s native annotation system. This enables better collaboration, version control, and design documentation.

When to Use

Use this prompt when:
  • Converting numbered/lettered manual annotations to native annotations
  • Migrating legacy annotation systems
  • Automating annotation creation from design documentation
  • Standardizing annotation formats across teams
  • Cleaning up annotation layers after conversion

Process Overview

Step 1: Get Selection and Initial Setup

Get the frame or component containing annotations:

Step 2: Scan Annotation Text Nodes

Identify annotation markers and descriptions:

Step 3: Scan Target UI Elements

Get all potential annotation targets:

Step 4: Match Annotations to Targets

Match each annotation to its target using multiple strategies:

1. Path-Based Matching (Priority 1)

2. Name-Based Matching (Priority 2)

3. Proximity-Based Matching (Fallback)

Step 5: Apply Native Annotations

Convert matched annotations using batch processing:

Helper Functions

Determine Category

Determine Properties

Find Matching Description

Complete Example