Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add modu-ai/moai-cowork --skill doc-readergit clone --depth 1 https://github.com/modu-ai/moai-coworkWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/modu-ai/moai-cowork/doc-reader)<a href="https://agentmods.dev/skills/modu-ai/moai-cowork/doc-reader"><img src="https://agentmods.dev/badge/skills/modu-ai/moai-cowork/doc-reader.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00336 | $0.03560 |
| Opus 5 | $0.00168 | $0.01780 |
| Sonnet 5 | $0.00067 | $0.00712 |
| Haiku 4.5 | $0.00034 | $0.00356 |
Grade A, and why
doc-reader scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 181 lines — stays where its author put it; the contents beside it link to each section on GitHub.
한국 공문서 파서 (doc-reader)
역할
관공서·법원·기업에서 쏟아지는 한국 공문서를 마크다운으로 파싱하는 전문가. HWP 3.0(구버전)·HWP 5.x·HWPX·HWPML·PDF·XLSX·DOCX를 지원하며, 표 구조·양식·서식을 보존해 AI가 바로 읽고 분석할 수 있게 만듭니다. 단순 텍스트 추출을 넘어 신구대조표·양식 자동 채우기·DRM 복호화·OCR까지 공문서 처리 전 과정을 자동화합니다.
본 스킬은
chrisryugj/kordoc(MIT, 949★) MCP 서버를 호출합니다. rhwp(MIT)·OpenDataLoader(Apache-2.0)·pdfjs(Apache-2.0)·cfb(Apache-2.0)·JSZip(MIT) OSS를 포함합니다.
지원 도구 (kordoc MCP 8개)
| 도구 | 설명 |
|---|---|
parse_document |
HWP/HWPX/HWPML/PDF/XLSX/DOCX → 마크다운 (메타데이터 포함). 메인 파싱 도구. |
detect_format |
매직 바이트로 포맷 감지(hwpx·hwp·hwpml·pdf·xlsx·docx·unknown). 확장자 오용 의심 시 먼저 호출. |
parse_metadata |
메타데이터(제목·작성자·생성일 등)만 빠르게 추출. 전문 파싱 전 사전 확인에 적합. |
parse_pages |
특정 페이지 범위만 파싱("1-3", [1, 5, 10]). 대형 PDF 부분 조회 시 필수. |
parse_table |
N번째 테이블만 추출. 표만 필요할 때 전체 파싱 회피. |
compare_documents |
두 문서 비교(신구대조표). HWP↔HWPX 크로스 포맷 지원, 표는 셀 단위 diff. |
parse_form |
양식 필드를 JSON으로 추출(라벨-값 쌍). 공문서 양식 분석·자동화 시작점. |
fill_form |
양식 템플릿에 값 자동 채우기. HWPX 원본 서식(글꼴·크기·정렬) 100% 보존 모드(hwpx-preserve) 지원. 체크박스(□→☑), 괄호 빈칸(( )→(3)), 어노테이션 채움 지원. |
워크플로우
Step 1 — 포맷 확인 (필요 시)
사용자가 파일을 전달하면 확장자가 확실하지 않은 경우 detect_format으로 실제 포맷을 확인합니다. HWP 바이너리인데 HWPML(XML)인 경우 등이 흔한 케이스입니다.
IF 확장자 != 실제 포맷 (예: .hwp인데 HWPML XML):
detect_format로 실제 포맷 감지 → 그 포맷에 맞는 도구로 파싱
Step 2 — 목적에 따른 도구 선택
| 목적 | 도구 | 비고 |
|---|---|---|
| 전체 문서를 마크다운으로 | parse_document |
기본 경로. 메타데이터 자동 포함. |
| 제목·작성자만 빠르게 | parse_metadata |
전체 파싱 전 사전 확인. |
| 특정 페이지만 (대형 PDF) | parse_pages |
pages: "1-3" 또는 [1, 5, 10]. |
| 표만 추출 | parse_table |
N번째 테이블만. |
| 두 문서 비교 (신구대조표) | compare_documents |
크로스 포맷(HWP↔HWPX) 지원. |
| 양식 필드 JSON 추출 | parse_form |
라벨-값 매핑. |
| 양식 자동 채우기 | fill_form |
hwpx-preserve 모드로 서식 보존. |
Step 3 — 결과 정리
- 파싱된 마크다운을 그대로 제공하거나, 필요 섹션만 발췌해 요약.
- 표는 GFM(표준 마크다운 테이블)로 재현; 병합 셀(
colspan/rowspan)이 복잡하면 HTML<table>로 출력해 구조 보존. warnings(스킵된 요소,숨김 텍스트,IMAGE_BASED_PDF)가 있으면 반드시 사용자에게 알림.- 이미지 기반 PDF(스캔 문서)는 OCR 연동 안내(
IMAGE_BASED_PDF에러 코드).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 181 lines · 336 tokens per session scan A 245342a4b3f6
doc-reader is a skill published in the GitHub repository modu-ai/moai-cowork (298 stars, last pushed 3d ago), licensed Apache-2.0. It adds 336 tokens to every session and 3,560 once invoked, about $0.0017 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
recipe-bulk-download-folder
List and download all files from a Google Drive folder.
chat-complex-documents
Chat with and search your complex documents — ask questions, extract tables and fields, and get answers grounded in the source. Connects the hosted Unstructured Transform MCP server to parse, structure, and enrich PDFs, Word/Excel/PowerPoint, images, scanned files, emails, and 60+ other formats into clean, AI-ready…
google-apps-script
Build Google Apps Script automation for Sheets and Workspace. Custom menus, triggers (onEdit / time-driven / form submit), dialogs, sidebars, email batches, PDF export, external API. Use whenever the user wants to automate a Google Sheet, build a Sheets menu / sidebar / dialog, hit a Sheets row from email or a…
document-processing-expert
Read, generate and modify office documents and PDFs from code: PDF extraction and forms, Word documents, Excel workbooks and PowerPoint decks. Use when the user mentions PDF, DOCX, XLSX, PPTX, Word, Excel, PowerPoint or spreadsheets, wants data extracted from documents, needs a report or invoice generated as a file…
document-skills
Professional document creation, editing, and analysis for Office formats (docx, pdf, pptx, xlsx). Use when working with Word documents, PDFs, PowerPoint presentations, or Excel spreadsheets.
literature-matrix-builder
A tool for turning a collection of research papers in PDF format into an organised literature library and comparison spreadsheet. It can find identifiers such as DOIs, retrieve publication details, check for retractions, and prepare reference lists.