Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
Initial release with newline encoding fix
What This Skill Does
A guide for AI agents to prefer modern CLI utilities over legacy POSIX tools. Covers ten tools: fdfind, batcat, sd, ast-grep, jc, gron, yq, difftastic, tealdeer, and html2text. Reduces token consumption and avoids regex escaping errors during shell operations.
Modern replacements produce cleaner, more structured output than legacy tools like find, sed, and grep, which reduces token waste and eliminates common escaping bugs in agent-driven shell tasks.
When to use it
- Searching files by name without complex find syntax
- Viewing source files with syntax highlighting in terminal
- Find-and-replace across files without escaping regex special characters
- Searching code by AST structure rather than raw text
- Converting YAML or JSON configs during automated workflows
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: rename all occurrences of 'OldConfig' to 'NewConfig' across TypeScript files
- 1Use fdfind to list all .ts files in the project
- 2Run ast-grep to locate 'OldConfig' as an identifier using AST patterns
- 3Apply sd to replace the string without regex escaping issues
- 4Use batcat to review changed files with syntax highlighting
All TypeScript files updated with 'NewConfig', changes visually confirmed
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.