Agent Skills › Automattic/studio › liberate

liberate

GitHub

将网站从URL或文件迁移至WordPress Studio,通过CLI导入并对比差异,使用块编辑器修复视觉和功能问题,确保站点还原度。

apps/cli/ai/skills/liberate/SKILL.md Automattic/studio

Trigger Scenarios

用户想要迁移、导入、移动或重建网站 用户提供网站URL或本地文件包

Install

npx skills add Automattic/studio --skill liberate -g -y
More Options

Non-standard path

npx skills add https://github.com/Automattic/studio/tree/trunk/apps/cli/ai/skills/liberate -g -y

Use without installing

npx skills use Automattic/studio@liberate

指定 Agent (Claude Code)

npx skills add Automattic/studio --skill liberate -a claude-code -g -y

安装 repo 全部 skill

npx skills add Automattic/studio --all -g -y

预览 repo 内 skill

npx skills add Automattic/studio --list

SKILL.md

Frontmatter
{
    "name": "liberate",
    "description": "Liberate any website into a portable HTML copy and import it into WordPress using the Studio CLI. Then work with the user to make sure it looks and function like the original. Use this when the user wants to migrate, import, move, liberate, or rebuild a website from a URL."
}

1. Bring the site over

Ask where the website lives if the user has not already provided a URL. It can be a public address starting with https://, or a folder or .zip of the site's files on this computer.

For an address, the import has two stages: first Data Liberation copies every page of the original site, then Static Site Importer rebuilds that copy as a WordPress site. Copying takes longest and grows with the number of pages, so a small site takes a few minutes and a large one can take much longer. Tell the user what to expect.

Import it with the Studio CLI. For a website address:

studio create --from <url> --name "<site name>" --path ~/Studio/<slug> --keep-source --skip-browser

For a folder or .zip of website files, pass its path instead and leave out --keep-source:

studio create --from <path> --name "<site name>" --path ~/Studio/<slug> --skip-browser

Run it with a timeout of at least 20 minutes. For an address, --keep-source keeps the copy of the original in a <path>-source folder next to the new site, which the comparison below uses.

If a few pages could not be copied, the import still finishes without them and lists them with the reason each one failed; tell the user which pages are missing. The import stops instead when the home page could not be copied, or more than one page in ten; report the reason it printed rather than guessing at one.

If the import stops after the site was created, the site is kept and studio create says so. Re-running the same command continues that import from the copy it already made, instead of starting a new site or copying the original again. If it stops before the site was created, re-running starts over.

2. Find what came out differently

When the import finishes, make the new site the active site with site_info and share its address and login details.

For a website address, studio create prints a command at the end of the import that compares the new site with the original, page by page, at several screen sizes including a phone. Run it; the site must be running. It lists each page and screen size where the new site differs, and what differs: missing text, different fonts or sizes, moved or missing images, or menus and buttons that do not open.

For a folder of files there is no automatic comparison; open the original files alongside the new site and compare them yourself.

Tell the user, in plain words, what you found. Ask them to look through the site too and point out anything that looks wrong or is missing.

3. Fix it, one change at a time

Fix each difference on the new site itself. Edit its pages and its theme using block editor blocks, so the user can keep editing everything in the WordPress editor afterwards. Avoid raw HTML blocks and custom code the user cannot edit.

After each fix, refresh the site preview so the user sees the change, and ask whether it looks right. When you have the comparison, run it again after a batch of fixes to confirm them and catch anything new. Keep going until the comparison is clean or the user is happy with what remains.

4. Wrap up

Summarize what was brought over, what you changed together, and anything that still differs from the original. Point the user to the WordPress editor for future changes.

Version History

  • 673311d Current 2026-09-28 13:31

    重构导入流程,动态调用Data Liberation引擎替代硬编码,移除vendored代码及CodeQL告警,优化导入后对比机制。

  • 0d55cb5 2026-08-20 12:15

Same Skill Collection

apps/cli/ai/skills/annotate/SKILL.md
apps/cli/ai/skills/block-content/SKILL.md
apps/cli/ai/skills/hosting-plans-helper/SKILL.md
apps/cli/ai/skills/imagery/SKILL.md
apps/cli/ai/skills/need-for-speed/SKILL.md
apps/cli/ai/skills/plugin-recommendations/SKILL.md
apps/cli/ai/skills/rank-me-up/SKILL.md
apps/cli/ai/skills/site-spec/SKILL.md
apps/cli/ai/skills/taxonomist/SKILL.md
apps/cli/ai/skills/visual-design/SKILL.md
apps/cli/ai/skills/visual-polish/SKILL.md
apps/cli/ai/skills/wpcom-remote-management/SKILL.md
packages/data-liberation-agent/skills/adapt/SKILL.md
packages/data-liberation-agent/skills/creating-blocks/SKILL.md
packages/data-liberation-agent/skills/creating-themes/SKILL.md
packages/data-liberation-agent/skills/design-foundations/SKILL.md
packages/data-liberation-agent/skills/diagnose/SKILL.md
packages/data-liberation-agent/skills/editing-blocks/SKILL.md
packages/data-liberation-agent/skills/editing-themes/SKILL.md
packages/data-liberation-agent/skills/generating-patterns/SKILL.md
packages/data-liberation-agent/skills/migrate/SKILL.md
packages/data-liberation-agent/skills/model-local-data/SKILL.md
packages/data-liberation-agent/skills/qa/SKILL.md
packages/data-liberation-agent/skills/rebuild-section/SKILL.md
packages/data-liberation-agent/skills/testing-js/SKILL.md
packages/data-liberation-agent/skills/testing-php/SKILL.md
packages/data-liberation-agent/skills/testing-wp-runtime/SKILL.md
skills/studio-cli/SKILL.md
packages/data-liberation-agent/skills/compose-page-blocks/SKILL.md
packages/data-liberation-agent/skills/design-qa/SKILL.md
packages/data-liberation-agent/skills/match-page/SKILL.md
packages/data-liberation-agent/skills/match-section/SKILL.md
packages/data-liberation-agent/skills/replicate-theme/SKILL.md
packages/data-liberation-agent/skills/replicate-with-blocks/SKILL.md

Metadata

Files
0
Version
673311d
Hash
c9647b44
Indexed
2026-08-20 12:15

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-29 08:07
浙ICP备14020137号-1