Communitygithub.com

animated-chart

使用 Claude Code 在代码中制作循环动画图表,适用于 LinkedIn 或新闻简报。条形图变为折线图、数字向上滚动、前后对比,所有数值完全保留原样。当有人说需要动画图表时使用。

animated-chart 是什么?

这是一个专门用于生成循环动画图表的技能,旨在帮助开发者和内容创作者快速制作适用于 LinkedIn 或新闻通讯的高质量动画。它通过三个简单的提示(构建、检查、导出),从空白页面出发,生成一个 1080x1350 像素、8 秒循环的 HTML 文件。该技能严格遵循用户提供的准确数值(不四舍五入或格式化),并支持“示例数据”标签,确保数据完整性。它支持 Claude Code 平台,通过命令行方式工作,无需外部字体或图像。最终输出为 MP4 视频和无限循环的 GIF,适合社交媒体分享。其核心优势在于自动化了从数据输入到动画导出的完整流程,并内置了视觉检查功能,确保图表无重叠、无截断。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/charlie947/motion-graphics-skills/tree/main/skills/animated-chart

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

动画图表,用代码构建

从空白页面开始的三个提示:构建、再检查、导出。

开始前: 如果存在 brand.md 和 MOTION.md,请读取它们。如果不存在,则先运行 brand-intake,或者询问十六进制颜色代码、字体和徽标文件。在没有这些的情况下,切勿声称结果符合品牌风格。

第 1 步:询问数字,然后等待

标题、标签、确切数值,以及它们是真实结果还是示例数据。示例数据需要在每一帧上显示“示例数据”标签。切勿四舍五入、重新格式化或添加任何数字。

提示 1:构建它

我想要一个用于 LinkedIn 帖子的动画图形。将其构建为单个 HTML 文件,我可以在浏览器中打开。

标题:“[标题]”。[如果是示例数据:保持“示例数据”可见。]
数值:[标签 1:值 1],[标签 2:值 2],...

动画有四种状态:
1. 开始:[初始样子]。
2. 变化:[唯一变化的元素]。没有淡出并替换的元素。
3. 保持:完成后的图表,并标注[标题数值]。
4. 返回:平缓回到开始状态,使循环无跳跃。

时间:总共 8 秒。变化约 2 秒,保持 4 秒,返回 1.5 秒。

外观:背景 [BG],文字 [TEXT],强调色 [ACCENT],字体 [FONT]。无外部字体或图片。无渐变、无发光、无弹跳。

尺寸:1080 x 1350 像素。

构建规则:
- 仅根据时间计算每一帧。添加 window.seek(seconds)。
- 标题、标签和坐标轴从不移动。只有图表变化。
- 最后一帧必须与第一帧完全一致。

构建完成后,在 0、1、2、4 和 7 秒处截取屏幕截图。检查是否有重叠文本或任何被截断的内容。修复你发现的问题,并告诉我你做了哪些更改。

提示 2:再检查一下

检查捕获的五帧以及循环边界。确认数值保持不变、标签清晰可读、无重叠、每个元素仅在应该出现时出现。仅报告你实际观察到的问题。修复你发现的任何问题,保留先前的版本,并重新捕获相同的帧。如果未发现问题,请说明,并且不要凭空创造修订。

提示 3:导出它

现在将其转换为可供发布的视频和 GIF。使用此计算机上已有的工具。如果需要安装任何东西,请在安装之前停下来并告诉我是什么。给我一个 MP4(1080 x 1350,8 秒)和一个无限循环的 GIF。然后从完成的 GIF 中展示三帧给我检查,以确保效果正确。

Individual skills in this repo

This repo contains 14 individual skills — each has its own dedicated page.

apple-launch-film

Rebuild an Apple-style Mac launch film entirely in code with Claude Code. A thin menu bar, the black notch growing into widgets one scene at a time, full-screen gradient wallpapers and one short caption per scene. No screen recording, no After Effects. Use when someone says

brand-intake

The setup step every other skill in this pack reads. A short interview plus 3 to 5 reference frames becomes two files in your project, brand.md (who you are, what you sell, your assets) and MOTION.md (your colours, type, timing and motion rules), plus a rule in CLAUDE.md so Claude reads them before it animates anything. Use at the start of any motion project, or when someone says

launch-video

Make a 30-45 second product launch video in code with Claude Code, the kind SaaS companies post on launch day. One sentence split across scenes, real product screens with slow camera moves, a typed prompt, a proof beat and a clear call to action. Use when someone says

loop-cover

Turn a newsletter or blog cover into a seamless looping GIF at 896 x 640, 180 frames at 20fps. Only the one element you name moves, the loop is rotated so frame 1 shows the finished picture, and the seam is measured, not eyeballed. Use when someone says

milestone-reveal

Make a 12-second looping milestone clip in code with Claude Code. Thousands of tiny points drift like a night sky, pull together into your real number (followers, subscribers, revenue, customers), a line draws underneath and the label settles in. Premium, not a party. Use when someone says

model-showdown

Give the same motion brief to three AI models, keep each first try, render all three the same way and stack them into one comparison video with model names and logos. Makes a 16:9 side-by-side for a newsletter and a 1080 x 1920 stacked reel for Instagram and TikTok. Use when someone says

motion-brief-writer

Turns a rough idea for an animated graphic into a precise build brief for Claude Code, in your own brand. Asks for anything essential first (exact numbers, size, length, brand), keeps real results apart from sample data, and never invents a figure. Use when someone says

motion-effects

Build any of 16 premium motion effects from scratch in your own brand, as one 8-second looping HTML file with window.seek(seconds) so it exports frame-exact to MP4 or GIF. Interfaces (button to player, search to results, card to workspace, tabs to panels), data (chart morph, dashboard zoom, spring stack, magnetic dock), type (masked type, elastic type, text to layout, image reveal) and systems (perspective shift, glass focus, flowing paths, particle logo). Use when someone says

motion-prompt-writer

Write a complete 8-part Claude Motion prompt (The bar, Format, The one rule, Look, Motion, Never, Before you finish, The scene) for one short looping motion graphic, in your own brand. Takes your brand (a website screenshot, a logo, hex codes, or nothing for the Apple-style default) and one moment you want to show, in plain words. Use when someone says

newsletter-promo

Turn a newsletter edition into a 12-20 second promo clip for LinkedIn, Instagram or X that drives people to read and subscribe. Hook question, three proof frames from the edition, then the newsletter name and where to read it. Use when someone says

reel-export

Turn any horizontal or square motion video into a 1080 x 1920 Instagram Reel or TikTok that uploads cleanly. Headline and logos inside the safe zone, H.264, yuv420p, limited colour range, bt709, a silent audio track when there is no sound, and an ffprobe check before upload. Use when someone says

reference-to-motion

Turn references you admire into a scene-by-scene Claude Motion prompt for your own topic and brand. Takes a video for the moves (screenshots, frames or a contact sheet of a reel or ad) and, optionally, a look reference for the style (a website, a brand, a moodboard). Use when someone says

title-sequence-3d

Make a cinematic 3D title sequence (8-15 seconds) in code with Claude Code and Three.js. A camera moves through a lit scene, such as a rainy street at night with brand names as neon signs, then a big question or title lands. Use when someone wants a scroll-stopping opener, a film-style intro,

vox-explainer

Make a short Vox-style documentary explainer (30-60 seconds) entirely in code with Claude Code. Torn paper, halftone texture, bold condensed type, motion on twos. Use when someone says

相关技能