# Claude CLI

> Wrapped access to Claude Code CLI. Captures claude --help, caches subcommands, validates flags against pre-built digest, post-processes output for minimal token consumption. Use for ANY Claude Code CLI invocation from this or other harnesses. Saves ~85% tokens vs raw claude help/output.

- Skill: `andersonlimahw/claude-cli` (Agent Skill)
- Install (CLI): `npx skillmds@latest add andersonlimahw/claude-cli`
- Raw SKILL.md: https://api.skillmd.com/api/skills/andersonlimahw/claude-cli/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Andersonlimahw (https://skillmd.com/u/andersonlimahw)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/andersonlimahw/claude-cli

---


# Claude Code CLI Wrapper

Wrapped Claude Code CLI access. Digest-driven, token-optimized.

## Commands

```
/claude-cli invoke <args>    — run claude command with validated flags
/claude-cli explain <cmd>     — show what a claude subcommand does
/claude-cli audit             — token savings report
/claude-cli wrap              — rebuild digest from live claude --help
```

## Token Savings

Claude Code CLI has extensive help output (~5KB+). Digest = ~400 bytes. 92% savings.

| Phase | Raw | Wrapped |
|-------|-----|---------|
| Discovery | 5.2KB | 0.4KB |
| Invocation | variable | filtered + deduped |
| Flag validation | trial/error | first-try via digest |

## Common Patterns

```
/claude-cli invoke --version
/claude-cli invoke config list
/claude-cli invoke mcp list
/claude-cli invoke plugin list
```

## Digest Location

`.claude/cli-wrappers/claude.json` — auto-refreshed on `/claude-cli wrap`

