yq-translate-docs
Skill11 starsChanged 56 days agoMITView on GitHub
维护中英双语文档的语义一致、结构对应和自然表达。
In this repository57 other files it gives its agents.
- AGENTS.mdAGENTS.md
- browser-session-handoffSkill
- deep-researchSkill
- find-skillsSkill
- github-desktop-releaseSkill
- gpt6-pro-consultSkill
- santa-methodSkill
- skill-creatorSkill
- skill-lifecycle-managerSkill
- yq-clear-contextSkill
- yq-pre-push-checksSkill
- yq-simplify-codeSkill
- yq-stable-testsSkill
- yq-windows-trash-cleanerSkill
- electron-developmentSkill
- frontend-designSkill
- netlify-cliSkill
- yq-vps-vpn-deploySkill
- data-scraper-agentSkill
- docxSkill
- general-videoSkill
- github-readme-visualsSkill
- html-design-polishSkill
- hyperframes-animationSkill
- hyperframes-audioSkill
- hyperframes-cliSkill
- hyperframes-coreSkill
- hyperframes-creativeSkill
- hyperframes-keyframesSkill
- hyperframes-registrySkill
- hyperframesSkill
- imagegenSkill
- impeccableSkill
- jianying-editorSkill
- make-interfaces-feel-betterSkill
- media-useSkill
- pdfSkill
- ppt-nanoSkill
- pptxSkill
- remotion-video-creationSkill
- ui-ux-pro-maxSkill
- wechat-articleSkill
- xlsxSkill
- yq-editorial-presentation-htmlSkill
- yq-ui-checksSkill
- yq-article-style-imitationSkill
- yq-doc-maintenanceSkill
- yq-remove-reasoning-leaksSkill
- yq-technical-writingSkill
- contract-reviewSkill
- creating-financial-modelsSkill
- dxy-task-clarifySkill
- healthcare-cdss-patternsSkill
- healthcare-emr-patternsSkill
- healthcare-eval-harnessSkill
- healthcare-phi-complianceSkill
- xhs-pharma-social-listeningSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 12 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Keep an English and Chinese document pair equivalent without forcing either language into the other's sentence structure.
- Distinctive: line 16
Before editing, read the applicable repository instructions and determine:
- Distinctive: line 28
New pair: no counterpart exists. Translate the whole document in sections, keeping the source structure visible as work progresses.
- Distinctive: line 35
Use the current diff, merge base, or repository pairing record to identify what changed.
- Distinctive: line 39
keep obligations, exceptions, limitations, numbers, platform support, release names, and failure behavior equivalent.
- Distinctive: line 40
follow the project's established terminology and introduce an unresolved term explicitly rather than inventing a silent translation.
- Distinctive: line 41
keep commands, code spans, identifiers, URLs, and file names exact unless the repository deliberately localizes them.
- Distinctive: line 42
keep headings, lists, tables, code blocks, and link targets structurally corresponding, but do not require physical line-count equality.
- Distinctive: line 45
Write natural target-language prose first, then compare it with the source clause by clause.
- Distinctive: line 51
Do not copy stale facts merely to make both sides match.
- Distinctive: line 55
Run only the repository's existing relevant checks, such as localized README tests, link checks, documentation rendering, or an established …
- Distinctive: line 57
Do not create a sidecar, hash record, translation manifest, line-count rule, test, script, or CI gate merely because the project has a …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Translate Bilingual Docs
Keep an English and Chinese document pair equivalent without forcing either language into the other's sentence structure. Use the repository's own localization contract; do not import another project's filenames, sidecars, manifests, or validation rules.
This skill is explicit-only. Use it when the user invokes $yq-translate-docs to translate, synchronize, reconcile, rename, or audit bilingual documentation. It covers maintained documentation such as READMEs, guides, release notes, and website pages. Source-code locale dictionaries follow the project's application-i18n workflow unless the user includes them.
While this explicitly invoked workflow is active, apply $yq-technical-writing to both languages so every source proposition survives in natural prose. Before a user-authorized push or readiness claim, invoke $yq-pre-push-checks once for the outgoing change set; do not run it per document or infer permission to commit or push.
Discover the pair contract
Before editing, read the applicable repository instructions and determine:
- the default document, its counterpart, and any legacy alias or redirect;
- whether either side is generated, frozen, or owned by another source;
- the glossary, terminology table, style sample, link policy, and locale-specific assets already used by the project;
- existing localization, link, rendering, or documentation checks.
Either language may be the authored side for a change. Product facts come from current code, configuration, release evidence, or another declared owner; neither language automatically overrides those sources.
Classify the change
- Update: one side changed. Translate only the changed semantic units and preserve reviewed wording outside that diff.
- New pair: no counterpart exists. Translate the whole document in sections, keeping the source structure visible as work progresses.
- Both sides changed: compare both sides with their common base and reconcile each changed unit. Preserve independent valid updates instead of choosing one language for the whole file.
- Rename or delete: move or remove the counterpart and repair navigation, language switches, and inbound links according to repository policy.
- Alias or redirect: preserve its routing role. Do not expand a deliberate compatibility stub into a second maintained translation.
Update an existing pair
Use the current diff, merge base, or repository pairing record to identify what changed. Translate the smallest complete semantic unit that carries the change: a paragraph, list item, table row, heading section, or whole document only when smaller alignment is unsafe.
Preserve meaning clause by clause:
- keep obligations, exceptions, limitations, numbers, platform support, release names, and failure behavior equivalent;
- follow the project's established terminology and introduce an unresolved term explicitly rather than inventing a silent translation;
- keep commands, code spans, identifiers, URLs, and file names exact unless the repository deliberately localizes them;
- keep headings, lists, tables, code blocks, and link targets structurally corresponding, but do not require physical line-count equality;
- allow language-specific screenshots, alt text, examples, and search wording when they serve the same documented fact and audience.
Write natural target-language prose first, then compare it with the source clause by clause. Literal sentence transposition is not fidelity when it produces awkward or misleading text.
Create or reconcile a complete pair
For a new counterpart, translate section by section and read the completed target alone before the final source comparison. For divergent existing files, establish the owner of each changed claim, merge compatible additions, and report unresolved factual conflicts rather than translating one conflict into the other language.
Do not copy stale facts merely to make both sides match. Repair the owning fact first when authorized; otherwise mark the discrepancy and the evidence needed to resolve it.
Validate without adding process
Run only the repository's existing relevant checks, such as localized README tests, link checks, documentation rendering, or an established pairing verifier. If no such check exists, compare headings, code blocks, commands, links, assets, version claims, limitations, and language switches manually.
Do not create a sidecar, hash record, translation manifest, line-count rule, test, script, or CI gate merely because the project has a bilingual pair. Add process only when the user separately requests it or the repository already requires it.
Report the pair and authored side, units translated or reconciled, terminology decisions, deliberate locale-specific differences, unresolved conflicts, and checks actually run.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

