Openclaw Skills converts PDFs, Lexiang links, or prepared Markdown into faithful bilingual Markdown work packages.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install trans-doc-to-md
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install trans-doc-to-md using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Openclaw Skills for trans-doc-to-md turn PDFs, Lexiang document links, and prepared Markdown packages into a normalized bilingual Markdown workflow that preserves source paragraphs, local image paths, tables, and ordering. The skill chooses a generic article profile or a strict pdf-rich profile so the final output matches the structure of the source instead of summarizing it.
It is optimized for document fidelity: source.md becomes the read-only baseline, meta.json carries the canonical metadata, optional images/ is kept in sync, and the final Markdown file is named from the original title. Publishing is intentionally delegated to upload-markdown-to-lexiang, keeping Openclaw Skills focused on extraction, cleanup, translation, and validation.
source.md and meta.json already exist and should be treated as the source of truth.generic profile or the strict pdf-rich profile before release.references/lessons-learned.md and identify the input mode: Lexiang link, local/remote PDF, or prepared Markdown package.source.md, meta.json, and optional assets such as images/, images.json, parsed_raw.md, or paper.pdf.source.md and write the BCP 47 result into meta.json.language.source.md: preserve full source paragraphs, lists, links, tables, code, and local image order while removing clear parsing noise.meta.json.title, keeping headings and list items in single-line bilingual form.generic or pdf-rich), then optionally delegate publishing to upload-markdown-to-lexiang using the shared work package.sed -n '1,220p' references/lessons-learned.md
python3 -m pip install pymupdf Pillow numpy requests
Create or choose a dedicated work directory and preserve source.md as the immutable baseline once it is generated.
Fetch or extract the source into the work directory.
python3 scripts/lexiang_fetch.py "<Lexiang URL or entry_id>" --out-dir out/my-doc
python3 scripts/lexiang_fetch.py "<entry_id>" --out-dir out/my-doc --download-pdf
curl -L -o out/my-doc/paper.pdf "<PDF URL>"
python3 scripts/pdf_extract.py out/my-doc/paper.pdf --text --out-dir out/my-doc
python3 scripts/pdf_extract.py out/my-doc/paper.pdf --thumbs --out-dir out/my-doc
export GEMINI_API_KEY="<your-key>"
python3 scripts/translate_gemini.py draft.md "<Original Title>.md"
python3 scripts/bilingual_validate.py source.md "<Original Title>.md" --profile generic --json
python3 scripts/bilingual_validate.py source.md "<Original Title>.md" --profile pdf-rich --raw-source parsed_raw.md --json
python3 "<uploader-root>/scripts/lexiang_upload.py" --version
python3 "<uploader-root>/scripts/lexiang_upload.py" upload --work-dir "out/my-doc" --md "<Original Title>.md" --meta-file meta.json --parent-from-meta --source-from-meta --name-suffix " 中英对照" --pin --json
Openclaw Skills uses a strict work directory contract so every document can be validated, translated, and published deterministically.
| Path | Required | Purpose |
|---|---|---|
source.md |
Yes | Immutable source baseline; all cleanup and validation compare against this file. |
meta.json |
Yes | Canonical metadata used to name, route, and publish the document. |
images/ |
Optional | Local image assets referenced by source.md; paths must remain stable. |
<Original Title>.md |
Yes | Final bilingual Markdown output named from meta.json.title with filesystem-safe substitutions only. |
images.json |
Optional | Image manifest produced by Lexiang or extraction workflows. |
parsed_raw.md |
Optional | Raw parse artifact used by the pdf-rich validation path. |
paper.pdf |
Optional | Local or downloaded PDF source for extraction workflows. |
meta.json standard fields:
| Field | Type | Meaning |
|---|---|---|
title |
string | Original title; also the final Markdown file name and default publish title. |
source_url |
string | Original source URL, file:// URI, or empty string for local-only sources. |
source_title |
string | Display title from the source, usually the same as title. |
source_type |
enum | Preserved source type: article, youtube, podcast, pdf, lexiang, or prepared-markdown. |
language |
BCP 47 tag | Detected language such as en or zh-CN. |
parent_id |
string optional | Parent Lexiang entry ID used during publishing. |
Additional artifacts such as entry_id, space_id, images.json, parsed_raw.md, or paper.pdf may be retained, but they never replace the standard fields above. Once source.md is created, it becomes the validation baseline and should not be overwritten by cleanup or translation steps.
source.md exists, later steps write to drafts or final outputs only.generic, while dense PDF reports use pdf-rich for TOC, heading hierarchy, and rich-element checks.GEMINI_API_KEY is set.upload-markdown-to-lexiang and does not embed upload logic.bilingual_validate.py can emit JSON with status, ok, profile, scope, and error fields for automated pipelines.Loading
An autonomous agent playbook designed to help developers deploy persistent, interactive agents within the OpenBotCity ecosystem.

Openclaw Skills helps AI agents pressure-test risky designs with parallel specialist reviewers before implementation, exposing blockers, validating assumptions, and preventing hard-to-debug failures.

Openclaw Skills enables AI agents to control Intiface Central directly with native Buttplug v4 WebSocket commands.

Openclaw Skills for building agent-native prediction markets with verified identity, evidence-first settlement, and anti-gaming controls.

Openclaw Skills turns Markdown files into editable Tencent Lexiang pages with deterministic image handling, formula support, preflight checks, and remote verification.

Transforms transcripts, chat logs, and rough notes into structured, shareable meeting minutes with decisions, owners, deadlines, risks, and next steps.








































