Communitygithub.com

檔案格式轉換 (ChangeThisFile)

在 PDF 與 Word、HEIC 與 JPG、MP4 與 MP3、CSV 與 JSON、EPUB 與 MOBI 等 999 種路線之間轉換檔案。透過 changethisfile.com 免費使用,無需 API 金鑰或註冊。

檔案格式轉換 (ChangeThisFile) 是什麼?

這個技能提供了一個全面的檔案轉換工具,支援超過 999 種轉換路線,涵蓋圖片、影片、音訊、文件、資料、字型、電子書和壓縮檔等多種格式。它利用 ChangeThisFile 的免費服務(限 25 MB 以內檔案),無需帳號或 API 金鑰,所有轉換都在伺服器端完成(使用 FFmpeg、LibreOffice、Calibre、7-Zip、sharp、Ghostscript 等引擎),且檔案會在 24 小時內刪除。 對於 AI 代理來說,這個技能極具實用性,因為它解決了代理在處理使用者上傳的檔案時經常遇到的格式不相容問題。例如,使用者可能提供 HEIC 圖片,但代理需要 JPG;或者提供 CSV 資料,但代理需要 JSON。這個技能讓代理能無縫地將檔案轉換為所需格式,再進行後續處理。 此技能支援多種使用方式:偏好使用 MCP 工具(`changethisfile:convert_file` 和 `changethisfile:list_conversions`)以獲得最佳整合;備用方案是使用捆綁的 Bash 腳本;對於遠端檔案,則可透過 curl 直接呼叫 API。它還有速率限制(每 IP 每分鐘 5 次轉換)和檔案大小限制,並提供相應的錯誤處理建議。

相容平台✓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 次轉換。若遇到「速率限制超標」,請等待 60 秒後重試一次。
  • 「不支援的轉換:X→Y」錯誤會列出該來源格式的有效目標格式。
  • 下載 URL 在 1 小時後過期 —— 請立即下載,然後處理本地檔案。

環境注意事項

  • 需要對 changethisfile.com 的對外 HTTPS 存取權。在 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.

相關技能