V3 CLI Modernization

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

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/wandreandrade2018-maker/claude-config --skill v3-cli-modernization-wandreandrade2018-maker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: V3 CLI Modernization
Source: https://github.com/wandreandrade2018-maker/claude-config/tree/main/.claude/skills/v3-cli-modernization
Command: npx skills add https://github.com/wandreandrade2018-maker/claude-config --skill v3-cli-modernization-wandreandrade2018-maker

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), basic command parsing, shallow hooks integration, and no intelligent workflow automation, making it slow and hard to maintain. ## Core Features & Use Cases - Modular Command Architecture: Decomposes large CLI files into focused command modules under 500 lines each, with a registry supporting categories, aliases, and fuzzy matching. - Interactive Prompt System: Provides context-aware select, multiselect, input, confirm, and progress-bar prompts using inquirer and cli-progress. - Enhanced Hooks & Learning Integration: Connects CLI lifecycle events (command_start, command_end, command_error) to trajectory tracking, reward calculation, and pattern storage via AgentDB and agentic-flow hooks. - Workflow Automation & Completion: Orchestrates multi-step workflows with dependencies, retry policies, and learning-based intelligent command auto-completion. - Use Case: A developer runs claude-flow swarm init --interactive and is guided through topology selection and agent configuration, while hooks record execution metrics and suggest optimizations based on similar past runs. ## Quick Start Ask the AI to analyze the current claude-flow CLI structure and implement modular commands, interactive prompts, and hooks integration using the cli-hooks-developer agent.

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 monolithic CLI file into modular commands?

Use a modular command registry pattern where each command is a class with decorators for name, category, subcommands, and options. Register modules in a central registry that supports categories, aliases, and fuzzy matching, keeping each file 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, and wrap everything in a prompt service for reuse across commands.

How do I integrate hooks into CLI command lifecycle?

Register hook handlers for command_start, command_end, and command_error events, then execute them around each command invocation. Hooks can record trajectories, calculate rewards based on execution time and success, and store successful patterns for learning.

Can CLI commands learn from past executions to suggest optimizations?

Yes, by recording command executions as experiences in a learning system like AgentDB and finding similar patterns for new contexts. The CLI can then display suggestions with confidence scores and power learning-based auto-completion.

What are the limitations of workflow orchestration in a CLI?

Workflow steps fail if dependencies are unmet or conditions evaluate false, and retries are bounded by the configured retry policy. Generating workflows from intent requires existing learned patterns, so novel intents without matching patterns cannot be automated.