# Kordoc Parse Form

> Use when extracting structured label-value fields from Korean forms with `npx` and kordoc. Trigger for requests involving applications, government forms, personnel sheets, contact fields, or any HWP, HWPX, or PDF document that should be processed with `kordoc:parse_form`.

- **Type:** Skill
- **Install:** `agentstack add skill-composite-korean-skills-kordoc-parse-form`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [composite](https://agentstack.voostack.com/s/composite)
- **Installs:** 0
- **Category:** [Content & Media](https://agentstack.voostack.com/c/content-and-media)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [composite](https://github.com/composite)
- **Source:** https://github.com/composite/korean-skills/tree/jumo/skills/kordoc-parse-form

## Install

```sh
agentstack add skill-composite-korean-skills-kordoc-parse-form
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# kordoc: parse_form

Reproduce the `parse_form` logic from `src/mcp.ts`: parse the document, then run `extractFormFields`.

## Input Requirements

- Require exactly one target document.
- Require the user to attach the document or provide a concrete local path.
- Accept only supported formats: `.hwp`, `.hwpx`, `.pdf`.
- Prefer form-like or table-heavy office documents.
- Do not proceed if the document is missing.

## Command

```bash
npm exec --yes --package=kordoc --package=pdfjs-dist -- node  d.endsWith(".bin"));
const kUrl = "file:///" + p.join(p.resolve(nmBin, ".."), "kordoc", "dist", "index.js").split(p.sep).join("/");
import(kUrl).then(async (k) => {
  const filePath = "/abs/path/form.hwpx";
  const raw = fs.readFileSync(filePath);
  const buffer = raw.buffer.slice(raw.byteOffset, raw.byteOffset + raw.byteLength);
  const result = await k.parse(buffer);
  if (!result.success) throw new Error(result.error);
  console.log(JSON.stringify(k.extractFormFields(result.blocks), null, 2));
}).catch(e => { console.error(e); process.exit(1); });
SCRIPT
```

## Workflow

1. Resolve the document path to an absolute path.
2. Parse the file once.
3. Run `extractFormFields(result.blocks)`.
4. Return structured JSON and preserve confidence if present.

## Guardrails

- Keep the output structured.
- Do not invent missing field values.
- If the document is not form-like, say so and suggest a normal parse instead.
- Refuse to continue when no supported document was provided.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [composite](https://github.com/composite)
- **Source:** [composite/korean-skills](https://github.com/composite/korean-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** yes
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-composite-korean-skills-kordoc-parse-form
- Seller: https://agentstack.voostack.com/s/composite
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
