cli-tools
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCLI Tools Skill
CLI 工具技能
Install, audit, update, and recommend CLI tools across 77 cataloged entries.
可对77个已收录的CLI工具进行安装、审计、更新和推荐。
Triggers
触发场景
- Reactive: errors -- auto-resolve
command not found - Proactive: "check environment", "install X", "update tools"
- Advisory: Recommend modern alternatives (->
grep,rg->find, JSON->fd)jq
- 被动触发:错误——自动解决
command not found - 主动触发:「检查环境」「安装X」「更新工具」
- 建议触发:推荐现代替代工具(->
grep、rg->find、JSON处理->fd)jq
Preferred Modern Tools
推荐的现代工具
Recommend over legacy equivalents. See for examples.
references/preferred-tools.md| Legacy | Modern | Legacy | Modern |
|---|---|---|---|
| | | |
| | | |
| grep on JSON | | | |
| sed on YAML | | | |
| awk on CSV | | grep for sec | |
| sed on TOML | |
优先推荐替代传统工具。示例详见 。
references/preferred-tools.md| Legacy | Modern | Legacy | Modern |
|---|---|---|---|
| | | |
| | | |
| grep on JSON | | | |
| sed on YAML | | | |
| awk on CSV | | grep for sec | |
| sed on TOML | |
Workflows
工作流程
Missing Tool Resolution
缺失工具解决流程
- Diagnose: ,
which <tool>,command -v <tool>type -a <tool> - Map binary: Check (
references/binary_to_tool_map.md->rg,ripgrep->ansible,ansible-core->batcat)bat - Install:
scripts/install_tool.sh <tool> install - Verify: +
which <tool>; if still missing:<tool> --version, check PATHhash -r
See for full diagnostic steps.
references/resolution-workflow.md- 诊断:、
which <tool>、command -v <tool>type -a <tool> - 映射二进制文件:查看 (
references/binary_to_tool_map.md->rg、ripgrep->ansible、ansible-core->batcat)bat - 安装:
scripts/install_tool.sh <tool> install - 验证:+
which <tool>;若仍未找到:<tool> --version、检查PATHhash -r
完整诊断步骤详见 。
references/resolution-workflow.mdEnvironment Audit
环境审计
Run and , then cross-reference with for per-type tool lists.
scripts/check_environment.sh audit .scripts/detect_project_type.shreferences/project_type_requirements.md运行 和 ,然后对照 查看对应项目类型的工具列表。
scripts/check_environment.sh audit .scripts/detect_project_type.shreferences/project_type_requirements.mdBatch Update
批量更新
scripts/auto_update.shscripts/install_tool.sh <tool> update使用 (更新所有包管理器)或 (更新单个工具)。
scripts/auto_update.shscripts/install_tool.sh <tool> updateTroubleshooting
故障排查
| Symptom | Fix |
|---|---|
| Installed but not found | |
| No sudo | |
Debian | Symlink to |
See for Docker fallbacks and permission workarounds.
references/troubleshooting.md| 症状 | 解决方法 |
|---|---|
| 已安装但无法找到 | |
| 无sudo权限 | |
Debian系统中 | 创建符号链接至 |
Docker回退方案及权限 workaround 详见 。
references/troubleshooting.mdScripts
脚本
| Script | Purpose |
|---|---|
| Install/update/uninstall/status |
| Batch update package managers |
| Audit environment and PATH |
| Detect project type |
| 脚本 | 用途 |
|---|---|
| 安装/更新/卸载/查看状态 |
| 批量更新包管理器 |
| 审计环境及PATH |
| 检测项目类型 |
References
参考文档
| File | Purpose |
|---|---|
| Binary-to-catalog mapping |
| Tools per project type |
| Modern tool usage patterns |
| Diagnostic/install/verify flow |
| PATH, permissions, fallbacks |
| 文件 | 用途 |
|---|---|
| 二进制文件与工具目录的映射 |
| 各项目类型所需工具列表 |
| 现代工具使用模式 |
| 诊断/安装/验证流程 |
| PATH配置、权限问题、回退方案 |