К основному содержанию
скилл GitHub Copilot официальный · GitHub

mkdocs-translations — скилл для GitHub Copilot: перевод документации

Переводит всю документацию MkDocs на заданный язык: копирует структуру папок, сохраняет Markdown и правит конфиг i18n. Пригодится, если у вас docs на английском, а нужна ещё пара локалей.

Установить в GitHub Copilot · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add github/awesome-copilot --skill mkdocs-translations
Открыть на GitHub

Что делает mkdocs-translations

Скилл превращает GitHub Copilot в технического переводчика. Вы называете язык и код локали (es, fr, pt-BR, ko), и агент проходит по docs/docs/en и docs/docs/includes/en, переводит каждый файл по очереди и складывает результат в новую папку с этим кодом. Структура каталогов и имена файлов остаются теми же.

Перед созданием файлов агент заводит ветку git checkout -b docs-translation-. В каждом переведённом файле сохраняются заголовки, блоки кода, метаданные и ссылки, а в конце дописывается строка о том, чем сделан перевод. Пути к include-файлам переписываются на новую локаль, например includes/en/introduction-event.md → includes/es/introduction-event.md. Отдельным шагом идёт правка mkdocs.yml: новая запись locale в плагине i18n плюс nav_translations и admonition_translations.

Работа идёт без остановок на подтверждения — агент не спрашивает разрешения на каждый файл и не придирается к линтингу Markdown. Это удобно на большом объёме и неудобно, если вы хотите вычитывать каждую страницу по ходу. Ставьте, когда документация уже стабильна и перевод нужен целиком; для пары абзацев проще перевести вручную.

Какие задачи решает

  • перевести всю документацию MkDocs на новый язык
  • сохранить структуру папок и Markdown при переводе
  • обновить пути к include-файлам под новую локаль
  • добавить локаль в плагин i18n в mkdocs.yml
  • перевести nav и admonition для мультиязычного сайта

Примеры запросов агенту

  • Переведи документацию из docs/docs/en на бразильский португальский, код pt-BR
  • Сделай французскую версию docs: docs/docs/en и docs/docs/includes/en
  • Добавь локаль es в mkdocs.yml и переведи навигацию

Как установить mkdocs-translations

1Через Skills CLI (Vercel)

npx skills add github/awesome-copilot --skill mkdocs-translations

2GitHub CLI

gh skill install github/awesome-copilot mkdocs-translations

3Вручную: положить файлы

.github/skills/mkdocs-translations/SKILL.md

Из того же набора554

Весь набор →
git-commit официальный github Скилл разбирает изменения Git, выбирает связанные файлы и создаёт коммит в формате Conventional Commits. Пригодится, когда нужно закоммитить одну или несколько логических частей изменений. GitHub Copilot 47 165установок excalidraw-diagram-generator официальный github Скилл превращает описание на обычном языке в диаграмму Excalidraw. Подойдёт, когда нужно показать процесс, связи между объектами или устройство системы. GitHub Copilot 31 639установок multi-stage-dockerfile официальный github Скилл помогает создавать многоэтапные Dockerfile для разных языков и фреймворков. Пригодится, когда важны размер и состав runtime-образа. GitHub Copilot 29 688установок documentation-writer официальный github Скилл для создания технической документации по фреймворку Diátaxis: туториалы, гайды, справки и объяснения. Предлагает структуру перед написанием. GitHub Copilot 27 757установок prd официальный github Собирает из идеи структурированный PRD с пользовательскими историями, техническими требованиями и рисками. Подходит для планирования новых функций, в том числе с AI. GitHub Copilot 24 035установок refactor официальный github Скилл помогает менять структуру кода без изменения внешнего поведения. Подойдёт для постепенной уборки сложных функций, дублирования и кодовых запахов. GitHub Copilot 22 321установок java-springboot официальный github Задаёт практики разработки Spring Boot-приложений: от структуры проекта до тестов и безопасности. Пригодится, когда Copilot пишет или проверяет Java-код. GitHub Copilot 21 272установок create-readme официальный github Скилл изучает проект и создаёт структурированный README.md. Подойдёт, когда документацию нужно собрать по коду и файлам проекта. GitHub Copilot 19 081установок

Похожие

prompt-master nidhinjs Скилл пишет и улучшает промпты под конкретный ИИ-инструмент. Подключайте его, когда нужно подготовить запрос для Claude Code, Cursor или другого поддерживаемого инструмента. Claude Code CX Codex Cursor +1 3 900установок grill-with-docs Matt Pocock Скилл проводит жёсткое интервью по плану или дизайну и по ходу создаёт ADR и глоссарий. Подойдёт перед началом сложной разработки. Claude Code 1 219 756установок skill-creator официальный anthropics Помогает создать новый скилл, доработать существующий и проверить результат через тестовые промпты и оценки. Claude Code Claude.ai 414 180установок setup-matt-pocock-skills Matt Pocock Скилл настраивает репозиторий для инженерных скиллов Matt Pocock: задаёт трекер задач, метки триажа и расположение доменной документации. Запустите его перед первым использованием остальных скиллов. Claude Code 1 052 851установок handoff Matt Pocock Собирает текущий диалог в документ передачи, чтобы другой агент продолжил работу с нужным контекстом. Нужен при смене сессии или исполнителя. Claude Code 1 038 491установок triage Matt Pocock Скилл проводит issue и внешние PR через роли триажа, проверку и подготовку брифа для агента. Подойдёт мейнтейнеру, который разбирает очередь задач. Claude Code 990 453установок domain-modeling Matt Pocock Скилл помогает уточнять термины проекта, вести GLOSSARY.md и фиксировать архитектурные решения в ADR. Нужен, когда модель предметной области меняется. Claude Code 876 391установок

Вопросы о mkdocs-translations

Как установить mkdocs-translations в GitHub Copilot?

Через npx skills add github/awesome-copilot --skill mkdocs-translations или gh skill install github/awesome-copilot mkdocs-translations. Файл скилла окажется в .github/skills/mkdocs-translations/SKILL.md.

Что делает mkdocs-translations?

Переводит файлы из docs/docs/en и docs/docs/includes/en на указанный язык, повторяя структуру каталогов, и обновляет mkdocs.yml для плагина i18n.

Нужно ли подтверждать каждый файл?

Нет. Скилл переводит файлы один за другим и не запрашивает подтверждений, пока список не закончится.

Исходный текст

SKILL.md · MIT
---
name: mkdocs-translations
description: 'Generate a language translation for a mkdocs documentation stack.'
---

# MkDocs AI Translator

## Role
You are a professional technical writer and translator.

## Required Input  
**Before proceeding, ask the user to specify the target translation language and locale code.**  
Examples:
- Spanish (`es`)
- French (`fr`)
- Brazilian Portuguese (`pt-BR`)
- Korean (`ko`)

Use this value consistently in folder names, translated content paths, and MkDocs configuration updates. Once confirmed, proceed with the instructions below.

---

## Objective  
Translate all documentation from the `docs/docs/en` and `docs/docs/includes/en` folders into the specified target language. Preserve the original folder structure and all Markdown formatting.

---

## File Listing and Translation Order

The following is the task list you must complete. Check each item off as it is done and report that to the user.

- [ ] Begin by listing all files and subdirectories under `docs/docs/en`.
- [ ] Then list all files and subdirectories under `docs/docs/includes/en`.
- [ ] Translate **every file** in the list **one by one** in the order shown. Do not skip, reorder, or stop after a fixed number of files.
- [ ] After each translation, **check whether there are remaining files** that have not yet been translated. If there are, **continue automatically** with the next file.
- [ ] Do **not** prompt for confirmation, approval, or next steps—**proceed automatically** until all files are translated.
- [ ] Once completed, confirm that the number of translated files matches the number of source files listed. If any files remain unprocessed, resume from where you left off.

---

## Folder Structure and Output

Before starting to create **any** new files, create a new git branch using the terminal command `git checkout -b docs-translation-<language>`.

- Create a new folder under `docs/docs/` named using the ISO 639-1 or locale code provided by the user.  
  Examples:  
  - `es` for Spanish  
  - `fr` for French  
  - `pt-BR` for Brazilian Portuguese
- Mirror the exact folder and file structure from the original `en` directories.
- For each translated file:
  - Preserve all Markdown formatting, including headings, code blocks, metadata, and links.
  - Maintain the original filename.
  - Do **not** wrap the translated content in Markdown code blocks.
  - Append this line at the end of the file:  
    *Translated using GitHub Copilot and GPT-4o.*
  - Save the translated file into the corresponding target language folder.

---

## Include Path Updates

- Update include references in files to reflect the new locale.  
  Example:  
    `includes/en/introduction-event.md` → `includes/es/introduction-event.md`  
  Replace `es` with the actual locale code provided by the user.

---

## MkDocs Configuration Update

- [ ] Modify the `mkdocs.yml` configuration:
  - [ ] Add a new `locale` entry under the `i18n` plugin using the target language code.
  - [ ] Provide appropriate translations for:
    - [ ] `nav_translations`
    - [ ] `admonition_translations`

---

## Translation Rules

- Use accurate, clear, and technically appropriate translations.
- Always use computer industry-standard terminology.  
  Example: prefer "Stack Tecnológica" over "Pila Tecnológica".

**Do not:**
- Comment on, suggest changes for, or attempt to fix any formatting or Markdown linting issues.  
  This includes, but is not limited to:
  - Missing blank lines around headings or lists
  - Trailing punctuation in headings
  - Missing alt text for images
  - Improper heading levels
  - Line length or spacing issues
- Do not say things like:  
  _"There are some linting issues, such as…"_
  _"Would you like me to fix…"_
- Never prompt the user about any linting or formatting issues.
- Do not wait for confirmation before continuing.
- Do not wrap the translated content or file in Markdown code blocks.

---

## Translating Includes (`docs/docs/includes/en`)

- Create a new folder under `docs/docs/includes/` using the target language code provided by the user.
- Translate each file using the same rules as above.
- Maintain the same file and folder structure in the translated output.
- Save each translated file in the appropriate target language folder.

© github · MIT · github/awesome-copilot

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой