liberate
GitHub将Wix、Shopify等封闭平台网站迁移至Studio WordPress。通过调用数据解放引擎,提取内容并重构为可编辑区块或高保真主题,实现无缝导入与设计重建。
Trigger Scenarios
Install
npx skills add Automattic/studio --skill liberate -g -y
SKILL.md
Frontmatter
{
"name": "liberate",
"description": "Import and rebuild a website from a closed platform (Wix, Squarespace, Webflow, Shopify, GoDaddy, Hostinger, HubSpot, Weebly) into a Studio WordPress site. Extracts pages\/posts\/products + media, then reconstructs the design as editable blocks + WooCommerce OR as a high-fidelity replica theme. Invoke when the user wants to migrate, import, liberate, or rebuild a site from one of these platforms."
}
Liberate a website into Studio
This skill is only a redirect. The real, always-up-to-date pipeline lives in the Data Liberation engine's own skill. Do NOT re-plan or summarize the steps here — defer to the engine skill so its updates take effect automatically. Your job is just to (1) stand the engine up and (2) follow its skill, translating its tool calls into Studio's bridge.
Step 1 — Locate the engine
Call the data_liberation tool with { tool: "setup" }. It returns { engineDir, liberateSkill, skillsDir } — the paths to the engine's skill files. The engine ships prebuilt with Studio, so this is instant — just proceed.
Step 2 — Load the engine's tool catalog
Call data_liberation with { tool: "list" } to load the engine's full tool catalog (every tool name + its argument JSON-Schema). Treat that catalog as the source of truth for tool names and arguments — the engine skill names the tools to call, but the catalog tells you their exact arguments. If you are ever unsure of an argument, re-read the catalog rather than guessing.
Step 3 — Follow the engine's real liberate skill
Read the liberateSkill path from Step 1 (the engine's own SKILL.md) and execute its workflow verbatim, applying these Studio bindings wherever it instructs you:
- Engine tool call — where it says "call the
liberate_Xtool with{…}", instead call Studio'sdata_liberationtool with{ tool: "liberate_X", args: {…} }and read the returned text/JSON as that tool's result. (argsis a JSON object, never a stringified JSON.) - Sub-skill dispatch — where it dispatches another skill (e.g.
replicate-with-blocks/replicate-theme),Readit underengineDir/skills/<name>/SKILL.mdand continue inline with these same bindings. - Install & import — follow the engine's install step (it documents both
liberate_previewandliberate_install_theme+liberate_import);/liberateis the engine's standalone context, so preferliberate_preview(one call: creates the Studio site, imports the WXR + media, runs WP-default cleanup, activates the theme). Two Studio specifics the engine can't know: (1)liberate_importneeds credentials — create an application password withstudio wp user application-password createand pass it; (2) never pointstudio wp import/wp eval-fileat the host_liberationspath — Studio's PHP sandbox only reads inside the site (/wordpress/...), so letliberate_preview/liberate_importdo the import rather than hand-rolling it. - Don't skip the final QA — it's nested a level deeper and easy to stop short of after a long run. The chosen sub-skill ends with a mandatory parity step: blocks →
ReadengineDir/skills/design-qa/SKILL.mdand complete its loop; theme →replicate-theme'sliberate_comparestep. Run it fully; never substitute eyeballed screenshots, and honor the engine's honesty rule — no "looks good / matches" without measured parity. liberate_blockify_wxr— if it reports "no platform recorded", re-call with the platform fromliberate_detect(e.g.{ platform: "wix" }); a no-op on platforms without a block recipe is expected, not a failure.- Timeouts (
MCP error -32001) mean "still working," not "failed." Any engine op can return-32001on the client side while it keeps running inside the engine — never treat it as a failure and never blindly re-invoke (a re-invoke often errors, e.g.extraction already in progress). For extraction/reconstruct ops (liberate_extract,liberate_screenshot, reconstruct), pollliberate_statuswith{ outputDir }untilrunningisfalse, then continue from the output artifacts. For any other op that times out, wait and re-check its output/state before concluding it failed.
Reporting
When the engine finishes, summarize its run report: the Studio site built into, the reconstruct path taken, counts (pages/posts/products/media), the parity/verdict, and anything flagged for manual attention.
Version History
- 0d55cb5 Current 2026-08-20 12:15


