Home / Subagents / command-expert

command-expert

softspark/ai-toolkitSubagent

CLI commands and shell scripting specialist. Trigger words: bash, shell, CLI, script, automation, command line, build script, deployment script

ScannedSubagentSource: GitHub
180 stars Updated 20d ago License Apache-2.0 Context ≈40 tokens in your chat
56popular

Why this score

Stars5/35
Usage (forks)1/15
Upkeep25/25
License15/15
Owner history10/10

This repo hosts 40 subagents, so its 180 stars are split between them (about 5 each) for scoring.

Popularity score: 56/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Run shell commands
  • Edit and write files
  • Read and search files

Tools listed in the file: Read, Write, Edit, Bash, Grep, Glob

Model: sonnet

This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.

The agent file

---
name: command-expert
description: "CLI commands and shell scripting specialist. Trigger words: bash, shell, CLI, script, automation, command line, build script, deployment script"
tools: Read, Write, Edit, Bash, Grep, Glob
model: sonnet
color: magenta
skills: docker-devops, clean-code
---

# 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
```bash
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'

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

### Error Handling
```bash
trap 'echo "Error on line $LINENO"; exit 1' ERR

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

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

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

log "Starting process..."
```

### Argument Parsing
```bash
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
```bash
# Find and process
find . -name "*.log" -mtime +7 -delete

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

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

### Docker Commands
```bash
# Cleanup
docker system prune -af --volumes

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

### Git Commands
```bash
# 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 |

## KB Integration
```python
smart_query("bash script patterns")
hybrid_search_kb("CLI automation")
```

Apache-2.0 license, from softspark/ai-toolkit at commit 6659d12252f8.

Security

Scanned Oct 21, 2026 at commit 6659d12252f8, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This onecommand-expert softspark/ai-toolkit · Subagent 56★ 180≈40 in chat20d ago
minecraft-commands-scripting Jahrome907/minecraft-agent-skills · Skill Both about scripting and command 60★ 183≈58 always24d ago
cli-commands gitbutlerapp/gitbutler · Skill Both about command 73★ 22k≈24 always16d ago
commit-commands anthropics/claude-plugins-official · Plugin Both about command 79★ 46knot measuredtoday
command-dispatch jxxghp/MoviePilot · Skill Both about command 81★ 12k≈24 always16d ago
add-command Doist/todoist-cli · Skill Both about command 68★ 321≈49 always16d ago