Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add isjiamu/jiamu-skills --skill gif-splittergit clone --depth 1 https://github.com/isjiamu/jiamu-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/isjiamu/jiamu-skills/gif-splitter)<a href="https://agentmods.dev/skills/isjiamu/jiamu-skills/gif-splitter"><img src="https://agentmods.dev/badge/skills/isjiamu/jiamu-skills/gif-splitter/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/isjiamu/jiamu-skills/gif-splitter"><img src="https://agentmods.dev/badge/skills/isjiamu/jiamu-skills/gif-splitter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.01261 |
| Opus 5 | $0.00023 | $0.00630 |
| Sonnet 5 | $0.00009 | $0.00252 |
| Haiku 4.5 | $0.00005 | $0.00126 |
Grade A, and why
gif-splitter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 156 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GIF 动图切分工具
概述
这个技能用于解决上传GIF到微信公众号等平台时遇到的"图片帧数超过300帧"限制问题。它会自动检测GIF帧数,并将超限的GIF智能切分成多个符合要求的小文件。
使用场景
当用户遇到以下情况时触发此技能:
- 上传GIF到微信公众号提示"帧数超过300帧"
- 需要将大GIF拆分成多个小GIF
- 需要检查GIF文件的帧数信息
- 需要将GIF拆分后确保每个文件不超过指定大小
快速开始
当用户需要切分GIF时,运行以下脚本:
# 切分单个GIF文件(默认最大280帧)
python3 ~/.claude/skills/jiamu-skills/gif-splitter/scripts/split_gif.py "GIF文件路径"
# 切分文件夹中所有GIF
python3 ~/.claude/skills/jiamu-skills/gif-splitter/scripts/split_gif.py "文件夹路径"
输出目录:原文件所在目录下的 split_output/ 文件夹
依赖环境
安装 Pillow
pip3 install Pillow
验证安装
python3 -c "from PIL import Image; print('Pillow 安装成功')"
使用命令
基础用法
# 切分单个文件
python3 scripts/split_gif.py "动图.gif"
# 切分整个文件夹
python3 scripts/split_gif.py ~/Desktop/gif文件夹/
自定义参数
# 指定最大帧数(默认280帧,微信限制300帧)
python3 scripts/split_gif.py "动图.gif" --max-frames 200
# 指定输出目录
python3 scripts/split_gif.py "动图.gif" -o ~/Desktop/output
# 仅查看GIF信息,不切分
python3 scripts/split_gif.py "动图.gif" --info
# 组合使用
python3 scripts/split_gif.py ~/gifs/ --max-frames 250 -o ~/output --info
参数说明
| 参数 | 说明 | 默认值 |
|---|---|---|
path |
GIF文件或文件夹路径 | 必填 |
--max-frames, -m |
每个输出文件的最大帧数 | 280 |
-o, --output |
输出目录 | 原目录下的 split_output/ |
--info |
仅显示GIF信息,不执行切分 | False |
工作原理
切分算法
- 读取GIF:使用Pillow库读取GIF的所有帧和每帧的持续时间
- 计算分片:根据总帧数和最大帧数限制,计算需要切分的文件数量
- 均匀分配:将帧数均匀分配到各个输出文件,避免最后一个文件帧数过少
- 保存输出:保留原始帧率和循环设置,生成优化后的GIF文件
示例
原文件:演示动画.gif(740帧,5.7MB)
切分结果:
演示动画_第1部分.gif (247帧, 约2MB)
演示动画_第2部分.gif (247帧, 约2MB)
演示动画_第3部分.gif (246帧, 约2MB)
平台限制参考
| 平台 | 帧数限制 | 文件大小限制 | 建议 --max-frames |
|---|---|---|---|
| 微信公众号 | 300帧 | 10MB | 280(默认) |
| 微信聊天 | 无明确限制 | 25MB | 根据需要 |
| 微博 | 无明确限制 | 20MB | 根据需要 |
常见问题
切分后文件比原文件大?
这是正常现象。原因:
- 原GIF可能使用了全局调色板优化
- 切分后每个文件需要独立的调色板
- 帧间压缩效果降低
解决方案:适当增加 --max-frames 减少切分数量
切分后动画速度变了?
脚本会保留原始帧率。如果发现速度异常,可能是原GIF的帧时间信息不完整。
如何只查看GIF信息不切分?
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 156 lines · 47 tokens per session scan A f3058c8d1dcf
gif-splitter is a skill published in the GitHub repository isjiamu/jiamu-skills (134 stars, last pushed 2mo ago), licensed MIT. It adds 47 tokens to every session and 1,261 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…