Learn-skills.dev cli

Route terminal work to the narrowest CLI instead of generic shell patterns. Use this skill when the user asks to search with `rg` or `fd`, rewrite text with `sd`, `comby`, or `ast-grep`, inspect output with `head` or `less`, fetch files with `wget`, transform JSON or YAML with `jq` or `yq`, pick items with `fzf`, compare code with `difftastic`, lint shell with `shellcheck`, or measure a repo with `scc`.

install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/aaronflorey/agent-skills/cli" ~/.claude/skills/neversight-learn-skills-dev-cli && rm -rf "$T"
manifest: data/skills-md/aaronflorey/agent-skills/cli/SKILL.md
source content

CLI Router

Route the task to the narrowest tool that matches the job. Keep this file small; read

references/
only for the tool you need.

Choose The Tool

ToolUse it forAvoid whenReference
fd
Fast file and path discoveryYou need content matches inside files
references/fd.md
rg
Fast text search across filesYou need structural or syntax-aware matching
references/ripgrep.md
sd
Simple literal or regex replacementThe change depends on code structure or multiline context beyond regex comfort
references/sd.md
comby
Lightweight structural rewrites across languagesYou need full syntax parsing guarantees
references/comby.md
ast-grep
AST-aware code search, lint, and rewriteYou need type-aware or semantic analysis
references/ast-grep.md
jq
Query and transform JSONThe source is YAML-first
references/jq.md
yq
Query and edit YAML, convert structured formatsYou need exact comment preservation or full
jq
parity assumptions
references/yq.md
wget
Non-interactive download, retry, resume, mirrorYou need browser automation or interactive login flows
references/wget.md
head
Quick non-interactive samplingYou need interactive search, paging, or follow mode
references/head.md
less
Interactive paging, search, and followThe flow must stay unattended
references/less.md
fzf
Interactive fuzzy selection for humansThe agent must run headless or deterministically
references/fzf.md
difftastic
Syntax-aware diffs for human reviewYou need an applicable patch or machine-stable diff format
references/difftastic.md
shellcheck
Shell linting and safety checksYou need formatting rather than diagnostics
references/shellcheck.md
scc
Repo language inventory, LOC, and rough complexityYou need semantic code review or profiling
references/scc.md

Escalate Deliberately

  • Use
    fd
    for paths, then
    rg
    for text.
  • Use
    sd
    for simple replacements,
    comby
    when regex gets brittle, and
    ast-grep
    when syntax precision matters.
  • Use
    jq
    for JSON and
    yq
    for YAML-first edits or format conversion.
  • Use
    head
    for quick samples; switch to
    less
    only when a human needs to page or search.
  • Treat
    fzf
    ,
    less
    , and
    difftastic
    as human-oriented tools unless the task explicitly benefits from interactive review.

Load More Detail Only When Needed

  • Read
    references/api-surface.md
    for command/flag selection across the toolset.
  • Read
    references/common-use-cases.md
    for ready-made task patterns.
  • Read
    references/troubleshooting-workarounds.md
    for common failure modes.
  • Read the tool-specific reference for examples, sharp edges, and escalation boundaries.