Claude Gif 标志

Claude Gif

社区
AgriciDaniel
claude-gif

终极 GIF 制作工具:AI 视频转 GIF(Veo 3.1)、程序化动画(Remotion)、AI 图像序列拼接(Gemini/FLUX.2)、动画 SVG 转透明 GIF(Playwright)、视频转换,以及 GIF 编辑和优化。支持调色板优化、完美循环播放、针对不同平台调整尺寸和控制抖动。用户提到“gif”“create gif”“make gif”“animated gif”“convert to gif”“optimize gif”“gif from video”“meme gif”“reaction gif”“loading spinner gif”“logo animation gif”“transparent gif”“svg to gif”或“/gif”时使用。

概览

发布者AgriciDaniel
代码仓库claude-gif
技能名称claude-gif
星标数
31
复刻数
8
附带文件
12
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 12 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 AgriciDaniel 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Claude Gif AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/AgriciDaniel/claude-gif/tree/main/skills/claude-gif
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AgriciDaniel/claude-gif.git /tmp/claude-gif
mkdir -p .claude/skills
cp -r /tmp/claude-gif/skills/claude-gif .claude/skills/claude-gif
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Claude Gif,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Claude Gif。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Claude Gif 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

claude-gif -- The Ultimate GIF Creator

Orchestrates five sub-skills to create, generate, convert, optimize, and edit GIFs. Every path from concept to final optimized GIF runs through this skill.

Quick Reference

CommandDescriptionSub-Skill
/gif create <idea>Programmatic animation via Remotion (text, spinners, memes, motion graphics)claude-gif-create
/gif generate <prompt>AI video generation via Veo 3.1, then convert to GIFclaude-gif-generate
/gif convert <path>Convert video, image sequence, or animated SVG to GIFclaude-gif-convert
/gif optimize <path>Reduce GIF file size for a target platformclaude-gif-optimize
/gif edit <path>Modify an existing GIF (speed, reverse, crop, text, trim)claude-gif-edit
/gif setupInstall/verify all dependencies(setup.sh)
/gif <idea>Auto-detect best approach from description(orchestrator routes)

Orchestration Logic

When the user invokes /gif, determine intent and route to the correct sub-skill.

Intent Detection

  1. Has a file path to a video/image/SVG? --> /gif convert
  2. Has a file path to an existing GIF?
    • Mentions size, compress, platform fit --> /gif optimize
    • Mentions speed, reverse, crop, text, trim --> /gif edit
  3. Describes a text animation, spinner, counter, meme, logo animation, progress bar? --> /gif create
  4. Describes realistic/cinematic motion, product demo, abstract art, nature scene? --> /gif generate
  5. Ambiguous description of something to animate?
    • If it involves text, geometric shapes, UI elements --> /gif create (Remotion)
    • If it involves photorealistic subjects, complex motion --> /gif generate (Veo)
  6. Mentions "optimize", "compress", "reduce", "fit", platform name? --> /gif optimize
  7. Mentions "edit", "speed", "reverse", "crop", "text overlay"? --> /gif edit
  8. Says "setup" or "install"? --> Run bash ~/.claude/skills/claude-gif/scripts/setup.sh

Routing Commands

/gif create "bouncing hello world text"      --> claude-gif-create
/gif generate "campfire flickering at night"  --> claude-gif-generate
/gif convert ~/Videos/clip.mp4               --> claude-gif-convert
/gif convert ~/Design/logo.svg               --> claude-gif-convert (Mode D: SVG)
/gif optimize ~/Documents/gif_output/big.gif --> claude-gif-optimize
/gif edit ~/Documents/gif_output/clip.gif    --> claude-gif-edit
/gif setup                                   --> scripts/setup.sh

Bare /gif <description> Routing

When no explicit sub-command is given, analyze the description:

  • Keywords "text", "spinner", "loading", "counter", "meme", "typewriter", "logo reveal", "progress" --> create
  • Keywords "realistic", "cinematic", "product", "nature", "abstract", "person", "animal" --> generate
  • A file path to .mp4/.webm/.mov/.avi/.mkv/.svg --> convert
  • A file path to .gif + size/platform keywords --> optimize
  • A file path to .gif + edit keywords --> edit

Quality Presets

PresetWidthFPSColorsDitherMax SizeBest For
discord320px10128bayer:3256 KBDiscord inline embeds
slack400px12192floyd_steinberg500 KBSlack messages
twitter480px15256floyd_steinberg15 MBTwitter/X posts
web480px15256floyd_steinberg2 MBGeneral web usage
hq640px20256sierra210 MBHigh-quality display

Safety Rules

  1. No-overwrite: Always pass -n to FFmpeg (skip if output exists). Only pass -y when user explicitly says overwrite.
  2. Source protection: NEVER write output to the same path as input. Preflight catches this.
  3. Cost confirmation: Veo generation costs money. Always confirm with user before calling generate.py.
  4. Temp isolation: All intermediate files go in /tmp/claude-gif/. Clean up on completion.
  5. Output directory: Final GIFs go to ~/Documents/gif_output/ unless user specifies a different path.
  6. Preflight check: Run bash ~/.claude/skills/claude-gif/scripts/preflight.sh <input> <output> before any file write.

Multi-Step Pipelines

Complex requests may chain sub-skills:

generate --> convert --> optimize
  (Veo)    (to GIF)   (for Discord)

create --> optimize
(Remotion)  (shrink)

convert --> edit --> optimize
(video)   (trim)   (platform)

convert (SVG) --> optimize
  (Playwright)    (for web)

Always plan the full pipeline before starting. Tell the user the steps.

Pre-Flight

Before ANY write operation:

bash
bash ~/.claude/skills/claude-gif/scripts/preflight.sh <input_file> <output_file>

On /gif setup or first use:

bash
bash ~/.claude/skills/claude-gif/scripts/check_deps.sh

If dependencies are missing:

bash
bash ~/.claude/skills/claude-gif/scripts/setup.sh

Reference Files

Load on demand -- only read the reference relevant to the current task:

ReferencePathWhen to Load
GIF Optimization~/.claude/skills/claude-gif/references/gif-optimization.mdBefore optimize, or choosing palette/dither settings
Platform Specs~/.claude/skills/claude-gif/references/platform-specs.mdWhen targeting a specific platform
Remotion Patterns~/.claude/skills/claude-gif/references/remotion-gif.mdBefore writing Remotion components
Prompt Engineering~/.claude/skills/claude-gif/references/prompt-engineering.mdBefore constructing Veo prompts
Perfect Loops~/.claude/skills/claude-gif/references/perfect-loops.mdWhen making seamless loops

Scripts

ScriptPathPurpose
setup.shscripts/setup.shInstall and verify all dependencies
check_deps.shscripts/check_deps.shCheck dependency status (JSON, no installs)
preflight.shscripts/preflight.shSafety check before writes (input/output validation)
gif_convert.shscripts/gif_convert.shFFmpeg two-pass palette video-to-GIF conversion
gif_optimize.pyscripts/gif_optimize.pyMulti-strategy GIF size optimizer (Python)
gif_loop.pyscripts/gif_loop.pyPerfect loop creator: crossfade, ping-pong, freeze blend (Python)
gif_frames.pyscripts/gif_frames.pyAssemble PNG/JPEG frames into optimized GIF (Python)

All scripts are in ~/.claude/skills/claude-gif/scripts/. Python scripts use ~/.video-skill/bin/python3 (venv with Pillow, numpy).

Sub-Skills

Sub-SkillWhen to Use
claude-gif-createProgrammatic animations: text, spinners, counters, memes, logos, progress bars, motion graphics. Uses Remotion (React + Node.js).
claude-gif-generateAI-generated motion: cinematic loops, product demos, abstract art, realistic subjects. Uses Veo 3.1 (costs money).
claude-gif-convertFile conversion: video to GIF, image sequence to GIF, AI image sequence to GIF, animated SVG to transparent GIF.
claude-gif-optimizeSize reduction: platform auto-fit, lossy compression, color/dimension/frame reduction, dither tuning.
claude-gif-editModify existing GIFs: speed change, reverse, ping-pong, crop, resize, text overlay, frame extraction, loop control, trim.

Workflow Example

User: "Make me a Discord-sized GIF of a cozy campfire loop"

  1. Route to claude-gif-generate (realistic motion = Veo)
  2. Read references/prompt-engineering.md for loop-friendly prompt patterns
  3. Confirm cost with user (~$0.60 for 4s Veo Fast)
  4. Generate 4s campfire video via Veo
  5. Convert to GIF: gif_convert.sh --input campfire.mp4 --preset discord
  6. Perfect loop: gif_loop.py --input campfire.gif --method crossfade --frames 5
  7. Verify size < 256KB. If over, route through claude-gif-optimize
  8. Deliver to ~/Documents/gif_output/campfire_discord.gif

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Claude Gif AI 技能有什么作用?

终极 GIF 制作工具:AI 视频转 GIF(Veo 3.1)、程序化动画(Remotion)、AI 图像序列拼接(Gemini/FLUX.2)、动画 SVG 转透明 GIF(Playwright)、视频转换,以及 GIF 编辑和优化。支持调色板优化、完美循环播放、针对不同平台调整尺寸和控制抖动。用户提到“gif”“create gif”“make gif”“animated gif”“convert to gif”“optimize gif”“gif from video”“meme gif”“reaction gif”“loading spinner gif”“logo animation gif”“transparent gif”“svg to gif”或“/gif”时使用。

为什么在 TypingMind 中使用 Claude Gif?

因为您只需安装一次,就能搭配任何模型使用。Claude Gif 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Claude Gif?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/AgriciDaniel/claude-gif/tree/main/skills/claude-gif。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Claude Gif?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Claude Gif 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Claude Gif 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Claude Gif AI 技能免费吗?

是的。AgriciDaniel 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇