Co-Pilot
Updated a month ago

opentui-skill

Mmsmps
0.1k
msmps/opentui-skill
74
Agent Score

💡 Summary

A reference skill providing documentation and decision trees for the OpenTUI framework to assist AI agents in developing Terminal User Interfaces.

🎯 Target Audience

OpenTUI framework developersAI agents working on TUI projectsTechnical writers documenting OpenTUIOpenCode power users building TUI skills

🤖 AI Roast:It's essentially a well-organized offline copy of the docs, so your AI can be just as confused by layout quirks as you are.

Security AnalysisLow Risk

The install script fetches and executes code from a remote URL, posing a supply chain risk. Mitigation: Review the install.sh script before execution, or host a verified copy internally.

OpenTUI Skill for OpenCode

OpenTUI platform reference docs. Covers the Core imperative API, React reconciler, Solid reconciler, layout system, components, keyboard handling, animations, and testing.

Install

Local installation (current project only):

curl -fsSL https://raw.githubusercontent.com/msmps/opentui-skill/main/install.sh | bash

Global installation (available in all projects):

curl -fsSL https://raw.githubusercontent.com/msmps/opentui-skill/main/install.sh | bash -s -- --global

Usage

Once installed, the skill appears in OpenCode's <available_skills> list. The agent loads it automatically when working on OpenTUI tasks.

Use the /opentui command to load the skill and get contextual guidance:

/opentui create a React TUI with keyboard navigation

Updating

To update to the latest version:

/opentui --update-skill

Structure

The installer adds both a skill and a command:

# Skill (reference docs)
skill/opentui/
├── SKILL.md              # Main manifest + decision trees
└── references/           # Framework and concept subdirectories
    ├── core/             # Imperative API (5-file pattern)
    ├── react/            # React reconciler (5-file pattern)
    ├── solid/            # Solid reconciler (5-file pattern)
    ├── components/       # Component categories
    ├── layout/           # Yoga/Flexbox layout
    ├── keyboard/         # Input handling
    ├── animation/        # Timeline animations
    └── testing/          # Test renderer + snapshots

# Command (slash command)
command/opentui.md        # /opentui entrypoint

Decision Trees

The main SKILL.md contains decision trees for:

  • Choosing a framework (Core, React, Solid)
  • Displaying content (text, containers, code, diffs)
  • Handling user input (inputs, keyboard, focus)
  • Layout and positioning (flexbox, absolute, responsive)
  • Animations (timeline, easing, transitions)
  • Testing (snapshots, interaction, debugging)
  • Troubleshooting (gotchas, common issues)

Topics Covered

Frameworks: Core (imperative), React (declarative), Solid (fine-grained reactivity)

Components: text, box, scrollbox, input, textarea, select, tab-select, ascii-font, code, line-number, diff

Cross-cutting: Layout (Yoga/Flexbox), Keyboard handling, Animations, Testing

Credits & Inspiration

This skill's structure and patterns are heavily inspired by:

License

MIT - see LICENSE

5-Dim Analysis
Clarity8/10
Novelty5/10
Utility7/10
Completeness9/10
Maintainability8/10
Pros & Cons

Pros

  • Comprehensive coverage of OpenTUI concepts and APIs
  • Clear decision trees for framework and component selection
  • Well-structured, modular reference documentation

Cons

  • Primarily passive documentation, lacks interactive examples
  • Utility is limited to agents already working within the OpenCode/OpenTUI ecosystem
  • No clear demonstration of unique agent capabilities beyond info retrieval

Related Skills

pytorch

S
toolCode Lib
92/ 100

“It's the Swiss Army knife of deep learning, but good luck figuring out which of the 47 installation methods is the one that won't break your system.”

agno

S
toolCode Lib
90/ 100

“It promises to be the Kubernetes for agents, but let's see if developers have the patience to learn yet another orchestration layer.”

nuxt-skills

S
toolCo-Pilot
90/ 100

“It's essentially a well-organized cheat sheet that turns your AI assistant into a Nuxt framework parrot.”

Disclaimer: This content is sourced from GitHub open source projects for display and rating purposes only.

Copyright belongs to the original author msmps.