textual-tui-skill

v2026.09.25

Deep-dive Textual (Python) TUI skill — 40+ widgets, layout systems, TCSS styling, reactive programming, background workers, multi-screen navigation, modal dialogs, and testing via Pilot API. Covers 10 common pitfalls and thread-safety rules for async/worker patterns. v1.0.0.

GitHub
安装命令
npx skhub add podo/textual-tui-skill
Markdown
SKILL.md

textual-tui-skill

Catalogue stub — full skill: aperepel/textual-tui-skill

Install the full skill

# Clone and run quickstart
git clone https://github.com/aperepel/textual-tui-skill
cd textual-tui-skill
bash quickstart.sh

Or install the pre-compiled skill file directly into your agent's skills directory:

# Global
curl -o ~/.agents/skills/textual-tui-skill/SKILL.md \
  https://raw.githubusercontent.com/aperepel/textual-tui-skill/main/skill/SKILL.md

# Project
curl -o .agents/skills/textual-tui-skill/SKILL.md \
  https://raw.githubusercontent.com/aperepel/textual-tui-skill/main/skill/SKILL.md

What it does

Comprehensive Textual framework reference for building professional Python TUIs:

AreaCoverage
Widgets40+ built-in: Input, Button, Select, Checkbox, DataTable, Tree, Log, RichLog, Tabs, TabbedContent
LayoutsVertical, Horizontal, Grid; fixed/fractional sizing; responsive patterns
StylingTCSS syntax, semantic color system, external stylesheets, borders, padding
ReactivityReactive attributes, watchers, computed properties, DOM-like widget tree
AsyncWorkers for long-running tasks, call_from_thread() for thread-safe UI updates, cancellation
NavigationMulti-screen apps, modal screens, screen stack management
EventsMount, Click, Key; keyboard bindings; action methods; message propagation
TestingPilot API, async test patterns with pytest, UI interaction simulation
Pitfalls10 common mistakes documented: blocking event loop, thread safety, worker selection

4 complete working example apps (~1,100 lines): todo app, system dashboard, data viewer, worker demo.

When NOT to use

  • Multi-framework TUI overview (Go/Rust/Python/TS) — use tui-design-skill
  • Bubble Tea (Go) — use tui-design-skill
  • Ratatui (Rust) — use tui-design-skill
  • Ink (TypeScript/React) — use tui-design-skill
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.25

发布时间

Sep 25, 2026

分类

未分类

许可证

MIT

源路径

skills/textual-tui-skill

默认分支

main

最新提交

c3fac4c

Tree SHA

4419447