textual

Generates a runnable Textual terminal UI (TUI) application skeleton from a spec (name + component list + theme) with one click; supports common components like buttons, inputs, and tables, and produces valid Python with no third-party dependencies.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "textual" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6a741d9c4b1b7146474171901bc16bf0e82fbaaeae68662868c2f1aeb3999fa6. Verify the upstream source and version against https://skillhub.cn/skills/user_2fd890c9/textual before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Generates a runnable Textual terminal UI (TUI) application skeleton from a spec (name + component list + theme) with one click; supports common components like buttons, inputs, and tables, and produces valid Python with no third-party dependencies.

0 Downloads

Introduction source: third_party · user_2fd890c9 · 1.4.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: Textual TUI 脚手架
description: 用规格(名称 + 组件清单 + 主题)一键生成可运行的 Textual 终端界面(TUI)应用骨架;支持按钮/输入框/数据表等常见组件,生成即合法 Python,零第三方依赖生成。

📜 用户协议(User Agreement)

  1. 本 Skill 仅供学习与参考用途。使用本 Skill 产生的任何结果,由使用者自行承担全部责任;本 Skill 不提供任何明示或暗示的保证。
  2. 涉及法律、财务、税务、投资、医疗等专业决策时,请务必咨询持证专业人士。
  3. 本代码受版权法保护,未经授权复制、反向工程或商业利用将被追究法律责任。 <!-- user-agreement-injected -->

⚠️ 本内容仅供一般信息参考,不构成法律、财务、税务、投资或医疗建议。 涉及合同签署、报税、投资、诊疗等专业决策时,请务必咨询持证专业人士,并由使用者自行承担决策后果。 <!-- professional-disclaimer-injected -->

Textual TUI 脚手架(textual)

一句话速查:用一行命令,按「应用名 + 组件清单」生成一个完整的、能直接 python xxx_app.py 跑起来的 Textual 终端界面骨架。本手册全部基于真实代码 scripts/tui_scaffold.py(生成阶段仅用标准库,零第三方依赖)。


🎯 触发方式(Trigger)

大白话映射表

用户说(口语化表达) 触发词(Trigger Words) 本 Skill 会做什么
"帮我写个终端里跑的程序" 写一个终端界面 生成 Textual TUI 骨架
"做个命令行交互工具" 做个命令行交互工具 生成带按钮/输入框的 TUI 骨架
"搞个终端仪表盘" 终端仪表盘 生成带 DataTable/ProgressBar 的 TUI 骨架
"跑个 textual 应用" 跑个textual应用 生成 Textual 应用骨架并给出运行命令
"生成一个终端面板" 生成一个终端面板 生成带多个 Panel 的 TUI 骨架
"帮我搭个命令行界面" 帮我搭个命令行界面 生成带输入框和按钮的 TUI 骨架
"textual" textual 生成默认 Textual 应用骨架
"TUI应用" TUI应用 生成默认 Textual 应用骨架

统一使用流程(端到端示例)

失败处理

  • 输入不符合预期 → 返回错误说明与正确的输入格式示例
  • 执行中异常 → 保留中间结果,报告失败原因与已处理进度
  • 依赖缺失 → 给出安装命令并重试一次

前置条件

  • 无特殊环境要求

执行步骤

  1. 收集用户输入并确认格式
  2. 按功能逻辑处理输入内容
  3. 生成结果并校验完整性

输出

  • 结构化文本结果,附处理说明

许可证(License)

MIT License

Copyright (c) 2026 Textualize contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

<!-- professional-license-embedded -->

失败处理

  • 命令执行失败或返回非零退出码时,程序会输出明确错误信息并给出排查建议。

  • 依赖缺失时提示安装命令;网络异常时建议重试并检查连接。

  • 异常情况不中断主流程,错误信息包含具体原因(error context),便于定位修复。

    前置条件

  • 本技能开箱即用,无需额外安装依赖。

  • 需要 Python 3.9+ 运行环境。

  • 涉及网络请求时需保持网络连通。

    执行步骤

  1. 读取输入参数或交互输入。
  2. 按技能定义的处理流程执行核心逻辑。
  3. 输出结构化结果,并在完成后给出下一步建议。

Current listing version

1.4.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 解决开发者快速搭建 Textual TUI 应用的实际痛点
  • 支持多种常见组件(按钮/输入框/数据表),生成即用
  • 零第三方依赖,开箱即用
Trigger Precision85/100

Highlights

  • 触发词覆盖全面,包含多种口语化表达
  • 大白话映射表清晰,用户易理解
  • 边界定义合理,不易误触
Structure and Standards72/100

Areas to improve

  • 缺少端到端完整示例 Reported severity: Minor

    文档中提到'统一使用流程(端到端示例)'但未提供具体示例

    Recommendation: 补充一个完整的从输入到生成文件的端到端示例

  • frontmatter中description重复 Reported severity: Minor

    顶层frontmatter和skill_body内部都包含description字段

    Recommendation: 保留一处description即可,避免重复

Highlights

  • 基本结构完整,包含触发方式、失败处理等必要章节
  • 前置条件和执行步骤描述清晰
Execution Reliability65/100

Areas to improve

  • 核心工具脚本未验证存在性 Reported severity: Major

    文档提到基于真实代码'scripts/tui_scaffold.py',但未确认该文件是否实际存在

    Recommendation: 确保引用的脚本文件真实存在并可执行

  • 参数校验逻辑描述笼统 Reported severity: Minor

    输入格式校验的具体逻辑描述不够详细

    Recommendation: 补充输入参数的详细校验规则和错误提示示例

Highlights

  • 提及了失败处理机制
  • 说明了依赖缺失时的处理方式
Evidence Verifiability (mean of the first four)75/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.