Works with the AI Agents you already use

    AI CLI Doctor

    by Rakgorak Rak

    1

    Diagnose AI coding CLI installations, PATH issues, and headless command syntax for agent-to-agent delegation.

    Free

    Security scanned
    AI CLI Doctor

    AI CLI Doctor

    Example session with this skill installed

    Check my dev environment to see which AI CLIs I have installed and if they are ready for me to use.

    • Read your context and instructions
    • Compiled the ai cli doctor

    I ran node scripts/cli-doctor.mjs. Here's your AI CLI environment:

    AI CLI Doctor: win32-x64

    ToolStatusVersionAPI key env set
    Node.jsOK22.11.0
    GitOK2.47.0.windows.1
    Claude CodeOK2.1.4
    OpenAI Codex CLINOT ON PATH0.58.0OPENAI_API_KEY
    Antigravity CLIOK1.5.16
    OpenCode-
    Cursor Agent CLI-

    Fix

    • Codex is installed at C:\Users\you\AppData\Roaming\npm but that folder isn't on PATH, so other tools can't call codex. Add it to PATH, then open a new terminal.

    Headless commands you can use now

    • Claude Code: claude -p "<prompt>" --model <m>
    • Antigravity CLI: agy -p "<prompt>" --model <m>
    • Codex (after the PATH fix): codex exec "<prompt>" -m <m>

    Summary

    • Ready: Node.js, Git, Claude Code, Antigravity.
    • Needs one fix: Codex works, but it's hidden from PATH.
    • Not installed: OpenCode, Cursor Agent. These are optional; install them only if you want them.

    Next steps

    1. Add the npm folder to PATH (System Settings → Environment Variables → Path → New).
    2. Run the doctor again to confirm Codex shows OK.
    3. Then you can have Claude write code and Codex review it with the Cross-Model Review skill.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    "Command not found" is the most common reason one AI agent can't hand work to another. This skill gives your agent a read-only diagnostic that finds every AI coding CLI on the machine, flags the ones hidden from PATH, and prints the exact headless command for each.

    What it does

    • CLI Discovery scans the system for Claude Code, Codex, Antigravity, Gemini CLI, OpenCode, Cursor Agent, GitHub Copilot CLI and Aider.
    • Path Validation identifies binaries that are installed in per-user folders but missing from PATH.
    • Dependency Check verifies Node.js and Git, which most AI CLIs depend on.
    • Environment Audit reports which API-key variable names are set, never their values.
    • Delegation Mapping prints the exact headless (one-shot) command for each installed CLI, ready for agent-to-agent handoffs.

    How it works

    1. Your agent runs node scripts/cli-doctor.mjs (about two seconds).
    2. Add --json for machine-readable output in automated workflows.
    3. The agent reads the status table: OK, NOT ON PATH, MISSING, or a failed --version.
    4. It gives you the exact fix for each problem. It never edits PATH, installs software or changes shell profiles by itself.

    Frameworks & tools

    A single Node.js 18+ file with no dependencies. Works on Windows (including npm .cmd shims), macOS and Linux.

    Why this beats prompting it yourself

    which and where only search your current PATH. This skill also checks the per-user folders where installers commonly put AI CLIs, catches binaries that exist but fail to run, and hands your agent verified one-shot commands instead of guessed flags.

    Use cases

    • Debugging "command not found" errors when invoking AI CLIs.
    • Setting up a new development machine for multi-agent workflows.
    • Checking readiness before delegating tasks between models.
    • Confirming which API-key variables are set (names only).

    Security

    Read-only. It runs only <cli> --version for each CLI it finds, without a shell. No network access and no file writes.

    Known limitations

    Requires Node.js 18+. It reports problems but does not install software or edit PATH. CLIs that use a browser sign-in show an empty API-key column, which is normal.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 9 days ago

    • Free with an Agensi account

    Software
    Node.js 18+

    Permissions

    Terminal / Shell
    Read Files
    Environment Variables

    Terminal: runs "<cli> --version" for each CLI it finds, without a shell. Read Files: checks whether CLI binaries exist on PATH and in common per-user folders. Environment Variables: reads PATH to locate binaries and reports only the NAMES of API-key variables that are set, never their values. No network access and no file writes.

    Listed9 days ago

    What's inside

    Creator

    Rakgorak Rak

    Rakgorak Rak

    4 skills on Agensi

    Frequently Asked Questions

    It scans your machine for installed AI coding CLIs, flags any that are installed but hidden from PATH, and prints the exact headless (one-shot) command for each, so one agent can reliably call another. It reports problems; it never edits PATH or installs anything itself.

    The doctor supports a wide range of popular tools including Claude Code, Aider, Cursor Agent, GitHub Copilot CLI, Codex, and OpenCode, ensuring your entire AI toolkit is visible and functional.

    No, the skill is designed for safety; it performs a read-only audit of your environment and provides specific 'Fix' commands for you to review and run manually to repair your configuration.

    The skill is built for Node.js environments (v18+) and works across standard development setups where AI CLI tools are typically installed via npm, pip, or direct binaries.

    Unlike standard commands that only check your active PATH, this tool performs deep file system lookups for hidden npm shims and per-user application folders that agents often fail to locate.

    One read-only Node.js script (scripts/cli-doctor.mjs) and a SKILL.md that tells your agent how to run it, read the result and use the headless command cheat sheet. It's free.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Free