Communitygithub.com

文件格式转换 (ChangeThisFile)

在 PDF 转 Word、HEIC 转 JPG、MP4 转 MP3、CSV 转 JSON、EPUB 转 MOBI 等 999 种转换路线之间自由转换文件。通过 ChangeThisFile 免费使用,无需 API 密钥或注册。

文件格式转换 (ChangeThisFile) 是什么?

该技能利用 ChangeThisFile 提供的免费转换服务,支持 999 种不同格式之间的文件转换(如图像、视频、音频、文档、数据、字体、电子书和压缩包),无需用户注册或 API 密钥。它优先通过 MCP 工具(如 `changethisfile:convert_file`)进行转换,如果不可用,则回退到本地脚本(`scripts/convert.sh`),该脚本将文件 Base64 编码后调用后端 API,并在转换成功后返回输出文件路径。对于远程文件(URL),可以直接使用 cURL 调用 MCP 端点,一步完成转换。这适用于 Claude Code、Cursor 或 Codex 等 AI 代理平台,但注意在 claude.ai 内,代码执行沙箱默认限制出站流量,建议优先使用 MCP 连接器。技能会限制输入文件大小(最大 25 MB),并且每分钟每个 IP 最多 5 次转换,超出限制时需等待 60 秒。所有转换在服务器端完成(使用 FFmpeg、LibreOffice、Calibre 等),文件 24 小时内自动删除。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/wshobson/agents/tree/main/plugins/file-conversion/skills/file-conversion

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

文件格式转换 (ChangeThisFile) 是做什么的?

使用免费的 ChangeThisFile 服务在 999 种转换路线之间转换文件。无需账户或 API 密钥。转换在服务器端运行(FFmpeg、LibreOffice、Calibre、7-Zip、sharp、Ghostscript);文件在 24 小时内删除。

决策顺序

  1. 如果 ChangeThisFile MCP 工具可用(changethisfile:convert_file、changethisfile:list_conversions)——直接使用它们。convert_file 接受 source_url 或 base64_content + source_format,以及 target_format,并返回一个临时下载 URL。
  2. 否则使用捆绑脚本(需要网络访问 changethisfile.com):
scripts/convert.sh <input-file> <target-format> [output-file]
# 例如 scripts/convert.sh report.docx pdf
# 成功时打印输出文件路径

脚本路径相对于该技能所在目录。它将文件进行 Base64 编码,通过纯 HTTPS 调用托管的 MCP 端点,下载结果,并写入到输入文件旁边(或写入到 [output-file])。

  1. 远程文件(你有一个 URL,而不是本地文件)——跳过下载/重新上传;一条 cURL 搞定:
curl -sS -X POST https://changethisfile.com/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"convert_file","arguments":{"source_url":"<FILE_URL>","target_format":"pdf"}}}'

响应文本包含一个下载 URL——使用 curl -o <output> 获取它。

发现支持的路线

如果转换比较特殊,先询问再猜测:

curl -sS -X POST https://changethisfile.com/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_conversions","arguments":{"source_format":"docx"}}}'

省略 source_format 以获取所有 999 条路线的分组摘要。

限制和错误

  • 最大输入:25 MB(免费路径)。更大的文件:在 https://changethisfile.com/docs/authentication 获取免费 API 密钥(每月 1,000 次转换)并使用 POST /v1/convert。
  • 速率限制:每分钟每个 IP 5 次转换。遇到 "Rate limit exceeded" 时,等待 60 秒然后重试一次。
  • "Unsupported conversion: X→Y" 错误会列出该源格式的有效目标格式。
  • 下载 URL 1 小时后过期——立即下载,然后处理本地文件。

环境说明

  • 需要出站 HTTPS 连接至 changethisfile.com。在 claude.ai 上,代码执行沙箱默认限制出站流量——在那里优先使用 MCP 连接器,或者用户可以在设置 → 功能中允许该域名。
  • 完整文档:https://changethisfile.com/docs/mcp

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

wshobson/accessibility-compliance

Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.

wshobson/airflow-dag-patterns

Build production Apache Airflow DAGs with best practices for operators, sensors, testing, and deployment. Use when creating data pipelines, orchestrating workflows, or scheduling batch jobs.

wshobson/angular-migration

Migrate from AngularJS to Angular using hybrid mode, incremental component rewriting, and dependency injection updates. Use when upgrading AngularJS applications, planning framework migrations, or modernizing legacy Angular code.

wshobson/anti-reversing-techniques

Understand anti-reversing, obfuscation, and protection techniques encountered during software analysis. Use this skill when analyzing malware evasion techniques, when implementing anti-debugging protections for CTF challenges, when reverse engineering packed binaries, or when building security research tools that need to detect virtualized environments.

wshobson/api-design-principles

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

wshobson/architecture-decision-records

Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.

wshobson/architecture-patterns

Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing clean architecture for a new microservice, when refactoring a monolith to use bounded contexts, when implementing hexagonal or onion architecture patterns, or when debugging dependency cycles between application layers.

wshobson/async-python-patterns

Master Python asyncio, concurrent programming, and async/await patterns for high-performance applications. Use when building async APIs, concurrent systems, or I/O-bound applications requiring non-blocking operations.

wshobson/attack-tree-construction

Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.

wshobson/auth-implementation-patterns

Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.

wshobson/avoid-ai-writing

Audit and rewrite prose so it stops reading as machine-generated. Use this skill when asked to remove AI-isms, clean up AI writing, edit a draft for AI tells, audit a README, changelog, release note, PR description, or blog post for machine-sounding prose, or make text sound less like AI. Supports a detect-only mode, a rewrite mode, and an edit-in-place mode, with optional voice and context profiles.

wshobson/backtesting-frameworks

Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. Use when developing trading algorithms, validating strategies, or building backtesting infrastructure.

wshobson/bash-defensive-patterns

Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.

wshobson/bats-testing-patterns

Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test-driven development of shell utilities.

wshobson/bazel-build-optimization

Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.

wshobson/before-you-build

Pre-build product and feature risk review for founders, product managers, and AI-assisted builders. Use this skill when the user is about to build a landing page, MVP, SaaS product, internal tool, agent workflow, or major feature and needs to check demand, positioning, monetization, retention, trust, distribution, and adoption risk before implementation starts.

wshobson/billing-automation

Build automated billing systems for recurring payments, invoicing, subscription lifecycle, and dunning management. Use when implementing subscription billing, automating invoicing, or managing recurring payment systems.

wshobson/binary-analysis-patterns

Master binary analysis patterns including disassembly, decompilation, control flow analysis, and code pattern recognition. Use when analyzing executables, understanding compiled code, or performing static analysis on binaries.

wshobson/block-no-verify-hook

Configure a PreToolUse hook to prevent AI agents from skipping git pre-commit hooks with --no-verify and other bypass flags. Use when setting up Claude Code projects that enforce commit quality gates.

wshobson/brand-landingpage

Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established visual direction. Skip when they have a design mockup, need a dashboard or app UI, are working at component level, building a multi-page app, or restyling with known design tokens — use frontend-design instead.

相关技能