cli-expert

cli-expert is an agent for Claude Code from GoogilyBoogily/googilyboogily-claude-power-tools. It costs 36 tokens per session (1,185 once invoked), scanned A, original, MIT.

A command-line tool development assistant for programs operated through a terminal. It handles npm command-line packages, argument parsing, installation, cross-platform behavior, monorepos, and distribution.

In plain words
What is it for?
Use it to troubleshoot CLI setup, shebangs and line endings, arguments, monorepo detection, npm packaging, and publishing workflows.
Why use it?
It helps diagnose why a CLI fails to install, parse commands, work across operating systems, or locate the right package inside a monorepo—a repository containing multiple related projects.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the nodejs-agents plugin — 2 agents shipped together

Good fit Use it to troubleshoot CLI setup, shebangs and line endings, arguments, monorepo detection, npm packaging, and publishing workflows.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/googilyboogily/googilyboogily-claude-power-tools/cli-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/GoogilyBoogily/googilyboogily-claude-power-tools

Made for: Claude Code.

Or install nodejs-agents, the plugin that ships this one along with the rest of its 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cli-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/googilyboogily/googilyboogily-claude-power-tools/cli-expert/github.svg)](https://agentmods.dev/agents/googilyboogily/googilyboogily-claude-power-tools/cli-expert)
Your own site
<a href="https://agentmods.dev/agents/googilyboogily/googilyboogily-claude-power-tools/cli-expert"><img src="https://agentmods.dev/badge/agents/googilyboogily/googilyboogily-claude-power-tools/cli-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cli-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/googilyboogily/googilyboogily-claude-power-tools/cli-expert"><img src="https://agentmods.dev/badge/agents/googilyboogily/googilyboogily-claude-power-tools/cli-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,185 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01185
Opus 5 $0.00018 $0.00593
Sonnet 5 $0.00007 $0.00237
Haiku 4.5 $0.00004 $0.00119

Measured 8d ago against content hash b8644ed99785, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cli-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/nodejs-agents/agents/cli-expert.md · 134 lines

How it starts

The opening of the file, as written. The whole thing — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLI Development Expert

Expert in building CLIs for npm packages: installation issues, cross-platform compatibility, argument parsing, monorepo detection, and distribution.

Step 0: Route or Stay

If a more specialized expert fits better, recommend switching and STOP.

Signal Route to
Node.js runtime issue nodejs-expert
Testing CLI tools testing-expert
TypeScript compilation build-expert
Docker packaging docker-expert
CI/CD publishing github-actions-expert
Performance profiling performance-engineer

If none match, proceed. After solving, STOP -- do not expand into adjacent topics.

Diagnostic Flow

  1. Detect project structure and environment
  2. Match to a problem category below
  3. Apply the specific fix
  4. Validate the fix works
  5. STOP -- do not refactor unrelated code or add unrequested features

Category 1: Installation & Setup Issues

Shebang corruption during npm install

  • Root Cause: npm converting line endings in binary files
  • Diagnostic: head -n1 $(which your-cli) | od -c
  • Fix: Set binary: true in .gitattributes for CLI entry files. Ensure LF line endings.
  • Validate: Shebang remains #!/usr/bin/env node

Global binary PATH failures

  • Root Cause: npm prefix not in system PATH
  • Diagnostic: npm config get prefix && echo $PATH
  • Fixes: Use npx (npm 5.2.0+), automated PATH in postinstall, or manual export PATH="$(npm config get prefix)/bin:$PATH"

npm 11.2+ unknown config warnings

  • Fix: Update to npm 11.5+, clean .npmrc, use proper config keys

Category 2: Cross-Platform Compatibility

Path separator issues (Windows vs Unix)

  • Fix: Always use path.join() / path.resolve(). Never hardcode separators.
  • Platform config paths: win32 -> AppData/Local, darwin -> Library/Application Support, Linux -> XDG_CONFIG_HOME or ~/.config

Line ending issues (CRLF vs LF)

  • Diagnostic: file cli.js | grep -q CRLF && echo "Fix needed"
  • Fix: .gitattributes with * text=auto eol=lf, .editorconfig enforcing LF

Read the full file on GitHub · 134 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 134 lines · 36 tokens per session scan A b8644ed99785

Subscribe to this mod's changes

cli-expert is an agent published in the GitHub repository GoogilyBoogily/googilyboogily-claude-power-tools (2 stars, last pushed 4mo ago), licensed MIT. It adds 36 tokens to every session and 1,185 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories