Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

wix-harmony-editor

БесплатноЗапускает вложенные скриптыНе проверен

Edit Wix Harmony sites through an authenticated Harmony editor using Playwright over a local Chrome CDP session. Use for inspecting, changing, saving, and…

wixот wix★ 40 звёзд на GitHub

Об этом скилле

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:9333 endpoint launched for this task.
  • If the sandbox blocks connectOverCDP with EPERM, 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

  1. Start with editorLLMApis.catalog.list() for namespace orientation.

  2. 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'],
    });
    

    describe has a response budget. A namespace that does not fit comes back as [NOT RETURNED …] or [Truncated …]; fetch that one alone with catalog.describe({ namespaces: ['<name>'] }). components, richText, media, layout and appearance each need their own call. Save the docs to files and read them from there instead of re-fetching.

  3. Never introspect undocumented API objects or guess a write method's arguments.

  4. Open/focus the correct page before reads, because component reads resolve against the focused page.

  5. Use IDs, element paths, units, tokens, and schemas returned by live reads—nev

Полный SKILL.md на GitHub

Установить wix-harmony-editor в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.publish-manifest.jsonCOPY-SITE.mdVERSIONscripts/copy/build-description.mjsscripts/copy/check-description.mjsscripts/copy/check-mirror.mjsscripts/copy/compare-preview.mjsscripts/copy/deploy-description.mjsscripts/copy/desc-hash.mjsscripts/copy/editor-run.mjsscripts/copy/export-page.mjsscripts/copy/find-interactions.mjsscripts/copy/hide-scrollbars.mjsscripts/copy/import-media.mjsscripts/copy/link-url.mjsscripts/copy/lint-api.mjsscripts/copy/measure-source.mjsscripts/copy/media-import.mjsscripts/copy/merge-mirrors.mjsscripts/copy/mirror-site.mjsscripts/copy/mobile-stage.mjsscripts/copy/preview-widths.mjsscripts/copy/public-address.mjsscripts/copy/render-plate.mjsscripts/copy/serve-mirror.mjsscripts/copy/snapshot-capabilities.mjsscripts/copy/source-guard.mjsscripts/copy/split-sections.mjsscripts/copy/upload-media-manager.mjsscripts/launch.sh

FAQ

Что делает скилл wix-harmony-editor?

Edit Wix Harmony sites through an authenticated Harmony editor using Playwright over a local Chrome CDP session. Use for inspecting, changing, saving, and verifying Harmony editor components and layouts, and for copying an existing website's pages into Harmony exactly (see COPY-SITE.md); do not use for Wix Studio, the classic Editor, Dashboard data, or publishing without explicit approval.

Как установить скилл wix-harmony-editor?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл wix-harmony-editor запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить wix-harmony-editor с