Imported from podo/design-agent-skills (
skills/textual-tui-skill/SKILL.md). Install upstream withnpx skills add podo/design-agent-skills --skill textual-tui-skill. Copyright stays with the author.
textual-tui-skill
Catalogue stub — full skill: aperepel/textual-tui-skill (
textual-tui)
Decision tree
-
Is the full skill already installed? Upstream names this skill
textual-tui, so it installs next to this pointer (the pointer is not replaced).- Global:
f=~/.agents/skills/textual-tui/SKILL.md; [ -f "$f" ] && ! grep -q "^das:" "$f" && echo "installed" || echo "pointer" - Project:
f=.agents/skills/textual-tui/SKILL.md; [ -f "$f" ] && ! grep -q "^das:" "$f" && echo "installed" || echo "pointer" installed→ the skill is installed astextual-tui, invoke it and proceedpointer→ go to step 2
- Global:
-
Detect scope, then install:
[ -e ~/.agents/skills/textual-tui-skill ] && echo "global" || echo "project"Global:
npx skills add aperepel/textual-tui-skill --skill textual-tui -g -yProject:
npx skills add aperepel/textual-tui-skill --skill textual-tui -yClaude Code: send a command as a chat message starting with
!to run it without leaving the conversation.
Heads-up
- Requires: Python with textual and textual-dev (pip install textual textual-dev) to run what the skill generates
- License: MIT
Invoke after install
- Skill name:
textual-tui - Trigger phrases: "Textual TUI", "Textual widget", "Textual app", "TCSS styling", "Textual framework"
What it does
Comprehensive Textual framework reference for building professional Python TUIs:
| Area | Coverage |
|---|---|
| Widgets | Built-in widgets such as 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 | Common mistakes documented: blocking the event loop, thread safety, worker selection |
Ships references/ (widgets, layouts, styling, an index of the official guides) and four complete example apps under assets/: a todo app, a system dashboard, a data viewer and a 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
