create-tldr-page — скилл для GitHub Copilot: установка и примеры
Собирает страницу tldr из документации команды: короткое описание, ссылка на первоисточник и 5–8 примеров вызова.
npx skills add github/awesome-copilot --skill create-tldr-pageЧто делает create-tldr-page
Скилл делает из документации команды страницу tldr. Агент вытаскивает оттуда самые частые варианты вызова, пишет однострочное описание и раскладывает всё по шаблону tldr-pages: заголовок с именем команды, блок > с пояснением, строка со ссылкой на апстрим и 5–8 примеров, отсортированных по частоте использования.
На вход нужны два обязательных элемента: имя команды и ссылка на официальную документацию. Если чего-то не хватает, скилл не придумывает данные, а спрашивает. При одной ссылке он подставляет предполагаемое имя команды и просит подтвердить догадку, при одном имени показывает примеры допустимых адресов документации. Это значит, что на пустом месте страницу не собрать: без первоисточника работа не начнётся. Текст мануала, вывод --help и контекстные файлы можно приложить сверху.
Разметка примеров задана жёстко. Опция и её значение оборачиваются по отдельности: git commit {{[-m|--message]}} {{message_text}}, а не слипшейся парой. Короткий флаг без длинной формы остаётся голым (ls -l), подкоманды обычно не оборачиваются. Есть и ловушка: если передать аргумент вроде --help или --tldr, скилл не станет делать страницу про чужую команду, а перескажет собственный промпт в формате tldr.
Какие задачи решает
- собрать страницу
tldrдля CLI без переписывания мануала руками - вытащить частые варианты вызова из длинной документации
- разложить опции и аргументы по плейсхолдерам
{{...}} - проверить, есть ли имя команды и ссылка на первоисточник
- набросать страницу по сырому выводу
--help
Примеры запросов агенту
- `/create-tldr-page #fetch <URL> nmcli` — собери страницу по этой документации
- `/create-tldr-page` для `distrobox-create`, документация лежит в файле `docs.md`
- `/create-tldr-page --tldr` — покажи, что умеет сам скилл
Как установить create-tldr-page
1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill create-tldr-page2GitHub CLI
gh skill install github/awesome-copilot create-tldr-page3Вручную: положить файлы
.github/skills/create-tldr-page/SKILL.md1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill create-tldr-page -a claude-code2Вручную: положить файлы
~/.claude/skills/create-tldr-page/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/create-tldr-page/
Вручную: положить файлы
.agents/skills/create-tldr-page/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/create-tldr-page/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
Командой платформы
gemini skills install https://github.com/github/awesome-copilot --path skills/create-tldr-pageВручную: положить файлы
.devin/skills/create-tldr-page/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора554
Весь набор →Похожие
Вопросы о create-tldr-page
Как установить create-tldr-page в GitHub Copilot?
Одной командой: npx skills add github/awesome-copilot --skill create-tldr-page. Она ставит скилл в проект, и вызов /create-tldr-page становится доступен агенту.
Что делает create-tldr-page?
Превращает документацию команды в страницу tldr: краткое описание, ссылку на апстрим и 5–8 примеров вызова по шаблону tldr-pages.
Что нужно, чтобы скилл сработал?
Имя команды и ссылка на официальную документацию. Без любого из двух он задаст уточняющий вопрос вместо того, чтобы достраивать факты.
Исходный текст
SKILL.md · MIT
---
name: create-tldr-page
description: 'Create a tldr page from documentation URLs and command examples, requiring both URL and command name.'
---
# 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
```bash
/create-tldr-page #fetch <URL> <command> [text data] [context file]
```
### Error Handling
#### Missing Command
**User**
```bash
/create-tldr-page https://some-command.io/docs/manual.html
```
**Agent**
```text
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**
```bash
/create-tldr-page some-command
```
**Agent**
```text
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:
```markdown
# 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:
* [git](https://raw.githubusercontent.com/jhauga/tldr/refs/heads/main/pages/common/git.md)
* [distrobox-create](https://raw.githubusercontent.com/jhauga/tldr/refs/heads/main/pages/linux/distrobox-create.md)
* [nmcli](https://raw.githubusercontent.com/jhauga/tldr/refs/heads/main/pages/linux/nmcli.md)
### Expected Output Using Example
**User**
```bash
/create-tldr-page #fetch https://git-scm.com/docs/git git
```
**Agent**
````markdown
# 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]}}`
- Commit changes to version history:
`git commit {{[-m|--message]}} {{message_text}}`
- Push local commits to a remote repository:
`git push`
- Pull any changes made to a remote:
`git pull`
- Reset everything the way it was in the latest commit:
`git reset --hard; git clean {{[-f|--force]}}`
````
### Output Formatting Rules
You MUST follow these placeholder conventions:
- **Options with arguments**: When an option takes an argument, wrap BOTH the option AND its argument separately
- Example: `minipro {{[-p|--device]}} {{chip_name}}`
- Example: `git commit {{[-m|--message]}} {{message_text}}`
- **DO NOT** combine them as: `minipro -p {{chip_name}}` (incorrect)
- **Options without arguments**: Wrap standalone options (flags) that don't take arguments
- Example: `minipro {{[-E|--erase]}}`
- Example: `git add {{[-A|--all]}}`
- **Single short options**: Do NOT wrap single short options when used alone without long form
- Example: `ls -l` (not wrapped)
- Example: `minipro -L` (not wrapped)
- However, if both short and long forms exist, wrap them: `{{[-l|--list]}}`
- **Subcommands**: Generally do NOT wrap subcommands unless they are user-provided variables
- Example: `git init` (not wrapped)
- Example: `tldr {{command}}` (wrapped when variable)
- **Arguments and operands**: Always wrap user-provided values
- Example: `{{device_name}}`, `{{chip_name}}`, `{{repository_url}}`
- Example: `{{path/to/file}}` for file paths
- Example: `{{https://example.com}}` for URLs
- **Command structure**: Options should appear BEFORE their arguments in the placeholder syntax
- Correct: `command {{[-o|--option]}} {{value}}`
- Incorrect: `command -o {{value}}`
© github · MIT · github/awesome-copilot