[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HAE6TN8JY6X14BMS32R5YH":3,"skill-same:01M6HAE6TN8JY6X14BMS32R5YH":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":14,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M6HAE6TN8JY6X14BMS32R5YH","python-textual",null,"Building modern TUIs with Python Textual framework","NeuralBlitz\u002FMito","NeuralBlitz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F79354388?v=4","01M6H8T2TFH477HRS0KTSTKR2E","David Riggs","01M6H8T2YQQDXPYM092P670Z21",0,"MIT","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fpython-textual\u002FSKILL.md",[],[19,20,21,22,23,24,25],"python","textual","python textual","development","framework","tui","with","2026-11-10 10:12:30",false,"---\nname: python-textual\ndescription: Building modern TUIs with Python Textual framework\nlicense: MIT\nmetadata:\n  audience: python-developers\n  category: tui-development\n---\n\n# Skill: Python Textual\n\n## What I do\nBuild sophisticated Terminal User Interface (TUI) applications with Python Textual - a modern, async-powered framework for creating rich interactive terminal apps.\n\n## When to use me\nWhen building complex terminal UIs with widgets, layouts, animations, mouse support, and real-time updates. Ideal for dashboards, data viewers, editors, and interactive tools.\n\n## Core Concepts\n\n### Textual Architecture\n```\nApp\n├── Screen (one or more)\n│   ├── CSS (styling)\n│   └── Widgets (compose)\n└── Reactive Variables (state)\n```\n\n### Installation\n```bash\npip install textual rich\n```\n\n## Basic App Structure\n\n### Minimal Textual App\n```python\nfrom textual.app import App, ComposeResult\nfrom textual.widgets import Static\n\nclass MyApp(App):\n    CSS = \"\"\"\n    Screen {\n        background: dark;\n        align: center middle;\n    }\n    \"\"\"\n    \n    def compose(self) -> ComposeResult:\n        yield Static(\"Hello, Textual!\")\n\nif __name__ == \"__main__\":\n    app = MyApp()\n    app.run()\n```\n\n### With Widgets\n```python\nfrom textual.app import App, ComposeResult\nfrom textual.widgets import Button, Input, Log\n\nclass MyApp(App):\n    def compose(self) -> ComposeResult:\n        yield Input(placeholder=\"Enter your name\")\n        yield Button(\"Click me!\")\n        yield Log()\n\n    def on_button_pressed(self) -> None:\n        self.query_one(Log).write_line(\"Button clicked!\")\n```\n\n## Widgets Library\n\n### Common Widgets\n| Widget | Purpose |\n|--------|---------|\n| `Static` | Display text |\n| `Button` | Clickable buttons |\n| `Input` | Text input field |\n| `Checkbox` | Toggle options |\n| `Select` | Dropdown selection |\n| `Switch` | On\u002Foff toggle |\n| `ListView` | Scrollable list |\n| `DataTable` | Tabular data |\n| `Tree` | Hierarchical data |\n| `Tabs` | Tabbed interface |\n| `Log` | Scrollable text log |\n| `ProgressBar` | Progress indicator |\n| `RichLog` | Rich-formatted log |\n| `DirectoryTree` | File browser |\n| `Pretty` | Pretty-printed data |\n\n## Layout System\n\n### Layout Modes\n```python\n# Horizontal layout\ncontainer.horizontal()\n\n# Vertical layout  \ncontainer.vertical()\n\n# Grid layout\ncontainer.grid(columns=3)\n\n# Dock layout (edge placement)\nheader.dock(\"top\")\nsidebar.dock(\"left\")\n```\n\n### Alignment & Sizing\n```python\nwidget.align(\"center\", \"middle\")  # horizontal, vertical\nwidget.overflow(\"hidden\")         # scroll, hide, auto\nwidget.styles.width = \"20\"       # exact width\nwidget.styles.width = \"50%\"       # percentage\nwidget.styles.height = \"auto\"\n```\n\n## Styling (CSS)\n\n### Inline CSS\n```python\nclass MyWidget(Static):\n    CSS = \"\"\"\n    MyWidget {\n        background: $primary;\n        color: white;\n        padding: 2 4;\n        border: solid $accent;\n        border-radius: 4;\n    }\n    \n    MyWidget:hover {\n        background: $accent;\n    }\n    \"\"\"\n```\n\n### Key CSS Properties\n```\nbackground: dark | #ff0000 | $variable\ncolor: white | #00ff00 | $primary\npadding: 1 2 3 4  (top right bottom left)\nmargin: 1 2 3 4\nborder: solid | dashed | none\nborder-radius: 0 4\nalign: center middle | left top | right bottom\nwidth: 20 | 50% | auto\nheight: 3 | 10% | 1fr\n```\n\n### Color Variables\n```python\napp = MyApp()\napp.colors驾()\n\nCSS_VARIABLES = {\n    \"primary\": \"#0078D4\",\n    \"secondary\": \"#6B6B6B\", \n    \"accent\": \"#FFB900\",\n    \"background\": \"#1E1E1E\",\n    \"text\": \"#FFFFFF\"\n}\n```\n\n## Reactive State\n\n### Defining Reactive Variables\n```python\nfrom textual.reactive import reactive\n\nclass CounterApp(App):\n    count = reactive(0)\n    \n    def compose(self) -> ComposeResult:\n        yield Static(id=\"counter\")\n        yield Button(\"+\", id=\"increment\")\n    \n    def on_mount(self) -> None:\n        self.update_counter()\n    \n    def watch_count(self) -> None:\n        self.update_counter()\n    \n    def update_counter(self) -> None:\n        self.query_one(\"#counter\", Static).update(f\"Count: {self.count}\")\n    \n    def on_button_pressed(self, event: Button.Pressed) -> None:\n        if event.button.id == \"increment\":\n            self.count += 1\n```\n\n## Events & Actions\n\n### Event Handling\n```python\ndef on_mount(self) -> None:        # App\u002Fwidget mounted\ndef on_ready(self) -> None:         # Initial render complete\ndef on_unmount(self) -> None:      # App\u002Fwidget removed\n\ndef on_key(self, event: Key) -> None:\n    if event.key == \"q\":\n        self.exit()\n```\n\n### Actions\n```python\nclass MyApp(App):\n    BINDINGS = [\n        (\"q\", \"quit\", \"Quit\"),\n        (\"ctrl+b\", \"toggle_sidebar\", \"Toggle Sidebar\"),\n    ]\n    \n    def action_quit(self) -> None:\n        self.exit()\n    \n    def action_toggle_sidebar(self) -> None:\n        # Toggle sidebar visibility\n        pass\n```\n\n## Async Operations\n\n### Async Methods\n```python\nasync def fetch_data(self) -> None:\n    self.query_one(\"#status\", Static).update(\"Loading...\")\n    \n    async with self.batch_update():\n        # Batch UI updates\n        data = await self.fetch_from_api()\n        self.query_one(\"#data\", DataTable).update(data)\n    \n    self.query_one(\"#status\", Static).update(\"Done!\")\n```\n\n## Key Methods\n\n| Method | Purpose |\n|--------|---------|\n| `compose()` | Return widgets to display |\n| `on_mount()` | Called when app\u002Fwidget mounts |\n| `watch_*()` | React to variable changes |\n| `query_one()` | Find first matching widget |\n| `query()` | Find all matching widgets |\n| `push_screen()` | Navigate to screen |\n| `screen_stack` | Current navigation stack |\n\n## Running the App\n\n```python\n# Basic run\napp.run()\n\n# With options\napp.run(title=\"My App\", size=(80, 24))\n\n# Test mode\nasync def test_my_app():\n    async with MyApp().run_test() as pilot:\n        await pilot.click(\"#button\")\n        assert pilot.app.query_one(\"#result\").idle\n```\n\n## Textual CLI\n\n```bash\n# Run a textual app\ntextual run my_app.py\n\n# Development mode with hot reload\ntextual run --dev my_app.py\n\n# Serve app in browser\ntextual run --browser my_app.py\n```\n\n## Best Practices\n\n1. **Use CSS classes** for reusable styles\n2. **Batch updates** with `batch_update()` for performance\n3. **Reactive variables** for state management\n4. **Action methods** for keybindings\n5. **Widget IDs** for reliable queries\n6. **Async for I\u002FO** operations\n7. **Test with `run_test()`** for CI\u002FCD\n","# Skill: Python Textual\n\n## What I do\nBuild sophisticated Terminal User Interface (TUI) applications with Python Textual - a modern, async-powered framework for creating rich interactive terminal apps.\n\n## When to use me\nWhen building complex terminal UIs with widgets, layouts, animations, mouse support, and real-time updates. Ideal for dashboards, data viewers, editors, and interactive tools.\n\n## Core Concepts\n\n### Textual Architecture\n```\nApp\n├── Screen (one or more)\n│   ├── CSS (styling)\n│   └── Widgets (compose)\n└── Reactive Variables (state)\n```\n\n### Installation\n```bash\npip install textual rich\n```\n\n## Basic App Structure\n\n### Minimal Textual App\n```python\nfrom textual.app import App, ComposeResult\nfrom textual.widgets import Static\n\nclass MyApp(App):\n    CSS = \"\"\"\n    Screen {\n        background: dark;\n        align: center middle;\n    }\n    \"\"\"\n    \n    def compose(self) -> ComposeResult:\n        yield Static(\"Hello, Textual!\")\n\nif __name__ == \"__main__\":\n    app = MyApp()\n    app.run()\n```\n\n### With Widgets\n```python\nfrom textual.app import App, ComposeResult\nfrom textual.widgets import Button, Input, Log\n\nclass MyApp(App):\n    def compose(self) -> ComposeResult:\n        yield Input(placeholder=\"Enter your name\")\n        yield Button(\"Click me!\")\n        yield Log()\n\n    def on_button_pressed(self) -> None:\n        self.query_one(Log).write_line(\"Button clicked!\")\n```\n\n## Widgets Library\n\n### Common Widgets\n| Widget | Purpose |\n|--------|---------|\n| `Static` | Display text |\n| `Button` | Clickable buttons |\n| `Input` | Text input field |\n| `Checkbox` | Toggle options |\n| `Select` | Dropdown selection |\n| `Switch` | On\u002Foff toggle |\n| `ListView` | Scrollable list |\n| `DataTable` | Tabular data |\n| `Tree` | Hierarchical data |\n| `Tabs` | Tabbed interface |\n| `Log` | Scrollable text log |\n| `ProgressBar` | Progress indicator |\n| `RichLog` | Rich-formatted log |\n| `DirectoryTree` | File browser |\n| `Pretty` | Pretty-printed data |\n\n## Layout System\n\n### Layout Modes\n```python\n# Horizontal layout\ncontainer.horizontal()\n\n# Vertical layout  \ncontainer.vertical()\n\n# Grid layout\ncontainer.grid(columns=3)\n\n# Dock layout (edge placement)\nheader.dock(\"top\")\nsidebar.dock(\"left\")\n```\n\n### Alignment & Sizing\n```python\nwidget.align(\"center\", \"middle\")  # horizontal, vertical\nwidget.overflow(\"hidden\")         # scroll, hide, auto\nwidget.styles.width = \"20\"       # exact width\nwidget.styles.width = \"50%\"       # percentage\nwidget.styles.height = \"auto\"\n```\n\n## Styling (CSS)\n\n### Inline CSS\n```python\nclass MyWidget(Static):\n    CSS = \"\"\"\n    MyWidget {\n        background: $primary;\n        color: white;\n        padding: 2 4;\n        border: solid $accent;\n        border-radius: 4;\n    }\n    \n    MyWidget:hover {\n        background: $accent;\n    }\n    \"\"\"\n```\n\n### Key CSS Properties\n```\nbackground: dark | #ff0000 | $variable\ncolor: white | #00ff00 | $primary\npadding: 1 2 3 4  (top right bottom left)\nmargin: 1 2 3 4\nborder: solid | dashed | none\nborder-radius: 0 4\nalign: center middle | left top | right bottom\nwidth: 20 | 50% | auto\nheight: 3 | 10% | 1fr\n```\n\n### Color Variables\n```python\napp = MyApp()\napp.colors驾()\n\nCSS_VARIABLES = {\n    \"primary\": \"#0078D4\",\n    \"secondary\": \"#6B6B6B\", \n    \"accent\": \"#FFB900\",\n    \"background\": \"#1E1E1E\",\n    \"text\": \"#FFFFFF\"\n}\n```\n\n## Reactive State\n\n### Defining Reactive Variables\n```python\nfrom textual.reactive import reactive\n\nclass CounterApp(App):\n    count = reactive(0)\n    \n    def compose(self) -> ComposeResult:\n        yield Static(id=\"counter\")\n        yield Button(\"+\", id=\"increment\")\n    \n    def on_mount(self) -> None:\n        self.update_counter()\n    \n    def watch_count(self) -> None:\n        self.update_counter()\n    \n    def update_counter(self) -> None:\n        self.query_one(\"#counter\", Static).update(f\"Count: {self.count}\")\n    \n    def on_button_pressed(self, event: Button.Pressed) -> None:\n        if event.button.id == \"increment\":\n            self.count += 1\n```\n\n## Events & Actions\n\n### Event Handling\n```python\ndef on_mount(self) -> None:        # App\u002Fwidget mounted\ndef on_ready(self) -> None:         # Initial render complete\ndef on_unmount(self) -> None:      # App\u002Fwidget removed\n\ndef on_key(self, event: Key) -> None:\n    if event.key == \"q\":\n        self.exit()\n```\n\n### Actions\n```python\nclass MyApp(App):\n    BINDINGS = [\n        (\"q\", \"quit\", \"Quit\"),\n        (\"ctrl+b\", \"toggle_sidebar\", \"Toggle Sidebar\"),\n    ]\n    \n    def action_quit(self) -> None:\n        self.exit()\n    \n    def action_toggle_sidebar(self) -> None:\n        # Toggle sidebar visibility\n        pass\n```\n\n## Async Operations\n\n### Async Methods\n```python\nasync def fetch_data(self) -> None:\n    self.query_one(\"#status\", Static).update(\"Loading...\")\n    \n    async with self.batch_update():\n        # Batch UI updates\n        data = await self.fetch_from_api()\n        self.query_one(\"#data\", DataTable).update(data)\n    \n    self.query_one(\"#status\", Static).update(\"Done!\")\n```\n\n## Key Methods\n\n| Method | Purpose |\n|--------|---------|\n| `compose()` | Return widgets to display |\n| `on_mount()` | Called when app\u002Fwidget mounts |\n| `watch_*()` | React to variable changes |\n| `query_one()` | Find first matching widget |\n| `query()` | Find all matching widgets |\n| `push_screen()` | Navigate to screen |\n| `screen_stack` | Current navigation stack |\n\n## Running the App\n\n```python\n# Basic run\napp.run()\n\n# With options\napp.run(title=\"My App\", size=(80, 24))\n\n# Test mode\nasync def test_my_app():\n    async with MyApp().run_test() as pilot:\n        await pilot.click(\"#button\")\n        assert pilot.app.query_one(\"#result\").idle\n```\n\n## Textual CLI\n\n```bash\n# Run a textual app\ntextual run my_app.py\n\n# Development mode with hot reload\ntextual run --dev my_app.py\n\n# Serve app in browser\ntextual run --browser my_app.py\n```\n\n## Best Practices\n\n1. **Use CSS classes** for reusable styles\n2. **Batch updates** with `batch_update()` for performance\n3. **Reactive variables** for state management\n4. **Action methods** for keybindings\n5. **Widget IDs** for reliable queries\n6. **Async for I\u002FO** operations\n7. **Test with `run_test()`** for CI\u002FCD\n",{"name":5,"license":15,"metadata":31,"description":7},{"audience":32,"category":33},"python-developers","tui-development","main","2ea764e153842704d24a2e9aa4170441a7f03081",".opencode\u002Fskills\u002Fpython-textual","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito","https:\u002F\u002Fgithub.com\u002FNeuralBlitz","nuralnexus.org","Independent Multidisciplinary Researcher, Creative Producer, and AI Systems Architect\r\nAn independent creator and research-driven systems designer.","2026-11-12 03:13:05",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add NeuralBlitz\u002FMito --skill python-textual",{"tool":48,"command":49},"bunx","bunx skills add NeuralBlitz\u002FMito --skill python-textual",{"tool":51,"command":52},"pnpm","pnpm dlx skills add NeuralBlitz\u002FMito --skill python-textual","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fpython-textual\u002FSKILL.md",true,[],[57,74,87,100,108,123],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":26},"01M6HAZSAQK1S27CEZYAYJTQDX","wireless-communications","Wireless systems, mobile networks, and 5G\u002F6G","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwireless-communications\u002FSKILL.md",[],[64,65,66,67,68,69,70,71,72,73],"communications","wireless communications","wireless","systems","engineering","networks","5G","students","opencode","mobile",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":26},"01M6HAZFX6E8NK3WZWDX5YCKYY","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwebassembly\u002Fwebsockets\u002FSKILL.md",[],[76,81,82,83,72,84,85,86],"websocket implementation","time","implementation","real-time","websocket","best practices",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":26},"01M6HAZ6DAXBQ7QHXXM1EM7715","vulnerability-auditing","Vulnerability assessment and auditing","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvulnerability-auditing\u002FSKILL.md",[],[94,95,96,97,72,98,99],"vulnerability","vulnerability auditing","security","vulnerability assessment","cybersecurity","assessment",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":26},"01M6HAZ3FKF3CS9Z3J96RVE2ZE","vulnerability-assessment","Finding and assessing security vulnerabilities","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvue\u002Fvulnerability-assessment\u002FSKILL.md",[],[97,94,99,96,107,72],"vulnerabilities",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":26},"01M6HAYSHM6HKRKEHFP0SGZQX7","vlsi-design","Very-Large-Scale Integration circuit design and semiconductor engineering","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvlsi-design\u002FSKILL.md",[],[115,116,117,118,119,68,120,72,121,71,122],"vlsi design","VLSI","design","hardware","integration","computer","scale","circuit",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":26},"01M6HAYPQ30FFE2JXD7WQJ8R6C","unsupervised","Unsupervised learning concepts","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvisualization\u002Funsupervised\u002FSKILL.md",[],[125,130,72,131,132,133,134,135],"learning","intelligence","unsupervised learning","machine","concepts","machine-learning"]