360 Secure SkillHub
360 安全技能中心

tldr-cmd: CLI command TL;DR

给定命令名,优先读取其 man 手册、回退到 --help 输出,抽取名称、用法、若干选项和一条示例,打印成固定格式的简短 TL;DR,便于快速回忆命令行用法;不执行目标命令,也不保证手册存在。

terrycarter1985
terrycarter1985
热度 7.65
最近更新 2026-09-06 10:28:32
分类:效率依赖:代码执行应用场景:摘要总结 / 概念解释

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add tldr-cmd
Metadata
name
tldr-cmd
description
Produce a short, copy-paste-ready TL;DR summary of any CLI command from its man page or --help text, so a human (or a coding agent) can learn the essential options without scrolling.
metadata
{"openclaw":{"emoji":"📖","requires":{"bins":["bash","sed","man"]}}}

tldr-cmd

Given a command name, print a short TL;DR summary built from its man page (preferred) or --help output (fallback). No network, no extra dependencies — pure POSIX text munging. Useful when you want "the essentials, now".

When to use it

  • You need a 5-screen-line-or-fewer reminder of how xargs, rsync, ffmpeg, etc. work
  • An agent is about to invoke a command it hasn't used in a while
  • You're reviewing a teammate's one-liner and want the relevant flags fast

What it owns

  • Selecting the best available source: man <cmd> → dwim/command-not-found hint → <cmd> --help
  • Extracting the NAME / SYNOPSIS / a few OPTIONS lines and one worked example

It does not run the command, interpret shell syntax, or guarantee man-page availability.

Run

bin/tldr-cmd <command>
# e.g.
bin/tldr-cmd rsync
bin/tldr-cmd ffmpeg

Output shape

tldr: <command>
about: <short description>
usage: <synopsis>
flags:
  -<x>  <one-line meaning>
  -<y>  <one-line meaning>
example: <one idiomatic invocation>