- Home
- Skills
- Agents & Orchestration
- AI CLI Doctor
Works with the AI Agents you already use
AI CLI Doctor
by Rakgorak Rak
Diagnose AI coding CLI installations, PATH issues, and headless command syntax for agent-to-agent delegation.
Free
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
| Tool | Status | Version | API key env set |
|---|---|---|---|
| Node.js | OK | 22.11.0 | |
| Git | OK | 2.47.0.windows.1 | |
| Claude Code | OK | 2.1.4 | |
| OpenAI Codex CLI | NOT ON PATH | 0.58.0 | OPENAI_API_KEY |
| Antigravity CLI | OK | 1.5.16 | |
| OpenCode | - | ||
| Cursor Agent CLI | - |
Fix
- Codex is installed at
C:\Users\you\AppData\Roaming\npmbut that folder isn't onPATH, so other tools can't callcodex. Add it toPATH, 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
- Add the npm folder to
PATH(System Settings → Environment Variables → Path → New). - Run the doctor again to confirm Codex shows
OK. - 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
- Your agent runs
node scripts/cli-doctor.mjs(about two seconds). - Add
--jsonfor machine-readable output in automated workflows. - The agent reads the status table:
OK,NOT ON PATH,MISSING, or a failed--version. - 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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: 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.
What's inside
Frequently Asked Questions
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.