textual

textual is a skill for Claude Code, Codex from pavelzw/skill-forge. It costs 57 tokens per session (4,373 once invoked), scanned A, original, BSD-3-Clause.

A Python framework for building interactive applications that run in a terminal instead of a graphical window. Textual provides components, layouts, styling, events, multiple screens, and background tasks.

In plain words
What is it for?
Use it to build terminal dashboards, forms, data browsers, and multi-screen tools with styled widgets and asynchronous work.
Why use it?
It gives terminal applications a structured interface model, so developers do not have to handle all display and input behavior from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: $skill-name invocation.

Good fit Use it to build terminal dashboards, forms, data browsers, and multi-screen tools with styled widgets and asynchronous work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pavelzw/skill-forge/textual
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pavelzw/skill-forge --skill textual
Clone the repo
git clone --depth 1 https://github.com/pavelzw/skill-forge

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for textual

README.md
[![agentmods](https://agentmods.dev/badge/skills/pavelzw/skill-forge/textual/github.svg)](https://agentmods.dev/skills/pavelzw/skill-forge/textual)
Your own site
<a href="https://agentmods.dev/skills/pavelzw/skill-forge/textual"><img src="https://agentmods.dev/badge/skills/pavelzw/skill-forge/textual/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for textual

Your own site · 80×15
<a href="https://agentmods.dev/skills/pavelzw/skill-forge/textual"><img src="https://agentmods.dev/badge/skills/pavelzw/skill-forge/textual.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,373 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.04373
Opus 5.5 $0.00023 $0.01749
Sonnet 5.5 $0.00011 $0.00875
Haiku 4.5 $0.00006 $0.00437

Measured 3mo ago against content hash 57e84ec49d31, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

textual scanned grade A with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

response = await fetch(url)

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

os.system("vim file.txt")
recipes/textual/SKILL.md · 595 lines

How it starts

The opening of the file, as written. The whole thing — 595 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Textual Skill

Textual is a Python framework for building rich terminal user interfaces (TUIs). It provides a widget toolkit with CSS-based styling, an event system with message passing, reactive data binding, screen management, and async worker support.

When to Use This Skill

Use Textual when:

  • Building interactive terminal applications
  • Creating dashboards, forms, or data browsers in the terminal
  • Need rich UI with layout, styling, and input handling
  • Want CSS-like styling for terminal apps
  • Building apps with multiple screens or modal dialogs

Architecture

App (application root)
 └── Screen (layered views, one active at a time)
      └── Widget (UI components, nested in a DOM tree)
           └── Child Widgets...
  • App is the top-level container. It manages screens, themes, key bindings, and the event loop.
  • Screen is a full-screen layer within the app. Screens stack; only the top screen is visible.
  • Widget is a UI component. Widgets form a DOM tree, can have children, and are styled with CSS.

Creating an App

from textual.app import App, ComposeResult
from textual.widgets import Header, Footer, Static

class MyApp(App):
    """A minimal Textual application."""

    CSS = """
    Screen {
        align: center middle;
    }
    #greeting {
        width: 40;
        padding: 1 2;
        border: solid green;
        text-align: center;
    }
    """

    BINDINGS = [
        ("q", "quit", "Quit"),
        ("d", "toggle_dark", "Toggle dark mode"),
    ]

    def compose(self) -> ComposeResult:
        yield Header()
        yield Static("Hello, World!", id="greeting")
        yield Footer()

    def action_toggle_dark(self) -> None:
        self.theme = "textual-light" if self.theme == "textual-dark" else "textual-dark"

if __name__ == "__main__":
    MyApp().run()

App Class Variables

Variable Type Purpose
CSS str Inline CSS rules
CSS_PATH str | list[str] Path(s) to .tcss CSS files
BINDINGS list[BindingType] Key bindings
TITLE str App title (shown in Header)
SUB_TITLE str App subtitle
SCREENS dict[str, Callable] Named screen factories
MODES dict[str, str | Callable] App modes with base screens
COMMANDS set[type[Provider]] Command palette providers
ENABLE_COMMAND_PALETTE bool Enable command palette (default: True)

Read the full file on GitHub · 595 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 595 lines · 57 tokens per session scan A 57e84ec49d31

Subscribe to this mod's changes

textual is a skill published in the GitHub repository pavelzw/skill-forge (26 stars, last pushed today), licensed BSD-3-Clause. It adds 57 tokens to every session and 4,373 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

textual compared with skills from other repositories

textual next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
textualpavelzw/skill-forgeSkill26todayBSD-3-ClauseA57Claude Code, Codex
matlabK-Dense-AI/scientific-agent-skillsSkill59k3d agoMITA44Claude Code
pennylaneK-Dense-AI/scientific-agent-skillsSkill59k3d agoMITA74Claude Code
holoscan-install-wheelNVIDIA/skillsSkill4.3ktodayApache-2.0A34Claude Code, Codex
python-engineering-guidelinesanywhere-labs/Agents-AnywhereSkill3.9kyesterdayApache-2.0A75Codex
future-self-liteTHU-MAIC/OpenMAICSkill46ktodayMITA20Claude Code, Codex
rocm-kernelshuggingface/kernelsSkill799todayApache-2.0A93Claude Code