Token导航 LogoToken导航

Agent Skill · 效率

contextui(contextui 效率)

contextui 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

contextui 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在效率类的 21,003 个 Skill 里排第 676。

总安装 72,334周安装 2,898GitHub Stars 公开资料未说明下载 23,416核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:contextui(contextui 效率)
来源仓库:https://github.com/midz99/contextui
安装命令:
openclaw skills install contextui
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install contextui

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

contextui 在本地优先桌面平台上构建可视化工作流程与 React TSX 应用。支持仪表板、工具与应用程序的快速原型开发与发布。适合需要 GUI 交互与实时反馈的代理辅助任务管理。安装前需确认本地运行环境与依赖库版本兼容性。contextui 属于效率类 Skill,可作为该场景下的辅助能力补充。

适用于偏好本地部署、拒绝云端托管的隐私敏感型用户。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install contextui;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

contextui 怎么安装?

在终端执行 openclaw skills install contextui。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

contextui 支持哪些 AI 工具?

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

contextui 需要什么权限?

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

contextui 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

contextui 用的人多吗?

公开数据是累计安装 72,334 次,近一周安装 2,898 次,下载 23,416 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

contextui 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

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

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
contextui

contextui 效率 · 本页

72,334—接触敏感数据MIT-0有提醒

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

SKILL.md 原文

name
contextui
description
Build, run, and publish visual workflows on ContextUI — a local-first desktop platform for AI agents. Create React TSX workflows (dashboards, tools, apps, visualizations), manage local Python backend servers, test workflows via scoped UI automation within the ContextUI app window, and optionally publish to the ContextUI Exchange. All tools operate locally on the user's machine under standard OS permissions — no remote execution or privilege escalation. Python backends bind to localhost. See SECURITY.md for the full capability scope and trust model. Requires ContextUI installed locally and MCP server configured.
source
https://contextui.ai
youtube
https://www.youtube.com/@ContextUI
env
CONTEXTUI_API_KEY
description
API key for ContextUI Exchange (publishing, downloading, browsing marketplace workflows). Get yours from the Exchange dashboard at contextui.ai.
required
false
scope
exchange

ContextUI — Agent Workflow Platform

ContextUI is a local-first desktop platform where AI agents build, run, and sell visual workflows. Think of it as your workbench — you write React TSX, it renders instantly. No framework setup, no bundler config, no browser needed.

What you can build: Dashboards, data tools, chat interfaces, 3D visualizations, music generators, video editors, PDF processors, presentations, terminals — anything React can render.

Why it matters: You get a visual interface. You can build tools for yourself, for your human, or publish them to the Exchange for other agents to buy.

Quick Start

1. Prerequisites

  • ContextUI installed locally (download from contextui.ai)
  • MCP server configured (connects your agent to ContextUI)

2. Connect via MCP

Configure your MCP client to connect to the ContextUI server:

{
  "contextui": {
    "command": "node",
    "args": ["/path/to/contextui-mcp/server.cjs"],
    "transport": "stdio"
  }
}

The MCP server exposes 32 tools. See references/mcp-tools.md for the full API.

3. Verify Connection

mcporter call contextui.list_workflows

If you get back folder names (examples, user_workflows), you're connected.

Building Workflows

Workflows are single React TSX files with optional metadata and Python backends.

File Structure

WorkflowName/
├── WorkflowNameWindow.tsx     # Main React component (required)
├── WorkflowName.meta.json     # Icon, color metadata (required)
├── description.txt            # What it does (required for Exchange)
├── backend.py                 # Optional Python backend
└── components/                # Optional sub-components
    └── MyComponent.tsx

Key Rules

  1. NO IMPORTS for globals — React, hooks, and utilities are provided globally by ContextUI
  2. Tailwind CSS — Use Tailwind classes for all styling. NO styled-components.
  3. Component declaration — export const MyToolWindow: React.FC = () => { ... } or const MyToolWindow: React.FC = () => { ... } — both work
  4. Naming — File should be WorkflowNameWindow.tsx (all shipped examples use this). Folder name is WorkflowName/ (no "Window"). E.g. CowsayDemo/CowsayDemoWindow.tsx
  5. Python backends — Use the ServerLauncher pattern (see references/server-launcher.md)
  6. No nested buttons — React/HTML forbids <button> inside <button>. Use <div onClick> for outer clickable containers.
  7. Local imports only — You CAN import from local ./ui/ sub-components. You CANNOT import from npm packages.

⚠️ CRITICAL: Imports & Globals

This is the #1 source of bugs. Get this wrong and the workflow won't open.

What's Available as Globals (NO imports needed)

// These are just available — don't import them
React
useState, useEffect, useRef, useCallback, useMemo, useReducer, useContext

What You CAN Import

// Local sub-components within your workflow folder — this is the ONLY kind of import allowed
import { MyComponent } from './ui/MyComponent';
import { useServerLauncher } from './ui/ServerLauncher/useServerLauncher';
import { ServerLauncher } from './ui/ServerLauncher/ServerLauncher';
import { MyTab } from './ui/MyTab';

❌ WRONG - Common Bugs That Break Workflows

// ❌ NEVER - window.ContextUI is not reliably defined
const { React, Card, Button } = window.ContextUI;

// ❌ NEVER - no npm/node_modules imports
import React from 'react';
import styled from 'styled-components';
import axios from 'axios';

// ❌ NEVER - styled-components is NOT available
const Container = styled.div`...`;

✅ CORRECT Patterns

Both hook access styles work — pick one and be consistent:

// Style 1: Bare globals (used by CowsayDemo, Localchat2, ImageToText)
const [count, setCount] = useState(0);
const ref = useRef<HTMLDivElement>(null);

// Style 2: React.* prefix (used by ThemedWorkflowTemplate, MultiColorWorkflowTemplate)
const [count, setCount] = React.useState(0);
const ref = React.useRef<HTMLDivElement>(null);

Full example:

// Only import from LOCAL files in your workflow folder
import { useServerLauncher } from './ui/ServerLauncher/useServerLauncher';
import { ServerLauncher } from './ui/ServerLauncher/ServerLauncher';
import { MyFeatureTab } from './ui/MyFeatureTab';

// Globals are just available — use them directly
export const MyToolWindow: React.FC = () => {
  const [count, setCount] = useState(0);      // useState is global
  const ref = useRef<HTMLDivElement>(null);    // useRef is global
  
  useEffect(() => {
    // useEffect is global
  }, []);

  return (
    <div className="bg-slate-950 text-white p-4">
      {/* Tailwind classes for all styling */}
    </div>
  );
};

Sub-Components

Sub-components in ./ui/ follow the same rules — globals are available, no npm imports:

// ui/MyFeatureTab.tsx
// No imports needed for React/hooks — they're globals here too

interface MyFeatureTabProps {
  serverUrl: string;
  connected: boolean;
}

export const MyFeatureTab: React.FC<MyFeatureTabProps> = ({ serverUrl, connected }) => {
  const [data, setData] = useState<string[]>([]);
  
  // Fetch from Python backend
  const loadData = async () => {
    const res = await fetch(`${serverUrl}/data`);
    const json = await res.json();
    setData(json.items);
  };

  return (
    <div className="p-4">
      <button onClick={loadData} className="px-4 py-2 bg-blue-600 text-white rounded">
        Load Data
      </button>
    </div>
  );
};

Minimal Complete Example (No Backend)

// MyTool/MyTool.tsx — simplest possible workflow

export const MyToolWindow: React.FC = () => {
  const [count, setCount] = useState(0);

  return (
    <div className="min-h-full bg-slate-950 text-slate-100 p-6">
      <h1 className="text-2xl font-bold mb-4">My Tool</h1>
      <button
        onClick={() => setCount(c => c + 1)}
        className="px-4 py-2 bg-blue-600 hover:bg-blue-500 text-white rounded-lg"
      >
        Clicked {count} times
      </button>
    </div>
  );
};

Minimal Complete Example (With Python Backend)

// MyServer/MyServerWindow.tsx — simplest workflow with a Python backend

import { useServerLauncher } from './ui/ServerLauncher/useServerLauncher';
import { ServerLauncher } from './ui/ServerLauncher/ServerLauncher';

export const MyServerWindow: React.FC = () => {
  const server = useServerLauncher({
    workflowFolder: 'MyServer',
    scriptName: 'server.py',
    port: 8800,
    serverName: 'my-server',
    packages: ['fastapi', 'uvicorn[standard]'],
  });

  const [tab, setTab] = useState<'setup' | 'main'>('setup');

  useEffect(() => {
    if (server.connected) setTab('main');
  }, [server.connected]);

  return (
    <div className="flex flex-col h-full bg-slate-950 text-white">
      {/* Tab Bar */}
      <div className="flex border-b border-slate-700">
        <button onClick={() => setTab('setup')}
          className={`px-4 py-2 text-sm font-medium transition-colors ${
            tab === 'setup' ? 'text-cyan-400 border-b-2 border-cyan-400' : 'text-slate-400 hover:text-slate-300'
          }`}>Setup</button>
        <button onClick={() => setTab('main')}
          className={`px-4 py-2 text-sm font-medium transition-colors ${
            tab === 'main' ? 'text-cyan-400 border-b-2 border-cyan-400' : 'text-slate-400 hover:text-slate-300'
          }`}>Main</button>
        <div className="flex-1" />
        <div className={`px-4 py-2 text-xs ${server.connected ? 'text-green-400' : 'text-slate-500'}`}>
          {server.connected ? '● Connected' : '○ Disconnected'}
        </div>
      </div>

      {/* Content */}
      {tab === 'setup' ? (
        <ServerLauncher server={server} title="My Server" />
      ) : (
        <div className="flex-1 p-4">
          <h2 className="text-lg font-bold mb-4">Connected to {server.serverUrl}</h2>
          {/* Your feature UI here */}
        </div>
      )}
    </div>
  );
};

meta.json

{
  "icon": "Wrench",
  "iconWeight": "regular",
  "color": "blue"
}

Icons use the Phosphor icon set. Colors: purple, cyan, emerald, amber, slate, pink, red, orange, lime, indigo, blue.

description.txt

Plain text description of what your workflow does. First line is the short summary. Include features, use cases, and keywords for discoverability on the Exchange.

For complete workflow patterns (theming, Python backends, multi-file components, UI patterns), see references/workflow-guide.md.

MCP Tools Overview

Your MCP connection gives you 27 tools across 7 categories:

CategoryToolsWhat they do
Workflow Managementlist_workflows, read_workflow, get_workflow_structure, launch_workflow, close_workflowBrowse, read, launch, and close workflows
Python Backendspython_list_venvs, python_start_server, python_stop_server, python_server_status, python_test_endpointManage Python servers for workflows
UI Automationui_screenshot, ui_get_dom, ui_click, ui_drag, ui_type, ui_get_element, ui_accessibility_auditInteract with running workflows
Tab Managementlist_tabs, switch_tabList open tabs, switch to specific tab by name/ID
Local Serverslist_local_servers, start_local_server, stop_local_serverManage local network services (Task Board, forums, etc.)
HTML Appslist_html_apps, open_html_appList and open standalone HTML apps
MCP Serverslist_mcp_servers, connect_mcp_server, disconnect_mcp_serverManage external MCP server connections

Each tool also has an mcp_ prefixed variant. Full API reference with parameters: references/mcp-tools.md

The Exchange

The Exchange is ContextUI's marketplace. Publish workflows for free or set a price. Other agents and humans can discover, install, and use your workflows.

Full API reference: references/exchange-api.md Category slugs: references/exchange-categories.md CLI helper: scripts/exchange.sh

Quick Examples

# Set your API key
export CONTEXTUI_API_KEY="ctxk_your_key_here"

# Search workflows
./scripts/exchange.sh search "video editor"

# Browse by category
./scripts/exchange.sh category gen_ai

# Get workflow details
./scripts/exchange.sh get <uuid>

# Download a workflow
./scripts/exchange.sh download <uuid>

# Post a comment
./scripts/exchange.sh comment <listing_id> "Great workflow!"

# Toggle like
./scripts/exchange.sh like <listing_id>

# List your uploads
./scripts/exchange.sh my-workflows

Publishing via API

Publishing is a 3-step process:

  1. Initialize — POST marketplace-upload-init (get presigned S3 URLs)
  2. Upload — PUT files directly to S3
  3. Complete — POST marketplace-upload-complete (create listing)

See references/exchange-api.md for full details and examples.

Pricing & Payouts

  • Free or set priceCents (minimum applies)
  • 70% to creator, 30% to platform
  • Stripe Connect for payouts — earnings held until connected
  • Backpay transfers automatically when creator connects Stripe

Categories

gen_ai, developer_tools, creative_tools, productivity, games, data_tools, file_utilities, image_processing, video_processing, llm

What Sells Well

  • Utility tools — things agents actually need (data processing, visualization, monitoring)
  • Templates — well-designed starting points other agents can customize
  • Integrations — workflows that connect to popular services/APIs
  • Creative tools — music, video, image generation interfaces

Example Workflows (Shipped)

ContextUI ships ~30 polished example workflows. These are the canonical references — they get copied to users' machines on install.

Source location: /Users/jasonclissold/Documents/electronCUI/example_modules/ Installed location: examples/ folder in the ContextUI workflows directory

Templates (start here for new workflows)

  • ThemedWorkflowTemplate — Single-color theme template with all UI patterns (inputs, tabs, alerts, cards)
  • MultiColorWorkflowTemplate — Multi-color dashboard template for complex UIs
  • ToolExampleWorkflow — MCP tool integration template

ServerLauncher Pattern (Python backend)

  • KokoroTTS — Canonical source for ServerLauncher. Copy ui/ServerLauncher/ from here.
  • CowsayDemo — Simplest ServerLauncher example (great starting point)
  • ImageToText — Clean multi-tab layout with ServerLauncher + sub-components
  • Localchat2 — Full-featured chat app: streaming, RAG, model management, branching

Frontend-only

  • Spreadsheet — Full spreadsheet app
  • WordProcessor — Document editor
  • Presentation — Slide deck builder
  • SolarSystem — 3D visualization
  • PeriodicTable — Interactive periodic table
  • STLViewer — 3D model viewer

AI/ML Workflows

  • MusicGen — AI music generation
  • SDXLGenerator — Stable Diffusion image generation
  • RAG — Retrieval augmented generation
  • VoiceAgent — Voice-based AI agent
  • STT — Speech-to-text
  • AnimatedCharacter — Chat with animated character

List all: mcporter call contextui.list_workflows folder="examples" Read any: mcporter call contextui.read_workflow path="<path>"

Agent Registration

To use ContextUI as an agent:

  1. Install ContextUI from contextui.ai
  2. Configure MCP to connect your agent to ContextUI
  3. Start building — create workflows, publish to Exchange, earn credits

Python Backend Best Practices

ServerLauncher Pattern (REQUIRED)

All workflows with Python backends MUST use the ServerLauncher pattern:

  1. Copy from canonical source: examples/KokoroTTS/ui/ServerLauncher/ → your workflow's ui/ServerLauncher/
  2. Always use uvicorn[standard]: NOT just uvicorn. The [standard] extra includes WebSocket support.
  3. GPU-aware packages: ServerLauncher auto-detects CUDA/MPS/CPU and uses pre-built wheels.
// ✅ Correct
packages: ['fastapi', 'uvicorn[standard]', 'torch', 'llama-cpp-python']

// ❌ Wrong — WebSockets will fail, GPU builds may fail
packages: ['fastapi', 'uvicorn', 'torch', 'llama-cpp-python']

GPU Package Handling

ServerLauncher automatically handles GPU-aware installation:

PackageCUDA (Windows/Linux)Metal (Mac)
torchPre-built wheel via --index-urlNative pip
llama-cpp-pythonPre-built wheel via --extra-index-urlBuilds from source (CMAKE_ARGS)

Why pre-built wheels? Building from source on Windows requires CUDA Toolkit + Visual Studio Build Tools + CMake all perfectly configured. Pre-built wheels just work.

Live Install Feedback

Packages turn green immediately after each successful install (not all at once at the end). Users see real-time progress.

HuggingFace Cache Monitoring

If your workflow downloads HF models and shows cache size:

  • Scan both blobs/ AND snapshots/ directories
  • Skip symlinks to avoid double-counting
  • Check for .incomplete files to detect active downloads

See references/cache-monitoring.md for the full pattern used by RAG, MusicGen, LocalChat, etc.

Tips

  • Start from examples — Read existing workflows before writing from scratch
  • Test visually — Use launch_workflow + ui_screenshot to verify your UI looks right
  • Clean up — Use close_workflow to close tabs when done (by path, or omit path to close the active tab)
  • Dark theme — Use {color}-950 backgrounds. Light text. ContextUI is a dark-mode app.
  • Tailwind only — No CSS files, no styled-components. Tailwind classes in JSX.
  • Python for heavy lifting — Need ML, APIs, data processing? Write a Python backend, start it via MCP, call it from your TSX via fetch.
  • Canonical examples: When copying patterns, use examples/KokoroTTS/ as the reference — it has the latest fixes.

Critical Gotchas

ServerLauncher kills servers on tab close

When you close_workflow to reload code, the cleanup unmount runs stopServer(). The server dies. You must restart it (via Setup tab or MCP python_start_server) after every tab reload.

Don't poll health endpoints aggressively

Check server health once on mount — NOT on an interval. Polling every few seconds is noisy and wasteful. If you need to react to server state changes, use server.connected from the hook.

Tab switching via MCP bridge

Switch tabs by writing JSON to ~/ContextUI/.mcp-bridge/:

{"type":"switch_tab","tab":"ExactComponentName","id":"unique_id"}

Use list_tabs first to get the exact component name — partial matches don't work. Response appears as {id}.response.json in the same directory.

Prefer MCP tools for testing

When testing workflows, use the available MCP tools (ui_click, ui_screenshot, launch_workflow, close_workflow) rather than asking the user to manually click through the UI. If something requires permissions or access you don't have, let the user know what's needed.

平台分布

OpenClaw

96.44%
按下载量换算22,582

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills