Agent skill

Gif Splitter

by isjiamu in isjiamu/jiamu-skills

GIF动图切分工具,将超过指定帧数的GIF文件自动拆分成多个小文件。适用于微信公众号等平台上传GIF时遇到"帧数超限"的问题。

MITAuto-check passed

Install Gif Splitter

skills CLI
$ npx skills add isjiamu/jiamu-skills --skill gif-splitter -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install isjiamu/jiamu-skills gif-splitter --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/isjiamu/jiamu-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/gif-splitter .claude/skills/gif-splitter && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gif-splitter
GitHub stars
139
Token cost
~610 tokens
SKILL.md length
100 words
Files
2 (incl. scripts)
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

GIF动图切分工具,将超过指定帧数的GIF文件自动拆分成多个小文件。适用于微信公众号等平台上传GIF时遇到"帧数超限"的问题。

  • Works in 4 steps: 读取GIF:使用Pillow库读取GIF的所有帧和每帧的持续时间 → 计算分片:根据总帧数和最大帧数限制,计算需要切分的文件数量 → 均匀分配:将帧数均匀分配到各个输出文件,避免最后一个文件帧数过少 → …
  • SKILL.md covers 概述, 使用场景, 快速开始 and 依赖环境, plus 7 more sections
  • Runs Python scripts from its folder; calls python3 and pip3

What it does

Gif Splitter is an agent skill from isjiamu/jiamu-skills. GIF动图切分工具,将超过指定帧数的GIF文件自动拆分成多个小文件。适用于微信公众号等平台上传GIF时遇到"帧数超限"的问题。

Its SKILL.md is about 610 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/split_gif.py`).

The repository describes itself as: 甲木常用的 Agent Skills 集合,包含日常工作流中积累的高效技能扩展。 / A curated collection of Agent Skills for daily productivity workflows. The licence is MIT.

Example prompts

  • “/gif-splitter”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 读取GIF:使用Pillow库读取GIF的所有帧和每帧的持续时间
  2. 计算分片:根据总帧数和最大帧数限制,计算需要切分的文件数量
  3. 均匀分配:将帧数均匀分配到各个输出文件,避免最后一个文件帧数过少
  4. 保存输出:保留原始帧率和循环设置,生成优化后的GIF文件

What it can do on your machine

Read from SKILL.md and the folder at commit 3c21371. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • pip3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip3, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gif Splitter loads about 610 tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 100 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~19
When it runs · the whole SKILL.md, loaded when a task matches
~610

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from isjiamu/jiamu-skills at commit 3c21371, republished under its MIT licence (© isjiamu). 100 words, ~610 tokens.

Download SKILL.mdSave it as .claude/skills/gif-splitter/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
gif-splitter
description
GIF动图切分工具,将超过指定帧数的GIF文件自动拆分成多个小文件。适用于微信公众号等平台上传GIF时遇到"帧数超限"的问题。

GIF 动图切分工具

概述

这个技能用于解决上传GIF到微信公众号等平台时遇到的"图片帧数超过300帧"限制问题。它会自动检测GIF帧数,并将超限的GIF智能切分成多个符合要求的小文件。

使用场景

当用户遇到以下情况时触发此技能:

  • 上传GIF到微信公众号提示"帧数超过300帧"
  • 需要将大GIF拆分成多个小GIF
  • 需要检查GIF文件的帧数信息
  • 需要将GIF拆分后确保每个文件不超过指定大小

快速开始

当用户需要切分GIF时,运行以下脚本:

bash
# 切分单个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
bash
pip3 install Pillow
验证安装
bash
python3 -c "from PIL import Image; print('Pillow 安装成功')"

使用命令

基础用法
bash
# 切分单个文件
python3 scripts/split_gif.py "动图.gif"

# 切分整个文件夹
python3 scripts/split_gif.py ~/Desktop/gif文件夹/
自定义参数
bash
# 指定最大帧数(默认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

参数说明

参数说明默认值
pathGIF文件或文件夹路径必填
--max-frames, -m每个输出文件的最大帧数280
-o, --output输出目录原目录下的 split_output/
--info仅显示GIF信息,不执行切分False

工作原理

切分算法
  1. 读取GIF:使用Pillow库读取GIF的所有帧和每帧的持续时间
  2. 计算分片:根据总帧数和最大帧数限制,计算需要切分的文件数量
  3. 均匀分配:将帧数均匀分配到各个输出文件,避免最后一个文件帧数过少
  4. 保存输出:保留原始帧率和循环设置,生成优化后的GIF文件
示例

原文件:演示动画.gif(740帧,5.7MB)

切分结果:

演示动画_第1部分.gif  (247帧, 约2MB)
演示动画_第2部分.gif  (247帧, 约2MB)
演示动画_第3部分.gif  (246帧, 约2MB)

平台限制参考

平台帧数限制文件大小限制建议 --max-frames
微信公众号300帧10MB280(默认)
微信聊天无明确限制25MB根据需要
微博无明确限制20MB根据需要

常见问题

切分后文件比原文件大?

这是正常现象。原因:

  1. 原GIF可能使用了全局调色板优化
  2. 切分后每个文件需要独立的调色板
  3. 帧间压缩效果降低

解决方案:适当增加 --max-frames 减少切分数量

切分后动画速度变了?

脚本会保留原始帧率。如果发现速度异常,可能是原GIF的帧时间信息不完整。

如何只查看GIF信息不切分?
bash
python3 scripts/split_gif.py "动图.gif" --info

输出示例:

文件: 演示动画.gif
帧数: 740 帧
大小: 5.70 MB
尺寸: 800x600
状态: 需要切分(超过 280 帧)

输出格式

输出文件命名规则:{原文件名}_第{序号}部分.gif

例如:

  • 演示.gif → 演示_第1部分.gif, 演示_第2部分.gif

技术细节

  • 库依赖:Pillow (PIL)
  • Python版本:3.6+
  • 支持格式:GIF(动态/静态)
  • 输出优化:启用GIF优化压缩

© isjiamu, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in gif-splitter of isjiamu/jiamu-skills.

  • SKILL.md
  • scripts/split_gif.py

Open the folder on GitHubat commit 3c21371

Compare with similar skills

Gif Splitter next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gif Splitter compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gif Splitter this skillisjiamu/jiamu-skills139—~610Automated safety check: PassMIT
Gif SearchNousResearch/hermes-agent253k1 repos~680Automated safety check: NotesMIT
Slack GIF Creatoranthropics/skills180k29 repos~2kAutomated safety check: PassApache-2.0
Slack Gif Creatornexu-io/open-design100k—~316Automated safety check: PassApache-2.0
Gif Sticker Makernexu-io/open-design100k—~305Automated safety check: PassApache-2.0
PR Splittermastra-ai/mastra29k—~1.5kAutomated safety check: PassCustom licence

Similar skills

  • Gif Search

    NousResearch/hermes-agent

    Search/download GIFs from Tenor via curl + jq. An agent skill from NousResearch/hermes-agent.

    253k GitHub starsUsed in 1 repo~680 tokens
    Auto-check: notes
  • Slack GIF Creator

    anthropics/skills

    Official

    Provides Slack size and frame limits, Python animation helpers and validators for building animated GIFs sized for emoji and messages.

    180k GitHub starsUsed in 29 repos~2k tokens
    Media & CreativeAuto-check passed
  • Slack Gif Creator

    nexu-io/open-design

    Create animated GIFs optimized for Slack with validators for size constraints and composable animation primitives.

    100k GitHub stars~316 tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Gif Sticker Maker

    nexu-io/open-design

    Convert photos into animated GIF stickers in Funko Pop / Pop Mart style via the MiniMax API.

    100k GitHub stars~305 tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • PR Splitter

    mastra-ai/mastra

    A skill your agent uses when breaking a large, complex, messy, or hard-to-review pull request into multiple smaller PRs; planning stacked PRs; extracting independent changes from a branch; splitting…

    29k GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Create or update Flet control screenshots and GIFs that are generated from integration tests and shown in docs.

    17k GitHub stars~1.2k tokensUpdated yesterday
    Testing & QAAuto-check passed

More from isjiamu/jiamu-skills

All 11 skills in this repo
  • Video Downloader

    isjiamu/jiamu-skills

    Download videos from 1000+ websites (YouTube, Bilibili, Twitter/X, TikTok, etc.) using yt-dlp.

    139 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Magazine Layout

    isjiamu/jiamu-skills

    将文本内容转换为精美的杂志风格HTML页面,支持专业排版和多种视觉风格。触发场景:(1) 用户想将文本/文章转换为杂志风格HTML,(2) 用户提到"杂志排版"、"杂志设计"、"文章排版"、"专业排版"、"文本美化"、"magazine layout",(3) 用户需要优雅排版的HTML页面,(4) 用户需要将设计内容导出为PDF。支持12种独特视觉风格,使用Tailwind CSS。

    139 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Stock Advisor

    isjiamu/jiamu-skills

    A股投资分析全自动流水线。触发场景:(1) 用户上传K线图或财报截图要求分析,(2) 用户提供A股股票代码或名称要求分析(如"分析一下平安银行"、"帮我看看000001"、"XX值得投资吗"),(3) 用户说"股票分析"、"投资分析"、"stock advisor"、"帮我分析股票"。

    139 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Sales AI Assistant

    isjiamu/jiamu-skills

    帮助销售人员将业务场景转化为AI提示词并自动生成销售内容(邮件、方案、分析等),无需学习如何编写提示词. An agent skill from isjiamu/jiamu-skills.

    139 GitHub stars~1.4k tokensUpdated 2 mo ago
    Auto-check passed
  • Peers Advisory Group

    isjiamu/jiamu-skills

    私董会专家助手,引导用户完成完整的私董会流程。通过四位顶级幕僚(巴菲特、比尔·盖茨、马斯克、乔布斯)的多轮提问和反馈,帮助用户深入剖析问题本质并获得可执行的解决方案。融合百度搜索和百度百科实时数据,让幕僚"带着数据聊"。触发场景:(1) 用户说"开始私董会"、"私董会"、"peers advisory",(2) 用户需要多角度分析复杂决策问题,(3) 用户希望获得不同商业领袖视角的建议,(4)…

    139 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Five Why

    isjiamu/jiamu-skills

    5Why 溯源顾问,通过连续追问"为什么"层层剥离问题表象,帮用户找到系统性的根本原因并制定根治对策. An agent skill from isjiamu/jiamu-skills.

    139 GitHub stars~803 tokensUpdated 2 mo ago
    Auto-check passed

Questions about Gif Splitter

What does Gif Splitter do?

GIF动图切分工具,将超过指定帧数的GIF文件自动拆分成多个小文件。适用于微信公众号等平台上传GIF时遇到"帧数超限"的问题。. Gif Splitter is an agent skill from isjiamu/jiamu-skills.

How do I install Gif Splitter in Claude Code?

Run `npx skills add isjiamu/jiamu-skills --skill gif-splitter -a claude-code`. Or copy the skill folder (gif-splitter in isjiamu/jiamu-skills) into .claude/skills/gif-splitter in your project. Claude Code loads it when a task matches its description.

How do I install Gif Splitter in Codex?

Run `npx skills add isjiamu/jiamu-skills --skill gif-splitter -a codex`. Or copy the skill folder (gif-splitter in isjiamu/jiamu-skills) into .agents/skills/gif-splitter in your project. Codex loads it when a task matches its description.

Can I use Gif Splitter in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add isjiamu/jiamu-skills --skill gif-splitter -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gif-splitter, .gemini/skills/gif-splitter, .github/skills/gif-splitter and .opencode/skills/gif-splitter in your project.

What does Gif Splitter need to run?

Going by SKILL.md and its folder, Gif Splitter needs Python for the scripts in its folder and the command-line tools its instructions call (python3 and pip3). Our summary lists: Python 3.

Does Gif Splitter access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Gif Splitter safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Gif Splitter use?

Gif Splitter is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gif Splitter use?

About 610 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gif Splitter?

Skills that share tags, products or a category with Gif Splitter: Gif Search (NousResearch/hermes-agent, 253k stars), Slack GIF Creator (anthropics/skills, 180k stars), Slack Gif Creator (nexu-io/open-design, 100k stars) and Gif Sticker Maker (nexu-io/open-design, 100k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gif Splitter?

isjiamu (a GitHub user) maintains it in isjiamu/jiamu-skills, which has 139 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on July 14, 2026.

Source: isjiamu/jiamu-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.