重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
textual-builder by ypares/agent-skills
npx skills add https://github.com/ypares/agent-skills --skill textual-builder此技能帮助您使用 Textual 构建复杂的文本用户界面(TUI)。Textual 是一个 Python 框架,用于创建具有现代 Web 风格 API 的终端和基于浏览器的应用程序。它包含参考文档、一个纸牌游戏模板以及 Textual 开发的最佳实践。
from textual.app import App, ComposeResult
from textual.widgets import Header, Footer, Label
class MyApp(App):
def compose(self) -> ComposeResult:
yield Header()
yield Label("Hello, Textual!")
yield Footer()
if __name__ == "__main__":
app = MyApp()
app.run()
要制作纸牌游戏原型,请复制模板:
cp -r assets/card-game-template/* ./my-game/
cd my-game
python app.py
该模板包含:
自定义指南请参见 assets/card-game-template/README.md。
此技能包含全面的参考文件。请根据您的任务加载它们:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
何时阅读: 设置应用结构、使用响应式属性、处理挂载、查询小部件或处理消息/事件时。
涵盖内容:
何时阅读: 添加 UI 元素(如按钮、输入框、标签、数据表)或创建自定义小部件时。
涵盖内容:
何时阅读: 设计布局、定位小部件、使用网格系统或处理响应式尺寸调整时。
涵盖内容:
何时阅读: 应用 CSS 样式、主题化、添加边框或自定义小部件外观时。
涵盖内容:
何时阅读: 实现键盘快捷键、处理鼠标事件、响应用户操作或创建交互行为时。
涵盖内容:
references/layout.md)references/widgets.md)references/styling.md)references/interactivity.md)app.tcss 中为卡牌和布局添加样式BINDINGS 中定义按键绑定action_*)on_button_pressed 等)reactive() 处理影响 UI 的状态.tcss 文件中,而非内联event.stop() 控制消息传播pip install textual
# 或
uv pip install textual
当前版本:v0.86.0+(截至 2025 年 11 月,最新版本为 v6.6.0)
按需加载的全面文档:
basics.md - 核心概念和应用结构widgets.md - 小部件目录和使用方法layout.md - 布局系统和定位styling.md - CSS 和主题化interactivity.md - 事件、绑定和操作card-game-template/ - 用于纸牌游戏的完整入门模板,包含交互式卡牌、手牌和回合管理对于此技能未涵盖的主题,请查阅:
每周安装次数
67
仓库
GitHub 星标数
23
首次出现
2026年1月24日
安全审计
安装于
opencode61
codex60
github-copilot58
gemini-cli57
cursor54
amp53
This skill helps you build sophisticated Text User Interfaces (TUIs) using Textual, a Python framework for creating terminal and browser-based applications with a modern web-inspired API. It includes reference documentation, a card game template, and best practices for Textual development.
from textual.app import App, ComposeResult
from textual.widgets import Header, Footer, Label
class MyApp(App):
def compose(self) -> ComposeResult:
yield Header()
yield Label("Hello, Textual!")
yield Footer()
if __name__ == "__main__":
app = MyApp()
app.run()
For card game prototyping, copy the template:
cp -r assets/card-game-template/* ./my-game/
cd my-game
python app.py
The template includes:
See assets/card-game-template/README.md for customization guide.
This skill includes comprehensive reference files. Load them based on your task:
Read when: Setting up app structure, using reactive attributes, handling mounting, querying widgets, or working with messages/events.
Covers:
Read when: Adding UI elements like buttons, inputs, labels, data tables, or creating custom widgets.
Covers:
Read when: Designing layouts, positioning widgets, using grid systems, or handling responsive sizing.
Covers:
Read when: Applying CSS styles, theming, adding borders, or customizing widget appearance.
Covers:
Read when: Implementing keyboard shortcuts, handling mouse events, responding to user actions, or creating interactive behaviors.
Covers:
references/layout.md)references/widgets.md)references/styling.md)references/interactivity.md)app.tcssBINDINGSaction_*)on_button_pressed, etc.)reactive() for state that affects UI.tcss files, not inlineevent.stop() to control message propagationpip install textual
# or
uv pip install textual
Current version: v0.86.0+ (as of November 2025, latest is v6.6.0)
Comprehensive documentation loaded on-demand:
basics.md - Core concepts and app structurewidgets.md - Widget catalog and usagelayout.md - Layout systems and positioningstyling.md - CSS and theminginteractivity.md - Events, bindings, and actionscard-game-template/ - Complete starter template for card games with interactive cards, hands, and turn managementFor topics not covered in this skill, consult:
Weekly Installs
67
Repository
GitHub Stars
23
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode61
codex60
github-copilot58
gemini-cli57
cursor54
amp53
LarkSuite Whiteboard CLI 工具:自动化生成专业图表与画板,支持DSL和Mermaid
40,700 周安装
Yoink链上夺旗游戏:Base链智能合约交互指南与玩法规则
99 周安装
Godot MCP 场景构建器 - 高级智能体接口,从零构建 Godot 游戏场景
102 周安装
构建完整AI聊天应用指南:Next.js + Neon + AI SDK实现持久化聊天与自动命名
100 周安装
Deep Research:基于Google Gemini的AI深度研究工具,支持RAG文件上传与自动化报告生成
101 周安装
Gemini Web API 客户端 - 文本/图像生成与多轮对话逆向工程工具
102 周安装
信息图生成器:21种布局×20种风格,AI一键生成专业信息图
102 周安装