agentleFS
shalombshalomb/agent-skills/skills/modern-cli-overrides/SKILL.md

modern-cli-overrides

Skill3 starsChanged 3 months agoMITView on GitHub

Use this skill to upgrade and enforce the use of modern Rust/Go CLI equivalents over traditional POSIX coreutils. Trigger this whenever you are about to use grep, find, awk, or curl in a shell command. You MUST read this skill to learn the syntax for rg (ripgrep), fd, sg (ast-grep), jq, yq, and httpie, which are significantly faster, safer, and better suited for codebases. Must always apply!

  • Sends data out

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When generating shell commands or writing scripts, apply the following tool substitutions:

    line 19
  2. Distinctive:

    Never attempt to parse or extract values from JSON files using text-processing tools.

    line 36
  3. Distinctive:

    Never attempt to parse or extract values from YAML files using text-processing tools.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Modern CLI Overrides

As an AI agent, you were likely trained heavily on traditional POSIX tools (grep, find, sed, awk, ls). However, modern development environments use faster, safer, and more intelligent alternatives.

ABSOLUTE RULE: Do not use the traditional tools if a modern equivalent exists in this environment.

The Overrides

When generating shell commands or writing scripts, apply the following tool substitutions:

1. Use rg (ripgrep) instead of grep

  • rg is drastically faster and respects .gitignore by default.
  • DO NOT USE: grep -r "pattern" .
  • USE: rg "pattern"

2. Use fd instead of find

  • fd has a simpler syntax and respects .gitignore.
  • DO NOT USE: find . -name "*.py"
  • USE: fd -e py

3. Use sg (ast-grep) for codebase-wide refactoring

  • Standard regex replacements (sed) are dangerous for code refactoring.
  • For codebase-wide structural refactoring, use sg (ast-grep). See the ast-grep skill.

4. Use jq instead of grep/awk for JSON

  • Never attempt to parse or extract values from JSON files using text-processing tools.
  • DO NOT USE: grep '"key":' file.json | awk '{print $2}'
  • USE: jq '.key' file.json

5. Use yq instead of grep/awk for YAML

  • Never attempt to parse or extract values from YAML files using text-processing tools.
  • DO NOT USE: grep 'key:' file.yaml
  • USE: yq '.key' file.yaml

6. Use httpie (http) instead of curl

  • curl syntax for JSON payloads is tedious and error-prone. httpie provides intuitive syntax, automatic JSON parsing, and avoids escaping hell.
  • DO NOT USE: curl -X POST -H "Content-Type: application/json" -d '{"key":"value"}' api.com
  • USE: http POST api.com key=value

Syntax Reference

For exact flag translations and advanced usage of these modern tools, refer to: references/tool-mappings.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.