translate

Translate English Markdown articles into Chinese with rewritten image references.

4.7k|260|Updated Dec 29, 2021
One-click install
npx skills add https://github.com/beatai-org/beatai --skill translate-beatai-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: translate
Source: https://github.com/beatai-org/beatai/tree/main/.claude/skills/translate
Command: npx skills add https://github.com/beatai-org/beatai --skill translate-beatai-org

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires yaml, and includes scripts (resource) components.

What problem does it solve?

This Skill removes the repetitive work of translating English Markdown articles into readable Chinese, while preserving frontmatter structure and image references.

Core Features & Use Cases

  • Single-article translation execution: Produces a per-slug Chinese Markdown output with a consistent translated date field.
  • Preserves and rewrites assets safely: Copies per-article assets and rewrites image references into ./images/<slug>/ so links remain valid.
  • Quality gate with verification: Runs a verify step to catch leftover ./assets/ references, missing images, incorrect frontmatter shape/order, and untranslated titles.

Quick Start

Use the translate skill to translate the article slug 'nomnow-demo' by ensuring you provide slugs, input_root, output_root, and date in your caller handoff request.

Frequently Asked Questions about translate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I translate English Markdown articles into Chinese while preserving frontmatter?

To translate English Markdown articles into Chinese while preserving frontmatter, use this Skill to generate per-slug translated files with correct frontmatter structure. It automatically rewrites image references and adds a mandatory translated date field.

What is the best way to handle image references during Markdown article localization?

Handling image references during Markdown article localization requires rewriting links into ./images/<slug>/ directories. This Skill safely copies per-article assets and updates references to ensure links remain valid in the translated output.

How do I verify Markdown translation quality and catch untranslated content?

To verify Markdown translation quality, run the built-in translate-verify validation step. It catches leftover ./assets/ references, missing images, incorrect frontmatter shape, and untranslated titles to ensure complete article localization.

Can I batch convert multiple article slugs from an input directory to localized Chinese Markdown?

You can convert individual article slugs from a specified input_root to an output_root directory. The Skill processes per-slug translated Markdown files, requiring you to provide slugs, input paths, output paths, and date in your request.

Why does my translated Markdown file still show residual ./assets/ links?

Translated Markdown files show residual ./assets/ links when the verification step is skipped or fails. The Skill enforces no residual ./assets/ links by rewriting image references into ./images/<slug>/ and validating file consistency.

Do I need YAML dependencies to translate technical writing Markdown files into Chinese?

You need YAML dependency support to translate technical writing Markdown files into Chinese. This dependency is required to correctly preserve, parse, and generate the frontmatter structure in the per-slug translated output files.