cli-toolbox

A set of working rules for using command-line tools, including checking installation, reading help, requesting structured output, and limiting noisy results.

In plain words
What is it for?
It helps with JSON output, HTTP requests, command inspection, and other terminal tasks where exact, non-interactive results are needed.
Why use it?
It reduces failed commands, repeated guesses, unexpected prompts, and hard-to-read output when inspecting systems or data.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/zfinix/aster/cli-toolbox
Any agent
npx skills add Zfinix/aster --skill cli-toolbox
Clone the repo
git clone --depth 1 https://github.com/Zfinix/aster

Made for: Claude Code, Codex.

Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,002 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00055 $0.01002
Opus 5 $0.00028 $0.00501
Sonnet 5 $0.00011 $0.00200
Haiku 4.5 $0.00006 $0.00100

Measured 2d ago against content hash aa2762677218, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cli-toolbox scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`curl -s -o /dev/null -w "%{http_code}" URL`. Content check:
crates/aster-skills/builtins/cli-toolbox/SKILL.md · 59 lines

What it actually says

CLI toolbox

  1. Read the tool before guessing at it, and never guess twice. First contact with a CLI you have not used this session: command -v <tool> to confirm it is installed. When a call fails on usage rather than on the task ("unknown flag", "accepts at most 1 arg(s)", "unknown command"), the next call is <tool> --help, or <tool> <subcommand> --help for the exact subcommand that failed. Never re-send a shape that just failed with a small edit; that is how a turn burns twenty calls and lands nowhere. When the tool is missing, or its help does not settle the question, go and read: aster_mcp with action: "execute", name: "web/search" for the flag, or name: "web/extract" on the tool's documentation URL. Going online once costs less than four blind retries, and unlike them it ends the question. Say so plainly if the tool simply is not installed, rather than quietly substituting a different one.

  2. Ask the tool for structured output. Most modern CLIs have it: gh pr view 12 --json title,files, cargo metadata --format-version 1, docker ps --format json, npm ls --json. Parse with jq -r '.field' instead of eyeballing prose.

  3. Slice files without reading them whole. sed -n '120,160p' file for a line range, grep -n -m5 "pattern" file for first hits with line numbers, wc -l file before deciding how to read it.

  4. Count and rank instead of scrolling. grep -c for how many, sort | uniq -c | sort -rn | head for what dominates, du -sh */ | sort -rh | head for what is big.

  5. Probe HTTP minimally. Status only: curl -s -o /dev/null -w "%{http_code}" URL. Content check: curl -s URL | grep -c "expected". Never dump a whole page to look at one thing.

  6. Force non-interactive mode. Anything that might prompt hangs the call: use --yes/-y, --force where safe, GIT_TERMINAL_PROMPT=0, DEBIAN_FRONTEND=noninteractive, CI=1, </dev/null as a last resort. Anything that might page gets --no-pager or | cat.

  7. Quiet flags cut noise at the source. npm install --silent, cargo build -q, git -q variants. Prefer them over filtering noise afterwards.

  8. Batch transformations with xargs, not loops of calls. grep -rl "old_name" src | head -20 to see the blast radius, then one edit per file, not one search per file.

  9. Never sed -i a repository file. Use edit_file: it is exact, previewed, and audited. sed -i also differs by platform (BSD needs sed -i '', GNU takes sed -i), which makes it a portability bug on top of an audit hole. Stream edits (sed -n '10,40p', sed 's/x/y/' in a pipe) are fine anywhere.

  10. Check the platform line before GNU-only flags. The environment note says macos or linux. On macos the stock tools are BSD: no grep -P (use grep -E), different date arithmetic (-v+1d, not -d "+1 day"), no xargs -d. When a one-liner needs GNU behavior, reshape it around portable flags instead of assuming Linux.

  11. On Windows there is no sed or grep. Stock tools are PowerShell: Select-String for grep, Get-Content -Tail 20 for tail. Ask the environment note, not habit, which world you are in.

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. 2d ago First seen · 59 lines · 0 tokens per session scan A aa2762677218

Subscribe to this mod's changes

cli-toolbox is a skill published in the GitHub repository Zfinix/aster (40 stars, last pushed 7d ago), licensed Apache-2.0. It adds 55 tokens to every session and 1,002 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

new-plugin

Factory line for adding a new HAR verification plugin (like playwright or rocketsim) for any framework — research the framework docs, build the template under src/templates/plugins/, register it everywhere, validate on a real repository, and open a PR. Use when asked to add/create a plugin, plugin template, or…

os-factory/har · 89 tokens

factory-line

Factory line for executing one station of a declared multi-station program — read the installed line bundle (har line status), plan parallel work into isolated HAR slots, run the cumulative gate with har line gate, and hand off for human review. Use when asked to "run a factory line", "run the next station", "execute…

os-factory/har · 101 tokens

v1-milestone

Factory line for executing one milestone of the HAR v1.0.0 refactor (epic os-factory/har#225) — plan the wave of parallel subagents, implement each issue in its own HAR slot, ship stacked PRs, run the fixture-e2e milestone gate, and hand off for review. Use when asked to "run the next v1 milestone", "work on v1.0.0"…

os-factory/har · 110 tokens

lemma-user

Operate an existing Lemma pod from the CLI as a human or agent: inspect resources, query tables and records under RLS, search and read pod files (converted markdown, page images), run functions and workflows, submit waiting workflow forms, chat with pod agents, run first-party tools, and execute third-party connector…

lemma-work/lemma-platform · 82 tokens

lemma-builder

Design and build complete Lemma pods: model tables/files/functions/agents/workflows/schedules/connectors/surfaces/apps from a problem statement, author a local pod bundle, import progressively with the Lemma CLI, and verify every layer. Use for pod design, creation, restructuring, import/export, and app development.…

lemma-work/lemma-platform · 85 tokens

lemma-research

Run rigorous, source-backed research in an existing Lemma pod. Use for investigations, literature or market scans, policy and product research, fact-checking, comparisons, current-information questions, and updates to prior research that require pod files, workspace material, or web sources; exact citations; explicit…

lemma-work/lemma-platform · 89 tokens