用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/easysoft/zui --skill zui命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | zui |
| description | 在已有应用中集成、使用或排查 ZUI 3;适用于消费方项目,不用于开发 ZUI 源码仓库。 |
Apply ZUI through the public surface actually available in the user's application. Treat the installed version, package exports, types, and existing project conventions as authoritative; use the bundled references as ZUI 3 guidance, not as a substitute for version-specific evidence.
zui;zui;@zui/<name>;node <skill-root>/scripts/inspect-zui-project.mjs --root <project-root>
Reuse established project context while it remains applicable; refresh it when dependencies, delivery mode, or relevant configuration change. Use --json when structured output is easier to inspect. The inspector discovers workspace manifests when the supplied root is a workspace, follows parent directories to the nearest package-manager context, resolves hoisted packages, and keeps representative source matches when signal volume is high. Supplement the report with targeted rg searches and direct reads of relevant files; the script reports signals, not API correctness.
Use this evidence order:
package.json exports, declaration files, source maps, and CSS;Never invent an import path, export name, option, event, method, CSS class, CSS variable, or declarative component name. Inspect it first. Do not edit node_modules, rely on private deep imports, or silently change package managers.
Read references/integration-and-discovery.md before adding dependencies, changing imports, choosing CDN/npm/custom-build delivery, or resolving version ambiguity.
| Need | Prefer |
|---|---|
| Static control or layout | Semantic HTML plus verified ZUI CSS classes |
| Small visual adjustment | Public ZUI utility classes or documented CSS variables |
| Stateful DOM interaction | A verified vanilla constructor or static component method |
| Server-rendered markup with client enhancement | Declarative attributes or a client-only vanilla initializer |
| Preact application | A verified package /react entry when it exists |
| React, Vue, Svelte, or another renderer | A vanilla instance mounted through that framework's lifecycle |
| Framework-independent data operation | A verified ZUI helper import |
Prefer CSS-only markup when JavaScript adds no user value. Prefer an existing ZUI component over recreating its behavior, but do not force ZUI onto application-specific logic that has no matching public API.
Read references/component-patterns.md for CSS, vanilla, declarative, theming, language, lifecycle, security, and accessibility rules. Read references/framework-lifecycle.md when a UI framework, SSR, hydration, or client-side routing owns the surrounding DOM.
destroy() or the documented disposer during unmount or replacement.Read references/troubleshooting.md when styles, exports, globals, initialization, updates, overlays, SSR, language, or cleanup behave unexpectedly. Find the first failed layer—delivery, CSS, registration, DOM timing, options, lifecycle, or layout—before changing code.
If the target is the ZUI source repository itself and the request changes lib/*, stop using this consumer workflow and follow that repository's internal ZUI development skills and confirmation gates.