AgentSkillsCN

textual-cli

提供文本型CLI开发工具,用于运行、调试与探索TUI应用。内置运行、控制台、服务、按键、颜色、边框与缓动动画等命令。适用于TUI开发者、TUI测试工程师与TUI用户体验专家。

SKILL.md
--- frontmatter
name: textual-cli
description: Textual CLI devtools for running, debugging, and exploring TUI apps. Includes run, console, serve, keys, colors, borders, easing commands. Used by tui-developer, tui-test-engineer, and tui-ux-specialist.
argument-hint: "<command> [options]"
allowed-tools: Bash

Textual CLI Skill

Not for screenshots - use /visual-analysis for capture.

Commands

CommandPurpose
runRun Textual app (with optional --dev mode)
run --pressNavigate with simulated key presses
consoleDebug console for print/log output
serveServe app in web browser
keysTest keyboard input recognition
colorsPreview color system
bordersPreview border styles
easingPreview animation easing functions

Usage

bash
# Standard run
source venv/bin/activate && textual run kubeagle/main.py

# Dev mode (live CSS editing)
source venv/bin/activate && textual run --dev kubeagle/main.py

# With charts data
source venv/bin/activate && textual run --dev kubeagle/main.py -- --charts-path ../web-helm-repository

# Navigate with key presses
source venv/bin/activate && timeout 30 textual run kubeagle/main.py --press "c,2"
FlagDescription
--devEnable dev mode (live CSS, console output)
--press TEXTComma-separated keys to simulate press

Do NOT use --screenshot flag or --press "q" (hides CSS errors). Use /visual-analysis instead.