V3 CLI Modernization

Modernizes claude-flow v3 CLI with modular commands, interactive prompts, and hooks integration.

1|1|Updated Nov 28, 2025
One-click install
npx skills add https://github.com/33may/robotics --skill v3-cli-modernization-33may
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: V3 CLI Modernization
Source: https://github.com/33may/robotics/tree/main/humanoid/.claude/skills/v3-cli-modernization
Command: npx skills add https://github.com/33may/robotics --skill v3-cli-modernization-33may

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires inquirer, cli-progress.

What problem does it solve? The claude-flow v3 CLI suffers from monolithic files (index.ts at 108KB), limited interactivity, basic hooks integration, and no intelligent workflow automation, making it slow and hard to maintain. ## Core Features & Use Cases - Command Decomposition: Breaks large CLI files into modular command modules under 500 lines each, organized by category with a registry supporting aliases and fuzzy matching. - Interactive Prompts: Implements context-aware select, multiselect, input, and progress prompts using inquirer and cli-progress for guided CLI experiences. - Hooks & Learning Integration: Connects CLI lifecycle events to learning systems that record trajectories, calculate rewards, and generate intelligent command suggestions. - Use Case: A developer runs claude-flow swarm init --interactive and is guided through topology selection and agent configuration, while hooks record the session for learning-based future suggestions. ## Quick Start Ask the AI to analyze the current claude-flow CLI structure and implement modular commands with interactive prompts and enhanced hooks integration.

Frequently Asked Questions about V3 CLI Modernization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I break down a large CLI file into modular commands?

Use a modular command registry pattern where each command is a class with decorators for name, category, and subcommands. Register commands in a central registry that supports aliases, fuzzy matching, and middleware execution, keeping each module under 500 lines.

How to add interactive prompts to a Node.js CLI?

Use inquirer for select, multiselect, input, and confirm prompts, dynamically imported for tree-shaking. Combine with cli-progress for progress bars during long-running tasks like workflow execution.

What is CLI hooks integration with a learning system?

CLI hooks fire on command lifecycle events like start, end, and error, recording execution trajectories and rewards to a learning service. This enables intelligent suggestions and pattern storage based on past command success and performance.

Does this approach support multi-step workflow automation?

Yes, a workflow orchestrator executes steps with dependency ordering, conditional evaluation, and retry policies. Workflows can be generated from user intent by matching stored patterns, with progress displayed via interactive prompts.

Why is my CLI command response time slow?

Monolithic files and lack of caching cause slow responses. Use a performance monitor to track execution time and memory per command, targeting under 200ms average, and decompose large files into focused modules.