oma-academic-writing
Draft and revise academic prose against a rubric, evidence, and
Convert Hangul HWP, HWPX, or HWPML documents to Markdown with
$ npx -y skills add first-fluke/oh-my-agent --skill oma-hwp --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/oma-hwpContext preview
The summary Claude sees to decide when to auto-load this skill.
Convert Hangul HWP, HWPX, or HWPML documents to Markdown with
name: oma-hwp description: Convert Hangul HWP, HWPX, or HWPML documents to Markdown with kordoc. Use for text, table, and image extraction from these formats.
Convert Korean HWP-family documents into readable Markdown or structured JSON while preserving document structure for LLM context, RAG, government-document review, or enterprise document processing.
1. Confirm the input path exists. 2. Confirm the extension is `.hwp`, `.hwpx`, or `.hwpml`. 3. Resolve output path or directory and default filename. 4. Check that `bun` is available.
1. **PREPARE**: Validate path, extension, size, output target, and requested format. 2. **ACQUIRE**: Detect source format and runtime availability. 3. **ACT**: Run `kordoc` with explicit output target and requested options. 4. **VERIFY**: Post-process Markdown and inspect structure for headings, tables, lists, images, and footnotes. 5. **FINALIZE**: Report output path, source format, and any conversion limitations.
| Failure | Recovery | |---------|----------| | `bun` or `bunx` unavailable | Ask user to install Bun | | Unsupported or mismatched format | Check extension and magic bytes, then route or stop | | Encrypted or DRM-locked document | Report limitation and request an accessible copy when needed | | Empty Markdown output | Treat as possible scanned-image content and recommend OCR outside this skill | | Complex merged tables | Accept flattened Markdown or HTML fallback as best effort | | Stale kordoc cache | Use `bunx kordoc@latest` or configured pinned version | | `Cannot find module "turndown"` from `flatten-tables.ts` | Run `bun install` in this skill's `resources/` directory (its `node_modules` is gitignored and absent on fresh clones) |
| Action | SSL primitive | Evidence | |--------|---------------|----------| | Validate file path and extension | `VALIDATE` | Input preflight in execution protocol | | Check runtime availability | `VALIDATE` | `bun --version` | | Select output target and format | `SELECT` | Output behavior and config | | Run converter | `CALL_TOOL` | `bunx kordoc@latest` | | Write output artifact | `WRITE` | Markdown or JSON output | | Flatten tables and strip PUA glyphs | `CALL_TOOL` | `resources/flatten-tables.ts` | | Inspect extraction quality | `VALIDATE` | Verification step | | Report result | `NOTIFY` | Final user-facing summary |
bunx kordoc@latest "{input_path}" -o "{output_path}"
# fresh clone: run `Agents narrate success. oh-my-agent checks the artifacts. Spawning parallel agents is the easy part. The hard part is knowing whether they actually did the work.
Repo: first-fluke/oh-my-agent
Draft and revise academic prose against a rubric, evidence, and
Evaluate system boundaries and architectural tradeoffs. Use for
Implement server APIs, authentication, and application data access.
Coordinate assigned specialist tasks and handoffs manually. Use