document-processor-api skill
scriptsOCR, 비식별화, 전자 서명 및 컴플라이언스 중심의 PDF 생성을 통해 문서를 처리, 변환 및 조작합니다.
- GitHub 스타
- 18
- 파일
- 29
- 마지막 커밋
- 2026년 11월 3일
- 라이선스
- MIT
- 허용된 도구
- —
document-processor-api skill은 무엇을 하나요?
document-processor-api은(는) agent skill입니다. OCR, 비식별화, 전자 서명 및 컴플라이언스 중심의 PDF 생성을 통해 문서를 처리, 변환 및 조작합니다.
skill의 SKILL.md에서 생성된 요약입니다.
document-processor-api skill 정보
이 SKILL은 개발자와 AI 에이전트가 자동화된 워크플로우를 통해 복잡한 문서 라이프사이클을 관리할 수 있도록 지원합니다. HTML 또는 URL을 PDF로 변환하고, Office 문서를 변환하며, 스캔된 이미지에서 텍스트, 표 또는 키-값 쌍을 추출하기 위한 OCR을 수행하는 등 고정밀 문서 작업을 위한 도구 모음을 제공합니다. PDF/A 및 PDF/UA와 같은 특수 출력을 제공하여 엄격한 컴플라이언스 표준이 필요한 사용자에게 적합하도록 설계되었습니다.
에이전트는 단순한 로컬 파일 검사를 넘어 출력물의 정밀도나 법적 준수가 필요한 작업을 수행할 때 이 SKILL을 로드해야 합니다. 이 SKILL은 다양한 Python 스크립트를 활용하여 파일 병합, 분할, 회전 또는 워터마크 삽입과 같은 단일 작업을 실행합니다. 다단계 프로세스의 경우 커스텀 워크플로우 템플릿을 사용하여 개인정보(PII) 비식별화, 문서 서명, 그리고 마지막으로 웹 배포를 위한 파일 최적화 또는 선형화와 같은 작업들을 순차적으로 수행합니다. 이 기능은 Nutrient DWS API를 사용하며 작동을 위해 유효한 API key가 필요합니다.
agent가 수행할 수 있는 작업
- 1웹 콘텐츠를 PDF로 변환원격 URL 또는 HTML 템플릿을 고품질 PDF 문서로 변환합니다.
- 2스캔 데이터 추출스캔된 문서에 OCR을 수행하여 구조화된 표와 텍스트를 추출합니다.
- 3민감 정보 보안AI 기반 탐지를 사용하여 개인 식별 정보를 식별하고 비식별화합니다.
- 4문서 컴플라이언스 보장특정 아카이브 또는 접근성 표준을 충족하는 특수 PDF 형식을 생성합니다.
skill의 SKILL.md를 기반으로 작성되었습니다. 모든 사용 사례는 해당 문서의 인용구와 대조 확인되었습니다.
document-processor-api skill 설치 방법
각 명령은 skill 폴더를 클라이언트의 skills 디렉터리에 복사합니다. 클라이언트를 재시작하거나 새 세션을 시작하여 로드하세요.플러그인에 document-processor-api skill 설치
/plugin marketplace add PSPDFKit-labs/nutrient-skills /plugin install nutrient-dws@nutrient-skills
Claude Code에 document-processor-api skill 설치
~/.claude/skills/document-processor-api/SKILL.md
$ npx degit PSPDFKit-labs/nutrient-skills/plugins/nutrient-dws/skills/document-processor-api ~/.claude/skills/document-processor-apiClaude Code (project)에 document-processor-api skill 설치
.claude/skills/document-processor-api/SKILL.md
$ npx degit PSPDFKit-labs/nutrient-skills/plugins/nutrient-dws/skills/document-processor-api .claude/skills/document-processor-apiCodex에 document-processor-api skill 설치
~/.agents/skills/document-processor-api/SKILL.md
$ npx degit PSPDFKit-labs/nutrient-skills/plugins/nutrient-dws/skills/document-processor-api ~/.agents/skills/document-processor-apiGemini CLI에 document-processor-api skill 설치
~/.gemini/skills/document-processor-api/SKILL.md
$ npx degit PSPDFKit-labs/nutrient-skills/plugins/nutrient-dws/skills/document-processor-api ~/.gemini/skills/document-processor-apiClaude.ai에 document-processor-api skill 설치
npx degit PSPDFKit-labs/nutrient-skills/plugins/nutrient-dws/skills/document-processor-api document-processor-api && zip -r document-processor-api.zip document-processor-api # claude.ai → Customize → Skills → + → Create skill → Upload a skill → document-processor-api.zip
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →아직 검증되지 않았습니다. 스킬은 점수 80, 심각한 발견 없음, 검사에 충분한 데이터가 필요합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능pspdfkit-labs/nutrient-skills/plugins/nutrient-dws/skills/document-processor-api is public and reachablegithub.com/pspdfkit-labs/nutrient-skills/tree/HEAD/plugins/n ↗통과
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit 2026-11-03github.com/pspdfkit-labs/nutrient-skills/commits ↗통과
- 스크립트에 다운로드 후 실행이나 자격 증명 탈취가 없음5 of 17 scripts read; none of them downloads and runs code, the rest were not read결함 발견
- SKILL.md에 숨겨진 지침 없음No override phrases, safeguard switches, credential requests or hidden charactersgithub.com/pspdfkit-labs/nutrient-skills/blob/HEAD/plugins/n ↗통과
- 사전 허용 도구가 제한됨No pre-approved tools; the agent asks before using onegithub.com/pspdfkit-labs/nutrient-skills/blob/HEAD/plugins/n ↗통과
- SKILL.md가 Agent Skills 형식을 따름Valid name and description; says when to use it; 131 linesgithub.com/pspdfkit-labs/nutrient-skills/blob/HEAD/plugins/n ↗통과
SKILL.md
GitHub에서 보기Nutrient Document Processing
Use Nutrient DWS for managed document workflows where fidelity, compliance, or multi-step processing matters more than local-tool convenience.
Setup
- Get a Nutrient DWS API key at https://dashboard.nutrient.io/sign_up/?product=processor.
- Direct API calls use
Authorization: Bearer $NUTRIENT_API_KEY.export NUTRIENT_API_KEY="nutr_sk_..." - MCP setups commonly use
@nutrient-sdk/dws-mcp-serverwithNUTRIENT_DWS_API_KEY. - Scripts live in
scripts/relative to this SKILL.md. Use the directory containing this SKILL.md as the working directory:cd <directory containing this SKILL.md> && uv run scripts/<script>.py --help - Page ranges use
start:endwith 0-based indexes and end-exclusive semantics. Negative indexes count from the end.
When to use
- Generate PDFs from HTML templates, uploaded assets, or remote URLs.
- Convert Office, HTML, image, and PDF files between supported formats.
- OCR scans and extract text, tables, or key-value pairs.
- Redact PII, watermark, sign, fill forms, merge, split, rotate, flatten, or encrypt PDFs.
- Produce delivery targets like PDF/A, PDF/UA, optimized PDFs, or linearized PDFs.
- Check credits before large, batch, or AI-heavy runs.
Tool preference
- Prefer
scripts/*.pyfor covered single-operation workflows. - Use
assets/templates/custom-workflow-template.pyfor multi-step jobs that should still run through the Python client. - Use the modular
references/docs and direct API payloads for capabilities that do not yet have a dedicated helper script, especially HTML/URL generation and compliance tuning. - Use local PDF utilities only for lightweight inspection. Use Nutrient when output fidelity or compliance matters.
Single-operation scripts
convert.py-> convert betweenpdf,pdfa,pdfua,docx,xlsx,pptx,png,jpeg,webp,html, andmarkdownmerge.py-> merge multiple files into one PDFsplit.py-> split one PDF into multiple PDFs by page rangesadd-pages.py-> append blank pagesdelete-pages.py-> remove specific pagesduplicate-pages.py-> reorder or duplicate pages into a new PDFrotate.py-> rotate selected pagesocr.py-> OCR scanned PDFs or imagesextract-text.py-> extract text to JSONextract-table.py-> extract tablesextract-key-value-pairs.py-> extract key-value pairswatermark-text.py-> apply a text watermarkredact-ai.py-> detect and apply AI-powered redactionssign.py-> digitally sign a local PDFpassword-protect.py-> write encrypted output PDFsoptimize.py-> apply optimization and linearization-style options via JSON
Multi-Step Workflow Rule
Do not add new committed pipeline scripts under scripts/.
When the user asks for multiple operations in one run:
- Copy
assets/templates/custom-workflow-template.pyto a temporary location such as/tmp/ndp-workflow-<task>.py. - Implement the combined workflow in that temporary script.
- Run it with
uv run /tmp/ndp-workflow-<task>.py .... - Return generated output files.
- Delete the temporary script unless the user explicitly asks to keep it.
PDF Requirements
split.pyrequires a multi-page PDF and cannot extract ranges from a single-page document.delete-pages.pymust retain at least one page and cannot delete the entire document.sign.pyonly accepts local file paths for the main PDF.
Decision rules
- Prefer a helper script when one already covers the requested operation cleanly.
- If you control the source markup, prefer HTML generation over browser print workflows.
- Use remote
file.urlinputs when the source already lives at a stable URL and you want to avoid local uploads. - Use
output.typefor conversion and finalization targets. Useactionsfor transformations when building direct API payloads. - OCR before text extraction, key-value extraction, or semantic redaction on scans.
- Prefer preset or regex redaction when the target is explicit. Use AI redaction only for contextual or natural-language requests.
- Use the PDF manipulation reference for merge, split, rotate, flatten, and page-range workflows instead of inferring those payloads from conversion examples.
- Treat PDF/A and PDF/UA as compliance targets, not cosmetic export formats. Choose the target up front and validate final artifacts when requirements are contractual.
- For PDF/UA, clean born-digital inputs and structured HTML usually tag better than rasterized or flattened source PDFs.
- For delivery optimization, linearize or optimize unsigned output artifacts instead of mutating already signed files.
- When the user asks for multiple steps, keep destructive or final steps late in the sequence. Use the workflow recipes when ordering is ambiguous.
Anti-patterns
- Do not OCR born-digital PDFs just because the task mentions extraction. Extract first and OCR only if the text layer is missing.
- Do not flatten forms or annotations until the user confirms the artifact no longer needs to stay editable.
- Do not sign, archive, or linearize intermediate working files. Keep those as final-delivery steps.
- Do not promise PDF/A or PDF/UA compliance without a validation step when the requirement is contractual.
- Do not commit temporary workflow scripts under
scripts/.
Reference map
Read only what you need:
references/request-basics.md-> endpoint model, auth, multipart vs JSON, credits, limits, and errorsreferences/generation-and-conversion.md-> HTML/URL generation and format conversionreferences/pdf-manipulation.md-> merge, split, page-range, rotate, and flatten workflowsreferences/extraction-and-ocr.md-> OCR, text extraction, tables, and key-value workflowsreferences/security-signing-and-forms.md-> redaction, watermarking, signatures, forms, and passwordsreferences/compliance-and-optimization.md-> PDF/A, PDF/UA, optimization, and linearizationreferences/workflow-recipes.md-> end-to-end sequencing patterns for common business document workflows
Rules
- Fail fast when required arguments are missing.
- Write outputs to explicit paths and print created files.
- Do not log secrets.
- All client methods are async and should run via
asyncio.run(main()). - If import fails, install dependency with
uv add nutrient-dws.
Security Hardening Addendum
- Prefer a pinned, preinstalled MCP server binary over runtime package fetches.
- Preferred:
npm i -g @nutrient-sdk/dws-mcp-server@<pinned-version> - Avoid unpinned runtime fetch in production paths.
- Preferred:
- Never store
NUTRIENT_DWS_API_KEYin committed JSON config files.- Use process env injection at runtime (shell/export, secrets manager, or host env).
- Restrict file access with
SANDBOX_PATHto the minimum required working directory. - Before enabling MCP mode in production, verify package provenance and lock version.
이 스킬의 파일
29document-processor-api skill 질문
Claude Code에 document-processor-api skill을 어떻게 설치하나요?
npx degit PSPDFKit-labs/nutrient-skills/plugins/nutrient-dws/skills/document-processor-api ~/.claude/skills/document-processor-api를 실행합니다. Claude Code는 ~/.claude/skills(모든 프로젝트) 또는 .claude/skills(한 프로젝트)에서 skills를 로드하며, 설명이 작업과 일치할 때 skill을 사용합니다.
document-processor-api skill을 사용할 수 있는 클라이언트는 무엇인가요?
Agent Skills 형식을 읽는 모든 클라이언트(Claude Code, Codex, Gemini CLI, claude.ai(ZIP으로 업로드))가 사용할 수 있습니다. skill 내 스크립트는 클라이언트가 코드 실행을 허용하는 경우에만 실행됩니다.
어떤 종류의 문서 변환을 지원하나요?
PDF, PDF/A, PDF/UA, DOCX, XLSX, PPTX, PNG, JPEG, WebP, HTML, Markdown 간의 변환을 지원합니다.
다단계 문서 워크플로우는 어떻게 처리해야 하나요?
여러 작업을 수행하려면 커스텀 워크플로우 템플릿을 임시 위치로 복사한 뒤, 결합된 워크플로우를 구현하고 uv를 사용하여 실행하십시오.
스캔된 문서에서 데이터를 추출할 수 있나요?
네, OCR을 사용하여 스캔된 PDF나 이미지를 처리한 후 텍스트, 표 또는 키-값 쌍을 추출할 수 있습니다.
민감한 정보를 비식별화하는 가장 좋은 방법은 무엇인가요?
문맥이나 자연어 요청이 필요한 경우 AI 기반 비식별화를 사용하거나, 대상이 명확한 경우 사전 설정된 방식 또는 regex 비식별화를 사용할 수 있습니다.