Agent SkillsAFK-surf/OpenBridge › format-converter

format-converter

GitHub

用于在本地VM环境中进行文档、图像及音视频格式转换。支持通过Pandoc处理文档,Pillow处理图像,FFmpeg处理音视频,确保高质量转换并遵循特定最佳实践。

macos/OpenBridge/Resources/SystemSkills.bundle/format-converter/SKILL.md AFK-surf/OpenBridge

Trigger Scenarios

需要将文件从一种格式转换为另一种格式 用户请求文档、图片或音视频的格式转换

Install

npx skills add AFK-surf/OpenBridge --skill format-converter -g -y
More Options

Non-standard path

npx skills add https://github.com/AFK-surf/OpenBridge/tree/main/macos/OpenBridge/Resources/SystemSkills.bundle/format-converter -g -y

Use without installing

npx skills use AFK-surf/OpenBridge@format-converter

指定 Agent (Claude Code)

npx skills add AFK-surf/OpenBridge --skill format-converter -a claude-code -g -y

安装 repo 全部 skill

npx skills add AFK-surf/OpenBridge --all -g -y

预览 repo 内 skill

npx skills add AFK-surf/OpenBridge --list

SKILL.md

Frontmatter
{
    "name": "format-converter",
    "metadata": {
        "icon": "play.tv.fill",
        "color": "pink",
        "displayName": "Convert Master",
        "placeholder": "Upload a file to convert"
    },
    "description": "Convert files between formats. Use for Document conversion, Image format conversion, and Audio\/Video format conversion."
}

File Format Conversion

Execution Environment

Run format conversion commands in the local VM environment by default. Do not perform conversion work on local macOS or a cloud VM unless the user explicitly asks for that environment.

Workflow Decision

Task Tool Reference
Document conversion pandoc document-convert.md
Image format conversion Python (Pillow) image-convert.md
Audio/video conversion ffmpeg av-convert.md

Quick Reference

Document Conversion

Read references/document-convert.md for detailed workflow.

Key points:

  • PDF generation: ALWAYS use --pdf-engine=weasyprint (lightweight, auto-installed)
  • Pandoc supports markdown, HTML, PDF, DOCX, LaTeX, and many more formats
# PDF from markdown
pandoc input.md -o output.pdf --pdf-engine=weasyprint

# DOCX from HTML
pandoc input.html -o output.docx

Image Conversion

Read references/image-convert.md for detailed workflow.

Key points:

  • Use Image.LANCZOS for any resize operation (prevents color banding/aliasing)
  • Convert RGBA to RGB before saving as JPEG
  • Preserve EXIF metadata when possible
# Dependencies
apt install python3-pil python3-pillow-heif

Audio/Video Conversion

Read references/av-convert.md for detailed workflow.

Key points:

  • Use -c copy when only changing container format (fast, lossless)
  • Use flags=lanczos in scale filters for best quality
  • Use -crf for quality-based encoding

Check ffmpeg available before using it.

Version History

  • a9ca905 Current 2026-07-24 11:34

Same Skill Collection

.agents/skills/app-store-changelog/SKILL.md
.agents/skills/bridge-agent-log-analyzer/SKILL.md
.agents/skills/gh-issue-fix-flow/SKILL.md
.agents/skills/github/SKILL.md
.agents/skills/react-component-performance/SKILL.md
.agents/skills/swift-concurrency-expert/SKILL.md
.agents/skills/swift-testing-expert/SKILL.md
.agents/skills/swiftui-expert-skill/SKILL.md
.agents/skills/swiftui-performance-audit/SKILL.md
.agents/skills/swiftui-ui-patterns/SKILL.md
.agents/skills/swiftui-view-refactor/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/github/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/linear/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/skill-manager/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/ui-designer/SKILL.md
.agents/skills/swift-concurrency/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/docs/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/pdfs/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/spreadsheets/SKILL.md

Metadata

Files
0
Version
a9ca905
Hash
40bf3e7a
Indexed
2026-07-24 11:34

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-06 17:33
浙ICP备14020137号-1 $Гость$