/add-tui - TUI Channel Skill
Purpose
Add a Terminal User Interface (TUI) channel for direct terminal communication with NanoBob.
What This Skill Does
- Creates
src/channels/tui.tswith TUI channel implementation - Adds import to
src/channels/index.ts - Adds
inkand@inkjs/uidependencies - Enables interactive terminal chat
Usage
Inside the claude CLI, run:
/add-tui
Then run:
npm run tui
Implementation
Channel File: `src/channels/tui.ts`
import { registerChannel, ChannelOpts } from './registry.js';
import { render, Text, useInput, useApp } from 'ink';
import React, { useState, useEffect } from 'react';
export class TUIChannel implements Channel {
// Handles terminal input/output
// Displays messages in terminal
}
registerChannel('tui', (opts) => {
return new TUIChannel(opts);
});
New Script
Add to package.json:
"tui": "tsx src/tui-main.ts"
Post-Installation
- Run
npm install - Run
npm run tuito start interactive terminal chat