Communitygithub.com

animated-chart

使用 Claude Code 建立一個可在 LinkedIn 或電子報中使用的循環動畫圖表。長條變成折線、數字遞增、對比前後變化,所有數值完全忠於原始數據。

animated-chart 是什麼?

這個技能讓使用者透過 Claude Code 從零開始,用程式碼打造一個循環播放的動畫圖表,非常適合用於 LinkedIn 貼文或電子報。它會逐步引導使用者輸入精確的數據與視覺偏好,然後以單一 HTML 檔案的形式產生一支 8 秒循環的動畫,包含起始、變化、停留與回歸四個階段。動畫的所有數值(如標題、標籤、數值)都必須完全忠於使用者提供的數據,不得四捨五入或重新格式化。若使用範例數據,則會在每個影格上標示「示意數據」。技能支援多種平台(Claude Code),並內建品牌風格指引(brand.md 與 MOTION.md),確保最終輸出符合品牌識別。完成後會自動截圖檢查、修正重疊或裁切問題,最終匯出為 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 檔案。

標題:「[TITLE]」。[如果是範例數據:保持「示意數據」可見。]
數值:[LABEL 1: VALUE 1], [LABEL 2: VALUE 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

相關技能