Mkdocs Translations
GitHubOfficialOriginally contributed by @aaronpowell as prompts/mkdocs-translations.prompt.md; moved into a skill by pull request #761Distributed by GitHub
- Skill
- Workflow
- Documents and content
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The MkDocs AI Translator skill provides a structured workflow for translating entire MkDocs documentation projects. It handles the creation of localized folder structures, translates Markdown content while preserving formatting, updates include paths, and modifies the mkdocs.yml configuration file to support the new language. The process is designed to be autonomous, requiring only the target language and locale code to begin.
What it does
- Creates a dedicated git branch for translation work.
- Mirrors existing folder structures for target languages.
- Translates Markdown files while preserving original formatting and metadata.
- Updates internal include references to point to localized files.
- Configures i18n settings within the mkdocs.yml file.
- Appends a translation attribution to every processed file.
When to use it
- When you need to localize an existing MkDocs documentation site.
- When you want to maintain consistent terminology across multiple language versions.
- When you need to automate the creation of localized documentation paths and configurations.
Advantages
- Ensures consistent folder and file structure across all languages.
- Automates repetitive configuration updates in mkdocs.yml.
- Maintains technical terminology standards throughout the documentation.
- Reduces manual effort by processing files sequentially without requiring constant user input.
Usage examples
- “Translate my documentation to Spanish.”
- The agent will ask for the locale code (e.g., es), create a new git branch, and begin translating all files in the docs/docs/en and includes/en folders into the es directory.
- “I need to add a French version of our docs.”
- The agent will confirm the fr locale, mirror the directory structure, translate all content, update include paths, and configure the i18n settings in mkdocs.yml.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/github/mkdocs-translations/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip mkdocs-translations.zip -d .agents/skills
Documentation by aaronpowell
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:esfor Spanishfrfor Frenchpt-BRfor Brazilian Portuguese
Mirror the exact folder and file structure from the original
endirectories.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
Replaceeswith the actual locale code provided by the user.
MkDocs Configuration Update
[ ] Modify the
mkdocs.ymlconfiguration:[ ] Add a new
localeentry under thei18nplugin 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.
Files
- ATTRIBUTION.mdAdded by AutoGineer1.1 KiB
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md4.2 KiB
Requirements and compatibility
Written for: GitHub Copilot
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Originally contributed by
@aaronpowellas prompts/mkdocs-translations.prompt.mdmoved into a skill by pull request #761
- Publisher
- GitHub (Official)
- Distributed by
- GitHub
- Source
- github/awesome-copilot · skills/mkdocs-translations · commit 797337f
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Contributors
- CypherHK, aaronpowell, derekclair
AutoGineer is not affiliated with or endorsed by aaronpowell or GitHub.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download mkdocs-translations.zip