Token导航 LogoToken导航

Agent Skill · 前端设计

ui-toolkit%2fweb(用户界面工具包%2fweb)

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

ui-toolkit%2fweb 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,暂无第三方扫描结果,按安装量在前端设计类的 10,216 个 Skill 里排第 1,221。

总安装 6,897周安装 279GitHub Stars 11,685下载 2,165核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ui-toolkit%2fweb(用户界面工具包%2fweb)
来源仓库:https://github.com/anthropics/knowledge-work-plugins
仓库路径:skills/ui-toolkit%2Fweb
安装命令:
npx skills add https://github.com/anthropics/knowledge-work-plugins --skill ui-toolkit/web
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/anthropics/knowledge-work-plugins --skill ui-toolkit/web

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

提供前端界面开发的综合工具集与最佳实践。包含组件模板、样式指南和常用函数库。ui-toolkit%2fweb 属于前端设计类 Skill,可作为该场景下的辅助能力补充。支持快速集成到 React 或其他现代前端框架中。需根据项目实际需求裁剪和调整工具内容。适用于提升开发效率和维护界面代码质量。

来源仓库内路径:skills/ui-toolkit%2Fweb

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/anthropics/knowledge-work-plugins --skill ui-t…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ui-toolkit%2fweb 怎么安装?

在终端执行 npx skills add https://github.com/anthropics/knowledge-work-plugins --skill ui-toolkit/web。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ui-toolkit%2fweb 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ui-toolkit%2fweb 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

ui-toolkit%2fweb 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

ui-toolkit%2fweb 用的人多吗?

公开数据是累计安装 6,897 次,近一周安装 279 次,下载 2,165 次,GitHub 11,685 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ui-toolkit%2fweb 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 来源仓库有 11,685 星,维护活跃度相对可查。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
ui-toolkit%2fweb

用户界面工具包%2fweb · 本页

6,89711,685接触敏感数据未明确未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Zoom Video SDK UI Toolkit

Background reference for the prebuilt Zoom Video SDK UI Toolkit on web. Prefer choose-zoom-approach first when the user might still need Meeting SDK instead.

Official Documentation: https://developers.zoom.us/docs/video-sdk/web/ui-toolkit/ API Reference: https://marketplacefront.zoom.us/sdk/uitoolkit/web/ NPM Package: https://www.npmjs.com/package/@zoom/videosdk-zoom-ui-toolkit Live Demo: https://sdk.zoom.com/videosdk-uitoolkit

Quick Links

New to UI Toolkit? Follow this path:

  1. Quick Start - Get running in 5 minutes (see below)
  2. JWT Authentication - Server-side token generation (required)
  3. Composite vs Components - Choose your approach
  4. Framework Integration - React, Vue, Angular, Next.js patterns
  5. Integrated Index - see the section below in this file

Having issues?

  • Session not joining → Check JWT Authentication (most common issue)
  • React 18 peer dependency error → See Installation section
  • CSS not loading → See Troubleshooting
  • Components not showing → Check Component Lifecycle
  • Start with preflight checks → 5-Minute Runbook

Overview

The Zoom Video SDK UI Toolkit is a pre-built video UI library that renders complete video conferencing experiences with minimal code. Unlike the raw Video SDK, the UI Toolkit provides:

  • ✅ Ready-to-use UI - Professional video interface out of the box
  • ✅ Zero UI code - No need to build video layouts, controls, or participant management
  • ✅ Framework agnostic - Works with React, Vue, Angular, Next.js, vanilla JS
  • ✅ Highly customizable - Choose which features to enable, customize themes
  • ✅ Built-in features - Chat, screen share, settings, virtual backgrounds included

When to use UI Toolkit:

  • You want a complete video solution quickly
  • You need Zoom-like UI consistency
  • You don't want to build custom video UI
  • You need standard features (chat, share, participants)

When to use raw Video SDK instead:

  • You need complete custom UI control
  • You're building a non-standard video experience
  • You need access to raw video/audio data
  • You want to build your own rendering pipeline

Installation

npm install @zoom/videosdk-zoom-ui-toolkit jsrsasign
npm install -D @types/jsrsasign

Note: React support depends on the UI Toolkit version. Check the package peer dependencies for your installed version (React 18 is commonly required).

Quick Start

Basic Usage (Vanilla JS)

import uitoolkit from "@zoom/videosdk-zoom-ui-toolkit";
import "@zoom/videosdk-ui-toolkit/dist/videosdk-zoom-ui-toolkit.css";

const container = document.getElementById("sessionContainer");

const config = {
  videoSDKJWT: "your_jwt_token",
  sessionName: "my-session",
  userName: "John Doe",
  sessionPasscode: "",
  features: ["video", "audio", "share", "chat", "users", "settings"],
};

uitoolkit.joinSession(container, config);

uitoolkit.onSessionJoined(() => {
  console.log("Session joined");
});

uitoolkit.onSessionClosed(() => {
  console.log("Session closed");
});

Next.js / React Integration

'use client';

import { useEffect, useRef } from 'react';

export default function VideoSession({ jwt, sessionName, userName }) {
  const containerRef = useRef<HTMLDivElement>(null);
  const uitoolkitRef = useRef<any>(null);

  useEffect(() => {
    let isMounted = true;

    const init = async () => {
      const uitoolkitModule = await import('@zoom/videosdk-zoom-ui-toolkit');
      const uitoolkit = uitoolkitModule.default;
      uitoolkitRef.current = uitoolkit;

      // If TypeScript complains about CSS imports, configure your app to allow them
      // (for example via a global `declare module \"*.css\";`), or import the CSS from
      // a global entrypoint (Next.js layout/_app) instead of inlining here.
      await import('@zoom/videosdk-ui-toolkit/dist/videosdk-zoom-ui-toolkit.css');

      if (!isMounted || !containerRef.current) return;

      const config: any = {
        videoSDKJWT: jwt,
        sessionName: sessionName,
        userName: userName,
        sessionPasscode: '',
        features: ['video', 'audio', 'share', 'chat', 'users', 'settings'],
      };

      uitoolkit.joinSession(containerRef.current, config);
      uitoolkit.onSessionJoined(() => console.log('Joined'));
      uitoolkit.onSessionClosed(() => console.log('Closed'));
    };

    init();

    return () => {
      isMounted = false;
      if (uitoolkitRef.current && containerRef.current) {
        try {
          uitoolkitRef.current.closeSession(containerRef.current);
        } catch (e) {}
      }
    };
  }, [jwt, sessionName, userName]);

  return <div ref={containerRef} style={{ width: '100%', height: '100vh' }} />;
}

Available Features

FeatureDescription
videoEnable video layout and send/receive video
audioShow audio button, send/receive audio
shareScreen sharing
chatIn-session messaging
usersParticipant list
settingsDevice selection, virtual background
previewPre-join camera/mic preview
recordingCloud recording (paid plan)
leaveLeave/end session button

Troubleshooting

JWT Token Generation (Server-Side)

Required: Generate JWT tokens on your server, never expose SDK secret client-side.

Node.js / Next.js API Route

import { NextRequest, NextResponse } from 'next/server';
import { KJUR } from 'jsrsasign';

const ZOOM_VIDEO_SDK_KEY = process.env.ZOOM_VIDEO_SDK_KEY;
const ZOOM_VIDEO_SDK_SECRET = process.env.ZOOM_VIDEO_SDK_SECRET;

export async function POST(request: NextRequest) {
  const { sessionName, role, userName } = await request.json();

  if (!sessionName || role === undefined) {
    return NextResponse.json({ error: 'Missing params' }, { status: 400 });
  }

  const iat = Math.floor(Date.now() / 1000);
  const exp = iat + 60 * 60 * 2; // 2 hours

  const oHeader = { alg: 'HS256', typ: 'JWT' };
  const oPayload = {
    app_key: ZOOM_VIDEO_SDK_KEY,
    role_type: role, // 0 = participant, 1 = host
    tpc: sessionName,
    version: 1,
    iat,
    exp,
    user_identity: userName || 'User',
  };

  const signature = KJUR.jws.JWS.sign(
    'HS256',
    JSON.stringify(oHeader),
    JSON.stringify(oPayload),
    ZOOM_VIDEO_SDK_SECRET
  );

  return NextResponse.json({ signature });
}

JWT Payload Fields

FieldRequiredDescription
app_keyYesYour Video SDK Key
role_typeYes0 = participant, 1 = host
tpcYesSession/topic name
versionYesAlways 1
iatYesIssued at (Unix timestamp)
expYesExpiration (Unix timestamp)
user_identityNoUser identifier

API Reference

Core Methods

uitoolkit.joinSession(container, config);
uitoolkit.closeSession(container);

Event Listeners

uitoolkit.onSessionJoined(callback);
uitoolkit.onSessionClosed(callback);
uitoolkit.offSessionJoined(callback);
uitoolkit.offSessionClosed(callback);

Component Methods

uitoolkit.showChatComponent(container);
uitoolkit.hideChatComponent(container);
uitoolkit.showUsersComponent(container);
uitoolkit.hideUsersComponent(container);
uitoolkit.showControlsComponent(container);
uitoolkit.hideControlsComponent(container);
uitoolkit.showSettingsComponent(container);
uitoolkit.hideSettingsComponent(container);
uitoolkit.hideAllComponents();

CDN Usage (No Build Step)

<link rel="stylesheet" href="https://source.zoom.us/uitoolkit/2.3.5-1/videosdk-zoom-ui-toolkit.css" />
<script src="https://source.zoom.us/uitoolkit/2.3.5-1/videosdk-zoom-ui-toolkit.min.umd.js"></script>

<div id="sessionContainer"></div>

<script>
  const uitoolkit = window.UIToolkit;

  uitoolkit.joinSession(document.getElementById('sessionContainer'), {
    videoSDKJWT: 'your_jwt',
    sessionName: 'my-session',
    userName: 'User',
    features: ['video', 'audio', 'chat']
  });
</script>

Next.js with basePath

When deploying Next.js under a subpath:

// next.config.ts
const nextConfig = {
  basePath: "/your-app-path",
  assetPrefix: "/your-app-path",
};

Fetch API routes with full path:

fetch('/your-app-path/api/token', { ... })

Prerequisites

  1. Zoom Video SDK credentials from Zoom Marketplace
  2. React version compatible with your installed UI Toolkit package (check peer deps; React 18 is common)
  3. Server-side JWT generation (never expose SDK secret)
  4. Modern browser with WebRTC support

Browser Support

BrowserVersion
Chrome78+
Firefox76+
Safari14.1+
Edge79+

Common Issues

IssueSolution
peer react@"^18.0.0" errorUse the React version required by the installed UI Toolkit package (check peer deps; React 18 is common)
CSS import TypeScript errorConfigure TS/CSS handling (prefer a global *.css module declaration); avoid @ts-ignore except in throwaway demos
Config type errorType config as any
API returns HTML not JSONCheck basePath in fetch URL

Resources


Integrated Index

*This section was migrated from SKILL.md.*

Complete navigation for all UI Toolkit documentation.

📚 Start Here

New to the UI Toolkit? Follow this learning path:

  1. SKILL.md - Main overview and quick start
  2. 5-Minute Runbook - Preflight checks before deep debugging
  3. Quick Start Guide - Working code in 5 minutes (see skill.md)
  4. JWT Authentication - Server-side token generation (see skill.md)
  5. Choose Your Mode - Composite vs Components (see skill.md)

🎯 Core Concepts

Understanding how UI Toolkit works:

  • Composite vs Components - Two ways to use UI Toolkit (see skill.md)
  • UI Toolkit Architecture - How it wraps Video SDK internally
  • Feature Configuration - Understanding featuresOptions structure
  • Session Lifecycle - Join → Active → Leave/Close → Destroy flow

📖 Complete Guides

Getting Started

  • Installation - NPM install and React 18 setup (see skill.md)
  • Quick Start - Composite - Full UI in one container (see skill.md)
  • Quick Start - Components - Individual UI pieces (see skill.md)
  • JWT Authentication - Server-side token generation (see skill.md)

Framework Integration

  • React Integration - Hooks, useEffect patterns (see skill.md)
  • Vue.js Integration - Composition API and Options API (see skill.md)
  • Angular Integration - Component lifecycle (see skill.md)
  • Next.js Integration - App Router, Server Components (see skill.md)
  • Vanilla JavaScript - No framework usage (see skill.md)

Advanced Topics

  • Component Lifecycle - Mount, unmount, cleanup patterns
  • Event Listeners - React to session events
  • Session Management - Programmatic control
  • Quality Statistics - Monitor connection quality
  • Custom Themes - Theme customization
  • Virtual Backgrounds - Custom background images

📚 API Reference

Complete API documentation:

  • Core Methods (see skill.md)

- joinSession() - Start a video session - closeSession() - End session and remove UI - destroy() - Clean up UI Toolkit instance - leaveSession() - Leave without destroying UI

  • Component Methods (see skill.md)

- showControlsComponent() - Display control bar - showChatComponent() - Display chat panel - showUsersComponent() - Display participants list - showSettingsComponent() - Display settings panel - hideAllComponents() - Hide all components

  • Event Listeners (see skill.md)

- onSessionJoined() - Session joined successfully - onSessionClosed() - Session ended - onSessionDestroyed() - UI Toolkit destroyed - onViewTypeChange() - View mode changed - on() - Subscribe to Video SDK events - off() - Unsubscribe from events

  • Information Methods (see skill.md)

- getSessionInfo() - Get session details - getCurrentUserInfo() - Get current user - getAllUser() - Get all participants - getClient() - Get underlying Video SDK client - version() - Get version info

  • Control Methods (see skill.md)

- changeViewType() - Switch view mode - mirrorVideo() - Mirror self video - isSupportCustomLayout() - Check device support

  • Statistics Methods (see skill.md)

- subscribeAudioStatisticData() - Audio quality stats - subscribeVideoStatisticData() - Video quality stats - subscribeShareStatisticData() - Share quality stats

🔧 Configuration

  • Feature Configuration (see skill.md)

- featuresOptions structure - Audio/Video options - Chat, Users, Settings - Virtual Background - Recording, Captions (paid features) - Theme customization - View modes

  • Session Configuration (see skill.md)

- Required: videoSDKJWT, sessionName, userName - Optional: sessionPasscode, sessionIdleTimeoutMins - Debug mode - Web endpoint - Language settings

⚠️ Troubleshooting

Common Issues

  • React 18 peer dependency error
  • JWT token invalid
  • CSS not loading
  • Components not showing
  • Session join failures

See: troubleshooting/common-issues.md

Framework-Specific Issues

  • React: SSR, hydration, cleanup
  • Vue: Reactivity, lifecycle
  • Angular: Module imports, AOT
  • Next.js: App Router, basePath

Session Issues

  • Authentication failures
  • Connection problems
  • Video/audio not working
  • Screen share issues

📦 Sample Applications

Official Repositories:

FrameworkRepositoryKey Features
Reactvideosdk-zoom-ui-toolkit-react-sampleHooks, TypeScript
Vue.jsvideosdk-zoom-ui-toolkit-vuejs-sampleComposition API
Angularvideosdk-zoom-ui-toolkit-angular-sampleServices, Guards
JavaScriptvideosdk-zoom-ui-toolkit-javascript-sampleVanilla JS
Auth Endpointvideosdk-auth-endpoint-sampleNode.js JWT

🌐 External Resources

🎓 Learning Path

Beginner

  1. Read SKILL.md overview
  2. Follow Quick Start - Composite
  3. Generate JWT on server
  4. Join your first session
  5. Explore available features

Intermediate

  1. Try Component Mode
  2. Add event listeners
  3. Customize theme
  4. Add virtual backgrounds
  5. Integrate with your framework

Advanced

  1. Access underlying Video SDK
  2. Subscribe to quality statistics
  3. Handle all edge cases
  4. Implement custom layouts
  5. Build production-ready app

📋 Quick Reference Card

Minimal Working Example

import uitoolkit from "@zoom/videosdk-zoom-ui-toolkit";
import "@zoom/videosdk-ui-toolkit/dist/videosdk-zoom-ui-toolkit.css";

const config = {
  videoSDKJWT: "YOUR_JWT",
  sessionName: "test-session",
  userName: "User",
  featuresOptions: {
    video: { enable: true },
    audio: { enable: true }
  }
};

uitoolkit.joinSession(document.getElementById("container"), config);
uitoolkit.onSessionJoined(() => console.log("Joined"));
uitoolkit.onSessionClosed(() => uitoolkit.destroy());

Must-Remember Rules

  1. ✅ Always generate JWT server-side
  2. ✅ Always call destroy() on cleanup
  3. ✅ Always use React 18 (not 17/19)
  4. ✅ Always import CSS file
  5. ❌ Never expose SDK secret client-side
  6. ❌ Never skip onSessionClosed cleanup
  7. ❌ Never call components before joinSession

📞 Support


Navigation: ← Back to SKILL.md

Environment Variables

平台分布

Codex

36.24%
按下载量换算785

Claude

30.29%
按下载量换算656

Cursor

18.79%
按下载量换算407

Gemini CLI

8.11%
按下载量换算176

安全审计

暂无安全审计结果可展示。

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills