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.
In this repository16 other files it gives its agents.
- analyze-brand-web-experienceSkill
- audit-public-report-languageSkill
- build-before-after-change-deckSkill
- build-design-skill-packageSkill
- build-html-sharing-reportSkill
- content-source-truth-auditorSkill
- context-first-design-executionSkill
- cross-device-recomposition-specSkill
- design-feedback-to-ruleSkill
- design-qa-evidence-packSkill
- design-system-contract-lockSkill
- enforce-ui-visual-restraintSkill
- extract-design-systemSkill
- html-to-figma-workflowSkill
- interaction-specimen-builderSkill
- web-design-guidelinesSkill
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
- Distinctive: line 8
Treat the latest accepted Web frame as the source of truth for approved visual changes.
- Distinctive: line 12
Before Figma reads or writes:
- Very specific: line 15
Use context-first-design-execution when the request continues an existing design task or uses referential language.
- Very specific: line 16
Use cross-device-recomposition-spec only when device structure or breakpoint behavior remains unresolved.
- Very specific: line 17
Use enforce-ui-visual-restraint only when the user also requests general cleanup of spacing, dividers, containers, or surface colors.
- Very specific: line 19
Read responsive-delta-ledger.md when more than one module or delta family is in scope.
- Distinctive: line 60
Do not treat numeric equality as the goal.
- Distinctive: line 64
When an approved Web change affects layout, compare three levels:
- Very specific: line 79
If general excessive whitespace exists outside the mapped Web delta, record it for enforce-ui-visual-restraint.
- Very specific: line 101
verify the semantic module match and chosen Copy/Translate/Recompose/Preserve action.
- Very specific: line 111
Check every scoped Web/Pad/Mobile group for:
- Distinctive: line 113
every requested Web delta mapped to each target or explicitly excepted.
- Distinctive: line 117
no clipping, overlap, horizontal overflow, or hidden footer content.
- Distinctive: line 131
before/after parity proof for each representative module.
≈ “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.
Files
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:
- Load and follow the installed
figma-useSkill. - Use
context-first-design-executionwhen the request continues an existing design task or uses referential language. - Use
cross-device-recomposition-speconly when device structure or breakpoint behavior remains unresolved. - Use
enforce-ui-visual-restraintonly 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:
| Class | Compare | Sync action |
| Geometry | x/y, width, height, padding, gaps, text-box width, wrapping | translate the approved relationship for each viewport |
| Visual | fill, stroke, radius, typography, icon, media crop, component treatment | propagate the accepted Web change through approved tokens or styles |
| Structure | columns, order, disclosure, mobile-only controls | preserve intentional device behavior unless the new Web rule changes it |
| Content | text, links, data, images, states | lock 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:
- Inside an item — label-to-value, heading-to-body, icon-to-text, control padding.
- Inside a module — row gap, card gap, column gap, text-to-media distance.
- 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:
- root width, columns, and outer padding;
- child widths, text wrapping, and responsive order;
- internal gaps, row heights, and component sizing;
- fills, strokes, typography, radii, icons, and media treatment changed in Web;
- module height, page height, Section bounds, and following-frame positions;
- 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:
- capture the Web source, target before state, and target after state;
- verify the semantic module match and chosen Copy/Translate/Recompose/Preserve action;
- compare geometry, typography, component treatment, media behavior, and total module height;
- inspect the complete target root for clipping, overflow, and long-page continuity;
- confirm the requested Web delta visually at the same review scale;
- 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:
- source Web frame and target Section scope;
- locked content and preserved responsive behaviors;
- source deltas and their Copy/Translate/Recompose/Preserve mappings;
- before/after parity proof for each representative module;
- frame-level Pad/Mobile parity status;
- shared-component and recovery-history status;
- explicit exceptions or unresolved mappings;
- separate visual-restraint results only when that Skill was also in scope.
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
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.

