dist/pi/skills/using-modern-cli/SKILL.md
Prefer modern CLI tools for shell and file workflows — rg, fd, bat, eza, sd, dust, procs, and delta over legacy grep/find/cat/ls/sed/du/ps/diff. Use when writing bash scripts, optimizing command chains, or replacing legacy Unix tools. NOT for repo-wide code search, architecture review, AST/codegraph/GitNexus evidence, or application logic.
npx skillsauth add alexei-led/claude-code-config using-modern-cliInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use faster, clearer command-line tools for shell workflows. This skill is about operational ergonomics, not codebase analysis. Repo-wide code search, structural AST evidence, code graphs, GitNexus, and architecture evidence are out of scope.
Use this skill for:
Do not use this skill for:
For those, use a dedicated codebase-analysis or architecture review workflow.
rg instead of grep: fast literal/regex search, respects
.gitignore.fd instead of find: simpler syntax, ignores .git.bat instead of cat: syntax highlighting and line numbers.eza instead of ls: git status and tree view.sd instead of sed: clearer regex and preview mode.dust instead of du: sorted visual tree.procs instead of ps: tree view and sortable columns.delta instead of raw diff: syntax-highlighted diffs.# Text search
rg "TODO" --type py
rg -C 3 "error" logs/
rg -l "OpenAI" docs/**/*.md
# File discovery
fd -e py
fd -e json src/
fd README .
# Viewing and listing
bat -n pyproject.toml
eza -la --git
eza --tree -L 2
# Preview-only replacement. Do not apply without explicit approval.
sd -p 'colour' 'color' docs/**/*.md
# Disk and processes
dust -d 2
procs --tree
rg for plain text, docs, logs, comments, and config keys.fd for file or directory discovery.sd -p for replacement previews. Do not emit a non-preview sd command
unless the user explicitly asked to apply the change.brew install ripgrep fd bat eza sd dust procs git-delta
tools
Idiomatic shell development for POSIX sh, Bash, Zsh, Fish, hooks, CI shell steps, and scriptable CLI glue. Use when writing or changing `.sh`, `.bash`, `.zsh`, `.fish`, `.bats`, shell functions, shell pipelines, or command-runner recipes. Emphasizes portability, quoting, safe filesystem/process handling, non-TUI CLI tools, ShellCheck, shfmt, Bats, and ShellSpec. NOT for Python, TypeScript, Go, web code, or infrastructure operations.
tools
Use when planning, executing, checkpointing, finishing, or inspecting lightweight spec-driven work. Runs one task at a time using `.spec/` markdown files and the bundled `specctl` helper. NOT for broad product discovery beyond a short requirement interview.
testing
Author, inspect, troubleshoot, and review infrastructure across IaC, Kubernetes, cloud resources, containers, CI/CD, and Linux hosts. Use when changing Terraform/OpenTofu, Kubernetes, Helm, Kustomize, Dockerfiles, GitHub Actions, AWS, GCP, Cloud Run, BigQuery, IAM, logs, instances, or service health. NOT for deploy/apply/rollback workflows (see deploying-infra). NOT for shell scripts or generic command pipelines (see writing-shell).
development
Configure safe git workflow hygiene: pre-commit/pre-push hooks, Gitleaks secret scanning, .gitignore rules, local git config, and guardrails. Use when setting up git hooks, gitleaks/git leaks, staged pre-commit checks, pre-push validation, core.hooksPath, .gitignore, or git config best practices. NOT for creating commits (use committing-code), cleaning branches/worktrees (use cleanup-git), or creating worktrees (use using-git-worktrees).