Wix Harmony Editor
WixOfficialPublished by Wix
- Skill
- Tool integration
- Software development
- MIT
- Low risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The wix-harmony-editor skill provides a framework for programmatically interacting with the Wix Harmony editor. It uses a local Chrome instance launched via CDP to allow an AI agent to inspect, modify, and verify website components and layouts. The skill includes a suite of scripts for tasks such as copying site pages, managing media, and performing responsive layout adjustments, while adhering to strict safety guidelines regarding site publication and dashboard data access.
What it does
- Connects to an authenticated Wix Harmony editor session via Playwright and CDP.
- Provides access to the internal editor API for component inspection and layout manipulation.
- Supports automated site migration and page copying workflows.
- Includes utility scripts for media management, preview comparisons, and responsive design verification.
- Enforces safety protocols to prevent unauthorized site publishing or dashboard data modification.
When to use it
- When you need to perform bulk updates or complex layout adjustments within the Wix Harmony editor.
- When migrating content from an existing website into a new Wix Harmony site.
- When verifying responsive design behavior across different viewport widths.
- When you need to programmatically inspect component properties or styles that are not easily accessible via the standard UI.
Advantages
- Enables precise, repeatable programmatic control over editor components.
- Reduces manual effort for repetitive site-building or migration tasks.
- Provides tools for validating responsive scaling and layout integrity.
- Maintains a clear separation between front-end editing and sensitive dashboard data.
Usage examples
- “Inspect the layout properties of the hero section with ID 'hero-123' in the current editor.”
- The agent uses the editor API to fetch and return the layout, composition, and measured dimensions of the specified component.
- “Update the height of the component 'frame-456' to 500px.”
- The agent executes a script to set the component size and verifies the change by reading back the updated layout state.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/wix/wix-harmony-editor/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip wix-harmony-editor.zip -d .agents/skills
Documentation by Wix
Wix Harmony editor
Work through the Wix Harmony editor, not the published site. Use the local Chrome launcher and Playwright; the standard in-app browser may not expose the isolated Chrome CDP session.
This file is how to connect to the editor and work in it. Copying an existing site's page into Harmony has its own rules: read COPY-SITE.md before starting a copy.
Order for a migration: create the site, then bring the data (store, bookings, blog and other app data, public and/or private), then build the front end here. Do not start the editor for a store or other app-backed site before its data is in, unless the user asks and approves (COPY-SITE.md, "Order").
Safety and scope
Treat the editor as a persistent external system. Inspect before writing.
Obtain clear user authorization immediately before a persistent change unless the request already explicitly authorizes that exact change. State the component and intended effect.
Never publish unless the user explicitly asks. Saving a draft is not publishing.
Work only on visible front-end editor content. Dashboard data (Stores, Bookings, contacts, orders, coupons, members, blog posts, or settings) is out of scope. Site media and fonts that the page displays are front-end content and in scope.
The launcher uses a separate Chrome profile. Never use, copy, or inspect the user's normal Chrome profile.
Do not expose cookies, local storage, headers, session data, or CDP WebSocket URLs. Use only the local
http://127.0.0.1:9333endpoint launched for this task.If the sandbox blocks
connectOverCDPwithEPERM, request elevation specifically for the local loopback connection. Do not use a remote host, a different port, or a workaround that exposes the debugger.
Launch and authenticate
Run the bundled launcher with the Wix editor URL:
skills/wix-harmony-editor/scripts/launch.sh 'https://example.editor.wix.com/edit/...'It starts a headed Chrome instance with an isolated, private profile and a loopback-only CDP port. If Wix shows a sign-in page, let the user authenticate in that browser. Never ask for or enter credentials yourself.
The launcher is intentionally quiet about CDP internals. It reports only whether local Chrome is reachable.
The first launch usually lands on users.wix.com/signin. Tell the user to sign in in that
window (the account that owns the site), then poll until the editor tab exists and
window.repluggableAppDebug is defined. Do not treat the sign-in page as an error.
Attach with Playwright
Confirm the expected editor is open before doing anything else:
node --input-type=module -e "
import { chromium } from 'playwright';
const browser = await chromium.connectOverCDP('http://127.0.0.1:9333');
const pages = browser.contexts().flatMap(context => context.pages());
console.log(await Promise.all(pages.map(async page => ({ url: page.url(), title: await page.title() }))));
await browser.close();
"In a Playwright script, resolve the editor page mechanically:
const page = browser.contexts()
.flatMap(context => context.pages())
.find(page => page.url().includes('editor.wix.com/edit/'));
if (!page) throw new Error('No authenticated Wix Harmony editor page is open.');browser.close() detaches Playwright; it does not close the launched Chrome instance.
Initialize and use the Harmony API
All API code runs in page.evaluate:
const api = await repluggableAppDebug.host.getAPI({
name: 'RunEditorLLMCodeToolAPI',
public: true,
layer: 'DATA_SERVICE',
});Execute editor code with the required editor context:
await api.execute(
{ code: 'return await editorLLMApis.catalog.list();' },
{ biParams: {} },
);The { biParams: {} } second argument is required in this workflow. Omitting it produces Cannot read properties of undefined (reading 'biParams'); that error changed nothing in the observed case, but do not use failed calls to discover write signatures.
Discover before acting
Start with
editorLLMApis.catalog.list()for namespace orientation.Read documentation only for namespaces needed by the task, in one documentation-only call:
return await editorLLMApis.catalog.describe({ namespaces: ['pages', 'components', 'layout', 'breakpoints', 'appearance', 'site'], });describehas a response budget. A namespace that does not fit comes back as[NOT RETURNED …]or[Truncated …]; fetch that one alone withcatalog.describe({ namespaces: ['<name>'] }).components,richText,media,layoutandappearanceeach need their own call. Save the docs to files and read them from there instead of re-fetching.Never introspect undocumented API objects or guess a write method's arguments.
Open/focus the correct page before reads, because component reads resolve against the focused page.
Use IDs, element paths, units, tokens, and schemas returned by live reads—never assumed values.
After every write, do a fresh read of the normalized, user-visible result. A write echo alone is not verification.
Common namespaces: pages (focus the page), components (find and inspect), layout (measure and resize), breakpoints (desktop/mobile view), appearance (borders/backgrounds), and site (save/publish status).
Execution pattern
const result = await page.evaluate(async () => {
const api = await repluggableAppDebug.host.getAPI({
name: 'RunEditorLLMCodeToolAPI',
public: true,
layer: 'DATA_SERVICE',
});
return api.execute({
code: `
const focused = await editorLLMApis.pages.getFocused();
return { focused };
`,
}, { biParams: {} });
});Check the returned action result for errors before taking the next step.
A failed snippet reports completedCalls with the ids it created. Those writes persist:
continue from the failed call reusing those ids, never re-run the whole snippet.
Bundled scripts
Run from this skill's directory. They import playwright, resolved from the working tree.
| Script | Use |
|---|---|
scripts/launch.sh <editorUrl> | Start the isolated, headed Chrome on loopback CDP 9333. |
node scripts/copy/lint-api.mjs --capabilities caps.json [--snippet] <file…> | Check every A.<ns>.<method>( call against the editor's real method list (recorded by snapshot-capabilities.mjs) before it is sent. |
node scripts/copy/editor-run.mjs <snippet.js> [--site <metaSiteId>] [--capabilities caps.json] | Run one editor-API snippet kept in a file; prints result or the failure summary. Lints the snippet when --capabilities / HARMONY_CAPABILITIES is set. Prefer this over inline -e code (no quoting bugs, replayable record). |
node scripts/copy/upload-media-manager.mjs <sectionId> <file…> | Upload local files to the site's Media Manager through the editor's own dialog. |
node scripts/copy/compare-preview.mjs <sourceUrl> <outDir> | Editor Preview at true canvas width vs the source, plus stacked zoom crops. |
node scripts/copy/preview-widths.mjs <sourceUrl> <outDir> --widths … [--scale-check <sectionId>] | Preview at exact widths (slider) vs the source, plus a check that every element scales with the width. |
node scripts/copy/build-description.mjs, check-description.mjs, deploy-description.mjs | Page description → local compliance/overlap/render check → one-pass deploy with read-back; see COPY-SITE.md. |
node scripts/copy/export-page.mjs, snapshot-capabilities.mjs, import-media.mjs | Recipes from a copied page, the editor's accepted schemas, public images imported by URL. |
node scripts/copy/mobile-stage.mjs hide|bg-opacity … | The two mobile-only changes with no API: Hide, and the background image opacity. |
node scripts/copy/mirror-site.mjs, serve-mirror.mjs, check-mirror.mjs | Offline copy of the source site, served locally and pixel-checked against live; see COPY-SITE.md step 0. |
node scripts/copy/measure-source.mjs, node scripts/copy/render-plate.mjs | Site copying; see COPY-SITE.md. |
Editor behaviors learned live
These hold for the Harmony editor API as observed; check the live read when one disagrees.
Global header and footer.
sections.listreturns the page's header/footer as aRefComponent(role: header|footer); background and layout writes on that id are refused. Target itsmasterId(onmasterPage) forsetContainerBackground,components.addandlayout.*.Text inside the global header/footer refuses the text-panel actions (
richText.setColor,setLink,setAlign,setFontFamily: "cannot be selected"). Style it withappearance.setStyleson the text component (color,textAlign,fontFamily,fontSize,lineHeight, …). For a link, put an inline<a href>inrichText.setTextHTML (it survives), or use a Button withlinks.set.Header/footer height has two parts. Each has an internal container (
wixSystemElements.InternalContainer, child of the master; find it in the stage DOM as[class*="internalContainerRoot"]under#<pageHeaderOrFooterId>). The background layer and the visible height follow the internal container, not the header/footer box.layout.setSizeboth to the same height; the background may update only after the nextsetContainerBackground. The internal container's grid rows are[minContent, 1fr]: a second text block that stacks under the first can be clipped. Merge lines into one rich text with<br>instead.Freeform layout is a grid of rows. A section places each child in a grid row with margins.
layout.setCompositionresolves all of a container's children as one set and rejects the whole arrangement if any two boxes overlap or leave the container, sometimes silently, leaving the auto-placed positions. Even sub-pixel overlaps of touching text boxes count. Send one complete, overlap-free arrangement per container, readgetCompositionback, and fix the inputs. Do not correct drift withlayout.moveafter a composition: it re-flows the rows and makes it worse.Content-sized boxes. Rich text height is
lines × line-height. A single-line text whose box is exactly as wide as its words can wrap on a sub-pixel font difference and push everything below it down. Give single-line boxes ≥10 px of slack (left-aligned, so the text start does not move). Buttons grow to fit a wrapped label;setSizeheight on a content-sized axis is only a minimum.Sizes scale with the viewport (spx). Font sizes, margins and box sizes written in px are stored as
spx(scaled to the 1280 reference width), so a desktop layout grows and shrinks proportionally between the desktop breakpoints. Anything that stays a realpxbreaks that proportion: alineHeight: '42px'on text, a px line-height inside a button label, a px section height. Write line heights asemratios ('1.4em'), writefontSizeandlineHeightin the samesetStylescall (writing onlylineHeightcan rescale the stored font size), and read both back. Prove it withpreview-widths.mjs --scale-check: every child must scale byw2/w1.Auto-height sections. A section added with
sections.addhasheight: auto, set by its content rows, so it scales with the page. A section that came with the template, or one whose height was set withlayout.setSize, has a fixedpxheight that does not scale. For a copied page, use a new auto-height section and move the content into it withcomponents.canReparent+components.reparent(ids and styles are kept).Desktop vs mobile views. The mobile view (below 1024 px) shows the same components. Per view through the API, in the mobile view:
layout.setCompositionpositions, widths and the sectionbox.height. Shared (a write in mobile view changes desktop too): image heights (send none on mobile, the ratio derives them),layout.setSize,appearance.setStyles,appearance.setContainerBackground. Stage-only, per view: Hide and the background image opacity (scripts/copy/mobile-stage.mjs).Classic scrollbars shrink the canvas. With an always-visible OS scrollbar the stage loses 15 px: a desktop section reads 1265 instead of 1280, a mobile one 375 instead of 390, and every composition then lands off (a deploy reports dozens of differences; switching the OS setting between a trackpad and a mouse does this). The copy scripts call
hide-scrollbars.mjs(Emulation.setScrollbarsHidden, which lasts only while their CDP session is attached). If you drive the editor another way, checklayout.getCompositionon a section: width must be 1280/390.Compositions are anchored, not absolute. Each child is kept relative to the one above it. When a child ends up shorter or taller than the box sent (a new text that reflows, an image height off its ratio, a Button below its label height), everything after it moves. Send the heights the engine will compute and re-send the set until
getCompositionmatches (deploy-description.mjsdoes both).Rich text.
setTextkeeps inline<span style="color|font-weight|font-family|font-size">and<a href>as sent (apxfont size in a span does not scale: useem).links.seton a rich text rewrites it: the root becomes<h1>with an underline span. Keep text links inline. A plain single line goes throughinjectText.Buttons size to their label. A set height is a minimum; a tall transparent click area gets its height from the label
lineHeightinem.Results over ~50 KB are truncated (
"[Truncated: … chars]"in place of the value). Read in batches, or compare inside the snippet and return only the differences.pages.addcreates an empty placeholder section (shouldReuse: true); a deploy that adds its own section removes it.Hide is per view, and only from mobile. Right-click a component or section on the mobile stage → Hide hides it on mobile only. Desktop has no Hide (it is the base view), so content can be hidden from mobile but never from desktop. Un-hide in the Layers panel → Hidden on mobile → the eye button on the row (
[data-hook="layers-item@DESKTOP--<id>"] button).Global header/footer are hard to make responsive. They are a single row (
[minContent, 1fr]grid) and their background does not follow the page content. For an exact copy, collapse them (header, footer and their internal containers set to 1 px, background transparent) and build the nav and footer inside the page's own section, where they scale with everything else.Media.
media.uploadFilesaccepts only temporary wixmp chat URLs. Import public web images from a copied page withscripts/copy/import-media.mjs, which downloads each one itself (global-unicast destinations only, at most 10 MB, six at a time, once per distinct URL) and uploads the bytes throughPOST https://www.wixapis.com/site-media/v1/files/generate-upload-url(site token, headerwix-site-id); never pass an untrusted page's URL tofiles/import, which makes Wix fetch it. Then read theuriwithmedia.searchSiteFiles. Upload local files withscripts/copy/upload-media-manager.mjs. Image values forcontent.setare{ uri, name, alt, width, height }; adddisplayMode: 'fit'to show the whole image.Fonts. Only the editor's catalog and the site's uploaded fonts render. Importing a
.ttfthrough the media API creates a FONT file that is not registered. Register fonts through the editor: select any text, open the font dropdown in the text toolbar, click Upload fonts, then feedinput[type=file][accept*=".ttf"]withsetInputFiles. Afterwardsfonts.resolve('<Name>')refuses but suggests the uploaded family (wfont_<x>_<id>,wf_<id25>,orig_<name>): use that full string asfontFamily.Buttons as text links. A Button with transparent background, zero borders/padding and a styled
labelelement is the reliable linked text in global header/footer. Theme button looks are saved styles: restyle one button locally, thenthemeComponents.updateFromComponent({ kind: 'button', styleId: 'button-primary', … }).Pinned elements.
layout.pinToScreen({ position: 'center-bottom', offsetPx })pins a floating button and moves it to the page (out of the section). A pinned component cannot be resized: set its size first, or unpin, resize and pin again.Tokens expire. A CLI site token (
npx @wix/cli@latest token --site <id>) stops working during a long session (REST calls start returning 403). Re-mint and retry once before diagnosing anything else.True-width Preview. The Preview frame defaults to 1280 px whatever the window size. Its width slider (
[data-hook="slider-handle"],aria-valuenow, range 390 to the window width minus 84) is only rendered while the window is at least ~1300 px wide. Click the slider track near the target, then use the arrow keys for the exact width (preview-widths.mjsdoes this). A free site adds a 44 px "Upgrade" banner above the page. The editor stage is zoomed (Fit (60–110%)), so stage screenshots are not a pixel reference.Watch the published state.
site.getStatus().isPublishedbecametrueduring scripted UI work on this site, cause unknown. Read it before and after UI automation, never click by raw coordinates in the top bar (Publish is there), and report a change to the user instead of quietly reverting it.
Example: make a hero frame responsive
When a hero frame scales in width but its text overflows at wide desktop sizes, find visible title text, inspect its ancestors, and identify the bordered frame container:
const title = await editorLLMApis.components.find({
textContains: 'Hero title',
limit: 20,
});
const inspection = await editorLLMApis.components.inspect({
componentId: title.components[0].id,
aspects: ['layout', 'styles'],
neighbourhood: true,
});Read the frame's declared layout and composition. A typical problem is a percentage width paired with fixed pixel height while the text uses spx sizing:
const frameId = 'REPLACE_WITH_FRAME_COMPONENT_ID';
const layout = await editorLLMApis.layout.get({ componentId: frameId });
const composition = await editorLLMApis.layout.getComposition({ componentId: frameId });
const measured = await editorLLMApis.layout.measure({ componentId: frameId });
return { layout, composition, measured };For a frame declared as height: { value: 536, unit: 'px' }, the responsive repair is normally to preserve the value and use Wix scaled pixels. After authorization:
const updated = await editorLLMApis.layout.setSize({
componentId: frameId,
height: 536, // plain pixels: the component keeps its own unit (spx stays spx) and the value is recomputed
});
const verifiedLayout = await editorLLMApis.layout.get({ componentId: frameId });
const status = await editorLLMApis.site.getStatus();
return { updated, verifiedLayout, status };Verify that the stored height is { type: 'spx', value: 536 }, that the editor reports a successful save state, and that the site remains unpublished unless publication was explicitly requested.
Files
- .publish-manifest.json218 B
- ATTRIBUTION.mdAdded by AutoGineer823 B
- COPY-SITE.md39.8 KiB
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md19.4 KiB
- VERSION6 B
- scripts/copy/build-description.mjsScript23.2 KiB
- scripts/copy/check-description.mjsScript23.0 KiB
- scripts/copy/check-mirror.mjsScript6.7 KiB
- scripts/copy/compare-preview.mjsScript4.5 KiB
- scripts/copy/deploy-description.mjsScript20.5 KiB
- scripts/copy/desc-hash.mjsScript3.0 KiB
- scripts/copy/editor-run.mjsScript3.1 KiB
- scripts/copy/export-page.mjsScript4.8 KiB
- scripts/copy/find-interactions.mjsScript6.5 KiB
- scripts/copy/hide-scrollbars.mjsScript1.1 KiB
- scripts/copy/import-media.mjsScript6.9 KiB
- scripts/copy/link-url.mjsScript1.5 KiB
- scripts/copy/lint-api.mjsScript3.3 KiB
- scripts/copy/measure-source.mjsScript19.9 KiB
- scripts/copy/media-import.mjsScript4.8 KiB
- scripts/copy/merge-mirrors.mjsScript1.9 KiB
- scripts/copy/mirror-site.mjsScript5.3 KiB
- scripts/copy/mobile-stage.mjsScript5.3 KiB
- scripts/copy/preview-widths.mjsScript6.6 KiB
- scripts/copy/public-address.mjsScript3.6 KiB
- scripts/copy/render-plate.mjsScript4.3 KiB
- scripts/copy/serve-mirror.mjsScript7.9 KiB
- scripts/copy/snapshot-capabilities.mjsScript3.9 KiB
- scripts/copy/split-sections.mjsScript16.7 KiB
- scripts/copy/upload-media-manager.mjsScript4.0 KiB
- scripts/launch.shScript15.6 KiB
COPY-SITE.md
Copy an existing site page into Harmony, exactly
Use this when the task is to reproduce a live source page (WordPress, Shopify, anything public) in a Harmony site. Connecting to the editor and the general editor behaviors are in SKILL.md; read that first.
Order: create the site, then the data, then the front end
A copy is never started from the editor. The order is fixed:
Create the Harmony site (blank template, unpublished). Nothing else is done to it yet.
Bring the data first when the source is a store, bookings, events, blog, or any other business that Wix serves from an app (products, categories, services, posts, members and the like). Collect the public data, and the private data where the run has access, or both. What the data turns out to contain tells you which Wix app to install on the site (for example Stores for products and categories), and the data migration (the
wix-replatformflow) then fills that app. A page's product tiles, category links and carousels need real catalog items to point at.Only then copy the front end in the editor, linking to the migrated items.
Starting the front end before the data is allowed only when the user asks for it and
approves it. State the consequence when asking: product and category links, and any
catalog-driven block (best sellers, category tiles, gift guides), keep pointing at the source
site until the data exists, and they are openItems for cutover.
A source with no app data (a brochure site: text, images, contact details) goes straight from step 1 to step 3.
The goal is a copy, not a redesign
"Copy the site" means a visitor cannot tell the Harmony page from the source: the same artwork, fonts, sizes, colours, positions, text and links, at every screen size the source supports. It does not mean "inspired by" or "modernized".
For every area, a Wix component that does the same job (collection, signup form, video, cart, social bar...) is used instead of a static picture of it: see item 16.
A freeform rebuild with Harmony's stock components, theme fonts and eyeballed spacing was tried and rejected ("doesn't look the same at all"). A copy that was exact at 1280 px but broke at 1836 px and looked bad on mobile was also rejected. Do not stop at one width.
Done means all of the following:
preview-widths.mjsshows the Harmony Preview matching the source at 1920, 1836, 1440, 1280 and 1024 (no element off by more than ~2 px at 1280, proportional elsewhere), and its--scale-checklists no deviations;the mobile view (390 px) and tablet widths (768, 1000) show every source text, image and link in a readable single column with the source's artwork, no overlaps and nothing cut off;
every link target matches the source (see "Links");
every remaining difference is listed for the user with its reason;
the draft is saved. Publishing is the user's decision.
Method: local copy → description → local check → one deploy → stage steps → verify
The decorative layer is copied as rendered pixels (the plate). Everything a visitor reads or clicks is a live Harmony component at the measured coordinates. All of it is first written down in ONE local file, the page description, and checked locally; the editor is touched only by a deterministic deploy. Each problem that used to cost an editor round (overlap rejection, px values, early wraps, wrong heights) is caught before deploying.
Make a local copy of the whole source site, and prove it.
node scripts/copy/mirror-site.mjs <work>/mirror <url> [<url> ...] # every page and post URL node scripts/copy/serve-mirror.mjs <work>/mirror --port 8732 & node scripts/copy/check-mirror.mjs <work>/mirror <work>/mirror-checkGet the URL list from the source's public API (WordPress:
?rest_route=/wp/v2/pages&per_page=100&_fields=id,link,title, same forposts).mirror-siterecords every response at 390/1024/1280/1920 (responsive images differ per width). Third-party iframes (Google Maps) cannot replay offline, so each is saved as a snapshot image and served in its place.check-mirrorscreenshots live and local (local browser cut off from the internet) and diffs the pixels. Done when every page is ≤0.1% different with no local 404s and no blocked request other than analytics. A run of all zeros is normal for a static site; the diff was negative-controlled on two different pages (41%).From here on, measure, plate and compare against
http://127.0.0.1:8732/…instead of the live site: faster, repeatable, and unaffected by source changes.
Find the interactions, then measure the source (the local copy). First
find-interactions.mjs(item 17): a hidden tab, accordion or toggle pane is part of the page.node scripts/copy/measure-source.mjs http://127.0.0.1:8732/<page> <work>/source.json --width 1280Besides boxes, fonts and colours it records per text block:rich(Harmony-ready HTML, inline runs as<span style>relative to the block's dominant style, sizes inem),segments(a paragraph that wraps around a float, split into runs that share a line width; floats only count in the same block formatting context and after their DOM position),glyphBox(the words only, without inline icons),linePitch,occludedandhiddenText(image-replacement links: a click area over artwork).Fonts first. List every family in
texts[].font. Upload missing ones through the editor's Upload fonts dialog (SKILL.md → Fonts) and record thewfont_…families in a font ledger{ families: { "<Source name>": "<Harmony family>" } }. Google Fonts files:https://raw.githubusercontent.com/google/fonts/main/<ofl|apache>/<name>/…(check the licence). Generic families map to catalog fonts (courier→courier new).Recipes and capabilities (once per site).
node scripts/copy/export-page.mjs <pageId> <sectionId> <work>/recipes.jsonexports an already-copied page (styles, content, links, desktop and mobile boxes, pinned items). The next page reuses those looks for the same words and images (nav, tabs, notes, footer), matched by text AND font size AND colour.node scripts/copy/snapshot-capabilities.mjs <draftSectionId> <work>/capabilities.jsonrecords what the editor accepts per component type.changedSinceLastSnapshot: truemeans the editor changed: re-check before deploying.
Build the description:
node scripts/copy/build-description.mjs <work>/source.json <work>/page.desc.json --fonts <ledger> --recipes <work>/recipes.json --source-origin https://<site> --local-origin http://127.0.0.1:8732 --pages '{"https://<site>/":"<homePageId>","https://<site>/<this page>":"<pageId>"}' --name "<Page>" --decorative <img substrings kept in the plate>Deterministic. Read itsreviewlist: anything it could not decide is there, never guessed.Prepare media in parallel (nothing here waits on anything else):
node scripts/copy/import-media.mjs <projectDir> <work>/page.desc.jsonimports the public images by URL (REST, mint the token first) and writes their uris back.render-plate.mjs <local url> <work>/plate --cuts full:0:<page.height> --width 1920 --scale 2 --keep …thenupload-media-manager.mjs <anySectionId> <plate>; put its uri insection.background.plate.
Check locally until clean:
node scripts/copy/check-description.mjs <work>/page.desc.json <work>/check --capabilities … --fonts … --source <local url> --plate <plate.png> --writeIt validates every type, style key, link type and value against the snapshot; renders the description with the source's own fonts; settles 1–3 px touches and click areas; fails on any remaining desktop overlap; diffs the render against the source (expect ~5%: font anti-aliasing); stacks the mobile column with measured heights and derives the mobile background bands from the plate colour behind each component. Look atcheck/render-1280.pngandcheck/render-390.png.Deploy:
node scripts/copy/deploy-description.mjs <work>/page.desc.json --page <pageId> --clean(pages.add({ name, addToMenu: false })creates the page.) About 9 editor calls: setup, create in chunks of 10, desktop composition (re-sent until every box lands), pins, mobile composition re-stacked from the heights Harmony really gave each text, and an in-editor read-back that must reportproblemCount: 0. State is kept in<desc>.deploy.json: after a fix, re-run without--clean(it re-places), or with--reapply(it re-sends content, styles and links too). A full page took ~35–50 s.Stage steps (no API):
node scripts/copy/mobile-stage.mjs hide <id…>for click areas and anything else that must not show on mobile, andnode scripts/copy/mobile-stage.mjs bg-opacity <sectionId> 0so the desktop plate does not show on a phone (the band gradient shows instead).Verify:
node scripts/copy/preview-widths.mjs http://127.0.0.1:8732/<page> <work>/w --widths 1280,1920,1836,1440,1024,768,390 --scale-check <sectionId>.scaleDeviationsmust be empty. Compareh-1280.pngwith the source at a 46 px offset (the free-site banner), masking the floating button. Look at 768 and 390.Links: every source link is a link in the copy, and none may point back at the source.
measure-sourcerecords every visible link (anchors).build-descriptionsets text and image links, wraps a text that sits inside a link (nav items, "show all") in an inline<a>, and turns every other link (icons painted in the plate, the logo, social icons, tiles) into a transparent click area over its box. Floating elements (a chat pill) are pinned by recipe, never click areas. A link to a store category, a product, or any page the copy replaces MUST go to the new site's own page. Pass--linkmap links.json:{ "<source URL>": { "link": <Harmony link>, "inline": "<absolute URL for text links>" } }, built from the migrated data (the data step's crosswalk and the Stores category/product slugs):category:
{ type: 'PageLink', pageId: <the Stores "Category Page" (pages.list marks it isDynamicPage)>, innerRoute: <category slug> }.innerRouteis the slug only: the editor prefixes/category/itself (category/<slug>gave/category/category/<slug>).product: the editor rejects
PageLink+innerRoutefor the Stores product page ("Router not found for this page"), so use{ type: 'ExternalLink', url: '<site>/product-page/<product slug>', target: '_self' }.a link inside rich text cannot be a PageLink: its
inlineis the absolute URL (<site>/category/<slug>).a page that is not built (about, policies, contact, account): point it at a page that exists (Home, the cart or account page) and mark the entry
"unbuilt": "<why>"; never leave the source URL. The builder writes every such page todesc.pendingItems(source URL, the stand-in it points at, the components, responsible role, next action, what resolves it): the durable cutover hand-off. A redirect to Home never resolves it; only mapping the source URL to a real page (the entry withoutunbuilt) does.check-descriptionfails whenpendingItemsis stale and lists each pending page as a warning; the deploy report carries them.lookup keys keep the case of the path and query values (
/Product/Aand/product/aare different pages) and ignore per-visit tracking parameters (utm_*,fbclid,gclid,_ga,mc_*,visitorId) and the fragment.check-descriptionFAILS while any link still points at the source (--allow-old-links "<reason>"only for pages deliberately not built yet). After publishing, read every<a href>back from the live page, request each category and product URL, and confirm status 200, the right title, and products listed. A visitor reaching the old site is a critical bug. Slugs can be non-Latin or emoji: the live URL is percent-encoded, the description keeps them readable.
Elements Harmony supplies (cart icon, login): add them in the description (
build-description --native native.json,kind: native) so they land in the same deploy. Never add or remove a component by hand after the deploy: each add or remove lets the editor squeeze the page's blank bands (a cart icon or a helper box shifts the page) and the plate no longer lines up. Undo/redo in the editor is one step per run, not per call: undoing too far also undoes the header collapse. A login bar needs the Members app; it is not an addable component on a blank site.Local copies of the linked pages: capture the category and product pages the homepage links to (
mirror-site.mjs <dir> <urls...> --widths 1280 --resume; it saves every 10 pages, so a long list can resume). Pages take ~25 s each: split a long list over several output directories and merge theindex.jsonfiles (union ofresources,pages,captured, copy thebodies).One Harmony section per source section. A page copied as one big section cannot be edited like a Harmony page, and every add or remove squeezes the whole grid. After the deploy, split it: measure the source's top-level blocks (for SFCC
.experience-region > .experience-component, plus header, content asset and footer), list them in a spec and runnode scripts/copy/split-sections.mjs <spec.json> --page <pageId> --section <oldSectionId>(spec format in the script header: name,y0/y1in source pixels,delta(Harmony y minus source y), background, videos,place,include,drop,cards). It keeps every component with its id, style and link, gives each section its own background and its own desktop and mobile layout, then removes the old section. Backgrounds: sample each band of the plate; a band that is one colour is a section background colour with no image, only a decorated band gets its own plate (render-plate.mjs --width 1280 --scale 2with one cut per section). For a plate section runmobile-stage.mjs bg-opacity <sectionId> 0unless the plate survives a phone width, and check each section's mobile height (the editor may keep an old tall height: sendsetCompositionagain). A grid of tiles uses"cards": trueso a phone shows tile by tile instead of all images and then all captions. Set--redo-mobile "<name>"to re-send one section. A section whose boxes do not land (desktop or mobile, re-read after every write) is not finished: the run exits 1, keeps the original section and resumes from that section. The final cleanup (drop, remove the original section) runs once all sections are finished, checks what still exists, and is recorded, so a repeat or a mobile redo never touches a deleted section.Videos are copied as videos. A source video (Vidyard background player,
<video>) needs the real mp4: the player's JSON lists signed URLs that expire in minutes and answer 403 withoutReferer/Origin: https://play.vidyard.comand a browser User-Agent, so download them while mapping the page. Upload through Media Manager (upload-media-manager.mjs; Playwright cannot transfer more than 50 MB per call, so upload a large file alone). A half-width video next to text is awixEditorElements.VideoUploadat the measured box (autoplay, loop, muted, no controls); a full-width one is the section's background video (videoMedia). The video value must be{ uri: 'video/<fileId>/720p/mp4/file.mp4', name, hasAudio, duration, adaptiveSources: [], sources: [{ quality, width, height, types: [{ format: 'mp4', uri }] }], poster: { uri: '<fileId>f002.jpg', name, width, height } }.adaptiveSourcesmust be present, even[]. Without it the saved document cannot be loaded again: the editor stays on the loading screen ("Failed to wait for Document Services",Cannot read properties of undefined (reading 'map')). Recovery: open the editor with Playwrightpage.routeonpages.parastorage.com/sites/*.jsonand addadaptiveSources: []to the broken video items in the response, change the video once and save; a plain reload then works. After a long run, Preview needs ~20 s to render: scroll the Preview frame and take viewport shots instead of one full-page screenshot.A product collection is the Stores slider gallery, never static tiles. Wherever the source shows a collection (best sellers, new, gift picks, related) add the
checkout_Orders.SliderGallery_legacyobject ("Slider Product Gallery") in that section; the static images, names and prices are dropped (dropin the split spec). It is driven by a Stores category: pick an existing category when the source's list matches one, otherwise create one and assign the products found in the source block (parse the block's tiles from the local mirror, match the migrated products by exact name or SKU, thenPOST /categories/v1/categoriesandPOST /categories/v1/bulk/categories/<id>/add-itemswithappId 215238eb-22a5-4c36-9e7b-e7c08025e04e). The category cannot be set throughcontent.set; open the gallery's Settings (editActions.run({ action: 'chooseSource' })), "Change Category", search, "Select" (the picker is the iframeecom.wix.com/storefront/settings-minigallery). The gallery shows its own title (the category name); set "Gallery title alignment" to the source's side and do not add a second heading. Record the category as a cutover item (the source ranks by sales, the new store has no sales history yet).For every area, look for a Wix component first, and match it. Before an area of the source is rebuilt from text, images and a plate, name what it is (collection, newsletter signup, contact or booking form, search, login, cart, menu, social icons, map, video, gallery, accordion, tabs, repeater) and look for the Wix object that does that job: the addable list (
components.listAddable), the Add panel's Elements search (it also lists app widgets that are not inlistAddable, such as Forms and Popups), andapps.searchfor an app that supplies it. Use the object when one exists and configure it to the source (texts, fields, colours, size); build static pieces only for areas with no Wix equivalent, and list those as differences. Examples: product collections -> Slider Product Gallery (item 15); videos -> Video Player or a section background video (item 14); the cart icon -> Cart Icon (item 11); a newsletter signup (email, consent checkbox, button) -> the Wix Forms "Subscribe" form. Search the Elements panel for "subscribe" and click the first "Sign Up for Our Newsletter" card with the target section selected (components.select, then Playwright on Add > Elements). The first use installs Wix Forms ("Adding Wix Forms", about 30 s, thenforms.listshows "Newsletter signup", typewixForms.Form_legacy): it is an app install, so say so before doing it. Then:forms.updatefor field labels (the form came out in the site's Hebrew, header, consent and button included; the header, consent text and button label are not editable throughforms.update),appearance.setStyleson the form's elements (form-backgroundtransparent,text,input,submit-button,form-containerpaddings; the consent line takestext.paragraphColor), then remove the live texts and the plate drawing the old form, set the section's colour, and compose the form in the section (desktop and mobile) with the section height from the form's measured height. Record any area you could not match, with the Wix object you looked for and why it was not used.Find what a visitor can do, not only what the page shows. A screenshot is one state. Before measuring, run
node scripts/copy/find-interactions.mjs <local url> <work>/interactions.json --shots <work>/ix: with Playwright it lists the controls (tabs, accordions and "read more" toggles, carousel arrows, in-page anchors, details/summary), clicks each one from inside the page (el.click(), so a consent dialog or sticky bar over the control does not block it) and records what each state shows (images, links, text, a screenshot). It reportshiddenPanes: content that exists only after a click. Every hidden pane must be copied, its images fetched from the mirror (the mirror already holds them) and its links mapped like any other. Also look for what only appears on hover (mega menus, zoom), scroll (sticky bars, reveal animations), time (rotating banners) or a click on an image (quick view, dialogs); click or hover them with Playwright and screenshot each state. Do not call a page copied while any control has an unexplained state. Match each kind to a Wix component (item 16): tabs -> Tabs (wixEditorElements.TabsContainer), accordion -> Accordion, carousel -> Slideshow or the Stores slider gallery, hover or dropdown menu -> Menu, dialog or popup -> Popup.Tabs. Add
wixEditorElements.TabsContainerin the section; it comes with 3 tabs. Set the names and count withcontent.set({ values: { tabs: [{ ...tab, name }, ...] } })using the tab objects read back (a shorter array removes the extra tab). Each tab is an inner container (components.getTree): remove its placeholder children,components.reparentthe tab's tiles into it (or add them there), give each tile its link, and place them withlayout.setCompositionon that inner container (width = the tabs' width, a tile at the source's column and row; do it for desktop and again in the mobile view). A tabs component has no grid of its own: set its x, y and width with the section'ssetComposition, its height follows the content. StyletabContent(background) andmenuItem(background, colour, font size, letter spacing, padding, bottom border) withappearance.setStyles; the active tab's look is theselectedstate:appearance.changeState({ elementPath: ['menuItem'], state: 'selected' }), set the colour and bottom border, thenchangeStateback tonull. The tab bar's own fill (menu-backgroundand the othermenu-*root properties) is rejected bysetStyles("must NOT have unevaluated properties"): set "Tab container color" in the Design panel (editActions.run({ action: 'design' }), Fill colors, the swatch, the hex field).Check the copy for what is missing, not only for what differs. A photo that is an
<img>is hidden from the plate on purpose and must be an Image component; one without a component simply vanishes (a photo beside a text block was lost until a person saw the empty half). After a deploy, compare each section with the source side by side and list every source image, text and control with no counterpart in the copy; fetch the source image from the mirror and upload it. A video file can carry black bars of its own (a 16:9 file with a wider picture has bars top and bottom): extract a frame (ffmpeg -ss 3 -i video.mp4 -frames:v 1 frame.png) and size a cover-fit section to the picture. A product image that shows broken in a Stores gallery while its original URL loads is usually a JPEG the image service cannot resize (an Adobe RGB profile or EXIF dimensions that disagree with the real size): re-encode it (ffmpeg -i in.jpg -map_metadata -1 -vf scale=W:H -q:v 2 out.jpg), upload it, and set the product's media withPATCH /stores/v3/products/<id>including"fields": ["MEDIA_ITEMS_INFO"](withoutfieldsthe update fails with a 500). Test every product image with<url>/v1/fill/w_300,h_300/x.jpgafter an import.Copy the content, then improve the site. A copy that reproduces every flaw of the source is not the goal; where Wix gives a better result, take it. After the sections are built, review the whole page for what a visitor would notice and fix it:
Site language and direction. A Hebrew store on a site whose language is English shows "Add to Cart" and a left-to-right Stores layout. Set the language (
PATCH /site-properties/v4/propertieswith{"properties":{"language":"he"},"fields":{"paths":["language"]}}, the field mask is an object, a plain array answers "Failed to parse JSON"), reload the editor, publish: the Stores widgets come out in Hebrew and mirrored.Gaps. Compare each section's content with its height:
layout.getCompositiongives the first contentyand the last bottom. Pull the content to a 48-64 px margin and cut the height to match (the source's dead bands are not worth copying). Do it for desktop and re-send the mobile layout afterwards: a desktop re-send also moves the mobile boxes, and a mobilesetCompositioncan move the desktop ones, so read both views back after every layout write.Mobile. Stack a feature as icon, title, text (not all icons, then all titles); a tile with its caption; photo first. Hide the click areas that sit over plate icons (
mobile-stage.mjs hide) and set the mobile height to the last visible bottom + 24.Readability. Text on a dark band must be readable in every state (a form's checkbox label takes
input.inputValueColor).
Store pages are part of the copy. The Category Page (
checkout_Orders.CategoryPage_legacy) and Product Page (checkout_Orders.ProductPage_legacy) are single app widgets: review the source's category and product pages next to them and set the widget's styles withappearance.setStylesper element (category:general,productGallery,productInfo,headerSection,sidePanel,pagination,loadMorePrevious; product:actionButtons,productInfo,quantity,infoSections,productImages,wishlist) with the brand colours (price, sale price, selected filter and the add-to-cart button in the brand colour, the strikethrough price grey).editActions.run({ action: 'elements' })opens "Display elements": switch the category menu off when it lists every category of a store with many categories. The widgets' header and footer are the global ones, which this API cannot fill: copy the home page's header section and footer sections to each store page withcomponents.copy({ componentIds })on the home page, thenpages.navigateto the store page andcomponents.paste(), thensections.reorder(a pasted section lands last). Add a collection to the product page with the slider gallery in its own section; "Related products" renders empty outside the product widget's own slot, so pick a category.
Rules for a good, fast copy
Measure, never eyeball. Every position, size, colour and font comes from
source.json. If a number is missing, extend the measurement, not your guess.Real fonts or nothing. Wrong fonts are the most visible difference. Upload the source's fonts before placing any text.
Plate the decoration, rebuild the content. Paper textures, torn edges, gradients, photos used as backgrounds and ornaments go in the plate. Text, links and meaningful images stay live.
Everything scales or nothing does. No
pxthat survives in the stored data:line heights as
em;images in
fitWidth;sections with
height: auto;no fixed-height header/footer.
One
pxline height in one button makes the page short at 1920. Run--scale-checkafter every batch of style writes.Overlap-free arrangement. Harmony rejects the whole composition if any two boxes overlap, including touching text boxes whose height is
lines × line-heightwith decimals. Resolve source overlaps by baking the decorative party into the plate or by nudging a box 1 px. Never repair drift withlayout.move.Text boxes (build-description does this):
single-line: the painted words (
glyphBox) + 12 px, anchored as aligned (centred text stays centred on its words, not on an inline icon beside them);multi-line: the block width, or the run width for a paragraph split around a float;
<br>stays<br>; box top = the first glyph line's top (lineTop).
Width differences in a substitute font are fixed with
letterSpacing(e.g.-0.4px), never by shrinking the box below the text.Mobile: positions, widths and the section height are per view through
setCompositionin the mobile view; image heights, sizes fromsetSize, styles and backgrounds are shared. Never send an image height on mobile (the ratio derives it), and never style in mobile view. Hide and background-image opacity are stage steps.Verify in Preview at exact widths, never on the zoomed stage. Compare images side by side and sample pixel colours before calling a colour wrong.
Batch writes, save often, guard publishing.
Batch 10–15 components per snippet,
site.save()at the end, and record the returned ids in a work file.Never re-run a partly failed batch.
Check
isPublishedbefore and after UI automation.
Send the heights Harmony will compute. Boxes are anchored to the box above them: a text sent taller than it renders, an image whose height breaks its ratio, or a Button whose height is below its label pulls everything after it up. Text heights come from the local render with fonts loaded; image heights from the ratio; a click area's height from its label
lineHeight(em).Links inside text stay inline
<a href>.links.seton a rich text rewrites it (root becomes<h1>, an underline span appears). Strip tracking parameters (utm_*,visitorId, …) from links: they change per visit.Compare against the offline copy. A live source can paint popups over itself (an order widget opened a modal and made a 90% "difference").
Write down what each new site taught you (see "Improve the method" below): site specifics in your migration folder, generic findings as
dev3 notefor the skill maintainer.
Starting a new site (checklist)
Public data only. Never ask for or use credentials.
Create the Harmony site from the blank template. If the source is a store or another app-backed business, stop here and migrate the data first ("Order" above); open the editor for the front end afterwards (SKILL.md).
Steps 0–10 below, one page at a time; copy the homepage first so later pages can reuse its recipes (nav, footer, fonts).
Run
snapshot-capabilities.mjsonce per session and pass it as--capabilitiestocheck-description.mjsandeditor-run.mjs(or setHARMONY_CAPABILITIES): every editor call is then linted against the editor's real method list.Read the
reviewlist of everybuild-descriptionrun. It lists what the method cannot decide: missing fonts, embeds/video/forms (unsupported), floating elements without a recipe, default mobile thresholds (--layout).Keep customer-specific files (mirror, descriptions, ledgers, screenshots) in the project's migration folder, never in
skills/.
Dynamic sources (carts, carousels, recommendations, video)
The offline mirror must be proven before measuring (step 0). Pages that load blocks by script
(product carousels, recommendation widgets, JSONP) need the mirror server's replay features:
per-site --port, runtime-URL shim, fuzzy lookup that ignores timestamps, visitor ids and
callback names. check-mirror refuses a port that serves another site, and reports
diffOutsideMediaPct: video and player regions cannot be compared (headless Chromium has no
h264), so the 0.1% gate applies outside them. Run yarn install first in a fresh worktree:
the scripts need playwright.
Learned on a fluid, responsive store homepage (RTL)
Result: live components over a full-page plate; desktop scales; mobile is a readable single column; vertical position can drift toward the bottom of a long page. What to know before the next one:
A fluid layout is copied as the 1280 px design, scaled. Harmony scales the section with the viewport; the source re-flows. Match at the design width, say so for 1920 and others.
The editor API moved under the scripts.
components.addtakes{ containerId, components: [{ componentType, box }] }and returnsadded[].componentId;layout.setSizetakes plain numbers;fonts.resolvetakes{ fontFamily }.snapshot-capabilitiesfails first when it moves: run it before anything else.Plate: render with a normal viewport height and a scroll pass (footers and bands paint on scroll), at the design width. Images that overlap text (a photo under a text card) and SVGs that cannot be imported as media go in the plate (
--decorative,--keep).Cropped images (a hero drawn with
object-fit: cover) needdisplayMode: filland an explicitsetSize, otherwise composition derives the height from the ratio and the page below creeps up. build/postedit marks them when the box ratio differs from the file's by >1.5%.Texts that wrap one line earlier in Harmony (different glyph widths): widen the box (right-aligned text grows to the left; centred symmetrically) or use
letterSpacing(a small negative value fits a link). Find the width in the editor withlayout.setSize+layout.measure, then record it.check-description --heightstakes the editor's measured text heights.The section's grid compacts blank vertical bands and loses a few pixels on every
setComposition. Re-sending does not converge ("resolved back onto the boxes it already had" is the fixed point). Transparent spacer images hold the rows (the drift shrinks) but their size is shared with mobile and there is no API to hide a component on mobile (the UI hide step could not find "Hide" on a 4 px component), so spacers were not kept. Open item.Global header/footer cannot be collapsed through the section API (they are refs; their cart icon and login bar sit on the master page and
setSizestops at the content height).Chrome can exit mid-run. Use a per-site
--port; after a relaunch read the site state (component count, plate,isPublished) and runsite.save()before continuing.
Scope and limits
Proven on a fixed-width, centred 1280 px layout (top nav, header band, main column, right
sidebar). Components other than text, image and button are not rebuilt; embeds, video, forms
and inline SVG are listed, not copied. A responsive theme (no fixed width, no centring) has not
been tried: expect to tune --layout and to extend the mobile stacking. Say so in the report
instead of presenting a partial copy as exact.
Several sites, several agents: one agent per site
A customer migration may run many sites at once. Each site gets exactly one agent. Never put two agents on the same Harmony site, and never split one site's pages between agents: they would share one editor tab, one set of component ids and one save, and overwrite each other.
Per-site isolation (an agent uses only its own):
its own Harmony site (msid) and editor tab;
its own Chrome: set
PW_PORTto a free port andWIX_HARMONY_PROFILE_DIRto a folder for this site beforelaunch.sh, and use the samePW_PORTfor every script;its own migration folder (mirror, descriptions, ledgers, screenshots,
capabilities.json). Another site's files are never read or edited.
Brief the agent gets (the orchestrator fills this in; ask if something is missing):
source URL, and the list of pages to copy, homepage first;
the Harmony site (msid) and editor URL;
the migration folder and the
PW_PORT/ profile folder;the rules: public data only, never publish, never touch the menu or other pages unless asked, report in the format below.
Order inside a site: homepage first (nav, footer and fonts become recipes), then the
other pages one at a time. Run snapshot-capabilities.mjs once per session.
Stop and ask a human (dev3 attention "<question>") instead of guessing when: the
source needs a login, a page is mostly embeds/video/forms, the layout is not a fixed-width
centred one (see Scope and limits), or a check keeps failing after a fix. Do not present a
partial copy as exact.
Hand-off when a site (or page) is done
Write one report in the site's migration folder, and send its path to the orchestrator
(dev3 message) with one line of summary. It contains what "Before reporting to the user"
below requires, plus:
the
openItemslist from<desc>.deploy-report.json(links still pointing to the source: the cutover operator needs them);the draft's save state and that nothing is published;
what you could not copy (
unsupported, review items) and any layout assumption you changed with--layout.
Improve the method: learnings flow back to the skill
Each site is a test of the method, so what it teaches must reach the next agent.
Per site: keep a
LEARNINGS.mdin the migration folder (what broke, the fix, how you noticed). It is customer data, so it stays out ofskills/.Generic findings (an editor behavior, a script bug, a missing check, a layout the method can't do) go to the skill. Do not edit
skills/from a site agent; the skill maintainer merges them. Record each withdev3 note add(one insight per note, no customer names or paths) and send the task id to the orchestrator in the hand-off. The maintainer then adds the behavior to SKILL.md "Editor behaviors learned live", a technique to this file, or a script/lint fix with a test.Before you start: read the latest SKILL.md and this file, then
dev3 conversations search "harmony <topic>"if you hit something unfamiliar.A learning is done when the next agent no longer needs to rediscover it: it is in the skill, or a script/check now prevents it.
Before reporting to the user
State plainly:
the widths you verified and what each looks like;
the differences that remain and why (substitute system fonts, hover effects not copied, a mobile layout that is readable but not the source's zoomed-out phone view);
links that point to the old site because the page is not built yet;
the publication state, and any change to it you did not make on purpose.
Worked reference: a fixed-width WordPress site
Source: a fixed-width, centred layout (
centeringDxis half the gap between the 1920 canvas and the design width). There is no mobile design; on a phone it renders zoomed out.Fonts: display fonts uploaded from Google Fonts; a font already in the catalog is mapped by name (for example
couriertocourier new), and the floating button takes a catalog font with a small negative letter spacing.Desktop:
one auto-height section,
fillbackground with a 2x full-page plate;header and footer collapsed;
small decorative icons and a promo tag baked into the plate; the tag gets a transparent link button;
components: nav buttons, linked images, text blocks, a footer rich text with an inline link, and the pinned order pill;
scaleDeviationsempty between 1024, 1280 and 1920.
Mobile:
same components in a single column, nav in two rows;
background-image opacity 0 on mobile, with a band gradient behind it;
the promo-tag click area hidden on mobile.
Things that went wrong:
a 3-section header/plate/footer copy broke at 1836 (bands scale differently);
mobile
setSize/setContainerBackgroundchanged desktop;a
pxline height on a hotspot made the page short at 1920;Preview at 1024 failed until the window was wide enough (slider not rendered).
A second page through the description pipeline
Texts (including float runs), images, nav buttons, a click area over a stamp and a pinned order button; most components reused from the homepage recipes.
The local pipeline (measure, build, media, check) takes seconds; a deploy takes a handful of editor calls; re-place or re-apply takes seconds. Building the pipeline once makes each further page far cheaper than hand work.
Acceptance: read-back
problemCount: 0;scaleDeviationsempty 1024-1920; the pixel difference from the source at 1280 reported; mobile a single column with plate-coloured bands.Known: a paragraph split around a float reads as two paragraphs on mobile.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs Node.js
Security
What our scanner noticed· Low risk
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- Wix
- Publisher
- Wix (Official)
- Source
- wix/skills · skills/wix-harmony-editor · commit d168bc2
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Wix.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download wix-harmony-editor.zip