Agent skill

Zui Wrap Lib

by easysoft in easysoft/zui

将已经可用的 UMD/IIFE 资源封装为 ZUI 主仓库的 lib/ 库,通过 LibLoader 按需加载。不转换资源格式,需求明确时形成集成计划后直接实施。

MITAuto-check passedFrontend & Design

Install Zui Wrap Lib

skills CLI
$ npx skills add easysoft/zui --skill zui-wrap-lib -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install easysoft/zui zui-wrap-lib --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/easysoft/zui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/zui-wrap-lib .claude/skills/zui-wrap-lib && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
zui-wrap-lib
GitHub stars
2.8k
Token cost
~970 tokens
SKILL.md length
224 words
Files
3 (incl. references)
Skills in repo
24
Repo updated
First seen
Licence
MIT

At a glance

将已经可用的 UMD/IIFE 资源封装为 ZUI 主仓库的 lib/ 库,通过 LibLoader 按需加载。不转换资源格式,需求明确时形成集成计划后直接实施。

  • Works in 6 steps: 按 共享工作流 完成所需发现并复用已有上下文。 → 按本次封装决策读取相关规范 → 按需读取 references/wrapper-shapes.md… → …
  • Frontend & Design work in your project
  • SKILL.md covers 目标与边界, 准备与发现, 设计封装 and 一次集成计划, plus 2 more sections
  • Calls pnpm and git

What it does

Zui Wrap Lib is an agent skill from easysoft/zui. 将已经可用的 UMD/IIFE 资源封装为 ZUI 主仓库的 lib/ 库,通过 LibLoader 按需加载。不转换资源格式,需求明确时形成集成计划后直接实施。

Its SKILL.md is about 970 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `agents/openai.yaml` and `references/wrapper-shapes.md`).

It sits in Frontend & Design. It works with Preact. The repository describes itself as: ZUI is an HTML5 front UI framework. The licence is MIT.

When your agent uses it

  • Frontend & Design work in your project

Example prompts

  • “/zui-wrap-lib”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. 按 共享工作流 完成所需发现并复用已有上下文。
  2. 按本次封装决策读取相关规范
  3. 按需读取 references/wrapper-shapes.md 的形态判断及所选形态约束,再按范围读取 ../zui-lib/SKILL.md、../zui-component/SKILL.md、../zui-helper/SKILL.md、../zui-dev/SKILL…
  4. 检查工作区状态并保留已有修改。确认目标是新建 lib/ 还是扩展已有库,不覆盖无关文件。
  5. 检查 UMD 产物或其文档,只提取封装所需事实:资源位置、全局名、构造器/函数、初始化参数、返回值、事件、更新与销毁 API、配套 CSS/资源、版本和许可证。不要把“确认可直接使用”变成转制或重打包工作。
  6. 核实本次涉及的 LibLoader/getLib 契约;需要参考时,可从 lib/sortable/src/helper/sortable-loader.ts 和 lib/sortable/src/vanilla/sortable.ts…

What it can do on your machine

Read from SKILL.md and the folder at commit d99f043. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Zui Wrap Lib loads about 970 tokens when it runs, and up to ~2.2k if it reads all its reference files. Until then it costs about 24 tokens; SKILL.md has 224 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~24
When it runs · the whole SKILL.md, loaded when a task matches
~970
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from easysoft/zui at commit d99f043, republished under its MIT licence (© easysoft). 224 words, ~970 tokens.

Download SKILL.mdSave it as .claude/skills/zui-wrap-lib/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
zui-wrap-lib
description
将已经可用的 UMD/IIFE 资源封装为 ZUI 主仓库的 lib/* 库,通过 LibLoader 按需加载。不转换资源格式,需求明确时形成集成计划后直接实施。

ZUI UMD 库封装

目标与边界

把第三方 UMD/IIFE 库做成一层薄而完整的 ZUI 适配层:第三方实现保持外置,由 LibLoader<T> 首次使用时加载;ZUI 库负责类型、公开 API、组件生命周期、样式接线、调试和文档。

  • 假定用户提供或指定的产物已经能被浏览器脚本直接加载,并暴露稳定的全局变量。
  • 不调用或建议 npm-umd-wrapper,不把 ESM 转成 UMD,不使用打包器重建、改写或内联第三方实现。
  • 先从用户指定版本的产物和文档核实格式、路径与全局名。仍缺少可用资源时,只暂停依赖该资源的封装工作,报告缺口并请求必要信息;继续不受影响的已授权事项。不自行转换、重打包或换用未经批准的资源。
  • 不默认生成全部消费方式;只实现用户需要且仓库契约支持的 helper、vanilla、Preact、声明式创建或公开加载 API。
  • 不自动提交、推送或发布。

准备与发现

  1. 按 共享工作流 完成所需发现并复用已有上下文。
  2. 按本次封装决策读取相关规范:
    • ../zui-standards/references/workflow.md
    • ../zui-standards/references/library.md
    • ../zui-standards/references/external-library.md
    • UI 组件再读 ../zui-standards/references/component.md;无状态函数或服务 facade 再读 ../zui-standards/references/helper.md。
    • 纳入 README.md / dev.ts 或正式文档时,再读对应的 dev-page.md / documentation.md。
  3. 按需读取 references/wrapper-shapes.md 的形态判断及所选形态约束,再按范围读取 ../zui-lib/SKILL.md、../zui-component/SKILL.md、../zui-helper/SKILL.md、../zui-dev/SKILL.md 或 ../zui-doc/SKILL.md;由本技能统一它们的任务范围与计划。
  4. 检查工作区状态并保留已有修改。确认目标是新建 lib/<name> 还是扩展已有库,不覆盖无关文件。
  5. 检查 UMD 产物或其文档,只提取封装所需事实:资源位置、全局名、构造器/函数、初始化参数、返回值、事件、更新与销毁 API、配套 CSS/资源、版本和许可证。不要把“确认可直接使用”变成转制或重打包工作。
  6. 核实本次涉及的 LibLoader/getLib 契约;需要参考时,可从 lib/sortable/src/helper/sortable-loader.ts 和 lib/sortable/src/vanilla/sortable.ts 检查加载及生命周期模式,再按证据需要补充相近实现。

先从仓库、产物和现有文档发现信息。只有缺口会改变目标库、公开 API、生命周期或文件范围时才提问,通常限于:无法确定的目标库名、UMD 资源位置/全局名,以及用户真正需要的消费方式。

设计封装

分别确定包角色与实现架构,不从“第三方库”或目录名机械推断 zui.type。按外部 API 和公开消费方式选择:

  • 无状态函数/模块:提供异步 typed facade,通常不创建 Component。
  • 增强已有 DOM 的有状态实例:使用原生 Component,持有第三方实例并负责更新和销毁。
  • ZUI 需要根据 props 生成结构且同时提供 Preact/vanilla:按组件规范选择 Preact 与 ComponentFromReact,不要在没有消费需求时增加 TSX 层。
  • 全局服务或单例:按 helper 规范明确所有权、重入、错误与清理,不伪装成 UI 组件。

无论选择哪种形态,都要定义:

  • 唯一 loader 注册名、生产资源路径、check 全局名、前置 JS/CSS 和 dev 覆盖路径;
  • loader 是否保持私有,是否确有必要公开 loadModule() / Module;
  • loading、失败传播/降级、缓存错误与显式重试语义;
  • 类型来源及发布后的可解析性,严禁第三方库的运行时 import 混入 ZUI bundle;
  • 异步初始化期间销毁、重复初始化、多实例、更新和第三方实例清理;
  • package 入口、依赖、zui.type、contributes、public 资源、样式、调试页与正式文档边界。

一次集成计划

按共享工作流形成可直接实施的集成计划;以下仅展开本次相关决策:

  • 新建/已有库、包角色、实现架构及必要参考依据;
  • UMD 来源与版本、目标 public/ 路径或绝对 URL、全局名、loader 注册与资源依赖;
  • package 名称、入口、依赖、zui 元数据和 publicPath 决策;
  • 类型策略、公开 API、消费方式、状态/数据流、错误重试、更新与 destroy;
  • 精确文件集,以及 README/dev、正式文档、样式和 i18n 的纳入/排除;
  • 运行时验收场景、静态验证、仍存在的假设和本次任务范围。

需求明确后直接实施;任务范围、必要澄清及协作模式遵循共享工作流。

实施

  1. 重新检查工作区状态,仅修改任务范围。
  2. 新库按 @zui/<kebab-name>、0.0.1、真实入口、准确依赖和 zui.contributes 创建最小骨架;publicPath 只在构建后的资源目录不同于库名时声明。已有库沿用合理结构,不顺带规范化。
  3. 将用户提供的 UMD/CSS/许可证文件原样放入计划中的 public/ 位置,或为选定的绝对 URL 配置 loader。同时按第三方依赖的版权与文档补齐根目录 licenses/ 和公共依赖说明,外置或远程加载也须覆盖。不要编辑、压缩、转译或生成第三方产物。
  4. 在库内私有 helper 中创建唯一的 LibLoader<T>,显式配置 src 和 check;多个组件共享同一个 loader,不在组件类维护第二份模块缓存。
  5. 优先使用第三方声明的 import type;没有可靠声明时只手写封装实际使用的窄接口。公共类型引用第三方包时,确保消费者能解析相应依赖。
  6. 按选定形态实现 facade。每次异步加载后检查模块结果和实例存活状态;定义加载前方法行为;在 destroy() 中清理第三方实例、监听、DOM 和其他副作用。
  7. 仅创建真实需要的局部入口、src/main.ts、Preact 子入口、注册副作用和样式。不要公开私有 loader,也不要为理论消费方式创建空目录或导出。
  8. 任务范围包含调试页时,按 zui-dev 完成 README.md 与 dev.ts:先导入生产入口,再用相同注册名和 check 覆盖本地 /lib/<name>/public/... 路径,并在 HMR 重建前销毁旧实例。组件 API 文档按任务范围由 zui-doc 实施;新增第三方依赖的公共说明按共享工作流随本次交付完成。
  9. 若修改依赖,使用 pnpm 更新安装状态和锁文件;不要使用 npm、yarn 或 npx。

验证与交付

按共享工作流选择覆盖本次变更的验证,常用命令为:

sh
git diff --check
pnpm exec eslint lib/<name>
pnpm build --lib <name> --no-minify

根据本次涉及的类型、文档或交互补充必要检查,并按共享工作流完成范围内修复和复验。开发服务管理遵循共享工作流及 AGENTS.md,按归属和临时验证/持续预览用途处理。

新增封装或改变相应运行时行为时,按变更选择以下验收项目:首次使用才加载、预载全局不重复加载、多实例、加载失败与选定的重试/降级策略、加载返回前销毁、更新、重复初始化和最终清理;同时核对构建后的 public 资源路径及第三方类型解析。

交付时报告新增/修改文件、公开 API、UMD 资源与全局名、已运行验证和未验证风险,并保留用户原有未提交改动。

© easysoft, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in .agents/skills/zui-wrap-lib of easysoft/zui.

  • SKILL.md
  • agents/openai.yaml
  • references/wrapper-shapes.md

Open the folder on GitHubat commit d99f043

Compare with similar skills

Zui Wrap Lib next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Zui Wrap Lib compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Zui Wrap Lib this skilleasysoft/zui2.8k—~970Automated safety check: PassMIT
Boneyard0xGF/boneyard7.5k—~2.2kAutomated safety check: NotesMIT
Tailwind To Stylexshadcn-labs/shadcn-cssinjs122—~2.7kAutomated safety check: PassMIT
Frontend8borane8/s2pipe107—~2.2kAutomated safety check: PassMIT
Deno Frontend Developmentdenoland/skills100—~783Automated safety check: PassMIT
Preact Developeroaustegard/claude-skills150—~4.6kAutomated safety check: PassMIT

Similar skills

  • Boneyard

    0xGF/boneyard

    Use boneyard-js to add, configure, debug, or rebuild skeleton screens.

    7.5k GitHub stars~2.2k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check: notes
  • Tailwind To Stylex

    shadcn-labs/shadcn-cssinjs

    Migrate TailwindCSS to StyleX. An agent skill from shadcn-labs/shadcn-cssinjs.

    122 GitHub stars~2.7k tokensUpdated 26 days ago
    Frontend & DesignAuto-check passed
  • Frontend

    8borane8/s2pipe

    Conventions front (Slick, Preact, CSS structurel, islands). An agent skill from 8borane8/s2pipe.

    107 GitHub stars~2.2k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Official

    Chooses between running regular npm frontend frameworks under Deno and building with Fresh, Deno's island-architecture framework, with Fresh 2.x guidance.

    100 GitHub stars~783 tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • Preact Developer

    oaustegard/claude-skills

    Guides building standards-based Preact apps with native-first choices, HTM syntax, import maps and vendored ESM, from single-file demos to larger builds.

    150 GitHub stars~4.6k tokensUpdated 5 days ago
    Frontend & DesignAuto-check passed
  • Webpack Plugin Recipes

    pproenca/dot-skills

    A skill your agent uses whenever you face a webpack-build problem that ends with needing to write a plugin — 26 production-shaped recipes covering bundle-size budgets, forbidden architectural…

    214 GitHub stars~2k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed

More from easysoft/zui

All 24 skills in this repo
  • Zui Build

    easysoft/zui

    使用内置 ZUI 资源从零创建可运行的独立网页或小型静态站点。向已有应用集成 ZUI 时使用 zui 技能. An agent skill from easysoft/zui.

    2.8k GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Zui

    easysoft/zui

    在已有应用中集成、使用或排查 ZUI 3,直接创建和注册应用自定义组件,或使用已提供的 Web Components;适用于消费方项目,不用于开发 ZUI 源码仓库。

    2.8k GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • Zui Standards

    easysoft/zui

    查询 ZUI 主仓库的开发规范,为库开发及本地 exts 接入任务提供相关约束和仓库证据;规范查询保持只读. An agent skill from easysoft/zui.

    2.8k GitHub stars~434 tokensUpdated yesterday
    Auto-check passed
  • Zuix Standards

    easysoft/zui

    查询独立 ZUI 扩展项目的开发规范,解析目标库、扩展工作区、Git 所有权及所需宿主上下文;始终只读. An agent skill from easysoft/zui.

    2.8k GitHub stars~403 tokensUpdated yesterday
    Auto-check passed
  • Zui Commit

    easysoft/zui

    审查并提交 ZUI 主仓库的改动;用户直接调用本技能即进入提交模式,必要检查通过后直接提交。只要求分析、评审或生成提交信息时保持只读。

    2.8k GitHub stars~1.5k tokensUpdated yesterday
    Auto-check: notes
  • Zuix Commit

    easysoft/zui

    审查并提交独立 ZUI 扩展项目的改动;用户直接调用本技能即进入提交模式,必要检查通过后直接提交。只要求分析、评审或生成提交信息时保持只读。

    2.8k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check: notes

Works with

Questions about Zui Wrap Lib

What does Zui Wrap Lib do?

将已经可用的 UMD/IIFE 资源封装为 ZUI 主仓库的 lib/ 库,通过 LibLoader 按需加载。不转换资源格式,需求明确时形成集成计划后直接实施。. Zui Wrap Lib is an agent skill from easysoft/zui.

When should I use Zui Wrap Lib?

Zui Wrap Lib fits situations like: frontend & Design work in your project.

How do I install Zui Wrap Lib in Claude Code?

Run `npx skills add easysoft/zui --skill zui-wrap-lib -a claude-code`. Or copy the skill folder (.agents/skills/zui-wrap-lib in easysoft/zui) into .claude/skills/zui-wrap-lib in your project. Claude Code loads it when a task matches its description.

How do I install Zui Wrap Lib in Codex?

Run `npx skills add easysoft/zui --skill zui-wrap-lib -a codex`. Or copy the skill folder (.agents/skills/zui-wrap-lib in easysoft/zui) into .agents/skills/zui-wrap-lib in your project. Codex loads it when a task matches its description.

Can I use Zui Wrap Lib in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add easysoft/zui --skill zui-wrap-lib -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/zui-wrap-lib, .gemini/skills/zui-wrap-lib, .github/skills/zui-wrap-lib and .opencode/skills/zui-wrap-lib in your project.

What does Zui Wrap Lib need to run?

Going by SKILL.md and its folder, Zui Wrap Lib needs the command-line tools its instructions call (pnpm and git).

Does Zui Wrap Lib access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Zui Wrap Lib safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Zui Wrap Lib use?

Zui Wrap Lib is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Zui Wrap Lib use?

About 970 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.2k tokens, read only when the agent opens those files.

What are the alternatives to Zui Wrap Lib?

Skills that share tags, products or a category with Zui Wrap Lib: Boneyard (0xGF/boneyard, 7.5k stars), Tailwind To Stylex (shadcn-labs/shadcn-cssinjs, 122 stars), Frontend (8borane8/s2pipe, 107 stars) and Deno Frontend Development (denoland/skills, 100 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Zui Wrap Lib?

easysoft (a GitHub organization) maintains it in easysoft/zui, which has 2,764 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 6, 2026.

Source: easysoft/zui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.