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:
| Area |
Coverage |
| Widgets |
40+ built-in: Input, Button, Select, Checkbox, DataTable, Tree, Log, RichLog, Tabs, TabbedContent |
| Layouts |
Vertical, Horizontal, Grid; fixed/fractional sizing; responsive patterns |
| Styling |
TCSS syntax, semantic color system, external stylesheets, borders, padding |
| Reactivity |
Reactive attributes, watchers, computed properties, DOM-like widget tree |
| Async |
Workers for long-running tasks, call_from_thread() for thread-safe UI updates, cancellation |
| Navigation |
Multi-screen apps, modal screens, screen stack management |
| Events |
Mount, Click, Key; keyboard bindings; action methods; message propagation |
| Testing |
Pilot API, async test patterns with pytest, UI interaction simulation |
| Pitfalls |
10 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
1---
2name: textual-tui-skill
3description: |
4 Deep-dive Textual (Python) TUI skill — 40+ widgets, layout systems, TCSS
5 styling, reactive programming, background workers, multi-screen navigation,
6 modal dialogs, and testing via Pilot API. Covers 10 common pitfalls and
7 thread-safety rules for async/worker patterns. v1.0.0.
8triggers:
9 - "Textual TUI"
10 - "textual-tui-skill"
11 - "Textual widget"
12 - "Textual app"
13 - "TCSS styling"
14 - "Textual framework"
15das:
16 type: package
17 category: tui-terminal
18 upstream: "https://github.com/aperepel/textual-tui-skill"
19 version: latest
20---
21
22# textual-tui-skill
23
24> Catalogue stub — full skill: [aperepel/textual-tui-skill](https://github.com/aperepel/textual-tui-skill)
25
26## Install the full skill
27
28```bash
29# Clone and run quickstart
30git clone https://github.com/aperepel/textual-tui-skill
31cd textual-tui-skill
32bash quickstart.sh
33```
34
35Or install the pre-compiled skill file directly into your agent's skills directory:
36
37```bash
38# Global
39curl -o ~/.agents/skills/textual-tui-skill/SKILL.md \
40 https://raw.githubusercontent.com/aperepel/textual-tui-skill/main/skill/SKILL.md
41
42# Project
43curl -o .agents/skills/textual-tui-skill/SKILL.md \
44 https://raw.githubusercontent.com/aperepel/textual-tui-skill/main/skill/SKILL.md
45```
46
47## What it does
48
49Comprehensive Textual framework reference for building professional Python TUIs:
50
51| Area | Coverage |
52|------|----------|
53| **Widgets** | 40+ built-in: Input, Button, Select, Checkbox, DataTable, Tree, Log, RichLog, Tabs, TabbedContent |
54| **Layouts** | Vertical, Horizontal, Grid; fixed/fractional sizing; responsive patterns |
55| **Styling** | TCSS syntax, semantic color system, external stylesheets, borders, padding |
56| **Reactivity** | Reactive attributes, watchers, computed properties, DOM-like widget tree |
57| **Async** | Workers for long-running tasks, `call_from_thread()` for thread-safe UI updates, cancellation |
58| **Navigation** | Multi-screen apps, modal screens, screen stack management |
59| **Events** | Mount, Click, Key; keyboard bindings; action methods; message propagation |
60| **Testing** | Pilot API, async test patterns with pytest, UI interaction simulation |
61| **Pitfalls** | 10 common mistakes documented: blocking event loop, thread safety, worker selection |
62
634 complete working example apps (~1,100 lines): todo app, system dashboard, data viewer, worker demo.
64
65## When NOT to use
66
67- Multi-framework TUI overview (Go/Rust/Python/TS) — use `tui-design-skill`
68- Bubble Tea (Go) — use `tui-design-skill`
69- Ratatui (Rust) — use `tui-design-skill`
70- Ink (TypeScript/React) — use `tui-design-skill`