技能圖譜SKILLSGROVE
技能圖譜/影片製作/HKUSTDial/DataMagic/datamagic

datamagic

安裝

$npx skills add https://github.com/HKUSTDial/DataMagic --skill datamagic
$git clone --depth 1 https://github.com/HKUSTDial/DataMagic.git /tmp/DataMagic && mkdir -p ~/.claude/skills && cp -r /tmp/DataMagic/skills/datamagic ~/.claude/skills/datamagic
請幫我安裝這個 Agent Skill:https://github.com/HKUSTDial/DataMagic/tree/3a66365b6dcab798efc76baf54a3039d0b273f2c/skills/datamagic ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MITFind, adapt, and render DataMagic recipes for animated charts and data stories. Use when a user selects a gallery example, wants an effect made with their own data or media, needs recipe recommendations, wants to combine shots into a story, or refines an existing data-video result.
以下 SKILL.md 內容轉載自 HKUSTDial/DataMagic(提交 3a66365),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 HKUST Dial Lab and DataMagic contributors 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

DataMagic: create with recipes

Help the user turn a chosen effect or a story goal into an editable video using the DataMagic recipe library. The gallery previews, recipe documents, template source, sample props, and this Skill form one workflow.

Choose the route

User's starting point Action
A selected card, gallery link, slug, or copied implementation instructions Read that recipe and adapt its source. Preserve the visual structure and reveal rhythm unless the user asks to redesign them.
Data and a goal, but no selected effect Inspect the data shape, search the library, and explain suitable candidates. If asked to recommend, return recommendations; if asked to make a video, choose the best fit and proceed.
A story spanning several shots Choose a narrative structure, match recipes to its beats, and compose them with consistent styling and timing.
An existing output to improve Inspect its props, source, and render; apply the requested change and review the affected frames.

Read cards-workflow.md for recipe discovery, adaptation, rendering, and review.

Locate the recipe

Use the bundled helper from any working directory:

node <skill-directory>/scripts/cards.cjs list --query ranking
node <skill-directory>/scripts/cards.cjs inspect RankedReveal

The helper resolves the companion cards/ directory and returns absolute paths plus the render Composition ID. All 139 cards include source, schemas and sample props. Search all cards by default; --native narrows to the advanced subset when useful.

For a separately installed Skill, pass --cards /path/to/DataMagic/cards. If the companion package is missing, use an available local checkout or help obtain the requested repository before referring to its files. Honor the user's rendering environment and dependency-installation preferences.

Adapt and deliver

  • Read the chosen recipe, source, shared imports, schema, sample props and preview before adapting it.
  • Map the user's data to the actual input fields. Keep values, units, labels, ordering, display strings and claims consistent with that data.
  • Preserve the selected effect's layout and animation characteristics. Apply requested changes to text, color, media, timing or aspect ratio; portrait output needs an appropriate layout.
  • Save new props and custom source in the user's output location. Keep reusable library samples intact unless the user asks to update them.
  • Render and inspect opening, active reveal and ending frames. Check numeric accuracy, clipping, collisions and legibility. Deliver the MP4, editable files and reproducible render command.
  • Use self-review.md for the actual task; apply audio-specific checks when audio is present.

For a single template, data mapping and a short timing plan are sufficient. For a multi-shot story, read the relevant blueprint in cards/gallery/api/story-blueprints.json and scene-planning.md, then compose compatible shots. Retain each template's source clock when trimming or sequencing it.

Add deeper authoring as needed

When the user wants analysis-led authoring, a custom long-form story, an existing DVSpec edit, or a DVSpec-only plan, read full-story-workflow.md. It preserves the data-analysis, narration and DVSpec workflow for these tasks.

Need Read
Understand columns, units or candidate findings data-analysis.md
Match chart form to data chart-selection.md
Organize story beats scene-planning.md
Unify colors, typography and motion design-system.md
Add narration or subtitles narration.md, then voiceover.md
Refine or troubleshoot a result refinement.md, anti-patterns.md

Add voiceover when requested, align visual emphasis to measured audio, and preserve user-supplied media and provenance. If the user explicitly asks about the experimental workbench or Jianying delivery, read workbench-delivery.md; that work is currently a TODO and is separate from the default render workflow.

檢視許可證全文(MIT)
MIT License

Copyright (c) 2026 HKUST Dial Lab and DataMagic contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.