supi: Skill for Claude Code

.pi/skills/pi-tui-design/SKILL.md

pi-tui-design is a skill for Claude Code, Codex from mrclrchtr/supi. It costs 141 tokens per session (2,608 once invoked), scanned A, original, MIT.

A set of instructions for building interactive terminal user interfaces, or TUIs, in Pi. TUIs are text-based screens with controls such as menus, dialogs, dashboards, and widgets.

In plain words
What is it for?
Use it to build Pi components such as selection dialogs, settings screens, loaders, status widgets, overlays, custom footers, visual data displays, and keyboard-driven editors.
Why use it?
It provides established patterns and API guidance for making Pi terminal screens behave and look consistent.

Skill for Claude CodeCodex

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

This is mrclrchtr/supi's own configuration. It tells Claude Code and Codex how to work on supi 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 supi configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mrclrchtr/supi. 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/mrclrchtr/supi/main/.pi/skills/pi-tui-design/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mrclrchtr/supi

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 pi-tui-design

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mrclrchtr/supi/pi-tui-design"><img src="https://agentmods.dev/badge/skills/mrclrchtr/supi/pi-tui-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,608 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. 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.00141 $0.02608
Opus 5 $0.00071 $0.01304
Sonnet 5 $0.00028 $0.00522
Haiku 4.5 $0.00014 $0.00261

Measured 5d ago against content hash 1f59e8dc8223, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

pi-tui-design 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 5d 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.

.pi/skills/pi-tui-design/SKILL.md · 224 lines

How it starts

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

TUI Design for Pi

Build terminal interfaces that feel crafted, not generated.

Reference Sources — Read These First

PI=$(npm root -g)/@earendil-works/pi-coding-agent

# Full TUI API (component interfaces, key identifiers, rendering rules)
cat "$PI/docs/tui.md"

# Copy-paste implementations for every pattern
# (load this file when you need working code to start from)

Read references/examples.md for copy-paste implementations of: Selection Dialog · Status+Widget · Loader with Cancel · Settings Toggles · Custom Tool Rendering · Custom Footer · Vim Modal Editor

# Real-world source references (ground truth):
cat "$PI/examples/extensions/preset.ts"           # SelectList + DynamicBorder
cat "$PI/examples/extensions/todo.ts"             # renderCall / renderResult
cat "$PI/examples/extensions/plan-mode/index.ts"  # setStatus + setWidget
cat "$PI/examples/extensions/custom-footer.ts"    # setFooter reactive
cat "$PI/examples/extensions/modal-editor.ts"     # CustomEditor vim-mode
cat "$PI/examples/extensions/snake.ts"            # full game loop
cat "$PI/examples/extensions/space-invaders.ts"   # wantsKeyRelease (Kitty)
cat "$PI/examples/extensions/overlay-qa-tests.ts" # all 9 anchors + animation

Design Thinking

Before coding, commit to a direction:

  • Tone: Minimal and precise? Dense and information-rich? Playful? Industrial? The terminal has its own aesthetic vocabulary — box-drawing elegance, braille-pattern density, block-element weight, symbol clarity.
  • Scope: Full-screen takeover? Floating overlay? Persistent widget? Status line? Tool rendering? Match the delivery surface to the interaction weight.
  • Differentiation: What detail makes this feel intentional? A progress bar with braille resolution. Aligned columns with accent headers. A dialog with breathing room.

Terminal Aesthetic Vocabulary

Category Characters Use
Box-drawing (light) ─│┌┐└┘├┤┬┴┼ Standard borders, tables
Box-drawing (rounded) ╭╮╰╯ Softer, modern feel
Box-drawing (heavy) ━┃┏┓┗┛┣┫┳┻╋ Emphasis, headers
Box-drawing (double) ═║╔╗╚╝╠╣╦╩╬ Formal, structured
Block elements █▓▒░▀▄▌▐ Progress bars, density, fill
Braille ⠀–⣿ Sparklines, high-res patterns, spinners
Symbols ◆●○◉✓✗▸▶★ Status, bullets, selections

Read the full file on GitHub · 224 lines

Files

What ships with it

1 file 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. 5d ago Changed · +2 lines 1f59e8dc8223
  2. 11d ago First seen · 222 lines · 141 tokens per session scan A 9ca4f7b38632

Subscribe to this mod's changes

pi-tui-design is a skill published in the GitHub repository mrclrchtr/supi (89 stars, last pushed today), licensed MIT. It adds 141 tokens to every session and 2,608 once invoked, about $0.0007 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-30.