Skill này làm gì
Skill này giúp xử lý file PDF, gồm tạo file mới và kiểm tra cách chúng hiển thị. Nó dành cho người cần PDF được tạo hoặc đọc chính xác, với bố cục được kiểm tra.
Khi nào nên dùng
- ✓Khi bạn muốn tạo một PDF mới với định dạng đáng tin cậy.
- ✓Khi bạn cần đọc hoặc xem xét một PDF mà bố cục và hình ảnh có ý nghĩa.
- ✓Khi bạn muốn kiểm tra trực quan một PDF đã hoàn thành trước khi gửi đi.
Liên kết skill
https://github.com/openai/skills/blob/main/skills/.curated/pdf/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một bản tóm tắt PDF một trang từ báo cáo này, và kiểm tra bố cục có đúng trước khi tôi gửi đi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent hiển thị các trang PDF thành hình ảnh để kiểm tra, dùng công cụ Python để tạo hoặc trích xuất nội dung, và kiểm tra lại mỗi thay đổi cho đến khi bố cục đúng.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
PDF Skill
When to use
- Read or review PDF content where layout and visuals matter.
- Create PDFs programmatically with reliable formatting.
- Validate final rendering before delivery.
Workflow
- Prefer visual review: render PDF pages to PNGs and inspect them.
- Use
pdftoppmif available. - If unavailable, install Poppler or ask the user to review the output locally.
- Use
- Use
reportlabto generate PDFs when creating new documents. - Use
pdfplumber(orpypdf) for text extraction and quick checks; do not rely on it for layout fidelity. - After each meaningful update, re-render pages and verify alignment, spacing, and legibility.
Temp and output conventions
- Use
tmp/pdfs/for intermediate files; delete when done. - Write final artifacts under
output/pdf/when working in this repo. - Keep filenames stable and descriptive.
Dependencies (install if missing)
Prefer uv for dependency management.
Python packages:
uv pip install reportlab pdfplumber pypdf
If uv is unavailable:
python3 -m pip install reportlab pdfplumber pypdf
System tools (for rendering):
# macOS (Homebrew)
brew install poppler
# Ubuntu/Debian
sudo apt-get install -y poppler-utils
If installation isn't possible in this environment, tell the user which dependency is missing and how to install it locally.
Environment
No required environment variables.
Rendering command
pdftoppm -png $INPUT_PDF $OUTPUT_PREFIX
Quality expectations
- Maintain polished visual design: consistent typography, spacing, margins, and section hierarchy.
- Avoid rendering issues: clipped text, overlapping elements, broken tables, black squares, or unreadable glyphs.
- Charts, tables, and images must be sharp, aligned, and clearly labeled.
- Use ASCII hyphens only. Avoid U+2011 (non-breaking hyphen) and other Unicode dashes.
- Citations and references must be human-readable; never leave tool tokens or placeholder strings.
Final checks
- Do not deliver until the latest PNG inspection shows zero visual or formatting defects.
- Confirm headers/footers, page numbering, and section transitions look polished.
- Keep intermediate files organized or remove them after final approval.
Câu hỏi thường gặp
Nó dùng những công cụ nào?
Nó dựa vào các công cụ Python như reportlab, pdfplumber và pypdf, cùng Poppler để hiển thị trang.
Trích xuất văn bản có đủ để kiểm tra PDF không?
Không. Skill nói rằng trích xuất văn bản không đáng tin cậy về bố cục, nên nó hiển thị trang để kiểm tra bằng mắt.
Tôi có cần cài đặt gì không?
Một số công cụ có thể cần cài đặt, gồm Poppler để hiển thị, và skill sẽ báo cho bạn nếu thiếu thứ gì.
Chi tiết
Mô tả gốc của tác giả
Use when tasks involve reading, creating, or reviewing PDF files where rendering and layout matter; prefer visual checks by rendering pages (Poppler) and use Python tools such as `reportlab`, `pdfplumber`, and `pypdf` for generation and extraction.
repo: openai/skills
Độ phổ biến
- Sao GitHub
- 28k
- Vị trí xếp hạng
- #9859
- Giấy phép
- —
- Cập nhật
- 28/10/2026
Bình luận
- …
Thêm skill từ kho mã này
aspnet-core
28kGiúp agent của bạn xây dựng, rà soát hoặc nâng cấp ứng dụng web ASP.NET Core, chọn đúng loại ứng dụng theo hướng dẫn mới nhất của Microsoft.
chatgpt-apps
28kGiúp agent của bạn xây dựng ứng dụng ChatGPT kết hợp server MCP với giao diện widget, gồm thiết kế tool, tài nguyên UI, metadata và thiết lập cục bộ.
cli-creator
28kGiúp agent của bạn biến tài liệu API, spec hoặc script có sẵn thành một công cụ dòng lệnh dùng lại được, chạy từ mọi thư mục và trả về JSON ổn định.
define-goal
28kGiúp agent của bạn biến một ý định mơ hồ thành mục tiêu rõ ràng, đo được, với tiêu chí thành công, phạm vi và điều kiện dừng trước khi bắt đầu việc.
Skill tương tự
feishu-doc
394kGiúp agent của bạn đọc, tạo và sửa tài liệu đám mây Feishu, gồm văn bản, hình ảnh và bảng, bằng công cụ tài liệu.
feishu-drive
394kCho phép agent của bạn duyệt, sắp xếp và bình luận các file trong một thư mục đám mây Feishu đã được chia sẻ với bot.
feishu-perm
394kGiúp agent của bạn kiểm tra và thay đổi ai có quyền truy cập một file Feishu, chọn quyền nhỏ nhất đáp ứng yêu cầu của bạn.