pdf-official
하는 일
이 스킬은 텍스트 추출부터 새 보고서 작성, 양식 채우기까지 여러 종류의 PDF 파일을 다룹니다. 계약서, 양식, 청구서, 스캔 페이지를 다루는 사람을 위한 스킬입니다.
사용하는 경우
- ✓기존 PDF에서 텍스트나 표를 뽑아야 할 때.
- ✓PDF 페이지를 합치거나 나누거나 회전하거나 워터마크를 넣고 싶을 때.
- ✓PDF 양식을 채우거나 스캔본을 검색 가능한 사본으로 만들어야 하는 경우.
스킬 링크
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/pdf-official/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 PDF 신청서의 양식 필드에 제 이름과 주소를 채워 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 먼저 PDF를 확인합니다. 페이지 수, 암호화 여부, 양식 필드 유무 등을 살핍니다. 그다음 작업을 추출, 변환, 구성, 채우기 중 하나로 보내고 결과를 점검합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
PDF skill
An Apache-2.0 toolkit for reading, composing, transforming, and filling PDF files. Written from scratch on top of permissively-licensed open-source libraries (pypdf, pdfplumber, pypdfium2, reportlab, pdf-lib, qpdf) so this can be embedded in commercial projects without special agreement.
Route the task
Pick the sub-guide by the verb of the request.
| Task | Path | Read |
|---|---|---|
| Pull text / tables / metadata / images out of an existing PDF | Extract | extract.md |
| Combine, carve, rotate, crop, watermark, encrypt, or shrink | Transform | transform.md |
| Build a PDF that doesn't exist yet (report, invoice, certificate) | Compose | compose.md |
| Fill a form (AcroForm or scanned) | Interactive | interactive.md |
| Scanned / image-only PDF (no selectable text) | Extract → OCR | extract.md §5 |
If a task mixes several of these, follow the order: probe → plan → extract or compose → validate.
Every path starts with a probe. scripts/survey.py returns page count,
whether the file is encrypted, whether it has an AcroForm, and whether
page 1 looks like a scan.
First install
Bundled runtime: when the
MIMO_PYTHONenvironment variable is set, skip the installs below — run every command withpython3/uv runreplaced by"$MIMO_PYTHON"(pypdf/pypdfium2/reportlab/Pillow preinstalled; pip console scripts unavailable, use"$MIMO_PYTHON" -m <module>). A bundled qpdf is exposed asMIMO_QPDF(picked up automatically by the scripts here); invoke it directly as"$MIMO_QPDF" --check file.pdf.
Python-only path (all BSD / MIT / Apache) — covers 95% of tasks:
python3 -m pip install --upgrade pypdf pdfplumber pypdfium2 reportlab Pillow
Add these external binaries only when you actually need them:
# qpdf — merge/split/encrypt/repair, Apache-2.0
brew install qpdf # macOS
apt-get install -y qpdf # Debian / Ubuntu
# Tesseract — OCR for scanned PDFs, Apache-2.0
brew install tesseract
python3 -m pip install pytesseract pdf2image
apt-get install -y tesseract-ocr
# Poppler — pdftotext / pdftoppm / pdfimages, GPL-2.0
# Optional. Only install if you accept a GPL dependency at CLI level.
brew install poppler
apt-get install -y poppler-utils
Every script under scripts/ uses argparse. Exit codes:
0 OK · 1 runtime failure · 2 bad arguments · 3 validation failure
(apply_values.py / overlay_text.py; sanity_check.py reports findings
with exit 1).
Any single script can be lifted into another project — none imports from a
shared framework.
One-command triage
scripts/survey.py path/to/file.pdf --pretty
Sample output:
{
"path": "/abs/path/file.pdf",
"page_count": 12,
"is_locked": false,
"form_field_count": 34,
"looks_scanned": false,
"metadata": {"Title": "...", "Author": "...", "Producer": "..."}
}
Route by the flags:
is_locked: true→ unlock first (qpdf --password=… --decrypt). Almost every reader library refuses locked files.form_field_count > 0→ widgets path ininteractive.md§1.form_field_count == 0AND you need to fill it → overlay path ininteractive.md§2.looks_scanned: true→ skip pypdf text extraction, go straight to OCR (extract.md§5).
Which library for which task
| Task | Preferred | Reason | Fallback |
|---|---|---|---|
| Plain text | pdftotext -layout |
fastest, keeps columns | pypdf |
| Positioned text | pdfplumber |
char-level bboxes | pypdfium2.get_text |
| Tables | pdfplumber |
tunable table_settings |
pandas over manual CSV |
| Page → image | pypdfium2 |
Apache/BSD, no GPL | pdftoppm (GPL) |
| Merge / carve / rotate | pypdf |
pure Python | qpdf --pages (faster on huge files) |
| Encrypt / repair / linearise | qpdf |
handles broken input | pypdf (basic encrypt only) |
| Compose from scratch | reportlab |
mature, BSD | pdf-lib in Node |
| Fill AcroForm | pypdf.update_page_form_field_values |
preserves widget appearances | pdf-lib in Node |
| Overlay on non-fillable | reportlab + pypdf.merge_page |
two-layer merge, see interactive.md | — |
Common gotchas
- PDF origin is bottom-left, image origin is top-left. Every "off by a few points" bug is one of these two systems misapplied. Coordinate conversion is in one place: [`
자주 묻는 질문
스캔된 PDF도 읽을 수 있나요?
네. 스캔본에 OCR을 실행해 텍스트를 검색 가능하게 만들 수 있습니다.
암호화된 PDF도 다룰 수 있나요?
네. 스킬은 PDF를 암호화하고 잠금을 해제하는 방법을 다룹니다.
특별한 프로그램이 필요한가요?
스킬은 pypdf 같은 Python 라이브러리를 사용하며, 명령을 실행하기 전에 설정 단계가 필요합니다.
상세 정보
작성자의 원본 설명
Use this skill whenever a PDF file is being produced, opened, transformed, filled, or read. That includes: extracting text or tables from an existing PDF; combining, carving, rotating, cropping, or watermarking pages; composing a fresh PDF (report, invoice, certificate); filling AcroForm fields or overlaying text onto a non-fillable scanned form; encrypting or unlocking a PDF; running OCR over a scanned document; rendering pages to PNG/JPEG for visual analysis. Trigger on mentions of 'PDF', a filename ending in .pdf, requests like 'turn this into a PDF report', or references to AcroForm / form
repo: XiaomiMiMo/MiMo-Code
인기도
- GitHub 스타
- 14k
- 순위
- #11335
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
effect
14k에이전트가 기억에 의존하지 않고 소스 코드와 문서를 확인해 Effect TypeScript 프레임워크에 관한 질문에 답하도록 돕습니다.
arxiv
14k에이전트가 arXiv의 학술 논문을 검색하고, 읽고, 인용하고, 추적하도록 돕습니다. 초록, BibTeX 인용, PDF 다운로드, 인용 관계를 포함합니다.
claude-code
14k에이전트가 코딩 작업을 Claude Code 명령줄 도구에 맡기도록 돕습니다. 한 번 실행하거나, 대화형 세션으로 하거나, 백그라운드 작업으로 돌릴 수 있습니다.
codex
14k채팅 창 없이 OpenAI Codex 명령줄 도구를 실행해 코딩 작업, 스크립트, 자동화 파이프라인을 처리하도록 에이전트를 돕습니다.
비슷한 스킬
feishu-doc
394k에이전트가 문서 도구를 사용해 텍스트, 이미지, 표를 포함한 Feishu 클라우드 문서를 읽고, 만들고, 편집하도록 돕습니다.
feishu-drive
394k에이전트가 봇과 공유된 Feishu 클라우드 폴더의 파일을 찾아보고, 정리하고, 댓글을 달도록 돕습니다.
feishu-perm
394k에이전트가 요청을 충족하는 가장 작은 권한을 골라, Feishu 파일에 누가 접근할 수 있는지 확인하고 바꾸도록 돕습니다.