lidfly-page-migration
Skill20 starsChanged 4 days agoMITView on GitHub
Перенести или улучшить существующую страницу в LidFly 1:1 через MCP v3: полный инвентарь секций без сжатия и выдумывания, безопасная работа с существующим design_template_id, полный replacement payload, перенос изображений и посекционная сверка.
In this repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-markers-removeSkill
- article-reviserSkill
- article-writerSkill
- avito-adsSkill
- avito-businessSkill
- demand-researchSkill
- export-ad-reportsSkill
- human-editorial-polishSkill
- lidfly-connection-doctorSkill
- lidfly-knowledge-maintainerSkill
- lidfly-page-migrationSkill
- lidfly-site-commerceSkill
- lidfly-support-escalationSkill
- max-postingSkill
- mcp-v3-provider-contextSkill
- restaurant-yandexSkill
- semantic-coreSkill
- seo-optimizerSkill
- serp-monitorSkill
- telegram-postingSkill
- video-article-writerSkill
- vk-ads-campaign-builderSkill
- vk-social-communitySkill
- workspace-project-managerSkill
- yandex-direct-campaign-builderSkill
- yandex-edaSkill
- yandex-metrikaSkill
- yandex-productsSkill
- yandex-webmasterSkill
- youtube-video-seoSkill
- ai-markers-removeSkill
- article-reviserSkill
- article-writerSkill
- avito-adsSkill
- avito-businessSkill
- demand-researchSkill
- export-ad-reportsSkill
- human-editorial-polishSkill
- lidfly-connection-doctorSkill
- lidfly-knowledge-maintainerSkill
- lidfly-site-commerceSkill
- lidfly-support-escalationSkill
- max-postingSkill
- mcp-v3-provider-contextSkill
- restaurant-yandexSkill
- semantic-coreSkill
- seo-optimizerSkill
- serp-monitorSkill
- telegram-postingSkill
- video-article-writerSkill
- vk-ads-campaign-builderSkill
- vk-social-communitySkill
- workspace-project-managerSkill
- yandex-direct-campaign-builderSkill
- yandex-edaSkill
- yandex-metrikaSkill
- yandex-productsSkill
- yandex-webmasterSkill
- youtube-video-seoSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Keep the inventory and template-deviation rules below.
- Very specific: line 24
If the existing site has an active design_template_id, call lidfly_audit_site_design_template before the first write.
- Very specific: line 45
After the page write, compare it with the inventory (step 13).
- Distinctive: line 62
Keep the original wording.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LidFly Page Migration
Use when the user asks to migrate, copy, or recreate an existing page from another platform, or to use it as a reference for improving a managed LidFly page. This workflow supports both a new or empty target and a site that already has pages, content, and an active design template. The goal is a faithful 1:1 transfer: same sections, same order, same content, same visual character. A migration that compresses 12 sections into 5 blocks or invents content the original does not have is a failed migration.
Workflow
For visual analysis and final review, use the creative-page-direction,
frontend-page-craft, visual-assets and visual-qa references of
lidfly-site-commerce (load that skill, then the needed get_skill_resource paths).
Compare desktop and mobile renders of the whole source and target. During a
faithful transfer these guides refine implementation and expose defects; they do
not authorize new content, a different composition or an unrequested redesign.
Keep the inventory and template-deviation rules below.
- Fetch the original page HTML and its CSS files (in the built-in LidFly chat, read the source as described in the next section). Identify the platform (WordPress/Elementor, Tilda, Bitrix) to pick the right section markers: Elementor top-level containers use
e-parent, Tilda usest-recrecords. - Build a section inventory before writing anything: one line per section, top to bottom, with heading, body summary, image count, button labels, and forms. Number the sections.
- Extract design tokens from the CSS: background, text, card, and accent colors by frequency; heading and body font families; card border radius. Note whether the heading font differs from the body font. This is a comparison input, not permission to change the whole site's theme.
- Resolve the target with
get_provider_context({ provider: "lidfly", query })and copy only returnedtool_args. Before the first write, calllidfly_list_pages. If the target page exists, read it withlidfly_get_page, calllidfly_get_blockfor every saved block index, and keep the complete page state plus the exact latestpublication_revisionfrom that read. If the page is new, use the current site state and creation contract returned by the read tools and current schema; do not invent replacement fields or a revision. Stop if the target is a static artifact, generated Commerce route, or otherwise not editable through managed page tools. - If the existing site has an active
design_template_id, calllidfly_audit_site_design_templatebefore the first write. Inspect the applied template, starter block sequence, inheritance, page-local overrides, key features, Commerce readiness, and route conflicts. Explain relevant warnings before proposing the migration write. - Map every source section to a LidFly block via
lidfly_list_blocks. Do not drop a section because no block feels perfect: pick the closest block and keep the content. Do not add blocks that have no counterpart in the original (FAQ, quizzes, calculators) unless the user asks. - Prepare and show the section mapping and every intended template deviation before changing the page. By default preserve
inherit_site_design=true, inherited chrome, starter structure, and the site's design system. If 1:1 styling requires a page-local theme, custom CSS, disabled inheritance, local header/footer, or a starter-structure change, explain the impact and obtain explicit textual confirmation before the write. Only then may the exact call useconfirm_template_deviation: true; auto-approve is not confirmation. - Transfer all images: download originals, upload through
lidfly_upload_images_batch, and use the returned asset references in block props. Never hotlink the source site. - For an existing managed page, reconstruct every block with its complete
type,id, andprops, then calllidfly_update_pagewith a complete replacement payload from the same page read: the same exactslug; all reconstructed blocks; the savedtitle,description,og_image,theme_preset,theme,page_kind,inherit_site_design, andauto_structured_data, except fields the user explicitly changes; plus the exact latestexpected_publication_revisionrequired by the tool schema. Missing blocks are deletions, and omitted optional fields can reset to defaults. Never automatically retry a stale CAS conflict: reread and rebuild the payload. Do not carrycustom_cssthrough this call: CSS has its own tools (step 11) and does not belong in a block replacement. - For a change confined to one existing block, prefer
lidfly_update_blockwith all current props instead of replacing the whole page. Do not calllidfly_update_site_themefor a page-only migration or improvement. A site-wide theme change is a separate operation that requires the user to ask for the whole site to change and to confirm its stated cross-page impact before the write. - Custom CSS is a separate operation with its own tools; never rewrite a page through
lidfly_update_pageto change styles. Read the effective CSS of both levels withlidfly_get_css, edit one page withlidfly_update_page_css, and put rules shared by several pages intolidfly_update_site_cssinstead of copying them per page. Passexpected_custom_css_sha256from the same read so a parallel edit is not overwritten silently. The cascade is site theme tokens → platform block CSS → site CSS → page CSS; an empty string clears a level; the limit is 64 KiB per level and</styleis rejected. On a templated site a non-empty CSS write still needs explicit user consent andconfirm_template_deviation: true, and it reports the deviation as CSS only. - Write CSS against the declared anchors, never against generated scope classes (
ossk4dv8j-*) or class substrings ([class*='-card']): those break silently when block markup changes. Every section carriesdata-lf-block,data-lf-block-index, anddata-lf-block-idwhen an anchor id is set; internal elements carry thedata-lf-partvalues the block declares inlidfly_list_blocks. Example:[data-lf-block="messenger-lead-band"] [data-lf-part="item"]{width:56px}. Before reaching for CSS at all, check whether the block already exposes a typed style prop for the same thing. - Reread the page after the write and compare it section by section with the inventory from step 2. After structural, theme, chrome, storefront-route, or homepage changes, rerun
lidfly_audit_site_design_template. Report the mapping table, effective page fields, and any remaining deliberate deviations.
In The Built-In LidFly Chat
The chat cannot fetch HTML or CSS. Replace the source reading of steps 1 and 3 and keep the rest of the workflow:
- Without a source address, ask once for the URL of the page to migrate. Propose the site name and subdomain yourself from the read source instead of asking for them first.
- Read the source with
read_website(max_pages= pages to migrate, 1–5) and continue a long page withread_website_page. When a page has adetailssummary, callread_website_pagewithpart: "details"and follownext_offsetuntilend_of_images: it returns image URLs withaltand the nearest section heading, header and footer Markdown with links, and forms with their fields. - Without
details, say that texts and section order will be transferred and the images must be attached to the chat. - Styles are unavailable. Take the visual direction from the closest LidFly design template or theme and say that colors and fonts are approximate unless the user attaches screenshots of the source.
- An account without sites first gets
lidfly_prepare_create_site→lidfly_create_site. After creation, prefer onelidfly_preview_site_changeset→lidfly_apply_site_changesetpackage for pages with their images and supported shared chrome/forms; describe its exact scope before confirmation. Split only when the supported operations or size limits require it. - Images needed by a page: include
import_imageandupsert_pageoperations in the same site package, using exact@asset:keyreferences. Independent asset-library imports may uselidfly_upload_images_batchorlidfly_upload_image. Preserve returned canonical paths; recover a legacy result withlidfly_list_assetsin the exact site scope, never by guessing the filename URL. - Pages: build the inventory (step 2) from the text and the
detailssections, map blocks (step 6), show the mapping (step 7), then prepare the page write (steps 9–10). Transfer the header menu and footer requisites throughlidfly_get_site_chrome→lidfly_update_site_chrome, and forms throughlidfly_list_site_forms→lidfly_manage_site_forms. - After the page write, compare it with the inventory (step 13). If the user attached screenshots of the source, offer
lidfly_inspect_site_visualwith them asreference_attachment_ids.
Block Mapping Hints
- Personal intro with a photo, or text plus illustration:
feature-split. - Three to four advantage cards:
features-grid. - Service chips or tag strips:
logo-service-railwith wordmark labels. - Large service cards with photos, bullets, and per-card CTA:
overlap-services-showcase. - Case studies with metrics:
case-studyper case, badges viastats-counter. - Price plans with bullet lists:
pricing-3colorstacked-pricing-groupsfor four and more plans. - Client logo walls:
logo-cloudwith grayscale,logo-cloud-caseswhen captions matter. - Contact section with address, hours, phone:
contact-cardplus a lead form block.
Rules
- MCP clients follow MCP v3 order:
search_tools, thenget_tool_schema, thencall_toolfor reads andcall_write_toolfor writes. - Page and site updates, uploads, and publication are writes and must use
call_write_tool; all prerequisite reads usecall_tool. - Keep the original wording. Fix only obvious typos, and tell the user about each fix.
- Respect legal blocks: transfer privacy policy links, offer links, and footer requisites as they are.
Перенос popup-форм
Для существующих CTA сначала прочитай action_controls выбранного блока и lidfly_list_site_forms; переноси popup заявки в общую форму, затем назначай site_form_modal с прочитанным formRef и рабочим fallbackUrl. Вложенные массивы сохраняй целиком. Формы доступны при inheritSiteDesign:false, поддерживают image/imageAlt; не переноси произвольный JS модалки. modal-form создаёт отдельную кнопку и локальную форму, buttonId не связывает его с чужой CTA. Создание формы/загрузка изображения требует нового чтения ревизии; update заменяет props целиком. При pending/unknown проверь operation_id перед повторной записью. Открытие окна и доставку заявки проверяй отдельно.
Материалы и доказательства клиента — 18.10.2026
История клиента или авторский рассказ — редакционный блок, не выдуманный отзыв. Не добавляй звёзды, оценки, число клиентов, результаты, сертификаты или цитаты, если клиент не дал эти данные и источник. Сохраняй происхождение предоставленного текста в заметке задачи/проекте: файл, сообщение или URL; не выдавай редактуру за дословную цитату. Недостающие фотографии, отзывы и подтверждения перечисляй как оставшуюся работу, не заполняй их вымышленными доказательствами. При точечной правке сохраняй остальные блоки, адреса файлов и выбранное оформление.
Источник: аудит chat-site-flow 18.10.2026; решения владельца и контракт
lidfly-site-changeset-schema.ts проверены 18.10.2026.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

