skills/convert/SKILL.md
Usage `rdc:convert <input> [--out <dir>] [--to markdown|word] [--images assets|base64|s3]` — Convert .docx/.pptx/.ppt → Markdown (Word OMML equations as KaTeX TeX, tables, images) or Markdown → Word via the build-corpus CLI (PyPI `build-corpus`, npm `regen-mde`). Portable: runs in any session that can reach npm or PyPI — Claude Code CLI and claude.ai both fetch + run it. Use whenever the user asks to convert an Office document, build a Markdown corpus from .docx/.pptx, turn Markdown into a .docx, or 'open the report' in the regen-mde editor (Windows).
npx skillsauth add LIFEAI/rdc-skills rdc:convertInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
⚠️ OUTPUT CONTRACT (READ FIRST):
guides/output-contract.mdChecklist-only output. No tool-call narration. No raw MCP/JSON/log dumps. One checklist upfront, updated in place, shown again at end with a 1-line verdict.
build-corpus is the conversion CLI; regen-mde is the Windows GUI editor. Same
package, two surfaces. This skill is a when-to-use + full call/switch reference —
it does NOT require a local checkout. Any runtime that can reach npm or PyPI can
fetch and run the tool in its own session (this is how claude.ai uses it).
.docx, .pptx, or .ppt → Markdown, preserving Word OMML equations
(as KaTeX-readable TeX), tables, images, headings, and lists..docx), optionally with a .dotx template.regen-mde <file> (Windows GUI only).rdc:brochure.lifeai-brochure-author.The command is always build-corpus <input> [flags]. Resolve the binary like this:
build-corpus --help.pip install "git+https://github.com/LIFEAI/build-corpus.git@feat/dual-package-ubuntu"
# once merged to main, drop the @branch:
# pip install "git+https://github.com/LIFEAI/build-corpus.git"
This installs the build-corpus CLI and its deps (latex2mathml, mathml2omml,
python-docx, Pillow, omml2latex). On Debian/Ubuntu externally-managed Python, add
--break-system-packages, use a venv, or pipx install "git+https://github.com/LIFEAI/build-corpus.git@feat/dual-package-ubuntu".pipx install build-corpus · npx -y -p regen-mde build-corpus <input> [flags].ppt input additionally needs LibreOffice (soffice) on PATH
(sudo apt install libreoffice). .docx/.pptx need nothing extra.[s3] to the package spec.claude.ai note: install from GitHub (step 2) into the analysis/session sandbox and run
build-corpus there. GitHub is the source of truth until PyPI/npm are republished.
build-corpus <input> [input ...] [options]
<input> — one or more .md, .docx, .pptx, or .ppt files or directories.
| Flag | Values / default | Effect |
|------|------------------|--------|
| --out <dir> | path | Output directory for the converted tree. |
| --out-same-dir | — | Write .md, .assets, and reports beside each source file. |
| --to | auto | markdown | word (default auto) | Output target. auto infers from a single-file input. |
| --images | assets | base64 | s3 (default assets) | Image handling (see below). |
| --equations | tex | image (default tex) | OMML equations → KaTeX TeX, or rendered images (debug only). |
| --inline-images | — | Emit <name>.inline.md with local/HTTP images embedded as data URIs. |
| --word-template <file> | .docx/.dotx | Template for Markdown → Word exports. |
| --move-sources | — | After a successful convert, move sources into a sources/ folder. |
| --config <file> | JSON | Conversion/output/S3 defaults (CLI flags override). |
S3/R2 (only with --images s3): --s3-bucket, --s3-public-base-url,
--s3-prefix, --s3-endpoint-url (required for R2), --s3-region (auto for R2),
--s3-access-key-id, --s3-secret-access-key, --s3-cache-control, --s3-acl.
Prefer keeping S3 secrets in --config, not on the command line.
--images)assets — copy images into an .assets folder and reference them (default).base64 — embed images directly as Markdown data URIs.s3 — upload to S3-compatible storage (Cloudflare R2 / AWS S3); needs the S3 flags or --config.--equations): tex converts Word OMML equations to
KaTeX-readable TeX (default); image renders them as images (debug only).--to word): inline $...$ and display $$...$$ LaTeX
are converted to native Office Math (OMML) that Word renders as real
equations (\sum, \int, \frac, \Delta, \rightarrow, \leq, …) — not
raw text in a math font. Unparseable fragments fall back to Cambria Math text
and are flagged in the export report. Requires build-corpus ≥ 0.4.0. Fence
display math with $$ on their own lines, no blank lines inside the fence.regen-mde (Windows only)regen-mde <document.md|document.docx> [options]
Aliases: mdeditor, regen-mdeditor, build-corpus-editor.
| Flag | Effect |
|------|--------|
| --foreground, --visible | Show the editor as an attached foreground process. |
| --background | Launch hidden/offscreen (smoke checks). |
| --self-test | Verify the editor bridge can open the document. |
| --document-self-test | Open, edit, save Markdown, export Word, reconvert. |
| --out <dir> | Output directory for the document self-test. |
The GUI is a .NET 8 + WebView2 app and is Windows-only by design. On Linux/macOS
use the build-corpus CLI; there is no Linux editor build.
build-corpus input.docx --out out # docx → markdown
build-corpus deck.pptx --out out # pptx → markdown
build-corpus ./word-files --out ./markdown # whole folder, recursive
build-corpus ./word-files --out-same-dir # write beside each source
build-corpus input.docx --images base64 # embed images inline
build-corpus input.md --to word --out out # markdown → Word
build-corpus input.md --to word --word-template custom.dotx --out out
build-corpus report.md --inline-images # → report.inline.md
build-corpus input.docx --images s3 --config build-corpus.config.json
# portable one-offs when build-corpus is not yet installed:
pipx run build-corpus input.docx --out out
npx -y -p regen-mde build-corpus input.docx --out out
--images s3 is set).--move-sources is passed.pipx/npx as shown.regen-mde GUI is Windows-only; do not attempt to launch it on Linux/macOS.build-corpus, npm regen-mde (version-locked, dual-channel).github.com/LIFEAI/build-corpus (C:/Dev/build-corpus locally).tools
Convert Office documents to/from Markdown with the build-corpus CLI: .docx/.pptx/.ppt → Markdown (Word OMML equations become KaTeX-readable TeX; tables, images, headings preserved), and Markdown → Word (.docx) where inline $...$ and display $$...$$ LaTeX become NATIVE Office Math (OMML) that Word renders as real equations. Use this skill whenever the user asks to convert a Word/PowerPoint document to Markdown, build a Markdown corpus from Office files, turn Markdown into a .docx (optionally with a .dotx template), or "open the report" to edit. Install build-corpus straight from GitHub and run it in the session.
development
Usage `rdc:brochure <input> [--out <path>] [--template <name>] [--format Letter|A4]` — Turn a zip, folder, HTML file, URL, or markdown folder into a print-quality PDF brochure via Puppeteer. Auto-detects print-variant HTML, honors @page CSS, falls back to a Studio-token-aware template when no HTML exists.
tools
Usage `rdc:fs-mcp <task>` — Use the File System MCP bridge for live repo reads, safe writes, cloud-to-local ingest, and GitHub-branch imports into a dirty local monorepo. Use when Claude.ai, Cowork, or CLI agents need fs_read/fs_write/fs_import_git_files guidance.
development
Usage `rdc:co-develop <ask|reply|inbox|start|resume|status>` — peer-aware Claude/Codex co-development over clauth, with ask --wait as the default delegation pattern.