Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

cli-modern-tools

FreeRuns bundled scriptsNot checked

Auto-suggest modern CLI tool alternatives (bat, eza, fd, ripgrep) for faster, more efficient command-line operations with 50%+ speed improvements

Interstellar-codeby Interstellar-code★ 18 GitHub stars

About this skill

CLI Modern Tools Skill

Purpose: Automatically suggest and use modern CLI alternatives for 50%+ speed improvements and better UX

⚠️ CRITICAL: Claude's Internal Tool Usage

Before Claude executes ANY bash command internally, MUST check:

If Claude wants to use... Use this instead Tool Type
bash find . -name "*.js" Glob tool pattern="**/*.js" Claude Code Tool
bash grep -r "pattern" Grep tool pattern="pattern" Claude Code Tool
bash cat file.txt Read tool file_path="file.txt" Claude Code Tool
bash ls -la bash eza --long --git (if available) Bash Command

Why this matters:

  • Skills only auto-activate on user messages, NOT on Claude's internal tool calls
  • Claude must consciously check this table before executing bash commands
  • Prevents bypassing token-efficient Claude Code tools

See CLAUDE.md "Tool Usage Guidelines" for complete replacement rules.


🎯 Core Concept

Replace traditional Unix commands with modern, faster, feature-rich alternatives:

  • bat > cat (syntax highlighting)
  • eza > ls (git status, icons)
  • fd > find (18x faster)
  • ripgrep > grep (10x faster) [Note: Use Grep tool in Claude Code]
  • watchexec for automation

🔧 BASH COMMAND ATTRIBUTION PATTERN

CRITICAL: Before executing EACH bash command, MUST output:

🔧 [cli-modern-tools] Running: <command>

Examples:

🔧 [cli-modern-tools] Running: bat app.js
🔧 [cli-modern-tools] Running: eza --long --git
🔧 [cli-modern-tools] Running: fd "\.tsx$"
🔧 [cli-modern-tools] Running: watchexec -e php ./vendor/bin/pest

Why: This pattern helps users identify which skill is executing which command, improving transparency and debugging.

🎨 VISUAL OUTPUT FORMATTING

IMPORTANT: Use MINIMAL colored output (2-3 calls max) to prevent screen flickering!

Use Colored-Output Skill

Example formatted output (MINIMAL PATTERN):

# START: Header only
bash .claude/skills/colored-output/color.sh skill-header "cli-modern-tools" "Replacing traditional CLI commands..."

# MIDDLE: Regular text (no colored calls)
Using bat instead of cat for syntax highlighting...
Using eza instead of ls for git status integration...
Using fd instead of find for faster file search...

# END: Result only
bash .claude/skills/colored-output/color.sh success "" "Modern CLI tools applied"

WHY: Each bash call creates a task in Claude CLI, causing screen flickering. Keep it minimal!


🚀 Auto-Activation Triggers

CRITICAL: This skill auto-activates on traditional command detection and AUTOMATICALLY replaces them.

⚙️ FEATURE TOGGLE CONTROL: Before suggesting any replacement, CHECK the feature_config in the frontmatter above:

  • If bat: enabled → Suggest bat
  • If bat: disabled → Use traditional cat (no suggestion)
  • Same logic for eza, fd, ripgrep, watchexec

Pattern 1: File Viewing

Triggers: cat, view file, show file, display contents Action: IF bat: enabled → use bat instead of cat, ELSE use cat Implementation:

# ❌ Traditional
cat app.js

# ✅ Automatic replacement (IF bat: enabled)
bat app.js  # Syntax highlighting, line numbers

# ⬜ Fallback (IF bat: disabled)
cat app.js  # Use traditional command

Pattern 2: Directory Listing

Triggers: ls, list files, show directory, list dir Action: IF eza: enabled → use eza --long --git instead of ls, ELSE use ls Implementation:

# ❌ Traditional
ls -la app/Models/

# ✅ Automatic replacement (IF eza: enabled)
eza --long --git app/Models/  # Git status, icons, colors

# ⬜ Fallback (IF eza: enabled)
ls -la app/Models/  # Use traditional command

Pattern 3: File Search (Bash Tool Only)

Triggers: find, search files, locate file, find file named Action: IF fd: enabled → use fd instead of find, ELSE use find Implementation:

# ❌ Traditional
find . -name "*.tsx"

# ✅ Automatic replacement (IF fd: enabled, Bash tool only)
fd "\.tsx$"

# ⬜ Fallback (IF fd: disabled)
find . -name "*.tsx"

# ✅ For Claude Code tools (NOT bash)
# Use Glob tool instead

Pattern 4: Content Search

Triggers: grep, search in files, search content, find text Action: ALWAYS use Grep tool, NEVER bash grep/ripgrep (ripgrep setting ignored for Claude Code tools) Implementation:

❌ bash -c "grep -r 'TODO' app/"
✅ [Use Grep tool with pattern="TODO" path="app/"]

Note: ripgrep feature toggle only affects bash command suggestions, not Claude Code tools

Pattern 5: File Watching

Triggers: watch files, auto-run, continuous testing, on file change Action: IF watchexec: enabled → use watchexec for automation, ELSE suggest manual approach Implementation:

# ❌ Traditional (manual)
# Run tests manually after each change

# ✅ Automatic replacement (IF watchexec: enabled)
watchexec -e php ./vendor/bi
Full SKILL.md on GitHub

Install cli-modern-tools in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

README.mdcli-wrapper.sh

FAQ

What does the cli-modern-tools skill do?

Auto-suggest modern CLI tool alternatives (bat, eza, fd, ripgrep) for faster, more efficient command-line operations with 50%+ speed improvements

How do I install the cli-modern-tools skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the cli-modern-tools skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare cli-modern-tools with