SuperAPI AI Directory

wot-ui-cli

Coding & development

View repository

Updated 10-15 15:10

About this skill

Wot UI CLI

When handling @wot-ui/cli, MCP, Agent integration, and open-wot repository maintenance tasks, act based on the current source code,package.json , and README, and do not guess commands based on old documentation.

Routing

  • CLI, MCP, Agent, data extraction, or repository development: use this Skill.
  • Component selection, page code, props, themes, and component issues: use wot-ui-v2 Skill。
  • When querying component knowledge via the CLI, retain the CLI usage context; switch to wot-ui-v2。

Workflow

  1. First check README.md、package.json#scripts and the related source code.
  2. After modifying the CLI, MCP, prompts, data structures, or Skills, synchronize tests and the README.
  3. Before writing configuration, first run --dry-run, use an isolated --cwd, and do not modify the real user configuration.
  4. After modifying command output, run at least one command against real source code or build artifacts.
  5. Before committing, run pnpm lint && pnpm typecheck && pnpm test && pnpm build。

Command Groups

Component knowledge:

wot list [keyword]
wot info <component>
wot doc <component>
wot demo <component> [name]
wot token [component]
wot changelog [versionOrComponent] [component]

Project analysis:

wot doctor [dir]
wot usage [dir]
wot lint [dir]

Agent integration:

wot agent list
wot agent init --client cursor
wot agent status --client cursor
wot agent doctor --client cursor
wot agent remove --client cursor
wot agent init --client all

MCP management:

wot mcp
wot mcp serve
wot mcp list
wot mcp init --client cursor
wot mcp status --client cursor
wot mcp doctor --client cursor
wot mcp remove --client cursor
wot mcp print --client cursor

Query commands support --version and --format text|json|markdown. The specific options supported by Agent/MCP management commands are subject to --help and the source code; for write operations, prefer --dry-run。

Repository Development

pnpm install
pnpm dev
pnpm exec tsx src/index.ts list
pnpm build
node dist/index.mjs list

Update offline data:

pnpm sync:clone
pnpm extract:clone
pnpm sync --wot-dir ../wot-ui
pnpm extract --wot-dir ../wot-ui --output data/v2.0.4.json

Release package check:

pnpm build
pnpm compress
pnpm exec publint
npm pack --dry-run --json

MCP Notes

  • wot mcp uses stdio; no normal output in the terminal is usually normal.
  • doctor verifies the configuration and the real handshake; some clients also check the registration status.
  • --client all handles six supported clients in the project scope.
  • Preserve existing Servers, JSONC comments, unmanaged TOML, and user Instructions.

Reference

When you need the complete command matrix, directory responsibilities, verification requirements, and data and release processes, read references/overview.md。