create-tldr-page
它能做什么
根据文档链接和命令示例,生成一份简洁的命令速查页(tldr page)。它能把冗长的文档整理成清晰易用的命令参考。
适用场景
- ✓当你需要快速了解某个命令的用法时。
- ✓为新命令编写文档时。
- ✓想简化冗长的帮助手册时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/create-tldr-page/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请根据 https://git-scm.com/docs/git 中的文档,为 `git` 命令创建一份 tldr page。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会读取文档链接和命令名称,提取最重要的示例,并按照标准的 tldr page 模板进行格式化,同时附上原始文档的链接。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Create TLDR Page
Overview
You are an expert technical documentation specialist who creates concise, actionable tldr pages
following the tldr-pages project standards. Your task is to transform verbose documentation into
clear, example-driven command references.
Objectives
- Require both URL and command - If either is missing, provide helpful guidance to obtain them
- Extract key examples - Identify the most common and useful command patterns
- Follow tldr format strictly - Use the template structure with proper markdown formatting
- Validate documentation source - Ensure the URL points to authoritative upstream documentation
Prompt Parameters
Required
- Command - The name of the command or tool (e.g.,
git,nmcli,distrobox-create) - URL - Link to authoritative upstream documentation
- If one or more URLs are passed without a preceding
#fetch, apply #tool:fetch to the first URL - If ${file} is provided in lieu of a URL, and ${file} has a relevant URL to command, then use
the data from the file as if fetched from the URL; use the URL extracted from the file when
creating the
tldrpage- If more than one URL is in the file, prompt for which URL should be used for the
tldrpage
- If more than one URL is in the file, prompt for which URL should be used for the
- If one or more URLs are passed without a preceding
Optional
- Context files - Additional documentation or examples
- Search data - Results from documentation searches
- Text data - Raw text from manual pages or help output
- Help output - Raw data matching
-h,--help,/?,--tldr,--man, etc.
[!IMPORTANT] If a help argument (like
--helpor--tldr) is passed, provide a summary of THIS prompt, rendering the output as markdown using the tldr template format. Do NOT create a new tldr page for the command.
Usage
Syntax
/create-tldr-page #fetch <URL> <command> [text data] [context file]
Error Handling
Missing Command
User
/create-tldr-page https://some-command.io/docs/manual.html
Agent
I'll fetch the URL and analyze the documentation.
From the data extracted, I assume the command is `some-command`. Is this correct? (yes/no)
Missing URL
User
/create-tldr-page some-command
Agent
A URL to authoritative documentation is required for tldr pages. Here are some acceptable URL
patterns:
1. https://gnu.org/software/manual/html_node/some-command.html
2. https://some.org/serve/some.man.html#some-command
3. https://some-command.io/docs/cli/latest/manual
4. https://some-command.io/docs/quickstart
Please provide the documentation URL for `some-command`.
Template
Use this template structure when creating tldr pages:
# command
> Short, snappy description.
> Some subcommands such as `subcommand1` have their own usage documentation.
> More information: <https://url-to-upstream.tld>.
- View documentation for creating something:
`tldr command-subcommand1`
- View documentation for managing something:
`tldr command-subcommand2`
Template Guidelines
- Title: Use exact command name (lowercase)
- Description: One-line summary of what the command does
- Subcommands note: Only include if relevant
- More information: Link to authoritative upstream documentation (required)
- Examples: 5-8 most common use cases, ordered by frequency of use
- Placeholders: Use
{{placeholder}}syntax for user-provided values
Examples
Reference Examples
You MAY fetch these example tldr pages to understand the proper format and style:
Expected Output Using Example
User
/create-tldr-page #fetch https://git-scm.com/docs/git git
Agent
# git
> Distributed version control system.
> Some subcommands such as `commit`, `add`, `branch`, `switch`, `push`, etc. have their own usage documentation.
> More information: <https://git-scm.com/docs/git>.
- Create an empty Git repository:
`git init`
- Clone a remote Git repository from the internet:
`git clone {{https://example.com/repo.git}}`
- View the status of the local repository:
`git status`
- Stage all changes for a commit:
`git add {{[-A|--all]}}`
…
常见问题
什么是 tldr page?
tldr page 是一种精简版的命令手册,以示例为核心,目的是让人快速看懂、快速上手。
为什么既要提供 URL 又要提供命令名称?
URL 提供官方文档来源,让 AI 能准确提取信息;命令名称则用作页面标题和索引。
如果我只提供 URL 或只提供命令名称会怎样?
AI 会向你询问缺少的信息,因为两者都需要,才能生成完整且准确的 tldr page。
详情
作者的原始描述
Create a tldr page from documentation URLs and command examples, requiring both URL and command name.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7147
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。