textual

textual is a skill for Claude Code, Codex from vinsonconsulting/claude-skill-foundry. It costs 294 tokens per session (3,966 once invoked), scanned A, original, Apache-2.0.

A Python framework for building terminal user interfaces, meaning interactive apps that run in a text-only window. It provides screens, widgets such as tables and text areas, keyboard handling, asynchronous work, and its own styling system.

In plain words
What is it for?
Use it to create or debug Python terminal apps with forms, logs, tables, trees, lists, markdown, background tasks, and automated interaction tests.
Why use it?
It gives a structured way to build and update terminal interfaces without manually calculating every position or redrawing the whole screen.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create or debug Python terminal apps with forms, logs, tables, trees, lists, markdown, background tasks, and automated interaction tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vinsonconsulting/claude-skill-foundry/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 vinsonconsulting/claude-skill-foundry --skill textual
Clone the repo
git clone --depth 1 https://github.com/vinsonconsulting/claude-skill-foundry

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/vinsonconsulting/claude-skill-foundry/textual/github.svg)](https://agentmods.dev/skills/vinsonconsulting/claude-skill-foundry/textual)
Your own site
<a href="https://agentmods.dev/skills/vinsonconsulting/claude-skill-foundry/textual"><img src="https://agentmods.dev/badge/skills/vinsonconsulting/claude-skill-foundry/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/vinsonconsulting/claude-skill-foundry/textual"><img src="https://agentmods.dev/badge/skills/vinsonconsulting/claude-skill-foundry/textual.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 294 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,966 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00294 $0.03966
Opus 5 $0.00147 $0.01983
Sonnet 5 $0.00059 $0.00793
Haiku 4.5 $0.00029 $0.00397

Measured 8d ago against content hash 480215aad8a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

textual scanned grade A with 0 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/verify.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/tui/textual/SKILL.md · 318 lines

How it starts

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

Textual

Write current, compiling Textual code (pinned to 8.2.7, Python ≥3.9, Rich 15.0.0) and refuse the pre-1.0 / 0.x patterns the model remembers from training — the 1.0 (Dec 2024) and 2.0 (Feb 2025) releases were hard breaks. The body is the load-bearing 20%: one mental model and one run-verified example per concept. Everything enumerable — the full widget catalog, every TCSS rule, the streaming model, testing, deploy, migration — lives in references/. Open the matching reference before writing nontrivial code in that area.

Mental model

Textual is a retained, reactive, DOM-like framework — the opposite of Ratatui's immediate mode and Bubble Tea's MVU. You build a tree of widget objects once, then mutate their state; Textual re-renders only the affected parts, like a web framework. It is async-native (asyncio) and styled with Textual CSS (TCSS), not layout math.

Four nouns carry everything:

  • App — the application and event loop; App().run() (or await run_async()). Holds screens, handles input, owns the @work workers.
  • Screen — a full-window container you push/pop; the default screen hosts your compose(). Modals/dialogs are screens.
  • Widget — a node in the DOM tree. Leaf widgets draw themselves (render()); compound widgets yield children (compose()).
  • DOM + TCSS — widgets form a tree you query with query_one/query (CSS selectors) and style with TCSS. Mutating a widget's reactive state schedules a repaint.

App, compose, and lifecycle

compose() runs once to build the tree; never touch widgets there — the DOM isn't mounted yet. Wait for on_mount, then resolve widgets by selector with query_one.

from textual.app import App, ComposeResult
from textual.widgets import Header, Footer, Button, Label

class CounterApp(App):
    BINDINGS = [("a", "add", "Add"), ("q", "quit", "Quit")]   # key → action_* → footer hint

    def compose(self) -> ComposeResult:        # build the tree ONCE
        yield Header()
        yield Label("count: 0", id="lbl")
        yield Button("hit", id="btn")
        yield Footer()

    def on_mount(self) -> None:                 # DOM is live; safe to touch widgets
        self.count = 0

    def action_add(self) -> None:               # bound to "a"
        self.count += 1
        self.query_one("#lbl", Label).update(f"count: {self.count}")

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

Read the full file on GitHub · 318 lines

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. 8d ago First seen · 318 lines · 294 tokens per session scan A 480215aad8a1

Subscribe to this mod's changes

textual is a skill published in the GitHub repository vinsonconsulting/claude-skill-foundry (1 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 294 tokens to every session and 3,966 once invoked, about $0.0015 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.