agentleFS
AvatarGanymedeAvatarGanymede/MinerU-MCP/.claude/skills/mineru-convert/SKILL.md

mineru-convert

Skill5 starsChanged 9 months agoMITView on GitHub

Convert a document URL to Markdown via the Smithery-deployed MinerU MCP server (TypeScript version). Downloads and extracts results to temp/ directory.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 10 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the Smithery-deployed MinerU MCP server (TypeScript version) to convert a document URL to Markdown.

    line 8
  2. Very specific:

    Always use relative paths when executing shell commands: Never use absolute paths. Never cd to an absolute path before running a command — …

    line 21
  3. Very specific:

    Auto-extract zip files: When the output is a zip file, automatically unzip it to the same directory (same name without .zip extension).

    line 22
  4. Very specific:

    This skill only works with URLs: If the user provides a local file path, tell them to use the /convert-to-markdown skill instead.

    line 23
  5. Very specific:

    If not, inform the user that this skill only supports URLs and suggest using /convert-to-markdown for local files.

    line 30
  6. Very specific:

    Call the MCP tool convert_to_markdown with the document URL:

    line 34
  7. Distinctive:

    After the MCP tool returns a download URL:

    line 42
  8. Distinctive:

    If curl fails, report the error and provide the download URL so the user can download manually.

    line 51
  9. Distinctive:

    After the zip is downloaded:

    line 55
  10. Distinctive:

    Read the Markdown content.

    line 64
  11. Very specific:

    If the Markdown references other files (e.g.

    line 65
  12. Distinctive:

    If the user asked for analysis: Read the Markdown content and provide a summary or answer the user's questions about it.

    line 70
  13. Distinctive:

    If the MCP tool returns an error creating the task, report the API error message.

    line 75
  14. Very specific:

    If the task times out, return the task_id and suggest the user call get_task_status later.

    line 76
  15. Distinctive:

    If the task fails, report the error message from MinerU.

    line 77
  16. Distinctive:

    If curl download fails, provide the download URL for the user to download manually.

    line 78
  17. Distinctive:

    If unzip fails, inform the user and provide the zip file path.

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Smithery Document URL to Markdown Conversion

Use the Smithery-deployed MinerU MCP server (TypeScript version) to convert a document URL to Markdown. This skill is for URL-based input only — local file paths are not supported by the remote server.

Input

The user will provide:

  1. Document URL (required): an HTTP/HTTPS URL pointing to the document
  2. Instructions (optional): what to do with the converted content (analyze, summarize, etc.)

Supported formats: PDF, DOC, DOCX, PPT, PPTX, PNG, JPG, JPEG, HTML

Important Rules

  1. Always use relative paths when executing shell commands. Never use absolute paths. Never cd to an absolute path before running a command — just use relative paths directly.
  2. Auto-extract zip files. When the output is a zip file, automatically unzip it to the same directory (same name without .zip extension). Do NOT delete the zip file after extraction.
  3. This skill only works with URLs. If the user provides a local file path, tell them to use the /convert-to-markdown skill instead.

Workflow

1. Validate input

  • Confirm the input starts with http:// or https://.
  • If not, inform the user that this skill only supports URLs and suggest using /convert-to-markdown for local files.

2. Convert via MCP

Call the MCP tool convert_to_markdown with the document URL:

  • The server auto-detects file type and configures optimal settings (model, OCR, etc.)
  • The server polls until the task completes or times out
  • On success, the server returns a download URL for the result zip file

3. Download the result

After the MCP tool returns a download URL:

  1. Derive the output filename from the URL (e.g., report.pdf → report.zip).
  2. Download the zip file to ./temp/ using curl:
curl -L -o ./temp/<filename>.zip "<download_url>" --retry 3 --connect-timeout 30 --max-time 600 -f -s -S
  1. If curl fails, report the error and provide the download URL so the user can download manually.

4. Extract & Read

After the zip is downloaded:

  1. Unzip it to a directory next to the zip file (same name without .zip extension):
unzip -o ./temp/<filename>.zip -d ./temp/<filename>
  1. Find the .md file(s) inside the extracted directory.
  2. Read the Markdown content.
  3. If the Markdown references other files (e.g. images via ![](images/xxx.png)), note their paths — these are the only other files that matter.
  4. Ignore all other extracted files (JSON, content_list, middle results, etc.). Only focus on the .md file(s) and the files they reference.

5. Respond

  • If the user asked for analysis: Read the Markdown content and provide a summary or answer the user's questions about it.
  • If no specific instructions: Confirm conversion is complete and show the path to the extracted Markdown file(s).

Error Handling

  • If the MCP tool returns an error creating the task, report the API error message.
  • If the task times out, return the task_id and suggest the user call get_task_status later.
  • If the task fails, report the error message from MinerU.
  • If curl download fails, provide the download URL for the user to download manually.
  • If unzip fails, inform the user and provide the zip file path.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.