using-claude-cli

using-claude-cli is a skill for Claude Code, Codex from developerz-ai/ui-debugger-mcp. It costs 61 tokens per session (859 once invoked), scanned A, original, MIT.

A guide for running Claude Code from scripts instead of an interactive terminal session. It covers one-off runs, input and output formats, permissions, MCP servers, and automation.

In plain words
What is it for?
Use it to run Claude from shell scripts, start it as a sub-agent from another program, connect MCP servers, and process text or structured results in automation.
Why use it?
Interactive prompts do not work well in scripts or continuous integration (automated build and test systems). This explains how to provide input, capture results, and prevent runs from stalling on approval requests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Claude Code.

Good fit Use it to run Claude from shell scripts, start it as a sub-agent from another program, connect MCP servers, and process text or structured results in automation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/developerz-ai/ui-debugger-mcp/claude
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.

Any agent
npx skills add developerz-ai/ui-debugger-mcp --skill claude
Clone the repo
git clone --depth 1 https://github.com/developerz-ai/ui-debugger-mcp

Made for: Claude Code, Codex.

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 using-claude-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/developerz-ai/ui-debugger-mcp/claude/github.svg)](https://agentmods.dev/skills/developerz-ai/ui-debugger-mcp/claude)
Your own site
<a href="https://agentmods.dev/skills/developerz-ai/ui-debugger-mcp/claude"><img src="https://agentmods.dev/badge/skills/developerz-ai/ui-debugger-mcp/claude/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 using-claude-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/developerz-ai/ui-debugger-mcp/claude"><img src="https://agentmods.dev/badge/skills/developerz-ai/ui-debugger-mcp/claude.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 859 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.00061 $0.00859
Opus 5.5 $0.00024 $0.00344
Sonnet 5.5 $0.00012 $0.00172
Haiku 4.5 $0.00006 $0.00086

Measured 22d ago against content hash f665c4148957, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

using-claude-cli 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 22d 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.

docs/claude/SKILL.md · 79 lines

How it starts

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

Using claude as a tool

claude (Claude Code) is interactive by default, but it's also a scriptable CLI: give it a prompt, let it run autonomously, capture the result. This is how you spawn a Claude "sub-agent" from a script, a hook, or another Claude.

One-shot (headless) runs

claude -p "Summarize the failing tests in this repo"        # print result, exit
  • -p, --print — run once, print the final message, exit (no REPL).

  • --output-format text|json|stream-json — text (default) for humans; json for a single structured result; stream-json to read events live (pair with --verbose).

  • --model <id> — pick the model for this run (e.g. a fast model for cheap jobs).

  • Prompt can come from an arg, a file, or stdin:

    claude -p "$(cat task.txt)"
    echo "explain this error" | claude -p
    

Permissions (the usual headless gotcha)

Headless runs can't show permission prompts, so a tool that needs approval just stalls. Choose one:

  • --permission-mode acceptEdits — auto-accept file edits, still gate the rest.
  • --allowedTools "Bash(git*) mcp__myserver__*" — allowlist exactly what may run.
  • --dangerously-skip-permissions — bypass ALL checks. Only in a sandbox / on a throwaway target you trust. Never against production or with secrets in reach.

MCP servers

claude -p "Use the debugger to QA the app" \
  --mcp-config ./.mcp.json --strict-mcp-config \
  --allowedTools "mcp__ui-debugger__*"
  • --mcp-config <file...> — load MCP servers from explicit JSON files.
  • --strict-mcp-config — use ONLY those, ignoring auto-discovered project configs (reproducible, no surprise servers).
  • MCP tools are named mcp__<server>__<tool> — match that in --allowedTools.
  • The MCP server inherits the spawned process's env + cwd; put per-run secrets in the .mcp.json env block (and keep that file out of git).

Sessions

  • --continue — resume the most recent session in this directory.
  • --resume <session-id> — resume a specific one.
  • Each working directory is its own session context.

Read the full file on GitHub · 79 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. 22d ago Changed · +2 lines f665c4148957
  2. 3mo ago First seen · 77 lines · 61 tokens per session scan A 9920fc486fa3

Subscribe to this mod's changes

using-claude-cli is a skill published in the GitHub repository developerz-ai/ui-debugger-mcp (2 stars, last pushed 3d ago), licensed MIT. It adds 61 tokens to every session and 859 once invoked, about $0.0002 per session on Opus 5.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-08-31.

Related

using-claude-cli compared with skills from other repositories

using-claude-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
using-claude-clideveloperz-ai/ui-debugger-mcpSkill23d agoMITA61Claude Code, Codex
bxc-coreaphrody-code/bxcSkill32mo agoApache-2.0A102Claude Code
bxc-grok-xaiaphrody-code/bxcSkill32mo agoApache-2.0A108Claude Code
bxc-rust-ffiaphrody-code/bxcSkill32mo agoApache-2.0A108Claude Code
rust-native-scanneraphrody-code/bxcSkill32mo agoApache-2.0A47Claude Code, Codex
bxc-buildaphrody-code/bxcSkill32mo agoApache-2.0A32Claude Code
bxc-verifyaphrody-code/bxcSkill32mo agoApache-2.0A26Claude Code