Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

textual-tui文本推

Agent Skill

textual-tui 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

388

周安装

16

GitHub Stars

公开资料未说明

下载量

127
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:textual-tui(文本推)
来源仓库:https://github.com/tristanmanchester/agent-skills
仓库路径:skills/textual-tui
安装命令:
npx skills add https://github.com/tristanmanchester/agent-skills --skill textual-tui
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tristanmanchester/agent-skills --skill textual-tui

简介

用于查找、检索和筛选相关信息。textual-tui 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合在关键词、任务场景或来源线索下快速定位候选结果。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否触发联网、命令执行或文件读写。
  • 适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境。

SKILL.md

Use this skill when the task is fundamentally about building or changing a Textual app, not merely printing Rich output or writing a non-interactive CLI.

Start by classifying the app

Pick the closest shape before writing code:

  1. Single-screen shell One main view with panels, tables, forms, or logs. Prefer containers plus built-in widgets.
  2. Multi-screen workflow Large context changes, separate flows, or drill-down views. Prefer Screen / ModalScreen.
  3. Multi-mode admin app Persistent top-level areas such as “dashboard / jobs / settings / logs”. Prefer named MODES, screen stacks, and command palette support.
  4. Data explorer Records plus details, filters, or side panes. Prefer DataTable, details panel, responsive breakpoints, and keyboard navigation.
  5. Document or filesystem tool Prefer DirectoryTree, MarkdownViewer, TextArea, Tree, and delivery APIs for export/download.
  6. Chat / streaming / long-running task UI Prefer a scrollable transcript or log plus @work / workers for background operations.

If the user has not chosen an architecture, choose one and proceed.

Default engineering stance

  • Prefer built-in widgets first. Only hand-roll behaviour when a built-in widget clearly does not fit.
  • Keep the App thin. Move screen-specific logic into Screen classes and reusable composite widgets.
  • Prefer .tcss files over inline CSS once styling grows beyond a toy example.
  • Use IDs and semantic classes deliberately so styling and Pilot tests stay stable.
  • Design for narrow terminals first, then add split panes and breakpoint-driven layouts.
  • Leave behind tests whenever behaviour changes.

Choose the right Textual primitive

  • Use Screen when navigation changes the user’s working context.
  • Use ModalScreen for short interruptions: confirmations, pickers, destructive actions.
  • Use ContentSwitcher for wizard steps or one-screen subflows.
  • Use named MODES when the app has durable top-level areas with separate navigation stacks.
  • Use command palette providers when there are many actions, bindings, or discoverability matters.
  • Use workers for network, subprocess, parsing, search, sleeps, or anything that may block input.

See:

Widget-first selection rules

Before inventing custom widgets, check the widget atlas.

Common defaults:

  • DataTable for record-heavy views
  • DirectoryTree for filesystem navigation
  • MarkdownViewer for rich document views
  • TextArea for editing
  • TabbedContent for grouped settings or alternate panes
  • Log / RichLog for live output
  • SelectionList, OptionList, ListView, Tree, Select, Switch, Input, Button for most interaction needs

Reactivity and workers

Use the playbook in reactivity and workers.

Core rules:

  • Put fast derived state in compute_*, but keep it cheap and side-effect free.
  • Use watch_* for UI reactions, not blocking work.
  • Use var when you want state without automatic refresh machinery.
  • Use set_reactive before mount when initial state changes should not trip watchers early.
  • Move blocking work into @work or run_worker(...).
  • Use exclusive=True for stale-search cancellation and similar “latest request wins” flows.
  • For thread workers, update the UI via messages or call_from_thread.

Browser, dev loop, and delivery

Textual may run in a terminal or be served to a browser. Build with both in mind when relevant.

  • Use textual run --dev while iterating.
  • Use textual console and devtools when behaviour is unclear.
  • Use textual serve when browser parity matters.
  • Prefer deliver_text, deliver_binary, or deliver_screenshot for browser-friendly exports and downloads.
  • Use open_url when handing off to the user’s browser is appropriate.

See:

Testing is part of the feature

Default output after any non-trivial change:

  1. one smoke test with run_test()
  2. one behaviour test for the changed flow
  3. one narrow-terminal or alternate-size test when layout matters
  4. one snapshot test when the view structure matters visually

See testing matrix.

When working on an existing project

Start with the scripts, then refine by hand:

  1. python scripts/inspect_textual_project.py <project>
  2. python scripts/audit_textual_project.py <project>
  3. Generate scaffolds or tests only after you understand the existing structure.

Use the audit to catch:

  • oversized App classes
  • blocking handlers
  • missing breakpoints
  • missed built-in widget opportunities
  • missing command palette or delivery APIs
  • missing Pilot tests

Bundled scripts

  • scripts/scaffold_textual_app.py Generate starter apps, TCSS, tests, optional pyproject.toml, and CI workflow.
  • scripts/inspect_textual_project.py Inventory app classes, screens, widgets, bindings, IDs, workers, and styling.
  • scripts/audit_textual_project.py Heuristic architecture/performance/test audit for an existing Textual project.
  • scripts/generate_pilot_tests.py Emit starter smoke and behaviour tests for an existing app.
  • scripts/dump_dom_and_bindings.py If Textual is installed, launch an app under run_test() and dump DOM and active bindings.
  • scripts/emit_textual_pyproject.py Generate a packageable Hatch-based pyproject.toml.
  • scripts/emit_github_actions_ci.py Generate a GitHub Actions workflow for Textual tests.
  • scripts/build_upstream_pattern_atlas.py Summarise a local Textual repo snapshot into references/repo-map.md and references/upstream-pattern-atlas.md.
  • scripts/self_check.py Compile scripts and scaffold all bundled templates as a package validation step.

Bundled starter templates

Available scaffolds:

  • dashboard
  • form
  • chat
  • data-explorer
  • file-browser
  • settings
  • wizard
  • log-monitor
  • editor
  • admin-modes
  • download-demo

List them with:

python scripts/scaffold_textual_app.py --list-templates

Generate one with:

python scripts/scaffold_textual_app.py \
  --template data-explorer \
  --module my_app \
  --class-name MyApp \
  --app-title "My App" \
  --output-dir .

Output checklist

Before you finish, aim to leave behind:

  • a clear app structure
  • stable IDs/classes for styling and tests
  • TCSS separated from Python unless the app is tiny
  • background work off the main event path
  • keyboard-discoverable actions
  • responsive layout decisions
  • at least a smoke test and one behaviour test
  • notes on how to run the app in dev mode

Read next as needed

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.18%
按下载量换算45

Claude

29.67%
按下载量换算38

Cursor

17.1%
按下载量换算22

Gemini CLI

9.62%
按下载量换算12

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills