- name
Convert an attached Word document, presentation, spreadsheet, OpenDocument file, RTF, EPUB, CSV, or text-based PDF into local Markdown. Use when a message supplies a local attachment path that must be
SKILL.md
The skill file stays in the publisher's repository.
Paste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add nanocoai/nanoclaw --skill convert-documents-to-markdown -a cursor -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add nanocoai/nanoclaw --skill convert-documents-to-markdown -a claude-code -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add nanocoai/nanoclaw --skill convert-documents-to-markdown -a codex -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add nanocoai/nanoclaw --skill convert-documents-to-markdown -a grok -ySend the copied message in a Grok Bot chat. The Bot fetches this SKILL.md from GitHub and adds it to the skills all your Bots share.
Install this skill: https://github.com/nanocoai/nanoclaw/tree/HEAD/.claude/skills/add-anydoc/container-skills/convert-documents-to-markdownFrom the publisher
Use the installed Firecrawl AnyDoc CLI (MIT). Conversion is local to the agent container.
Use the exact local attachment path supplied in the message. Current Chat SDK attachments normally use /workspace/inbox/<message-id>/<file>. Encode the path as a single-quoted shell literal, replacing each apostrophe with '"'"'. Never paste an untrusted path inside double quotes because command substitutions still execute there. Quote generated paths, put options before --, and put the input after it:
input_path='/workspace/inbox/<message-id>/<document>'
mkdir -p "/workspace/agent/converted"
output_dir="$(mktemp -d "/workspace/agent/converted/anydoc.XXXXXX")"
output_path="$output_dir/document.md"
timeout 60s anydoc -o "$output_path" -- "$input_path"
printf 'Converted document: %s\n' "$output_path"
For example, this assigns a filename containing both shell syntax and an apostrophe without executing it:
input_path='/workspace/inbox/msg/report $(echo unsafe) '"'"'Q3'"'"'.docx'
The -- prevents a filename beginning with - from becoming an option. If timeout is unavailable, run the same anydoc command without the wrapper.
For CSV read from stdin, name the format explicitly:
anydoc - --format csv < "$input_path"
Prefer -o except for tiny inputs. Read only the relevant sections of large Markdown files instead of placing the complete output in model context.
© 2026 Skills Rack.
---name: convert-documents-to-markdowndescription: Convert an attached Word document, presentation, spreadsheet, OpenDocument file, RTF, EPUB, CSV, or text-based…---# .claude/skills/add-anydoc/container-skills/convert-documents-to-markdown/SKILL.mdOverview
Convert an attached Word document, presentation, spreadsheet, OpenDocument file, RTF, EPUB, CSV, or text-based PDF into local Markdown. Use when a message supplies a local attachment path that must be read without uploading it to an external parser.
FAQ
Download .claude/skills/add-anydoc/container-skills/convert-documents-to-markdown/SKILL.md from the publisher, or copy the path and open the repository. PlugMCP lists the skill and does not host the file.
The publisher keeps it at https://github.com/nanocoai/nanoclaw.
Claude, Cursor, Codex, and Grok Build can read a SKILL.md you add from the publisher's repository. Grok Bot installs it when you send the skill's GitHub folder link in a chat.