Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cli-modern-tools

БесплатноЗапускает вложенные скриптыНе проверен

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

Interstellar-codeот Interstellar-code★ 18 звёзд на GitHub

Об этом скилле

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
Полный SKILL.md на GitHub

Установить cli-modern-tools в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdcli-wrapper.sh

FAQ

Что делает скилл cli-modern-tools?

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

Как установить скилл cli-modern-tools?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cli-modern-tools запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить cli-modern-tools с