wix-to-react
БесплатноБез исполняемых скриптовНе проверенConvert a Wix website into a React or Next.js application. Use when a user asks to migrate off Wix, rebuild a Wix site in React, export a Wix site to code…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Wix to React
Overview
Wix is a closed no-code platform with no source-code export — you cannot download the components, so "converting to React" means recreating the site, not transpiling it. This skill covers the realistic path: inventory the live site, extract its content, design tokens, and assets, scaffold a React/Next.js app, rebuild each page as components, and migrate dynamic features.
There are two end states — choose one up front:
- Full migration — leave Wix entirely. Content moves to a new CMS (Sanity, Contentful, MDX), commerce to a new backend (Shopify, Medusa), forms to your own handler. No Wix subscription.
- Headless — keep Wix as the data backend (CMS collections, Stores, Bookings stay in Wix) and build only the React frontend with
@wix/sdk. Less migration work, keeps the Wix dashboard for non-technical editors. Wix recommends Wix-managed headless (Wix hosts the frontend, Astro-first); a React/Next.js app on your own hosting is the "self-managed" path this skill uses. Self-managed works against a new headless project or an existing Wix site that you register a headless client on.
Recommend Next.js over plain React: Wix sites are server-rendered and SEO-indexed, so SSG/SSR is needed to preserve rankings.
Instructions
1. Inventory the Wix site
Determine scope before touching code:
# Wix serves sitemap.xml as an INDEX that points at child sitemaps
curl -s https://www.northwindcoffee.com/sitemap.xml | grep -oP '(?<=<loc>)[^<]+'
# typical children: pages-sitemap.xml, blog-posts-sitemap.xml, store-products-sitemap.xml
curl -s https://www.northwindcoffee.com/pages-sitemap.xml | grep -oP '(?<=<loc>)[^<]+'
Identify, per page: static vs dynamic page (Wix repeater bound to a collection, URL like /team/{slug}), and which Wix apps are used — Stores, Bookings, Blog, Forms, Members, Events. Check whether Velo (Dev Mode) is enabled: if so, the owner can connect the site to GitHub with Wix's Git integration and work on the code locally with the Wix CLI (npm install -g @wix/cli, then wix dev), which gives you the page and backend code the owner wrote (not the visual layout) and is far cleaner than scraping. Sites with Velo packages cannot be connected to GitHub.
2. Extract content, design tokens, and assets
For sites without API access, drive a headless browser over the sitemap and capture the rendered DOM, computed design tokens, and Wix media URLs:
// extract.mjs — node extract.mjs https://www.northwindcoffee.com
import { chromium } from "playwright";
import { writeFile, mkdir } from "node:fs/promises";
const base = process.argv[2];
const browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 1280, height: 900 } });
// sitemap.xml is an index of child sitemaps: follow each one to get page URLs
const locs = async (u) =>
[...(await (await fetch(u)).text()).matchAll(/<loc>([^<]+)<\/loc>/g)].map((m) => m[1]);
const urls = [];
for (const loc of await locs(`${base}/sitemap.xml`))
urls.push(...(loc.endsWith(".xml") ? await locs(loc) : [loc]));
await mkdir("extracted", { recursive: true });
const assets = new Set();
const tokens = { colors: new Set(), fonts: new Set(), sizes: new Set() };
for (const url of urls) {
await page.goto(url, { waitUntil: "networkidle" });
// Wix media lives on static.wixstatic.com — collect originals to self-host
for (const src of await page.$$eval("img", (els) => els.map((e) => e.currentSrc || e.src)))
if (src.includes("wixstatic.com")) assets.add(src.split("/v1/")[0]); // strip transform → original
// Computed design tokens from real elements
const t = await page.evaluate(() => {
const out = { colors: [], fonts: [], sizes: [] };
for (const el of document.querySelectorAll("h1,h2,h3,p,a,button,div")) {
const s = getComputedStyle(el);
out.colors.push(s.color, s.backgroundColor);
out.fonts.push(s.fontFamily);
out.sizes.push(s.fontSize);
}
return out;
});
for (const k of Object.keys(tokens)) t[k].forEach((v) => v && tokens[k].add(v));
const slug = new URL(url).pathname.replace(/\//g, "_") || "home";
await writeFile(`extracted/${slug}.html`, await page.content());
}
await writeFile("extracted/_assets.txt", [...assets].join("\n"));
await writeFile("extracted/_tokens.json", JSON.stringify(
Object.fromEntries(Object.entries(tokens).map(([k, v]) => [k, [...v]])), null, 2));
await browser.close();
Download every asset URL locally (Wix CDN links can rotate and block hotlinking) and feed _tokens.json into the Tailwind theme. The saved HTML is a reference for layout and copy, not source to import — Wix's DOM is deeply nested generated markup; rebuild clean components instead of pasting it.
3. Export dynamic data
With Wix Headless — create a headless project (or add a headless client to the existing site) in the Wix dashboard, copy the client ID from Settings > Development & integrations >
Установить wix-to-react в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл wix-to-react?
Convert a Wix website into a React or Next.js application. Use when a user asks to migrate off Wix, rebuild a Wix site in React, export a Wix site to code, escape Wix's no-code editor, or move from Wix to a custom frontend. Wix has no native code export, so this covers inventorying the site, extracting content/design/assets, scaffolding a React/Next.js app, rebuilding pages and components, and migrating dynamic features (Wix CMS collections, Stores, Blog, Forms) — either fully off Wix or by keeping Wix as a headless backend via @wix/sdk. Trigger words: Wix to React, migrate off Wix, export Wix, Wix to Next.js, rebuild Wix site, Wix headless.
Как установить скилл wix-to-react?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wix-to-react запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic