Logo Ucoz Popup Design Skill

Ucoz Popup Design Skill

Cộng đồng
ucoz-skills
ucoz-popup-design-skill

Tùy chỉnh giao diện các cửa sổ bật lên gốc của trang uCoz bằng các công cụ MCP chính thức của uCoz: cửa sổ hệ thống (`_uWnd`), hộp thoại xác nhận, biểu mẫu trong cửa sổ (như biểu mẫu đăng nhập và kết quả gửi biểu mẫu liên hệ) và thông báo `uToast`. Có 5 giao diện dựng sẵn (Light, Dark, Lavender, Mint, Peach), bảng màu khớp với trang web đang hoạt động hoặc bảng màu tùy chỉnh kèm kiểm tra độ tương phản. Skill tạo một tệp CSS có phiên bản, được liên kết từ một vị trí chèn đã đánh dấu trong template, đồng thời sao lưu, đọc lại chính xác và hỗ trợ hoàn tác chỉ với một bước. Dùng khi bạn muốn “làm cho cửa sổ bật lên khớp với trang web”, “thông báo nền tối”, “đổi giao diện cửa sổ đăng nhập” hoặc “gỡ kiểu cửa sổ bật lên”. Không dùng để thiết kế lại toàn bộ trang web (ucoz-design-editor-skill), tạo template mới (ucoz-template-creator-skill) hoặc quản lý nội dung trang web (ucoz-content-manager-skill).

Add to TypingMind

Tổng quan

Nhà phát hànhucoz-skills
Kho mãagent-skills
Tên kỹ năngucoz-popup-design-skill
Sao
24
Bản fork
0
Tệp đi kèm
9
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 9 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được ucoz-skills công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Ucoz Popup Design Skill trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/ucoz-skills/agent-skills/tree/main/skills/ucoz-popup-design-skill
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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-popup-design-skill .claude/skills/ucoz-popup-design-skill
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Ucoz Popup Design Skill trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Ucoz Popup Design Skill ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Ucoz Popup Design Skill với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

uCoz Popup Design Skill

Version: 1.0

Usage accounting

After the stylesheet is published and verified, record the usage:

text
skills_tool(action="register_usage", skill_id="ucoz-popup-design-skill")

If usage accounting 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, token, site URL, or uAPI key.

Purpose

You restyle the popups that uCoz itself draws on a live site: _uWnd windows, confirmations, forms inside windows and uToast notifications. They are not in templates — platform JavaScript appends them to <body> — so the only lever is CSS loaded after the system styles.

Three outcomes define success:

  1. The popups look like the site (or like the chosen preset), in light and dark modes, on desktop and at 375px.
  2. Nothing stops working: windows still open, close, drag, resize and submit; fields keep their native behaviour and keyboard access.
  3. Nothing else changed: menus, lightbox, Control Panel dialogs and the rest of the page look exactly as before, and the change can be removed in one step.

Connection model

Everything goes through the MCP tools on the site chosen with select_site. No API key, token or site URL is needed in the client.

  1. list_sites → match the user's domain → select_site(site_id) → check that the returned host is that domain. Ask which site if there are several and the user did not name one.
  2. Work with the tool family for the job (see the map below).

A permission error means the signed-in account cannot do that operation. Say so; do not look for workarounds.

Tool map

JobReadWriteDelete / destructive
Template ids, template code, patch checktemplates_read list_modules, read_template, validate_template——
Template backupstemplates_read get_backup_guide, list_backupstemplates_write create_backup—
CSS link in templatestemplates_read read_templatetemplates_write patch_templaterollback = patch_template with code_paste: ""
The CSS filefiles_read quota, list, content_getfiles_write mkdir, content_putfiles_delete (confirm: true, only after the user approves)

Not this skill: update_template, tmaker_publish, templates_delete, settings_write, and the content, users and shop tools.

Non-negotiables

  1. Separate file, one link. The styles live in one versioned file in the file manager (uwnd-design-<version>.css), linked once between <!-- uwnd-design:start v<version> --> and <!-- uwnd-design:end -->. Never inline the styles into templates, never edit the stock CSS template, never touch system files under /.s/. The file and marker names stay uwnd-design so that sites styled by earlier versions are updated in place, not duplicated.
  2. Patch, don't rewrite. Only patch_template with a byte-exact code_search from a fresh read_template, checked first with validate_template. Never update_template or a full skeleton. Keep $AJAX_JS$, $POWERED_BY$, template conditions and functional form fields.
  3. Scope every ordinary-window rule to body [id^="_uwndTop"]:not(.x-lb,.cp-modal,.cp-alert,.uwnd-toast). Toasts are styled separately under .uwnd-toast. Do not restyle .xw-shadow globally (menus use it too), icon fonts or --layer-* variables outside the toast.
  4. Native geometry stays. Keep inline sizes, hidden controls, drag/resize regions, close/minimize/maximize buttons and their handlers. Never monkeypatch the _uWnd / uToast library.
  5. Fields stay native. Keep input semantics, labels, keyboard behaviour; inset focus outlines so they are not clipped; room for exactly one select arrow; multiple selects untouched; never width:100% on every field.
  6. Contrast 4.5:1 for key text pairs, presets and custom palettes alike. scripts/build_theme.py.md refuses palettes below it.
  7. No personal data. The audit reads DOM structure and computed styles only — never field values, cookies or tokens. Never submit real forms for a visual check.
  8. Honest accessibility. CSS cannot add focus traps, ARIA roles or tabindex. Never claim full accessibility.

Safety rules

  • Installing the skill is not permission to publish. Publish only what the user approved; a request for a preview stays local.
  • Do not repeat questions the user already answered and do not ask again for an approval already given.
  • Read before you write: save the original of every template you patch locally (outside the skill folder) and record the backup id.
  • Never overwrite a file you did not create. If uwnd-design markers already exist, update that block instead of adding another.
  • Open and close only your own test windows; never close a window whose name you did not create.
  • Do not add a second jQuery or any other library to existing pages.
  • confirm: true on files_delete only after the user approved deleting that exact file.

Workflow

1. Connect

list_sites → select_site → verify the host.

2. Choose the appearance

If the user has not chosen, offer three options in their language:

  • Preset — Light, Dark, Lavender, Mint or Peach (assets/themes.json).
  • Match the site — taken from the live page backgrounds, fonts, links, buttons, radii and light/dark selectors.
  • Custom — ask only for what is missing: colours, a reference, density, rounding.

→ references/THEMES.md

3. Audit

Open representative windows on the live site and run the function from scripts/inspect-windows.js.md in the browser (read-only). Note the loaded system CSS/JS, the window DOM, site CSS variables and light/dark switches. → references/COMPONENTS.md

4. Build

Generate the stylesheet locally: save the code block from scripts/build_theme.py.md as build_theme.py in a working folder, then run python build_theme.py --theme <name> --output <file> (optional --accent / --hover). For a site-matched or custom look, adapt the --uwd-* tokens; bind them to site variables only after seeing their real names. Show a preview with the site's own library and harmless demo windows.

5. Publish

Backup → CSS file → validated marked patch → exact read-back. → references/PUBLISHING.md

6. Verify

Desktop and 375px, light and dark site modes, real site windows and demos, field states, keyboard, toasts. → references/VERIFICATION.md

7. Report

Use the output format below. Then call skills_tool register_usage.

Output format

Plan

#ObjectTool / actionChangeBackupRisk

Final report

  • Site and theme:
  • CSS file (path, version):
  • Templates patched (module/template, backup id):
  • Preview URL:
  • Verified (desktop / 375px, light / dark, windows, forms, toasts):
  • Not tested and why:
  • Rollback:

Reference map

NeedFile
Window and toast DOM, classes, JS API, what to keep untouchedreferences/COMPONENTS.md
Presets, tokens, site-matched and custom palettes, the theme builderreferences/THEMES.md
Backup, CSS file, marked insertion, HTTP 413, rollbackreferences/PUBLISHING.md
Test matrix and acceptance criteriareferences/VERIFICATION.md
Base stylesheet / preset palettesassets/uwnd-overrides.css.md, assets/themes.json
Theme builder / read-only DOM auditscripts/build_theme.py.md, scripts/inspect-windows.js.md
Example requestsexamples/PROMPTS.md

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Ucoz Popup Design Skill làm được gì?

Tùy chỉnh giao diện các cửa sổ bật lên gốc của trang uCoz bằng các công cụ MCP chính thức của uCoz: cửa sổ hệ thống (`_uWnd`), hộp thoại xác nhận, biểu mẫu trong cửa sổ (như biểu mẫu đăng nhập và kết quả gửi biểu mẫu liên hệ) và thông báo `uToast`. Có 5 giao diện dựng sẵn (Light, Dark, Lavender, Mint, Peach), bảng màu khớp với trang web đang hoạt động hoặc bảng màu tùy chỉnh kèm kiểm tra độ tương phản. Skill tạo một tệp CSS có phiên bản, được liên kết từ một vị trí chèn đã đánh dấu trong template, đồng thời sao lưu, đọc lại chính xác và hỗ trợ hoàn tác chỉ với một bước. Dùng khi bạn muốn “l...

Vì sao nên dùng Ucoz Popup Design Skill trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Ucoz Popup Design Skill là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Ucoz Popup Design Skill trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/ucoz-skills/agent-skills/tree/main/skills/ucoz-popup-design-skill. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Ucoz Popup Design Skill?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Ucoz Popup Design Skill với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Ucoz Popup Design Skill với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Ucoz Popup Design Skill có miễn phí không?

Có. Kỹ năng này được ucoz-skills phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇