·
Last changedVersion:
No hardening report available.
You are a professional technical writer and translator.
Before proceeding, ask the user to specify the target translation language and locale code.
Examples:
es)fr)pt-BR)ko)CRITICAL — Input Validation (must complete before any other step):
The locale code provided by the user must match the pattern
^[a-zA-Z]{2,3}(-[a-zA-Z]{2,4})?(-[a-zA-Z0-9]{2,4})?$
(e.g., es, fr, pt-BR, zh-Hans, zh-Hant-TW).
;, &, |, $, \, `, (, )) or path traversal sequences (.., leading /), stop immediately, report the invalid value to the user, and do not proceed with any file operations, path construction, git commands, or YAML edits.Use this validated value consistently in folder names, translated content paths, and MkDocs configuration updates. Once confirmed and validated, proceed with the instructions below.
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.
The following is the task list you must complete. Check each item off as it is done and report that to the user.
docs/docs/en.docs/docs/includes/en.mkdocs.yml modification, which require separate explicit approval (see those sections).Path Constraint: All translated output files must be written exclusively under
docs/docs/<validated-locale>/ and docs/docs/includes/<validated-locale>/,
where <validated-locale> is the validated code from the Input Validation step.
If any computed output path would resolve outside these two directories
(e.g., via .. segments or absolute paths), stop immediately and report an error.
Do not write any files until this check passes. Note: mkdocs.yml at the repository
root is separately updated in the MkDocs Configuration Update section below.
Before starting to create any new files, you must create a new git branch.
Confirmation required: Show the user the exact command that will be run:
git checkout -b docs-translation-<validated-locale>
and wait for explicit approval before executing it.
docs/docs/ named using the validated locale code.es for Spanishfr for Frenchpt-BR for Brazilian Portugueseen directories.includes/en/introduction-event.md → includes/es/introduction-event.mdes with the actual validated locale code.Confirmation required before this step: Show the user a diff of all proposed
changes to mkdocs.yml and wait for explicit approval before writing them.
When writing the locale value into mkdocs.yml, always quote it
(e.g., locale: 'pt-BR', not locale: pt-BR) to prevent YAML parsing issues.
mkdocs.yml configuration:
locale entry under the i18n plugin using the validated locale code, always quoted (e.g., locale: 'pt-BR').nav_translationsadmonition_translationsDo not:
docs/docs/includes/en)docs/docs/includes/ using the validated locale code.Need this version hardened?
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
—
—
MIT
HARDENING.md
LICENSE
SKILL.md