Readme i18n

From xixu-me/skills · View interactive version

Readme i18n is an AI agent skill from the GitHub repository xixu-me/skills. Use when the user wants to translate a repository README, make a repo multilingual, localize docs, add a language switcher, internationalize the README, or update localized README variants in a GitHub-style repository.

How to use this skill

Skill file

Localize a repository README.md without breaking the repo mechanics around it.

The default job is translate + wire-up:

This skill is for multilingual README workflows, not general website/app i18n.

Inputs

Expect these inputs when available:

If target languages are not named, inspect existing translated files, selectors, filenames, issues, or prior repo conventions. If that still leaves the target languages unclear, ask once. Do not invent target languages.

Defaults And Decision Rules

Workflow

1. Establish the source README and languages

2. Audit the Markdown structure before translating

Read the source README once as structure, not prose. Open CODE0 and inventory the elements most likely to break:

If the README already has localized siblings, inspect them too before choosing filenames or selector style.

3. Translate only the prose layer

Translate:

Do not translate:

When in doubt, preserve the literal token and translate the surrounding sentence instead.

4. Preserve structure while writing the localized README

5. Rewrite localized anchors and anchor-dependent links

When a translated heading changes, GitHub will generate a different heading ID. After translating headings:

Prefer a small heading wording adjustment over a broken anchor. The section order should still match the source README.

6. Write sibling files using the repo's naming pattern

Default to sibling filenames like:

If the repo already uses a different multilingual naming pattern, keep using it consistently rather than forcing the default pattern.

7. Insert or update the language selector

Open CODE0 before editing selectors.

Placement:

Behavior:

8. Final verification

Before finishing, verify:

Output

Produce:

Maintenance Note

Keep README.md as the canonical source unless the user says otherwise. When the source README changes later, update each localized sibling by diffing the changed prose, then re-check selectors, filenames, and anchor links instead of reformatting the whole file from scratch.

Example Prompts

Example 1

Translate this README into Chinese and add a language switcher. Keep badge URLs, code fences, and all commands exactly as they are.

Example 2

Make the repo multilingual. Add Spanish and Chinese README variants, keep the internal anchor links working, and wire the selector into every file.

Example 3

We already have README.zh.md. Add README.es.md and update the existing selector in place instead of adding a second one.

Common Mistakes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.