← Back to list

pdf-translator
by ForceInjection
AI 基础知识 - GPU 架构、CUDA 编程、大模型基础及AI Agent 相关知识
⭐ 733🍴 124📅 Jan 23, 2026
SKILL.md
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.
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.pyscript located in thescriptsdirectory 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/pythonif applicable, or justpython3if dependencies are installed globally).
- Command:
- 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:
- Create a new Markdown file with the translated content.
- Filename format:
<original_filename>_translated.md. - Notify the user of the output file location.
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.
- Saves the result to
papers/deep_learning_translated.md. - 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 (if "read" implies understanding, a translation or summary might be appropriate).
Score
Total Score
80/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
✓人気
GitHub Stars 500以上
+10
✓最近の活動
1ヶ月以内に更新
+10
✓フォーク
10回以上フォークされている
+5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon
