360 Secure SkillHub
360 安全技能中心

Elite CLI Tools

汇总 fd、bat、sd、ast-grep、jc、gron、yq、difftastic、tealdeer、html2text 十款现代命令行工具的用途与替代关系,指导在文件查找、文件查看、查找替换、结构化数据转换、结构感知差异对比和 HTML 转 Markdown 等场景优先使用,以减少 token 消耗并避免正则转义错误,详细说明见引用文档。

bezkom
bezkom
热度 82.72
最近更新 2026-05-11 17:27:00
分类:效率依赖:代码执行 / 读写文件应用场景:数据处理 / 文件转换 / 工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add elite-tools
Metadata
name
elite-tools
description
Elite CLI tooling for efficient shell operations with optimized token usage. Use when executing shell commands, traversing directories, or manipulating files to minimize token consumption and prevent regex escaping errors. Covers fdfind, batcat, sd, sg/ast-grep, jc, gron, yq, difft, tealdeer, and html2text.
version
0.0.1

Elite CLI Tools

PRIMARY DIRECTIVE

Prefer these modern CLI utilities over legacy POSIX tools (find, cat, sed, grep, awk, diff, man). They produce cleaner, more structured output and reduce token waste.

Note on binary names: On Debian/Ubuntu, some binaries are renamed to avoid conflicts: fd → fdfind, bat → batcat. On other distros they use their upstream names. Adapt accordingly.

Quick Reference

# Tool Replaces Binary Primary Use
1 fd find fdfind Fast file discovery
2 bat cat/less batcat File viewing with syntax highlighting
3 sd sed sd Intuitive find & replace
4 ast-grep grep/rg sg AST-based code search & rewrite
5 jc awk/cut jc CLI output → JSON
6 gron jq (exploration) gron JSON → greppable assignments
7 yq sed on YAML yq YAML/JSON/XML/CSV processor
8 difftastic diff difft Structural syntax-aware diffs
9 tealdeer man tldr Concise command examples
10 html2text raw HTML parsing html2text HTML → clean Markdown

Detailed Tool Guide

For full descriptions, rationale, and extended examples for each tool, read references/tools-deep-dive.md.