import { Command } from 'commander'; import chalk from 'chalk'; interface Skill { name: string; icon: string; description: string; example: string; } const skills: Skill[] = [ { name: 'ask', icon: 'šŸ’”', description: 'Ask questions and get answers from AI', example: 'kob ask "What is TypeScript?"' }, { name: 'code', icon: 'šŸ’»', description: 'Generate code in any language', example: 'kob code "Write a REST API in Python" --lang python' }, { name: 'chat', icon: 'šŸ’¬', description: 'Send messages to AI', example: 'kob chat "Hello"' }, { name: 'chat:interactive', icon: 'šŸ”„', description: 'Interactive conversation mode', example: 'kob chat:interactive' }, { name: 'stream', icon: '🌊', description: 'Real-time streaming AI responses', example: 'kob stream "Tell me a story"' }, { name: 'auth:verify', icon: 'šŸ”', description: 'Verify API connection and credentials', example: 'kob auth:verify' }, { name: 'balance', icon: 'šŸ’°', description: 'Check credit balance', example: 'kob balance' }, { name: 'models', icon: 'šŸ¤–', description: 'Browse available AI models', example: 'kob models --provider DeepSeek' }, ]; export const skillsCommand = new Command('skills') .description('List all available KOB CLI skills') .action(() => { console.log(chalk.bold.cyan('\n🧠 KOB CLI Skills')); console.log(chalk.dim('─'.repeat(60))); skills.forEach((skill) => { console.log(`\n ${skill.icon} ${chalk.bold(skill.name)}`); console.log(` ${skill.description}`); console.log(` ${chalk.dim(skill.example)}`); }); console.log(chalk.dim('\nšŸ’” Use: kob --help for detailed options')); console.log(''); });