| name | rag-learning |
| description | Add a Terminal User Interface (TUI) channel for direct terminal communication with NanoBob. Use when this capability is needed. |
| metadata | {"author":"BeamusWayne"} |
/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.ts with TUI channel implementation
- Adds import to
src/channels/index.ts
- Adds
ink and @inkjs/ui dependencies
- 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 {
}
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 tui to start interactive terminal chat
Source: BeamusWayne/RAG-learning — distributed by TomeVault.