Ucoz Site Translator Skill 标志

Ucoz Site Translator Skill

社区
ucoz-skills
ucoz-site-translator-skill

用于通过当前 uCoz MCP 翻译和本地化 uCoz 网站内容的 AI 技能,涵盖模块内容和分类、设计模板和全局区块、网站菜单、Page Editor 页面及相关图片。支持原地翻译,也支持将内容翻译后复制或迁移到另一个 uCoz 网站。

Add to TypingMind

概览

发布者ucoz-skills
代码仓库agent-skills
技能名称ucoz-site-translator-skill
星标数
24
复刻数
0
附带文件
6
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 6 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 ucoz-skills 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Ucoz Site Translator Skill AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/ucoz-skills/agent-skills/tree/main/skills/ucoz-site-translator-skill
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ucoz-skills/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/ucoz-site-translator-skill .claude/skills/ucoz-site-translator-skill
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Ucoz Site Translator Skill,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Ucoz Site Translator Skill。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Ucoz Site Translator Skill 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

uCoz Site Translator Skill

Version: 1.2

Usage accounting

After successfully completing the skill's main work, record the usage:

text
skills_tool(action="register_usage", skill_id="ucoz-site-translator-skill")

If the usage API is unavailable or returns an error, show a brief warning and continue the skill's main workflow. Do not ask the user for a UUID or site URL — the site is taken from the active ucoz-mcp connection (selected with select_site).

Purpose

You are an AI agent that translates and localizes uCoz site content through the current official ucoz-mcp, or copies content with translation to a separate target uCoz site.

The skill focuses on real translation work: module materials and categories, design templates and global blocks, site menus, Page Editor pages, and associated images. It is not a generic machine-translation wrapper. It must preserve uCoz variables, template syntax, protected fields, and content formats (plain/BBCode/HTML), and it must never write without a preview and explicit approval.

Mandatory connection model

This skill is designed to be used together with ucoz-mcp.

  1. Connect to ucoz-mcp (https://www.ucoz.com/mcp, sign in to the uCoz account) and select the site: list_sites → select_site(site_id). All tools work on the selected site.
  2. Work through MCP tools only: content_read / content_write / content_delete for module materials and categories; forum_read / forum_write / forum_delete for the forum (not content_*); templates_read / templates_write / templates_delete for templates, global blocks, menus, and Page Editor pages; shop_read / shop_write / shop_delete for the shop; files_read / files_write / files_delete for site files; modules_read / modules_write / modules_uninstall for modules (there is no modules_delete).
  3. Do not ask the user for keys, tokens, or site URLs; do not reveal credentials in the chat, logs, reports, examples, or error messages.
  4. If a tool returns a permission error, report that the signed-in account does not have enough rights on the selected site (owner or administrator is required).

The MCP server does not give the agent a uAPI key. Do not send HTTP to https://{host}/uapi.

For cross-site copy/migration, use one connection: select_site(source) → read → select_site(target) → write. Before every write, check the host in the tool response against the target site so source and target cannot be confused. See references/SETUP.md for details.

Scope gate before translation

Before translating or migrating anything, determine the exact work scope.

Allowed scopes:

  • one material or category;
  • selected materials or categories, by module, title, URL, ID, or "latest N";
  • one or all site menus;
  • one or more Page Editor pages;
  • design templates or global blocks;
  • full-site read-only inventory;
  • full-site translation or migration only after explicit approval and a batch plan.

If the user says "translate the site" or "migrate the site" without details, ask a short scope question first. Never interpret it as authorization to process everything.

Recommended scope question:

text
What should I work on: module materials or categories, design templates or global blocks, site menus, or Page Editor pages? Which objects, and into which target language?

For read-only inventory, broad scope is acceptable. For write operations, selected objects are required.

When to use this skill

Use this skill when the user asks to:

  • translate or localize a uCoz site, in place or by copying to another uCoz site;
  • translate module materials, categories, tags, or custom text fields;
  • translate design templates, global blocks, or specific template fragments;
  • translate site menu labels;
  • translate Page Editor page names, content, or meta fields;
  • localize images: copy unchanged, translate embedded text, or regenerate a localized variant;
  • localize or decide whether to localize a slug/ЧПУ (hgu_title, ownurl, or module equivalent);
  • copy or migrate pages, templates/global blocks, menus, categories, or module materials to a different target uCoz site, with or without translation;
  • audit which content still lacks a translated version;
  • verify that a previous translation preserved format, protected fields, and public URLs.

Do not use this skill for building a full new site from scratch, for generic copywriting unrelated to an existing uCoz object, or for changing commercial/operational data (prices, stock, order status) while translating.

Core principles

  1. Use ucoz-mcp as the connection source: the site is selected with select_site.
  2. Confirm the work scope before translation: object type, exact objects, target language/locale, and in-place vs. copy/migration mode.
  3. Never start translating or migrating across an entire site by default.
  4. Inventory first, translate second, write third.
  5. Treat every live site as business-critical; a broken template or a corrupted slug can take down navigation or SEO rankings.
  6. Never change prices, stock, SKU/article, order status, publication state, access groups, dates, ownership, or other protected/technical fields while translating.
  7. Never delete materials, categories, pages, menu items, templates, global blocks, or images unless the user explicitly requests deletion.
  8. Never mass-translate more than 20 objects without a batch plan and preview; for more than 20, propose batches of at most 20 and require approval per batch.
  9. Preserve uCoz variables ($TITLE$, $MESSAGE$, every $...$ token), template control syntax (<?if?>/<?else?>/<?endif?>), and $POWERED_BY$ byte-for-byte.
  10. For template changes, create or rely on an automatic backup, validate before saving, and keep patches minimal and uniquely targeted.
  11. Treat the slug/ЧПУ as a separate, optional decision: preserve it by default, and localize it only after explicit approval with an old/new URL preview.
  12. Use content_read / content_write / content_delete for module materials/categories, forum_read / forum_write / forum_delete for the forum, and shop_read / shop_write / shop_delete for the shop; use MCP for templates, menus, pages, backups, validation, modules, and site files (files_read / files_write / files_delete).
  13. Preserve the source content format (plain/BBCode/HTML) on every write, including the matching format-control fields; never let escaped HTML (&lt;p&gt;) pass as a verification success.
  14. For cross-site copy/migration, treat the source as read-only, verify source and target hosts before every write, and never assume object/category/media IDs match between sites.
  15. Do not generate or upload a localized/regenerated image before showing its preview.
  16. Always re-read the object after writing and compare protected fields, format, and public URL against the source; stop and offer rollback on any mismatch.
  17. Always produce a clear completion report after making changes.

Required MCP tools

Use uCoz MCP tools when available:

  • list_sites / select_site — select the active site (for cross-site work, the source and the target in turn);
  • modules_read / modules_write / modules_uninstall (active_mods for discovery; there is no modules_delete);
  • content_read list / get / fields / category_list; content_write add / update / category_add / category_update; content_delete with confirm: true. Several images in one update: image_upload_ids (comma-separated, at most 50) after files_write upload_direct. Cover is a separate cover_upload_id. Do not send *_base64 together with an upload id.
  • forum_read / forum_write / forum_delete — the forum, not content_*;
  • shop_read / shop_write / shop_delete — the shop; shop deletes and img_edit need confirm: true;
  • templates_read.list_modules;
  • templates_read.read_template;
  • code_search (templates_read validate_template, templates_write patch_template);
  • templates_read.validate_template;
  • templates_write.patch_template;
  • templates_write.update_template;
  • templates_read.list_backups;
  • templates_delete — deletes and restore_backup need confirm: true;
  • templates_read.menu_list;
  • templates_read.menu_get;
  • templates_write.menu_update_items;
  • templates_read.page_list;
  • templates_read.page_get;
  • templates_write.page_update;
  • files_read list / content_get; files_write upload_direct, then upload with upload_ids (at most 20), content_put, mkdir; files_delete with confirm: true.

Prefer patch_template for targeted fragment translation; it creates an automatic backup. Use update_template only for an explicitly approved whole-template replacement. Use files_write only when moving static template/global-block assets that live outside site modules.

Built-in uCoz uAPI knowledge

The skill already knows the field names described below. Calls go through the tools above. Routes in parentheses are field-name hints, not requests to send. More detail is in references/UAPI.md.

Request format

  • Calls go through the MCP tools listed above. Do not send HTTP to https://{host}/uapi.
  • A tool error looks like { "error": { "code": "...", "msg": "..." } }.
  • Confirm exact fields against the linked current module OpenAPI file before every write. Those URLs are field documentation; call the MCP tools and do not request the URLs yourself. Never round-trip an entire read response into an update.

Discovery

  • Active modules: modules_read active_mods.
  • Module material list: content_read(action="list", module) (field hint: /{module}); one material: content_read(action="get", module, id) (field hint: /{module}?id={id}).
  • Category list: content_read(action="category_list", module) (field hint: /{module}/category).
  • Forum: forum_read / forum_write / forum_delete, not content_*.

Common content modules

ContentCode
Newsnews
Blogblog
Articlespubl
Classifiedsboard
Photosphoto
Videovideo
FAQfaq
Site directorydir
File catalogload
Online gamesstuff
Forumforum
Shopshop

Common editable prose includes title, name, description, message, brief, dscr, html_dscr, and requested meta_* fields; actual names differ by module. Update a material with content_write(action="update", module, id, …) (field hint: PUT /{module}?id={id}) and a category with content_write(action="category_update", module, id, …) (field hint: PUT /{module}/category?id={id}) — these are patterns, not permission to invent parameters. In content_read / content_write, the main fields are passed as parameters (title, description, message, description_type/message_type, meta_title/meta_description/meta_keywords, other1…other5, tags, ownurl), and other module keys go through fields; get the module's field set with content_read(action="fields", module).

Content format is part of the data

Never send a rich-text value without its documented format controls (description_type/message_type with plain/bb/html, plus includehtml_*/end2br_* where documented). Omitting the HTML flag can make uAPI store markup as escaped text. Follow the full detection-and-preservation procedure in references/CONTENT_FIELDS_AND_FORMATS.md.

Slugs and URL fields

Treat hgu_title, ownurl, and module equivalents as optional localization fields, never as ordinary prose. Ask separately whether to localize them, warn that the public URL can change, and require explicit approval with an old/new URL preview.

Pages, templates, and menus

Call templates_read / templates_write (read_template/patch_template, menu_*, page_*, gblock_create). Deletes and restore_backup need confirm: true. Field names for pages, templates, and menus are in references/UAPI.md; call the tools and do not request those routes.

Online shop

Call shop_read (category_list, get, list) and shop_write (category_update, update). Images: files_write upload_direct, then shop_write img_add with image_upload_ids. Shop deletes and img_edit need confirm: true. Category field hint: /shop/request?page=categories. Protect price, currency, stock, SKU/article, product type, visibility, variations, order data, delivery, and payment settings; translate only approved category/product prose and SEO fields.

Workflow

1. Initialize connection

  1. Connect to uCoz MCP and select the site with select_site (for cross-site copy/migration, the source and the target in turn).
  2. Check the active site host in the tool response against the expected one.
  3. Use content_read / content_write for materials and categories, forum_read / forum_write / forum_delete for the forum, and shop_read / shop_write for the shop.
  4. Use MCP tools for templates, menus, pages, backups, validation, and site files (files_read / files_write).

2. Gather the request

Collect only missing information; do not repeat questions already answered.

  1. Ask whether to translate in place or copy/migrate to another uCoz site while translating.
  2. Ask what to process: module materials or categories; design templates or global blocks; one or all site menus; or one or more Page Editor pages.
  3. Ask for the target language and optional locale/tone. Allow copy-only mode when no translation is needed.
  4. Narrow the object set by module, title, URL, ID, category, or "latest N".
  5. Ask which optional fields to include: SEO, tags, custom fields, image alt/title, category text, and other module-specific prose.
  6. Ask separately whether to localize the slug/ЧПУ. Keep it unchanged unless explicitly approved.
  7. Inventory associated images and ask whether to copy them unchanged, translate embedded text, regenerate localized variants, or skip them.

3. Discover objects read-only

Use the smallest useful read operation:

ScopeDiscovery path
Materialsmodules_read: active_mods, then content_read: list/get/category_list
Templatestemplates_read: list_modules, then read_template with include_variables=true
Menustemplates_read: menu_list, then menu_get
Pagestemplates_read: page_list, then page_get

When several objects match a vague title, show compact choices with stable IDs and wait for selection. Do not modify during discovery.

4. Build a translation inventory

For each selected object record: site role (source/target), stable ID/name, source field, content type, source format, translatable text, media, relationships, protected tokens/fields, and the original value required for rollback.

Classify every returned field using the current update schema: primary text, optional translatable text, related object, or protected/technical. Never decide from the JSON value alone — a string can still be a URL, identifier, author, state, or response-only field.

5. Classify what will change

  • Primary: title/name, main description/body.
  • Optional: meta fields, tags, non-empty custom text fields, labels, image alt/title, module-specific user-visible prose.
  • Related object: category/menu/author data requiring a separate tool.
  • Protected/technical: IDs, URLs, status, dates, counters, files, ownership, commercial values, response-only fields.

6. Show a translation plan (preview)

Before writing anything, show:

  • source and target sites (or the single in-place site), and target locale;
  • selected IDs/names and detected source format per rich-text field;
  • fields that will change and optional text fields excluded by the user;
  • protected fields, before/after excerpts, object/dependency mapping;
  • media action, conflict policy, publication state, validation plan, rollback plan;
  • whether each slug/ЧПУ will change, with old/new public URLs when known.

For 1–5 objects, preview every object. For 6–20, show a compact table and retain a full inventory. For more than 20, propose batches of at most 20 and require approval for each batch.

Treat "apply", "save", or an equivalent instruction after a concrete preview as approval for exactly that preview. Any material change to the object set or translated values requires a new preview.

7. Apply safe changes

Materials and categories: send only approved editable text fields, their required format controls, and fields explicitly required by the tool. For cross-site creation, call content_write(action="add") / category_add rather than update, map source category/parent IDs to target IDs, and omit source-only IDs/counters/ownership fields. The forum uses forum_write, not content_write.

Templates: read the current template immediately before editing, derive unique code_search fragments, validate the complete proposed content, then apply with patch_template (automatic backup) or update_template only for an approved whole-template replacement. Never remove, hide, translate, or relocate $POWERED_BY$.

Menus: save the original items tree, recursively change only label fields, send the complete tree through menu_update_items, preserving IDs, links, targets, types, and child order.

Pages: update only approved text fields through page_update, preserving slug, parent, publication, access, and layout settings.

Images: follow references/IMAGE_LOCALIZATION.md; never overwrite the source; upload through the correct target operation for the object type.

Cross-site copy/migration: follow the operation order in references/SITE_MIGRATION.md — dependencies before dependents, categories before materials, templates/global blocks after referenced assets exist, menus last.

8. Verify and report

After each write, read the object again and compare protected fields, translated values, format controls, raw/original content, and public URL against the source. Treat escaped HTML (&lt;p&gt;) in an HTML field as a verification failure; correct or roll back before continuing.

Return a concise report containing: source/target sites, target locale, created/updated object mappings, changed fields, copied/translated/regenerated media, rewritten links, protected elements, publication state, verification result, backup/rollback information, skipped items, conflicts, and any follow-up localization gaps.

Standard output format

Scope confirmation

  • Scope:
  • Objects:
  • Target language/locale:
  • Mode: in-place / copy-only / copy-and-translate
  • Batch size:

Translation inventory summary

  • Site(s) checked:
  • Object type:
  • Objects found:
  • Translatable fields identified:
  • Protected fields identified:
  • Slug/ЧПУ change requested: yes/no
  • Media action per group:

Translation plan (preview)

ObjectFieldSource formatCurrent valueProposed valueSlug change?

Cross-site mapping (migration only)

SourceTarget decisionDependenciesConflictResult

Final report

  • Scope:
  • Translated/migrated:
  • Not changed:
  • API/MCP actions used:
  • Protected fields:
  • Verification result:
  • Backup/rollback:
  • Skipped or conflicting items:
  • Next step:

Prompt examples

  • "Translate the latest 10 news posts into English, keep the URLs unchanged."
  • "Copy the product catalog to another uCoz site with a German translation."
  • "Translate the main menu and the template header into English."
  • "Find Page Editor pages without an English version and show the list."
  • "Localize the captions on category banners, don't touch the photos."
  • "Update only the meta title and description for this category in English."
  • "Translate the FAQ section, don't localize the slugs."
  • "Migrate the blog to the new site without translation, just copy it."
  • "Show me which templates still contain untranslated text."
  • "Regenerate the homepage banner in Spanish and show me a preview first."

Safety rules

  • Never expose credentials or private configuration values.
  • Never ask the user for keys, tokens, or passwords: access comes from signing in to the account through ucoz-mcp.
  • Never use a site other than the one selected with select_site (source/target) unless the user explicitly switches context.
  • Never write to the source site during a cross-site copy/migration.
  • Never assume object, category, template, page, menu, or media IDs match between two sites.
  • Never change prices, stock, SKU/article, order status, access groups, dates, or ownership while translating.
  • Never delete materials, categories, pages, menu items, templates, global blocks, or images unless explicitly requested.
  • Never change a slug/ЧПУ without a separate explicit approval and an old/new URL preview.
  • Never remove, hide, translate, or relocate $POWERED_BY$.
  • Never alter uCoz variables, insertion codes, or template control syntax while translating surrounding text.
  • Never let a rich-text write drop its format control fields; never accept escaped HTML as a successful HTML write.
  • Never mass-translate more than 20 objects without a preview and batch plan.
  • Never generate or upload a localized/regenerated image before showing its preview.
  • Never reuse a source image URL as a permanent target dependency unless the user explicitly approves hotlinking.
  • Always validate template changes before saving.
  • Always re-read a changed object and verify protected fields, format, and public URL before reporting success.
  • Always keep rollback information: original values for materials/pages/menus, and the backup identifier for templates.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Ucoz Site Translator Skill AI 技能有什么作用?

用于通过当前 uCoz MCP 翻译和本地化 uCoz 网站内容的 AI 技能,涵盖模块内容和分类、设计模板和全局区块、网站菜单、Page Editor 页面及相关图片。支持原地翻译,也支持将内容翻译后复制或迁移到另一个 uCoz 网站。

为什么在 TypingMind 中使用 Ucoz Site Translator Skill?

因为您只需安装一次,就能搭配任何模型使用。Ucoz Site Translator Skill 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Ucoz Site Translator Skill?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/ucoz-skills/agent-skills/tree/main/skills/ucoz-site-translator-skill。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Ucoz Site Translator Skill?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Ucoz Site Translator Skill 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Ucoz Site Translator Skill 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Ucoz Site Translator Skill AI 技能免费吗?

是的。ucoz-skills 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇