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.

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.

agentmods
npx agentmods add skills/pavelzw/skill-forge/textual
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00028 $0.02187
Sonnet 5 $0.00011 $0.00875
Haiku 4.5 $0.00006 $0.00437

Measured 6d ago against content hash 57e84ec49d31, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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. 6d 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 (24 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 57 tokens to every session and 4,373 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

pennylane

Hardware-agnostic quantum ML framework with automatic differentiation. Use when training quantum circuits via gradients, building hybrid quantum-classical models, or needing device portability across IBM/Google/Rigetti/IonQ. Best for variational algorithms (VQE, QAOA), quantum neural networks, and integration with…

K-Dense-AI/scientific-agent-skills · 98 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

typing-exclusion-worker

Python typing exclusion worker: remove assigned mypy exclusion modules in small scoped batches, fix typing issues, run validation, and produce a structured completion summary. Use when running parallel typing-debt workers or when asked to remove modules from pyproject mypy exclusion overrides.

getsentry/skills · 57 tokens

python

Python development with ruff, mypy, pytest - TDD and type safety.

alinaqi/maggy · 18 tokens

splitting-oversized-modules

Split an oversized Python module (a thousand-plus-line logic.py, models.py, api.py, or its test file) into a package of one module per concern, mechanically and provably without changing behavior. Use on a request to split / break up / decompose a god module or move functions out of one, once a human has agreed to…

PostHog/posthog · 197 tokens