Introduction¶
When an Agent reads a document, the raw PDF or .docx binary cannot be placed directly into the context. Typical workarounds include manual copy-pasting or writing custom scripts that call various parsing libraries, which often entails dealing with Conda, Python dependencies, and garbled Chinese PDFs. markdown_everything—a community Skill on SkillHub (coordinates @user_2b82496a/wokaka209)—packages “environment setup + multi-format-to-Markdown conversion” into a single workflow that an Agent can invoke. It is labelled requires_api_key=false and does not depend on any external API key.
What Is This¶
Positioning of markdown_everything (SkillHub page version v0.0.1, source community, publisher user_2b82496a, category ai-agent): convert 20+ formats such as PDF, Word, Excel, PPT, and images into Markdown so that AI Agents can directly read the content.
Implementation-wise, the Skill ships with a scripts/ folder:
- manage_environment.sh handles Conda / pip environment creation and MarkItDown installation.
- convert_document.py serves as the conversion entry point.
- For PDFs, pdf_encoding_fixer.py provides Chinese-encoding correction based on pdfplumber.
The Skill follows the standard SKILL.md format. Once loaded, the Agent can execute the commands and workflows described in the document without additional setup.
Core Features¶
The capabilities below are based on the current downloadable package from SkillHub.
Multi-format conversion: Types listed in the official introduction and SKILL document include PDF, Word (.doc / .docx), Excel (.xlsx / .xls / .csv), PPT (.ppt / .pptx), common images (with OCR), audio transcription, HTML, JSON / XML, e-books, ZIP batch processing, and YouTube URL subtitles, among others. It relies on MarkItDown (markitdown[all]) as the underlying engine.
Environment & dependencies: On first use, run manage_environment.sh setup to create a default Conda environment (default name markitdown, Python 3.12). If Conda is unavailable or fails, it falls back to pip. Environment variables MARKITDOWN_ENV_NAME, MARKITDOWN_PYTHON_VER, and MARKITDOWN_USE_PIP allow overriding the defaults.
Chinese PDF support: The skill attempts Unicode-level extraction for PDFs to mitigate garbled text; if that fails, it reverts to the standard MarkItDown path.
Agent-side workflow (as recommended in the SKILL doc):
1. Confirm the absolute path of the input file.
2. Optionally specify the output directory.
3. Execute the convert command.
4. Read the generated .md file and use it to answer.
Installation & Activation¶
1. Install SkillHub CLI¶
If you have not installed the CLI yet, follow the SkillHub installation guide:
command -v skillhub && skillhub --version
If it is not installed, perform a full installation (including default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
CLI-only installation:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install markdown_everything¶
When installing, you must specify the Agent’s skills directory with --dir. Otherwise, the default ./skills/ may not be recognized. The official page instructs you to follow the above installation guide to install @user_2b82496a/wokaka209.
skillhub install wokaka209 --namespace user_2b82496a --dir ~/.cursor/skills/
Common skill directories (excerpt from the SkillHub installation doc):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installation, the Skill typically resides in a directory like ~/.cursor/skills/@user_2b82496a/wokaka209/. Restart or reload the Agent according to your client’s requirements after modifying skills.
3. Initialize the conversion environment¶
Navigate to the Skill’s scripts directory and run (Linux / macOS):
cd ~/.cursor/skills/@user_2b82496a/wokaka209/scripts
./manage_environment.sh setup
Use check to inspect the Conda and MarkItDown status:
./manage_environment.sh check
Typical Usage¶
After completing the steps above, use the convert sub-command for day-to-day conversions.
Convert a single file into the current directory:
./manage_environment.sh convert -i document.pdf
Specify an output directory:
./manage_environment.sh convert -i document.pdf -o /path/to/output
Force pip-only mode (when Conda is unavailable or for quick verification):
./manage_environment.sh convert --pip-only -i document.pdf -o /path/to/output
List supported formats (invokes the conversion script via run):
./manage_environment.sh run python convert_document.py --list-formats
During conversation, the Agent should first confirm the absolute input file path and output directory (the current directory can be used as default). Then execute the command within the scripts path shown above and read the .md file whose name matches the source file in the output directory as context.
Use Cases & Caveats¶
Suitable for: Scenarios in which you want the Agent within Cursor, Claude Code, Codex, etc. to digest Office / PDF / scanned documents supplied by users, without manually running pip install markitdown each time—the Skill scripts automatically manage dependencies.
Notes:
- The first
setuprun creates a Conda environment and installsmarkitdown[all]; duration depends on network and disk speed. Sandbox or restricted-network environments must allow the script to access the internet. - The SkillHub package v0.0.1’s
scripts/containsmanage_environment.sh. The SKILL document also mentionsmanage_environment.ps1for Windows; if only the.shfile exists on your machine, use the Bash script on Linux / macOS / WSL / Git Bash. - OCR, audio, YouTube, and similar capabilities depend on MarkItDown and its optional components; complex layouts or corrupted files may still require manual proofreading.
- Page statistics (based on crawled data): rating 100000, downloads 992, installs 6; these may differ from third-party reposts—refer to the SkillHub skill page.
Closing Remarks¶
markdown_everything unifies multiple document formats into Markdown and ships environment-management and Chinese-PDF-handling scripts, making it a convenient pre-processing step before an Agent reads documents. No API key is required; after installation via SkillHub, the Skill can be invoked following the SKILL workflow within an Agent session.
- SkillHub page: https://www.skillhub.cn/skills/user_2b82496a/wokaka209
- API coordinates: https://api.skillhub.cn/user_2b82496a/wokaka209
- Installation guide: https://skillhub.cn/install/skillhub.md