Translate and format blog

From cubxxw/blog · View interactive version

Translate and format blog is an AI agent skill from the GitHub repository cubxxw/blog. Translate an approved Chinese Hugo article into natural English and polish the presentation of either or both language editions. Use after the Chinese article is editorially stable, when creating or updating its matching `content/en/` file, or when improving bilingual Markdown with repository-suppor

How to use this skill

Skill file

Translate and Format Blog

Handle localization and presentation after the article itself is settled. Do not research, expand the argument, or manufacture a stronger author voice.

Pass 1 — Translate

Create the English file at the same path below content/en/ as the source below content/zh/. Do not leave a partial file in content/.

Pass 2 — Format

Read references/rendering.md. Improve either language only where presentation helps comprehension.

When a passage benefits from changing a condition, comparing outcomes, or stepping through state changes, follow the blog skill's interactive explanation guidance. Prefer the native component/data pathway for suitable instructional animation; a translation-only task preserves the existing teaching model rather than inventing a new one.

Verify

Reread the translation once against the source for omissions, added certainty, wrong attribution, broken Markdown, and untranslated visible text.

Run:

npm run frontmatter:check
npm run tags:check
git diff --check

When a shortcode, Mermaid block, raw rendering feature, or new media path changed, also run hugo --minify. Check both files and do not publish, commit, or push without the task's authorization.

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.