Skip to content
Agentmart
Submit a tool

read-doc

문서 파일(HWP/HWPX/PDF/DOCX/XLSX/PPTX)의 텍스트를 추출해 컨텍스트에 로드합니다.

Skill by nextain

IndexedApache-2.0
Write a review

Chalk Labs

Need help deploying read-doc?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/nextain-read-doc

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

문서 파일(HWP/HWPX/PDF/DOCX/XLSX/PPTX)의 텍스트를 추출해 컨텍스트에 로드합니다. docs-business/ 폴더의 파일이나 .hwp/.hwpx/.pdf/.docx/.xlsx/.pptx 파일이 언급될 때, 또는 문서 내용을 검토/분석해야 할 때 반드시 사용.

Use cases: documents, spreadsheets, presentations

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/read-doc

What's inside

Skill name
read-doc
Description
문서 파일(HWP/HWPX/PDF/DOCX/XLSX/PPTX)의 텍스트를 추출해 컨텍스트에 로드합니다. docs-business/ 폴더의 파일이나 .hwp/.hwpx/.pdf/.docx/.xlsx/.pptx 파일이 언급될 때, 또는 문서 내용을 검토/분석해야 할 때 반드시 사용.
License
Apache-2.0
Instructions
69 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • extract_doc.py · scripts/

SKILL.md (first lines)

# Read Document

문서 파일의 텍스트를 추출해 분석할 수 있도록 컨텍스트에 로드합니다.

## 지원 형식

| 확장자 | 방법 | 사전 설치 |
|--------|------|----------|
| `.hwp` | hwp5html → XHTML → 텍스트 | `pip install pyhwp` |
| `.hwpx` | PrvText.txt 추출 + XML fallback | 없음 |
| `.pdf` | pdftotext -layout | `sudo dnf install poppler-utils` |
| `.docx` | python-docx | `pip install python-docx` |
| `.xlsx` | openpyxl | `pip install openpyxl` |
| `.pptx` | OOXML `<a:t>` 파싱 | 없음 |
| `.txt` / `.md` | Read 도구 직접 사용 | 없음 |

## 실행 방법

### Step 1: 경로 확인

`$ARGUMENTS`가 없으면 사용법 안내 후 종료:
> "Usage: /read-doc \<file-path\>  (glob 지원: /read-doc /path/*.hwp)"

glob(`*`) 또는 디렉토리인 경우 지원 확장자 파일 목록으로 확장. 알파벳순 정렬.

### Step 2: 사이드카 우선 확인

docs-business HWP/HWPX 파일은 사전 추출된 `.txt` 사이드카가 있을 수 있음:

```bash
SIDECAR="${FILE%.*}.txt"
[ -s "$SIDECAR" ] && cat "$SIDECAR" && exit 0
```

사이드카가 있으면 Read 도구로 직접 읽음 (훨씬 빠름).

### Step 3: 추출 실행

```bash
python .agents/skills/read-doc/scripts/extract_doc.py "$FILE"
```

HWP 파일 5MB 이상이면 5~15초 소요 — 시작 전 사용자에게 안내.

### Step 4: 결과 표시

```
📄 **<파일명>** (<확장자>, <N>자)
경로: <절대경로>
---
<추출된 텍스트>
```

15,000자 초과 시 앞 15,000자만 표시:
> `(... 이하 생략. 전체 ${N}자)`

파일 여러 개면 `---`로 구분, 마지막에:
> `총 N개 파일, M자 처리 완료`

## 에러 처리

| 에러 | 조치 |
|------|------|
| 파일 없음 | 경로 보고 후 종료 |
| 미지원 확장자 | 지원 형식 안내 |
| 도구 미설치 | 설치 명령어 출력 (스크립트가 자동 안내) |
| 빈 결과 | "텍스트를 추출할 수 없습니다 (이미지 전용 문서일 수 있음)" |

From nextain/naia-adk, Apache-2.0.

More from nextain/naia-adk

Signals

Stars
0
Forks
0
Open issues
10
Last commit (this folder)
Apr 19, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from nextain

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get read-doc running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying read-doc?

CallGet help
Cite this page

read-doc skill. Agent Mart. https://agentmart.dev/skills/nextain-read-doc (last updated 2026-10-24)