Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate Textual (Python) TUI application structure with widgets, screens, and CSS styling.
.claude/skills/a5c-ai-textual-scaffolder/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 35% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 47% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 36% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 35% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 29% | 0% |
Generate Textual TUI applications with Python and modern async patterns.
Invoke this skill when you need to:
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | projectName | string | Yes | Project name | | screens | array | No | Screen definitions | | widgets | array | No | Custom widget definitions |
pythonfrom 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("Sidebar", id="sidebar"), Static("Content", id="content"), ) yield Footer() class MyApp(App): """Main TUI application.""" BINDINGS = [ ("q", "quit", "Quit"), ("d", "toggle_dark", "Toggle dark mode"), ] CSS_PATH = "styles.tcss" def on_mount(self) -> None: self.push_screen(MainScreen()) def action_toggle_dark(self) -> None: self.dark = not self.dark if __name__ == "__main__": app = MyApp() app.run()
pythonfrom textual.widget import Widget from textual.reactive import reactive from textual.message import Message class Counter(Widget): """A counter widget with increment/decrement.""" value = reactive(0) class Changed(Message): """Counter value changed.""" def __init__(self, value: int) -> None: self.value = value super().__init__() def render(self) -> str: return f"Count: {self.value}" def increment(self) -> None: self.value += 1 self.post_message(self.Changed(self.value)) def decrement(self) -> None: self.value -= 1 self.post_message(self.Changed(self.value))
cssScreen { background: $surface; } Header { dock: top; background: $primary; } Footer { dock: bottom; background: $primary; } Button { margin: 1; } Button:hover { background: $primary-lighten-1; } Input { margin: 1; border: tall $secondary; } Input:focus { border: tall $primary; } .error { color: $error; } .success { color: $success; }
pythonfrom textual.widgets import DataTable from textual.app import ComposeResult class DataScreen(Screen): def compose(self) -> ComposeResult: yield DataTable() def on_mount(self) -> None: table = self.query_one(DataTable) table.add_columns("Name", "Email", "Role") table.add_rows([ ("Alice", "alice@example.com", "Admin"), ("Bob", "bob@example.com", "User"), ("Charlie", "charlie@example.com", "User"), ])
toml[project] dependencies = [ "textual>=0.40.0", ] [project.optional-dependencies] dev = [ "textual-dev>=1.0.0", ]
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 14,875 | 16,476 | +11% | 1 | 1 | 0% | 3,159 | 4,252 | +35% | 0 | 0 | — |
case-02 | fail→fail | 13,628 | 13,482 | -1% | 1 | 1 | 0% | 2,649 | 4,035 | +52% | 0 | 0 | — |
case-03 | fail→fail | 9,692 | 6,971 | -28% | 1 | 1 | 0% | 2,175 | 2,576 | +18% | 0 | 0 | — |
case-04 | fail→pass | 10,589 | 9,348 | -12% | 1 | 1 | 0% | 1,979 | 2,915 | +47% | 0 | 0 | — |
case-05 | fail→pass | 9,037 | 6,100 | -32% | 1 | 1 | 0% | 1,671 | 2,271 | +36% | 0 | 0 | — |
case-06 | fail→fail | 15,141 | 12,886 | -15% | 1 | 1 | 0% | 2,972 | 3,843 | +29% | 0 | 0 | — |
case-07 | fail→fail | 12,244 | 12,802 | +5% | 1 | 1 | 0% | 2,416 | 3,258 | +35% | 0 | 0 | — |
case-08 | fail→pass | 10,040 | 7,276 | -28% | 1 | 1 | 0% | 1,791 | 2,423 | +35% | 0 | 0 | — |
case-09 | fail→pass | 10,598 | 7,125 | -33% | 1 | 1 | 0% | 2,025 | 2,604 | +29% | 0 | 0 | — |
case-10 | pass→pass | 9,407 | 7,462 | -21% | 1 | 1 | 0% | 1,719 | 2,505 | +46% | 0 | 0 | — |
case-11 | fail→fail | 11,431 | 11,151 | -2% | 1 | 1 | 0% | 2,507 | 3,604 | +44% | 0 | 0 | — |
case-12 | fail→fail | 9,876 | 10,040 | +2% | 1 | 1 | 0% | 2,186 | 3,487 | +60% | 0 | 0 | — |
case-13 | fail→fail | 8,432 | 9,132 | +8% | 1 | 1 | 0% | 1,786 | 2,726 | +53% | 0 | 0 | — |
case-14 | pass→pass | 8,330 | 6,143 | -26% | 1 | 1 | 0% | 1,702 | 2,300 | +35% | 0 | 0 | — |
case-15 | fail→fail | 9,969 | 4,258 | -57% | 1 | 1 | 0% | 1,994 | 1,936 | -3% | 0 | 0 | — |
case-16 | fail→pass | 8,600 | 6,154 | -28% | 1 | 1 | 0% | 1,875 | 2,445 | +30% | 0 | 0 | — |
case-17 | fail→pass | 9,909 | 6,768 | -32% | 1 | 1 | 0% | 1,648 | 2,593 | +57% | 0 | 0 | — |
case-18 | fail→fail | 6,517 | 3,218 | -51% | 1 | 1 | 0% | 1,272 | 1,647 | +29% | 0 | 0 | — |
case-19 | fail→fail | 7,671 | 7,271 | -5% | 1 | 1 | 0% | 1,692 | 2,655 | +57% | 0 | 0 | — |
case-20 | fail→fail | 10,998 | 12,323 | +12% | 1 | 1 | 0% | 2,037 | 3,932 | +93% | 0 | 0 | — |
case-21 | fail→fail | 8,557 | 6,700 | -22% | 1 | 1 | 0% | 1,613 | 2,247 | +39% | 0 | 0 | — |
case-22 | fail→fail | 18,259 | 21,500 | +18% | 1 | 1 | 0% | 3,051 | 4,764 | +56% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +32 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.