pdf-translator
Extract text from PDF files, translate it to a target language, and save the result as a Markdown file. Use this skill when the user wants to translate a PDF document or asks to "convert PDF to Chinese".
DeepseekModel
官方收录技能
质量 优秀 · 90
v1.0.0
获取
https://deepseekmodel.com/api/download.php?id=forceinjection-ai-fundamentals-08-agentic-system-agent-skills-pdf-translator-skill-md&format=skill
下载 .skill
标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name pdf_translator description Extract text from PDF files, translate it to a target language, and save the result as a Markdown file. Use this skill when the user wants to translate a PDF document or asks to "convert PDF to Chinese". PDF Translator Skill Instructions Follow these steps to translate a PDF file: Identify the PDF File : Confirm the path to the PDF file the user wants to translate. If the path is relative, resolve it to an absolute path. Extract Text : Use the extract_text.py script located in the scripts directory of this skill to extract text from the PDF. Command: python3 skills/pdf_translator/scripts/extract_text.py <path_to_pdf> Note: Ensure you are using the correct python environment (e.g., .venv/bin/python if applicable, or just python3 if dependencies are installed globally). Translate Content : Read the output from the extraction step. Translate the extracted text into the target language requested by the user (default to the user's primary language or English if ambiguous). Maintain the original structure (headings, paragraphs) as much as possible using Markdown formatting. Save Output : Write the translated content to a temporary text file (e.g., temp_translation.txt ). Use the generate_md.py script to create the final Markdown file with metadata. Command: python3 skills/pdf_translator/scripts/generate_md.py <output_path> <original_filename> <temp_translation_file> Filename format: <original_filename>_translated.md . Notify the user of the output file location. Clean up the temporary text file. Examples User : "Translate the file papers/deep_learning.pdf to Chinese." Claude : Locates papers/deep_learning.pdf . Runs: python3 skills/pdf_translator/scripts/extract_text.py papers/deep_learning.pdf Translates the extracted text to Chinese. Writes translation to temp_translation.txt . Runs: python3 skills/pdf_translator/scripts/generate_md.py papers/deep_learning_translated.md deep_learning.pdf temp_translation.txt Removes temp_translation.txt . Responds: "I have translated the PDF and saved it to papers/deep_learning_translated.md ." User : "Help me read this manual.pdf" Claude : Locates manual.pdf . Runs extraction script. Translates/Summarizes based on user intent.
Agent 识别该技能的关键词,点击任意一个即可复制。
该技能未提供触发词。
下载的 .skill 包内含以下字段。
| 字段 | 说明 |
|---|---|
| format | 格式标识(skill/v1) |
| skill_id | 技能唯一 ID |
| name | 技能名称 |
| version | 版本号 |
| description | 技能描述 |
| category | 所属分类(数组) |
| trigger_words | 触发词列表 |
| tags | 标签列表 |
| source | 来源标识 |
| source_url | 来源链接(本页地址) |
| exported_at | 导出时间(每次下载生成) |
| system_prompt | 系统提示词正文 |
| model_config | 模型参数:provider / model / temperature / max_tokens / top_p |
| examples | 示例 |
| install_guide | 各平台导入说明(Coze / Dify / Claude / 自定义框架) |