From melodic-software
Manages AI CLI tools (Claude Code, Gemini CLI, Codex CLI): detects via PATH/npm fallback, checks versions, installs missing tools, retrieves updates from authoritative sources using delegation.
npx claudepluginhub melodic-software/claude-code-plugins --plugin melodic-softwareThis skill is limited to using the following tools:
Extensible AI CLI tools management with **delegation-first** design. Detects installed tools, installs missing tools, reports versions, and retrieves update instructions from authoritative sources.
Invokes OpenAI Codex and Google Gemini CLIs via Bash for second opinions, code reviews, and alternative analysis. Useful when users request external AI verification or explicitly say 'ask codex' or 'ask gemini'.
Discovers Claude Code tool environment including native tools and MCP servers via scans, amplifies prompts with capabilities, and suggests non-binding tool compositions for 'what tools to use' or 'best approach' queries.
Invokes Google Gemini CLI for complex reasoning, research, and AI tasks in headless mode. Supports preview models, fallbacks, and session continuation.
Share bugs, ideas, or general feedback.
Extensible AI CLI tools management with delegation-first design. Detects installed tools, installs missing tools, reports versions, and retrieves update instructions from authoritative sources.
Check which AI CLI tools are installed using two-tier detection:
Tier 1 - PATH check:
# Claude Code
command -v claude &>/dev/null && claude --version 2>/dev/null || echo "NOT_IN_PATH"
# Gemini CLI
command -v gemini &>/dev/null && gemini --version 2>/dev/null || echo "NOT_IN_PATH"
# Codex CLI
command -v codex &>/dev/null && codex --version 2>/dev/null || echo "NOT_IN_PATH"
Tier 2 - npm global fallback (for tools not found in PATH):
# Check npm global packages for tools not in PATH
npm list -g @anthropic-ai/claude-code --depth=0 2>/dev/null
npm list -g @google/gemini-cli --depth=0 2>/dev/null
npm list -g @openai/codex --depth=0 2>/dev/null
Report which tools are installed with their current versions. Classify each as:
For each tool that is not installed, offer to install it using the delegation chain from the tool registry's Install Delegation Chain.
Default behavior: Offer to install missing tools (prompt user for confirmation).
--install mode: Install missing tools without prompting--no-install mode: Skip installation, only report and update existing toolsPrimary: Invoke claude-ecosystem:docs-management skill with query "Claude Code install setup"
Fallback 1: Spawn claude-code-guide agent to find install docs
Fallback 2: mcp__perplexity__search("Claude Code CLI install npm")
Fallback 3: WebSearch("Claude Code CLI install")
Primary: Invoke google-ecosystem:gemini-cli-docs skill with query "install setup npm"
Fallback 1: mcp__perplexity__search("Google Gemini CLI npm install setup")
Fallback 2: WebSearch("Google Gemini CLI npm install")
Primary: Invoke openai-ecosystem:codex-cli-docs skill with query "install setup npm"
Fallback 1: mcp__perplexity__search("OpenAI Codex CLI npm install setup")
Fallback 2: WebSearch("OpenAI Codex CLI npm install")
After installation, re-run detection to confirm and report installed versions.
For each installed tool that needs updating, retrieve instructions from authoritative sources using the delegation chain from the tool registry's Delegation Chain.
Primary: Invoke claude-ecosystem:docs-management skill with query "Claude Code update install upgrade"
Fallback 1: If skill unavailable, spawn claude-code-guide agent:
First WebFetch https://code.claude.com/docs/en/claude_code_docs_map.md to find
update/install documentation. Then WebFetch those pages. Return the update commands.
Fallback 2: If agent unavailable, use MCP:
mcp__perplexity__search("Claude Code CLI update install latest version 2026")
Fallback 3: WebSearch for "Claude Code CLI update install"
Primary: Invoke google-ecosystem:gemini-cli-docs skill with query "update install upgrade npm"
Fallback 1: If skill unavailable, use MCP:
mcp__perplexity__search("Google Gemini CLI npm update install latest version 2026")
Fallback 2: WebSearch for "Google Gemini CLI npm install update"
Primary: Invoke openai-ecosystem:codex-cli-docs skill with query "update install upgrade npm"
Fallback 1: If skill unavailable, use MCP:
mcp__perplexity__search("OpenAI Codex CLI npm update install latest version 2026")
Fallback 2: WebSearch for "OpenAI Codex CLI npm install update"
After retrieving authoritative update instructions:
--dry-run mode, stop here (show what would happen)Provide a summary table:
| Tool | Before | After | Status |
|---|---|---|---|
| Claude Code | vX.X.X | vY.Y.Y | Updated |
| Gemini CLI | Not installed | vX.X.X | Installed |
| Codex CLI | vX.X.X | vY.Y.Y | Updated |
Possible statuses: Updated, Installed, Already latest, Skipped, Failed, Not installed (--no-install)
See references/tool-registry.md for the complete tool registry with:
To add a new AI CLI tool:
Add entry to references/tool-registry.md with:
No code changes needed - the workflow automatically handles tools in the registry
--tool NAME: Update/install specific tool only--dry-run: Show what would happen without executing--check: Only check versions, don't update or install--install: Install missing tools without prompting--no-install: Skip installation of missing tools, only update existingUpdate and install commands change over time:
By delegating to ecosystem skills that maintain current documentation, this skill stays accurate without manual updates.
Given: User asks "what AI tools do I have installed?" Then: Detect all tools using two-tier detection and report versions
Given: User asks "update my AI tools" Then: Detect installed tools, retrieve update instructions via delegation, execute updates
Given: User asks "update claude code" Then: Retrieve Claude Code update instructions via delegation, execute update
Given: User asks "show me how to update my AI tools without running anything" Then: Detect installed tools, retrieve update instructions, display without executing
Given: User asks "what versions of AI tools do I have?" Then: Detect installed tools and report versions without attempting updates or installs
Given: User runs update and some tools are not installed Then: Offer to install missing tools via delegation, install on confirmation, report results
Given: User runs with --install flag
Then: Install all missing tools without prompting, then update existing tools
Given: Tool is installed via npm but not in PATH
Then: Two-tier detection finds it via npm list -g, reports as "Installed (npm only)", suggests PATH fix
Given: User runs with --no-install flag and some tools are not installed
Then: Skip missing tools, only update tools that are already installed
| Version | Date | Changes |
|---|---|---|
| 1.1.0 | 2026-02-15 | Two-tier detection (PATH + npm fallback), install workflow with --install/--no-install modes, Install Delegation Chain in registry |
| 1.0.0 | 2026-01-17 | Initial release - delegation-first design, support for Claude Code, Gemini CLI, Codex CLI |
Model: Claude Opus 4.6 (claude-opus-4-6) Last Updated: 2026-02-15