agentleFS
Fay1YeeFay1Yee/design-agent-skills/skills/sync-responsive-figma-from-web/SKILL.md

sync-responsive-figma-from-web

Skill1 starsChanged 3 months agoMITView on GitHub

Modify existing Pad and Mobile frames in the same authorized Figma Section so they faithfully inherit the latest approved or user-tuned Web frame while preserving intentional responsive recomposition. Use when the user asks to 按最新 Web 调整 Pad/Mobile, 同步同一个 Section, 让多端跟随 Web 微调, or propagate approved Web changes in layout, spacing, typography, color, components, or media treatment to smaller devices. Require the official Figma integration for reads and writes. Keep general interface-cleanup concerns separate. Use enforce-ui-visual-restraint for excessive spacing, invented gray dividers, decorative boxes, or unjustified dark regions across design work. Do not rebuild approved frames from scratch, rewrite content, or edit shared main components unless explicitly authorized.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 7 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat the latest accepted Web frame as the source of truth for approved visual changes.

    line 8
  2. Distinctive:

    Before Figma reads or writes:

    line 12
  3. Very specific:

    Use context-first-design-execution when the request continues an existing design task or uses referential language.

    line 15
  4. Very specific:

    Use cross-device-recomposition-spec only when device structure or breakpoint behavior remains unresolved.

    line 16
  5. Very specific:

    Use enforce-ui-visual-restraint only when the user also requests general cleanup of spacing, dividers, containers, or surface colors.

    line 17
  6. Very specific:

    Read responsive-delta-ledger.md when more than one module or delta family is in scope.

    line 19
  7. Distinctive:

    Do not treat numeric equality as the goal.

    line 60
  8. Distinctive:

    When an approved Web change affects layout, compare three levels:

    line 64
  9. Very specific:

    If general excessive whitespace exists outside the mapped Web delta, record it for enforce-ui-visual-restraint.

    line 79
  10. Very specific:

    verify the semantic module match and chosen Copy/Translate/Recompose/Preserve action.

    line 101
  11. Very specific:

    Check every scoped Web/Pad/Mobile group for:

    line 111
  12. Distinctive:

    every requested Web delta mapped to each target or explicitly excepted.

    line 113
  13. Distinctive:

    no clipping, overlap, horizontal overflow, or hidden footer content.

    line 117
  14. Distinctive:

    before/after parity proof for each representative module.

    line 131

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Sync Responsive Figma From Web

Treat the latest accepted Web frame as the source of truth for approved visual changes. Refine the existing Pad and Mobile frames in place while preserving valid device-specific structure and interaction.

Load dependencies

Before Figma reads or writes:

  1. Load and follow the installed figma-use Skill.
  2. Use context-first-design-execution when the request continues an existing design task or uses referential language.
  3. Use cross-device-recomposition-spec only when device structure or breakpoint behavior remains unresolved.
  4. Use enforce-ui-visual-restraint only when the user also requests general cleanup of spacing, dividers, containers, or surface colors. Track that audit separately from synchronization.

Read responsive-delta-ledger.md when more than one module or delta family is in scope. It is the canonical worksheet for source evidence, Copy/Translate/Recompose/Preserve decisions, exceptions, and parity proof.

Lock the sync contract

Record:

  • the authorized Figma file and exact Section;
  • the newest accepted Web root frame;
  • the existing Pad and Mobile root frames;
  • the specific Web edits that must propagate;
  • content, media, routes, states, and device-specific structures that must remain;
  • shared components and unrelated frames that are out of scope;
  • the available recovery point or automatic history limitation.

Interpret “按 Web 调整” as an incremental visual and geometric sync. Preserve valid Pad/Mobile reflow, touch patterns, visible information, and semantic order. Do not scale the Web frame proportionally or regenerate the whole page.

Match semantic modules

Match Web, Pad, and Mobile modules by content and role rather than layer name or canvas position alone.

For every matched module, record a compact delta ledger:

ClassCompareSync action
Geometryx/y, width, height, padding, gaps, text-box width, wrappingtranslate the approved relationship for each viewport
Visualfill, stroke, radius, typography, icon, media crop, component treatmentpropagate the accepted Web change through approved tokens or styles
Structurecolumns, order, disclosure, mobile-only controlspreserve intentional device behavior unless the new Web rule changes it
Contenttext, links, data, images, stateslock unless the user requested content changes

Capture structure and rendered screenshots. Variable bindings or node counts alone cannot prove parity.

Distinguish transfer from recomposition

For each source delta, choose one action:

  • Copy — use the same token, color, type style, radius, icon, or component state.
  • Translate — preserve the same visual relationship with device-appropriate dimensions.
  • Recompose — change columns, order, disclosure, or interaction while preserving hierarchy and meaning.
  • Preserve — keep an intentional target-specific treatment that is unaffected by the Web edit.
  • Block — stop when the target lacks a safe mapping or the required change exceeds the authorized scope.

Do not treat numeric equality as the goal. A Web two-column module may become a Pad split layout and a Mobile stack while retaining the same hierarchy, emphasis, and component identity.

Sync geometry completely

When an approved Web change affects layout, compare three levels:

  1. Inside an item — label-to-value, heading-to-body, icon-to-text, control padding.
  2. Inside a module — row gap, card gap, column gap, text-to-media distance.
  3. Between modules — section padding, transition gap, long-page rhythm, footer offset.

Apply these rules:

  • Translate relationships from the newest Web geometry and approved design-system rhythm; avoid arbitrary values.
  • Preserve the relative hierarchy of gaps across target viewports.
  • Recompute text width and wrapping before accepting derived row or module heights.
  • Recalculate child heights, parent Auto Layout, root-frame height, Section height, and following-frame positions after vertical changes.
  • Inspect min/max constraints, fixed heights, clipping, overflow, and invisible placeholders when the target refuses to fit the translated layout.
  • Clear only constraints made obsolete by the approved Web change.

If general excessive whitespace exists outside the mapped Web delta, record it for enforce-ui-visual-restraint; do not silently expand the synchronization scope.

Edit in a stable order

For each module, modify in this order:

  1. root width, columns, and outer padding;
  2. child widths, text wrapping, and responsive order;
  3. internal gaps, row heights, and component sizing;
  4. fills, strokes, typography, radii, icons, and media treatment changed in Web;
  5. module height, page height, Section bounds, and following-frame positions;
  6. device-specific states and interactions affected by the source delta.

Reuse approved components, variables, and styles. Preserve component linkage. Do not detach instances or change shared main components unless the user explicitly includes that scope.

Validate a specimen before batching

Choose one difficult Pad module and its Mobile peer for each source-delta family. Prefer long text, dense indexes, forms, media compositions, or sections already called out by the user.

For each specimen:

  1. capture the Web source, target before state, and target after state;
  2. verify the semantic module match and chosen Copy/Translate/Recompose/Preserve action;
  3. compare geometry, typography, component treatment, media behavior, and total module height;
  4. inspect the complete target root for clipping, overflow, and long-page continuity;
  5. confirm the requested Web delta visually at the same review scale;
  6. correct the mapping rule before applying it to sibling frames.

Batch only after the specimen passes. A token match does not authorize propagation when the requested delta also changes geometry or responsive composition.

Run final parity QA

Check every scoped Web/Pad/Mobile group for:

  • every requested Web delta mapped to each target or explicitly excepted;
  • visual hierarchy, component identity, and media treatment aligned;
  • text-box width and wrapping appropriate to the device;
  • intentional target-specific order, disclosure, and interaction preserved;
  • no clipping, overlap, horizontal overflow, or hidden footer content;
  • root and Section heights fitted after the mapped edits;
  • content, links, images, data, and states unchanged unless authorized;
  • shared components and out-of-scope frames unchanged.

Return Pass, Open, or Blocked for cross-device parity. If enforce-ui-visual-restraint also ran, return its spacing, divider, container, and surface-color status in a separate block.

Handoff

Return:

  1. source Web frame and target Section scope;
  2. locked content and preserved responsive behaviors;
  3. source deltas and their Copy/Translate/Recompose/Preserve mappings;
  4. before/after parity proof for each representative module;
  5. frame-level Pad/Mobile parity status;
  6. shared-component and recovery-history status;
  7. explicit exceptions or unresolved mappings;
  8. separate visual-restraint results only when that Skill was also in scope.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.