跳到正文
Skillpedia
写作40k · #7147

create-tldr-page

它能做什么

根据文档链接和命令示例,生成一份简洁的命令速查页(tldr page)。它能把冗长的文档整理成清晰易用的命令参考。

适用场景

  • ✓当你需要快速了解某个命令的用法时。
  • ✓为新命令编写文档时。
  • ✓想简化冗长的帮助手册时。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/create-tldr-page/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/create-tldr-page/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Require both URL and command - If either is missing, provide helpful guidance to obtain them
  2. Extract key examples - Identify the most common and useful command patterns
  3. Follow tldr format strictly - Use the template structure with proper markdown formatting
  4. 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 tldr page
      • If more than one URL is in the file, prompt for which URL should be used for the tldr page

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 --help or --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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能