agentsclimarketplace

Figma sync

Skill sarveshsea/design-skills/skills/figma-sync

Practical design judgment for AI coding agents: 78 installable skills for craft, research, generation, Figma, and Memoire.

Install
npx -y skills add sarveshsea/design-skills --skill figma-sync

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Figma sync workflow patterns — bidirectional design-code sync, conflict resolution, incremental updates, multi-file orchestration

SKILL.md

5.0 KB, as published. Nobody here has run it

Figma Sync Patterns — Memoire Connect Skill

Orchestrates reliable bidirectional sync between Figma and the local codebase through the Memoire bridge.


Sync Modes

1. Pull Sync (Figma to Code)

Trigger: memi pull, document-changed event, or manual

Pipeline:

Figma Plugin
  -> getVariables + getComponents + getStyles (parallel)
  -> Parse raw data to DesignSystem
  -> Diff against existing registry
  -> Update changed tokens/components only
  -> Auto-spec new components
  -> Regenerate affected specs

Incremental strategy:

  • Compare token values by name + collection — only update changed
  • Compare components by figmaNodeId — detect added/removed/modified
  • Track lastSync timestamp to skip unchanged files

2. Push Sync (Code to Figma)

Trigger: memi sync --push, agent canvas operations

Pipeline:

Local Specs + Tokens
  -> Diff against Figma state
  -> Generate Figma Plugin API calls
  -> Execute via bridge
  -> Self-heal (screenshot + verify)
  -> Update Code Connect mappings

Safety rules:

  • Never overwrite Figma components that have been modified since last pull
  • Prompt user if Figma-side changes detected since last sync
  • Use figma.currentPage.findOne() to target specific nodes, not blind creation

3. Bidirectional Merge

When both sides have changes:

ScenarioResolution
Token value changed in Figma onlyAccept Figma
Token value changed in code onlyPush to Figma
Both changed same tokenPrompt user — show diff
New component in FigmaPull + auto-spec
New spec in codePush to Figma on next sync
Component deleted in FigmaFlag in CLI, don't auto-delete spec
Spec deleted locallyFlag, don't auto-delete in Figma

Change Detection

Token Diffing

interface TokenDiff {
  added: DesignToken[];
  removed: DesignToken[];
  modified: { before: DesignToken; after: DesignToken }[];
  unchanged: number;
}

Compare by: name + collection as composite key. Modified = same key but different values object (deep equal).

Component Diffing

interface ComponentDiff {
  added: DesignComponent[];
  removed: DesignComponent[];
  modified: { before: DesignComponent; after: DesignComponent; changes: string[] }[];
}

Compare by: figmaNodeId as primary key, name as fallback. Track changes: name, description, variants, properties.


Multi-File Orchestration

When syncing across multiple Figma files:

  1. Enumerate files: Each connected plugin reports its fileKey
  2. Parallel pull: Pull from all connected plugins simultaneously
  3. Namespace tokens: Prefix with file name to avoid collisions
  4. Merge design systems: Combine into single registry with source tracking
  5. Conflict resolution: Same-name tokens from different files prompt user

Event-Driven Sync

The Memoire bridge emits these sync-relevant events:

EventWhenSuggested Action
document-changedAny node modified in FigmaDebounced pull (3s)
selectionUser selects different nodesUpdate context, no sync
page-changedUser switches Figma pagesRefresh page tree
sync-dataPlugin sends bulk dataProcess and update registry

Operator Console

Widget V2 exposes the bridge as an operator console:

  • Jobs shows sync, capture, inspect, and healer activity as tracked job state
  • Selection shows current node IDs, styles, variants, and layout facts
  • System shows bridge status, ports, latency, reconnect state, and buffered changes
  • agent-status surfaces on-canvas task visibility from the orchestrator
  • connection-state, job-status, sync-result, and healer state are better sources of truth than raw bridge logs

Debounce Strategy

  • document-changed: 3 second debounce — batch rapid edits
  • Multiple changes within window: single pull covers all
  • Ignore events while a pull is already in progress
  • Queue one follow-up pull if changes arrive during active pull

Error Recovery

ErrorRecovery
Plugin disconnected mid-syncRetry on reconnect and re-run the affected operation explicitly
Timeout on getVariablesRetry once with 2x timeout, fall back to cached data
Rate limitedBack off 5s, retry with exponential backoff
Corrupted responseLog warning, skip this sync cycle, retry next event
Registry write failsKeep in-memory state, retry disk write

Best Practices

  • Always pull before push — ensure local state is current
  • Log every sync with timestamp, direction, and counts
  • Keep sync operations idempotent — safe to retry
  • Never modify Figma pages the user is actively editing (check selection first)
  • Preserve user's undo stack — batch Figma operations into single undo group

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.