360 Secure SkillHub
360 安全技能中心

bs-creatormotion-cards-card-counter

按内容 JSON 生成卡片逐张累积、计数同步递增并以摘要收尾的动态视频合成,支持四种风格、多种画幅与分辨率,内置图片素材与字体,需借助外部渲染器检查并输出 MP4 成片。

分类:创作
yihui-dev
yihui-dev
热度 16.27
最近更新 2026-11-28 23:51:04

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add yihui-dev/bs-creatormotion-cards-card-counter
兼容性
通用兼容
联网要求
需要联网
数据出网
可选出网
Metadata
name
bs-creatormotion-cards-card-counter
description
Add repeated cards while updating a total in lockstep. Resolve the accumulation with a summary badge.

Accumulating Cards and Counter

Use this Skill when the explanation benefits from this exact visual relationship: new cards accumulate → linked count/value steps → summary.

Preserve the defining sequence. Read references/motion-spec.md before editing the composition. Keep labels concise enough for the canvas in every aspect ratio; keep supporting labels at least 24 px. Use the same content and timing across the four supplied styles.

Content controls

  • items: default ["Session 1", "Session 2", "Session 3", "Session 4", "Session 5", "Session 6"].
  • valuePerItem: default 25.
  • unit: default "minutes".
  • summary: default "Six small sessions add up".

The renderer accepts local images and presenter media where the composition uses them. Reuse the bundled generated image defaults when no reference is supplied; explicit user images override the named slots. Photos, covers, content imagery and chat avatars must remain real raster images, never HTML placeholder drawings. Read references/image-policy.md and references/default-image-slots.md for material selection and replacement keys.

Build and review

From the extracted Skill directory, create a composition with a JSON content file:

node scripts/create.mjs --out ./output/my-video --style white-yellow --data ./content.json --aspect 16:9 --resolution 4k

For presenter scenes, add --media ./presenter.mp4 when required. Image defaults are automatic; add --images ./images.json only to replace or extend named image slots. Its local paths resolve relative to the image JSON file. The other styles are charcoal-lime and midnight-ice.

Then inspect and render the created composition:

npx --yes hyperframes@0.8.30 inspect ./output/my-video --json
npx --yes hyperframes@0.8.30 render ./output/my-video --output ./output/my-video.mp4 --fps 30 --quality high --strict

Use the package renderer with local content, a selected style and any required local media. Preserve the module's deterministic GSAP timeline. Check the first visible state, each relationship change and the final reading hold. Inspect the rendered video for cropping, overlapping labels and incorrect connector endpoints. A presenter take must cover its entire visible interval; the default media window is at most 6.8 seconds.

Scope

Here the number changes because new objects accumulate; ratio bridge leaves endpoint objects static and changes the relation between them.

Reference-led shot treatment

The entry cards become small receipt strips with a document mark and supplied per-item value. A vertical counter sheet gives count and aggregate separate visual levels; synchronized numbers change on each arrival, then a plain concluding line resolves the sequence. Follow the authored direction and timing in references/motion-spec.md. Keep replacement text within the same visual hierarchy.

Typography

Smiley Sans (Deyi Hei) sets titles, copy and labels in every language, Latin and Chinese alike. It is one slanted display weight, so hierarchy comes from size, colour and spacing rather than weight. IBM Plex Mono sets axis ticks, ordinals, counters and small labels so numbers keep a stable width. Noto Sans SC stays behind Smiley Sans for rare Chinese characters; pass --zh-font noto-sans-sc to set Chinese content in Noto Sans SC instead. A supplied --font always wins. build.json records the choice under typography.

Image material contract

itemImage1 through itemImage8 supply the item images (six are used by the default content). Keep each item label and the accumulated count editable; do not replace the item imagery with generic HTML card filler.

Follow the image policy before adapting visual content. Photos, covers, document imagery and chat avatars use actual raster assets. Without user references, reuse the generated defaults in the slot map; do not ask for every image. User-specified images replace the corresponding slots first. Keep typography, vector diagrams, masks and movement editable in HyperFrames. New image subjects require the available image-generation tool (image2 when exposed), with actual provider/model provenance; no silent HTML substitute. Required presenter video and aligned alpha mattes remain separate inputs.

Aspect ratio, resolution and caption safe area

Settle these with the user before the first build and keep them for the whole series.

  • Aspect ratio: --aspect 16:9, 9:16, 4:3 or 3:4. Each has its own native layout. With footage, read its size with ffprobe and use its ratio when it is one of the four; otherwise propose the nearest one (the footage is centre-cropped) and ask the user to confirm. Without footage, ask the user to choose.
  • Resolution: always ask, recommending 4K. --resolution 4k (default, short side 2160), 2k (1440) or 1080p (1080): a 4K 9:16 segment is 2160×3840, a 4K 4:3 segment 2880×2160.
  • Caption safe area: the bottom of the frame is kept free for the creator's subtitles (and the platform's captions and buttons on Shorts, Reels and TikTok). The effect places its text and graphics above it; do not move them into that band.

Part of Skillry · CreatorMotion

This skill is a free individual motion effect from CreatorMotion on Skillry.

  • Looking for the full CreatorMotion master collection (122+ motion effects, automatic scene selection, and multi-clip assembly)? Explore skillry.dev.
  • Connect Skillry MCP or browse all 87 free skills: npx --yes skillry-cli@latest mcp · github.com/yihui-dev/skillry-skills