textual-scaffolder

Solid

Generate Textual (Python) TUI application structure with widgets, screens, and CSS styling.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Textual Scaffolder Generate Textual TUI applications with Python and modern async patterns. ## Capabilities - Generate Textual project structure - Create custom widgets and screens - Set up CSS-based styling - Implement reactive attributes - Create component composition - Set up testing with textual.testing ## Usage Invoke this skill when you need to: - Build terminal UIs in Python - Create interactive CLI with CSS styling - Implement multi-screen TUI applications - Set up Textual project structure ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | projectName | string | Yes | Project name | | screens | array | No | Screen definitions | | widgets | array | No | Custom widget definitions | ## Generated Patterns ### Main Application ```python from textual.app import App, ComposeResult from textual.widgets import Header, Footer, Static, Button, Input from textual.containers import Container, Horizontal, Vertical from textual.screen import Screen class MainScreen(Screen): """Main application screen.""" CSS = """ MainScreen { layout: grid; grid-size: 2; grid-gutter: 1; } #sidebar { width: 30; background: $surface; border: solid $primary; } #content { background: $surface; border: solid $secondary; } """ def compose(self) -> ComposeResult: yield Header() yield Container( Static("Side...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills