md-translator
Markdown Translator
This skill is used to translate the content of a specified local Markdown file into a target language (default is Chinese), and save the translated content as a new file with a language identifier suffix appended to the filename (e.g., filename_zh.md).
Workflow
Strictly follow these steps:
1. Read the Original Document
- Use the file reading tool to read the contents of the local Markdown file specified by the user.
2. Translate the Content
- Translate the text content professionally and rigorously into the language specified by the user (if not specified, default to Chinese).
- Chunking for Long Documents: If the document is extremely long, split it into logical chunks (e.g., by main headers) and translate them sequentially to prevent context truncation or missing content.
- Format Preservation: You MUST preserve the original Markdown formatting during translation (including headers, lists, code blocks, bold text, links, image references, etc.).
- Table Handling: If the original text contains tables, you MUST accurately maintain the standard Markdown table format. Avoid using HTML line break tags like
<br>inside Markdown tables. - Formatting Rules: Ensure the typography follows standard rules: insert spaces between Chinese and English characters; ensure code blocks have explanatory comments.
3. Save the Translation Result
- Generate a new filename based on the target language. Append a language identifier suffix to the original filename (e.g., if the original file is
article.md, save it asarticle_zh.mdfor Chinese, orarticle_en.mdfor English). - Write the translated Markdown content into the new file.
More from forceinjection/awesome-skills
doc-reviewer
审查技术文档。支持四种独立评审类型:大纲评审(检查目录与结构逻辑)、内容评审(检查文字准确性与代码质量)、资产评审(校验链接与引用合规)、格式评审(校对纯视觉排版与标点)。当用户请求审查或修正 Markdown 文档时使用。
5dir-organizer
整理和优化项目目录结构。当用户请求整理目录、分类文件、清理无用文件或重构文件夹结构时调用此技能。
4code-reader
Use when you want to deeply understand an unfamiliar codebase and generate reusable cognitive skills from it, by providing a local path or GitHub URL
4md-summarizer
分析和总结指定的本地 Markdown 文件,并输出结构化的中文总结。当用户请求总结、分析或提取本地 Markdown 文档信息时调用此技能。
4update-submitter
Analyzes git status, groups related file changes, and generates standardized Conventional Commits. Invoke when the user wants to commit changes, submit updates, or create a PR.
3openspec-assistant
执行 OpenSpec 规范驱动开发 (SDD) 。涵盖意图对齐、规范生成、代码实现与自动化验证。支持架构师 (写Spec/评审) 、开发 (写代码) 和 QA (写测试) 角色协同及 /opsx 指令体系。
3