markdown-segment-translator

Segment long Markdown documents, translate each segment, and merge into Chinese.

14|2|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/wordflowlab/agentsdk --skill markdown-segment-translator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: markdown-segment-translator
Source: https://github.com/wordflowlab/agentsdk/tree/main/examples/skills/workspace/skills/markdown-segment-translator
Command: npx skills add https://github.com/wordflowlab/agentsdk --skill markdown-segment-translator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Long Markdown documents exceed token limits for direct translation; this Skill divides content into manageable segments, translates each in sequence, and merges the results into a complete Chinese document.

Core Features & Use Cases

  • Segment the document into fixed-size parts and preserve Markdown structure.
  • Translate each segment locally (no external API calls during segmentation/translation steps).
  • Merge translated segments into a final complete Markdown document.

Quick Start

Segment a file into 1000-line chunks, translate each chunk, and merge to produce a complete Chinese Markdown document.

Frequently Asked Questions about markdown-segment-translator

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

FAQPage Schema
How do I translate long Markdown documents that exceed token limits?

Segmented translation divides long Markdown into fixed-size chunks, translates each segment independently, then merges them into a complete document. This approach handles academic papers, technical manuals, and large documentation while preserving Markdown syntax and staying within token constraints.

Can I translate Markdown while preserving code blocks and formatting?

Yes. The Skill maintains Markdown structure including code blocks, lists, headers, and emphasis during segmentation and translation. Each segment is processed to keep formatting intact, ensuring the final merged document retains all original Markdown syntax.

What's the workflow for translating a large Markdown file?

The Skill follows a strict 3-step workflow: segment the document into manageable chunks, translate each segment locally without external API calls, then merge translated segments into a final complete document with per-segment metadata tracking.

Does this work for translating technical documentation to Chinese?

Yes. The Skill is designed for faithful segment-by-segment translation of technical content like documentation, manuals, and academic papers to Chinese, maintaining terminology consistency and Markdown formatting across all segments.

What file formats does segmented translation support?

The Skill works with Markdown files specifically. It segments and translates Markdown content while preserving its syntax, making it ideal for `.md` files containing documentation, guides, or academic papers.

Can I use this Skill without external API calls during translation?

Yes. Segmentation and translation steps use local processing without external API dependencies, giving you control over the translation process and reducing latency for large documentation workflows.