Introduction¶
In documents, operational materials, or automation scripts, a common requirement is to convert PNG to WebP, clip a segment of a presentation video to create a GIF, or merge multiple PDFs into a single file. Large language model conversations themselves cannot modify binary files; typically, you have to find tools like Sharp, FFmpeg, or pdf-lib yourself and write scripts. Here, we introduce the SkillHub community Skill “File Converter”: it encapsulates the above capabilities into a SKILL.md that Agents can follow, accompanied by a Node.js command-line entry point converter.js, allowing the Agent to call local commands step-by-step during the conversation to complete the conversion.
What is this¶
File Converter is an Agent Skill designed for design-media scenarios, with coordinates @user_8509461a/file-converter-new, current version 1.0.0, source community, and publisher user_8509461a (the SkillHub page lists the author as Shu Qi Tou Guan (Sichuan) Enterprise Management Co., Ltd.). The SkillHub category is design-media, tagged requires_api_key=false, meaning it does not rely on an additional API Key.
Official description: A professional file format conversion tool supporting image format conversion/compression, video to GIF conversion, and PDF merging, based on the high-performance processing engines Sharp and FFmpeg. This Skill has a rating of 100000 on SkillHub and 1297 downloads (statistics are based on the SkillHub page).
- SkillHub Display Page: https://www.skillhub.cn/skills/user_8509461a/file-converter-new
- Resource Address: https://api.skillhub.cn/user_8509461a/file-converter-new
Core Functions¶
The following capabilities are consistent with the SKILL.md and converter.js in the installation package. After installation, the Agent should prioritize scheduling node converter.js according to the Skill instructions.
Images¶
- Mutual format conversion: PNG, JPG, WebP, GIF, etc. (
convertsubcommand, with adjustable width, height, and quality). - Single image compression:
compress, specify quality via-q. - Directory batch processing:
batch, specify target format via-f(e.g., jpg, png, webp).
Video to GIF¶
- Supports common input container formats (help info lists mp4, avi, mov, etc.; the
formatssubcommand also lists mkv, webm, flv). video2gifsupports start time-s, duration-t, width-w, and frame rate-fps.
PDF¶
- Merge:
merge, combines multiple PDFs into a single output file (implementation based on pdf-lib). - Convert to Image:
pdf2img; at runtime, it will prompt for the installation of poppler-utils on the system and provide usage instructions forpdftoppm. - The Skill documentation also mentions PDF splitting; the
converter.jshelp containssplitinstructions, but the current main command dispatch logic does not connect to this subcommand. Actual splitting requires manual extension or using system tools.
Helpers¶
info: View file information.formats: List the image and video extensions supported by the tool.
The Skill also exposes programming interface names (e.g., convertImage, videoToGif, mergePdf) at the documentation level, corresponding to the exported functions in converter.js, facilitating the Agent in generating call examples.
Installation and Activation¶
1. Install SkillHub CLI (if not installed)¶
Follow the SkillHub installation instructions to check or install the CLI:
command -v skillhub && skillhub --version
If not installed, you can execute the full installation script (the documentation recommends CLI + default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
2. Install the Skill into the current Agent’s skills directory¶
When installing, you must use --dir to point to the skills directory recognized by the current client; otherwise, if it defaults to ./skills/, it might not be loaded. Common paths (excerpted from official installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Command line installation example (consistent with skillhub search results):
skillhub install file-converter-new --namespace user_8509461a --dir ~/.cursor/skills
You can also ask the AI to install it according to SkillHub guidelines during the conversation:
Please install `@user_8509461a/file-converter-new` based on https://skillhub.cn/install/skillhub.md.
After installation, the skill directory is generally .../@user_8509461a/file-converter-new/, containing SKILL.md and converter.js.
3. Install Node dependencies¶
After entering the skill directory, install the dependencies in package.json (sharp, fluent-ffmpeg, pdf-lib):
cd ~/.cursor/skills/@user_8509461a/file-converter-new
npm install
SKILL.md also provides an equivalent command: npm install sharp fluent-ffmpeg pdf-lib. If packages are missing during the first run, converter.js will attempt to execute npm install <package_name> within the skill directory.
4. System dependencies¶
- Video to GIF: A working ffmpeg is required on the local machine (fluent-ffmpeg calls the system ffmpeg).
- PDF to Image: Follow the prompts in the skill to install poppler-utils (e.g., Debian/Ubuntu:
sudo apt-get install poppler-utils), then usepdftoppmor the later improvedpdf2imgflow.
Typical Usage¶
The following examples are from the official SKILL.md and should be executed within the skill directory. First, switch the working path to the installed @user_8509461a/file-converter-new.
Convert single image format:
node converter.js convert input.png output.jpg
Batch convert to JPG:
node converter.js batch ./images -f jpg
Compress and specify quality:
node converter.js compress input.png -q 80
Video to GIF (defaults to starting at 0 seconds, duration 10 seconds, adjustable with -t):
node converter.js video2gif input.mp4 output.gif -t 10
Clip a segment and limit width:
node converter.js video2gif input.mp4 output.gif -s 5 -t 10 -w 480
Merge PDFs:
node converter.js merge file1.pdf file2.pdf output.pdf
PDF to Image (output directory optional):
node converter.js pdf2img document.pdf ./output/
The typical workflow in an Agent session is: User provides local file path and target format → Agent reads SKILL.md → Executes corresponding node converter.js ... in terminal → Returns output path or error info. No API Key configuration is needed.
Use Cases and Notes¶
Who it’s for
- Those who need to drive local batch processing (like image/WebP optimization, short video GIFs, or PDF merging) using natural language in clients that support Skills, such as Cursor, Claude Code, or Codex.
- Those who accept the Node.js runtime and are willing to maintain
npmdependencies in the skill directory.
Limitations and Notes
- It processes file paths on the user’s machine. For large files or batch tasks, pay attention to disk space and ffmpeg processing time.
- The current implementation of
pdf2imgprimarily prompts for poppler installation; do not assume one-click image generation. PDF merging is based onpdf-lib, so complex layouts need manual verification. - There are other “file-converter” Skills with similar names on SkillHub (e.g., text JSON/YAML types) with different coordinates. When installing, please confirm the namespace user_8509461a and the slug file-converter-new.
- After modifying the skills directory, some clients may require a restart or conversation reload to recognize the new Skill (subject to each client’s documentation).
Conclusion¶
File Converter consolidates common media operations like the image Sharp pipeline, video FFmpeg to GIF conversion, and PDF merging into a single community Skill. It constrains Agent behavior through SKILL.md and provides reproducible commands via converter.js. If your workflow focuses on local file processing for design-media, you can install @user_8509461a/file-converter-new from SkillHub. After setting up Node and ffmpeg, you can drive conversions by path within the conversation.
Official Entry Point: https://www.skillhub.cn/skills/user_8509461a/file-converter-new