Openclawx doc-processor

Reads, parses, and generates documents in various formats like Markdown, PDF, docx, CSV, or HTML. Uses bash commands to invoke document conversion tools like pandoc or python scripts.

install
source · Clone the upstream repo
git clone https://github.com/next-open-ai/openclawx
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/next-open-ai/openclawx "$T" && mkdir -p ~/.claude/skills && cp -r "$T/presets/workspaces/doc-assistant/skills/doc-processor" ~/.claude/skills/next-open-ai-openclawx-doc-processor && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/next-open-ai/openclawx "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/presets/workspaces/doc-assistant/skills/doc-processor" ~/.openclaw/skills/next-open-ai-openclawx-doc-processor && rm -rf "$T"
manifest: presets/workspaces/doc-assistant/skills/doc-processor/SKILL.md
source content

Document Processor Skill

Use this skill when the user asks you to read specific technical documents, summarize reports, or generate structured files (like a structured markdown report, a CSV of data, or an HTML presentation).

Workflow

  1. Reading Documents:
    • If the file is plaintext (txt, md, csv, json), use the
      read
      tool directly.
    • If it's a binary document (pdf, docx), check if tools like
      pdftotext
      or
      pandoc
      are installed via the
      bash
      tool, then convert it to text in a temporary directory (
      /tmp/
      ) before reading it.
  2. Generating Documents:
    • Understand the required structure and content from the user.
    • Draft the content in a plaintext format (e.g., Markdown) using the
      write
      tool.
    • If the user requested a specific format like PDF or HTML, use
      bash
      to run
      pandoc output.md -o output.pdf
      or similar commands.
  3. If necessary tools (like pandoc) are missing, politely inform the user to install them or provide the drafted Markdown as a fallback.
  4. Notify the user with the path to the newly generated document.