better-skills: Skill for Claude Code

.agents/skills/opentui/SKILL.md

opentui is a skill for Claude Code, Codex from LeonardoTrapani/better-skills. It costs 51 tokens per session (1,829 once invoked), scanned A, a copy of opentui, MIT.

A guide for building terminal user interfaces with OpenTUI, including its core API and React and Solid integrations.

In plain words
What is it for?
Use it to build terminal screens, layouts, keyboard controls, animations, and tests with OpenTUI.
Why use it?
It helps avoid common setup and coding mistakes when creating text-based apps that run in a terminal.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is LeonardoTrapani/better-skills's own configuration. It tells Claude Code and Codex how to work on better-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything better-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to LeonardoTrapani/better-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/LeonardoTrapani/better-skills/master/.agents/skills/opentui/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/LeonardoTrapani/better-skills

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 opentui

README.md
[![agentmods](https://agentmods.dev/badge/skills/leonardotrapani/better-skills/opentui/github.svg)](https://agentmods.dev/skills/leonardotrapani/better-skills/opentui)
Your own site
<a href="https://agentmods.dev/skills/leonardotrapani/better-skills/opentui"><img src="https://agentmods.dev/badge/skills/leonardotrapani/better-skills/opentui/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 opentui

Your own site · 80×15
<a href="https://agentmods.dev/skills/leonardotrapani/better-skills/opentui"><img src="https://agentmods.dev/badge/skills/leonardotrapani/better-skills/opentui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,829 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 95% copy Near-identical to another mod 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.00051 $0.01829
Opus 5 $0.00026 $0.00915
Sonnet 5 $0.00010 $0.00366
Haiku 4.5 $0.00005 $0.00183

Measured 11d ago against content hash 566f8a432790, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

opentui 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 11d 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.

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.

Origin

This is a copy

95% identical to opentui — 57 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/opentui/SKILL.md · 202 lines

How it starts

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

OpenTUI Platform Skill

Consolidated skill for building terminal user interfaces with OpenTUI. Use decision trees below to find the right framework and components, then load detailed references.

Critical Rules

Follow these rules in all OpenTUI code:

  1. Use create-tui for new projects. See framework REFERENCE.md quick starts.
  2. create-tui options must come before arguments. bunx create-tui -t react my-app works, bunx create-tui my-app -t react does NOT.
  3. Never call process.exit() directly. Use renderer.destroy() (see core/gotchas.md).
  4. Text styling requires nested tags in React/Solid. Use modifier elements, not props (see components/text-display.md).

How to Use This Skill

Reference File Structure

Framework references follow a 5-file pattern. Cross-cutting concepts are single-file guides.

Each framework in ./references/<framework>/ contains:

File Purpose When to Read
REFERENCE.md Overview, when to use, quick start Always read first
api.md Runtime API, components, hooks Writing code
configuration.md Setup, tsconfig, bundling Configuring a project
patterns.md Common patterns, best practices Implementation guidance
gotchas.md Pitfalls, limitations, debugging Troubleshooting

Cross-cutting concepts in ./references/<concept>/ have REFERENCE.md as the entry point.

Reading Order

  1. Start with REFERENCE.md for your chosen framework
  2. Then read additional files relevant to your task:
    • Building components -> api.md + components/<category>.md
    • Setting up project -> configuration.md
    • Layout/positioning -> layout/REFERENCE.md
    • Keyboard/input handling -> keyboard/REFERENCE.md
    • Animations -> animation/REFERENCE.md
    • Troubleshooting -> gotchas.md + testing/REFERENCE.md

Read the full file on GitHub · 202 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. 11d ago First seen · 202 lines · 51 tokens per session scan A 566f8a432790

Subscribe to this mod's changes

opentui is a skill published in the GitHub repository LeonardoTrapani/better-skills (11 stars, last pushed 6mo ago), licensed MIT. It adds 51 tokens to every session and 1,829 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to opentui, differing in 57 lines, and is treated as a copy.

Related

Other skills, from other repositories

skillshare-ui-website-style

Skillshare frontend design system for the React dashboard (ui/) and Docusaurus website (website/). Use this skill whenever you: build or modify a dashboard page or component in ui/src/, style or layout website pages or custom CSS in website/, create new React components for the dashboard, add pages to the dashboard…

runkids/skillshare · 147 tokens

antv-g2-chart

A chart-building skill for AntV G2 v5, a JavaScript library for visualizing data. It covers charts such as bars, lines, pies, scatter plots, and areas using JSON-like settings.

antvis/chart-visualization-skills · 230 tokens

antv-x6-editor

A skill for creating and troubleshooting interactive diagrams with AntV X6, a JavaScript engine for editors made of connected nodes and lines. It supports diagram types such as flowcharts, dependency graphs, entity-relationship diagrams, and organization charts.

antvis/chart-visualization-skills · 253 tokens

antv-g6-graph

A graph-visualization skill for AntV G6 v5, a JavaScript library for showing relationships between connected items. It covers network, tree, topology, flow, and other node-and-edge diagrams.

antvis/chart-visualization-skills · 200 tokens

hz-iwsdk-webxr

Builds WebXR experiences for Meta Quest and Horizon OS using the Immersive Web SDK (IWSDK) — ECS architecture, Three.js integration, spatial UI. Use when creating web-based VR/MR apps for Quest Browser.

meta-quest/agentic-tools · 53 tokens

yao-geoflow-design

Discover, compare, preview, clone, and orchestrate current GEOFlow frontend experiences across the default site and GeoFlow Agent channel sites, including Laravel Blade themes, homepage module/style JSON, leadform conversion modules, theme editor, target-package capabilities, and cross-channel sync planning. Use for…

yaojingang/yao-geo-skills · 113 tokens