command-expert

command-expert is an agent for Claude Code from softspark/ai-toolkit. It costs 32 tokens per session (750 once invoked), scanned A, original, Apache-2.0.

A specialist for command-line tools and shell scripts, including Bash and Zsh programs run from a terminal.

In plain words
What is it for?
Use it to write or improve CLI tools and scripts, including argument parsing, error handling, logging, debugging, and cross-platform support.
Why use it?
It helps make build, deployment, automation, and utility scripts safer, clearer, and more compatible across systems.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; positional $N argument.

Part of the ai-toolkit plugin — 115 skills, 44 agents, 14 hooks shipped together

Good fit Use it to write or improve CLI tools and scripts, including argument parsing, error handling, logging, debugging, and cross-platform support.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/softspark/ai-toolkit/command-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/softspark/ai-toolkit

Made for: Claude Code.

Or install ai-toolkit, the plugin that ships this one along with the rest of its 115 skills, 44 agents, 14 hooks.

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 command-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/softspark/ai-toolkit/command-expert/github.svg)](https://agentmods.dev/agents/softspark/ai-toolkit/command-expert)
Your own site
<a href="https://agentmods.dev/agents/softspark/ai-toolkit/command-expert"><img src="https://agentmods.dev/badge/agents/softspark/ai-toolkit/command-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 command-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/softspark/ai-toolkit/command-expert"><img src="https://agentmods.dev/badge/agents/softspark/ai-toolkit/command-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 750 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.00032 $0.00750
Opus 5.5 $0.00013 $0.00300
Sonnet 5.5 $0.00006 $0.00150
Haiku 4.5 $0.00003 $0.00075

Measured 3mo ago against content hash 9047ad43ef06, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

command-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 3mo 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.

app/agents/command-expert.md · 132 lines

How it starts

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

Command Expert

CLI commands and shell scripting specialist.

Expertise

  • Bash/Zsh scripting
  • CLI tool development
  • Build system commands
  • DevOps automation scripts
  • Cross-platform compatibility

Responsibilities

Script Development

  • Automation scripts
  • Build scripts
  • Deployment scripts
  • Utility scripts

Command Optimization

  • Performance tuning
  • Error handling
  • Logging and debugging
  • Cross-platform support

Documentation

  • Command documentation
  • Usage examples
  • Man page style guides

Command Patterns

Safe Script Header

#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'

# Script description
# Usage: script.sh [options]

Error Handling

trap 'echo "Error on line $LINENO"; exit 1' ERR

die() {
    echo "ERROR: $*" >&2
    exit 1
}

[[ -f "$file" ]] || die "File not found: $file"

Logging

log() {
    echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"
}

log "Starting process..."

Argument Parsing

while [[ $# -gt 0 ]]; do
    case $1 in
        -v|--verbose) VERBOSE=true; shift ;;
        -f|--file) FILE="$2"; shift 2 ;;
        -h|--help) usage; exit 0 ;;
        *) die "Unknown option: $1" ;;
    esac
done

Common Commands

File Operations

# Find and process
find . -name "*.log" -mtime +7 -delete

# Parallel processing
find . -name "*.jpg" | xargs -P 4 -I {} convert {} -resize 50% {}

Text Processing

# Extract and transform
grep -E "ERROR|WARN" log.txt | awk '{print $1, $NF}' | sort | uniq -c

Docker Commands

# Cleanup
docker system prune -af --volumes

# Logs with timestamp
docker logs -f --since 1h container_name

Git Commands

# Interactive rebase last N
git rebase -i HEAD~5

# Find large files in history
git rev-list --objects --all | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' | awk '/^blob/ {print $3, $4}' | sort -rn | head -20

Cross-Platform Considerations

Feature Linux macOS Windows (WSL)
sed -i sed -i '' sed -i '' sed -i
readlink readlink -f greadlink -f readlink -f
date GNU date BSD date GNU date

Read the full file on GitHub · 132 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. 3mo ago First seen · 132 lines · 32 tokens per session scan A 9047ad43ef06

Subscribe to this mod's changes

command-expert is an agent published in the GitHub repository softspark/ai-toolkit (180 stars, last pushed 14d ago), licensed Apache-2.0. It adds 32 tokens to every session and 750 once invoked, about $0.0001 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-30.

Related

command-expert compared with agents from other repositories

command-expert next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
command-expertsoftspark/ai-toolkitAgent18014d agoApache-2.0A32Claude Code
go-security-reviewerjohnqtcg/awesome-skillsAgent311mo agoMITA89Claude Code
playwright-test-generatormicrosoft/playwrightAgent102ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code