Logo Generate Motion

Generate Motion

Tổ chức
SummerEngine
generate-motion

Attach a library animation clip (idle, walk, run, attack) to a rigged character via AnimationPlayer.

Tổng quan

Nhà phát hànhSummerEngine
Kho mãsummer
Tên kỹ nănggenerate-motion
Sao
91
Bản fork
8
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được SummerEngine công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Generate Motion trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/SummerEngine/summer/tree/main/library/skills/generate-motion
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SummerEngine/summer.git /tmp/summer
mkdir -p .claude/skills
cp -r /tmp/summer/library/skills/generate-motion .claude/skills/generate-motion
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Generate Motion trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Generate Motion ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Generate Motion với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Generate Motion — Curated Meshy Library

Picks a clip from a curated mocap library by name and wires it onto a Meshy-rigged humanoid. Fast (~30s), and it looks good because it is real mocap. The five short aliases that always work are idle, walk, run, jump, attack; anything else must be an exact library name — see the Reference card before you invent one.

The target must be a Meshy-rigged humanoid — a rigAssetId from a prior assets.generate_3d({ kind: "image-to-3d", imageUrl: "...", rig: true }) call. The finished job's result includes rigAssetId. If the user points at a non-rigged mesh, stop and route to asset-strategy (or directly call assets.generate_3d with rig: true) before generating motion.

Custom or non-humanoid motion (e.g. "drops to one knee, draws bow", a nodding flower, a creature) goes to the text-to-motion skill (backend: "text-to-motion") when the server has it enabled; otherwise fall back to hand-authoring in Summer Engine or importing from Mixamo.

When to use this skill

  • "Add a walk animation to the goblin."
  • "I need an idle, a run, and an attack on this character."
  • "Death animation for the enemy when HP hits zero."
  • The user has a rigged character and zero animations on it.

When NOT to use this skill

  • The user wants to apply an existing animation to a new model — use retarget instead. Don't regenerate.
  • The user wants state-machine wiring (idle → walk → run blend) — generate the clips here, then hand off to animation-tree.
  • The user wants facial / lipsync animation — that's facial-and-lipsync.
  • The mesh isn't rigged. Rig first; never call assets.generate_motion on a static .glb.
  • The user wants procedural look-at, IK, foot placement — that's procedural-animation.
  • The user described a custom signature move that isn't on the curated list — use text-to-motion; if the server answers backend_unavailable, use the manual-authoring fallback below.

Steps

1. Verify the target is a rigged humanoid

assets.search({ query: "<character name>", assetType: "3d_model", scope: "mine" })

The rigged model's assetId is its rigAssetId (the id the rig job's result named rigAssetId). Search results do not say whether a model is rigged: the dry run in step 2 checks it, and a model that is not rigged is refused there with invalid_input on rigAssetId. Then stop, propose assets.generate_3d({ kind: "image-to-3d", imageUrl: "...", rig: true }) first (the finished job's result includes rigAssetId), or route to asset-strategy.

2. Confirm with the user before spending

I'm about to generate a "run" animation on goblin_rigged via meshy-library — about 30s, and it uses credits. OK?

dryRun: true on the call below returns the credits (estimate) and checks the rig is the person's and rigged; clips the rig already has cost nothing, so the estimate is the most it can cost.

3. Call the operation

assets.generate_motion({
  rigAssetId: "<id>",
  backend: "meshy-library",   // curated library (default)
  motionNames: ["run"]        // exact names from the curated list — see Reference card
})
jobs.wait({ jobId: "<job.id>", timeoutSeconds: 50 })   // again until finished

assets.generate_motion answers at once with a job; jobs.wait follows it until finished is true, and the finished job's result has animationAssetId in it. When the rig already has every clip asked for, the answer is done at once with reused (nothing new was made or charged). Don't assume any other field is present — resolve the asset to get stable file/download metadata:

assets.get({ assetId: "<animationAssetId>" })

4. Attach to the character's AnimationPlayer

summer_inspect_node(path="./World/Goblin")        // confirm it has an AnimationPlayer child
summer_add_node(scenePath="res://main.tscn", parent="./World/Goblin", type="AnimationPlayer", name="AnimationPlayer")  // only if missing
summer_set_resource_property(
  scenePath="res://main.tscn",
  nodePath="./World/Goblin/AnimationPlayer",
  resourceProperty="libraries/default",
  subProperty="<motion_name>",
  value="<animationAssetId>"
)
summer_save_scene(scenePath="res://main.tscn")

scenePath is required on summer_add_node, summer_set_resource_property and summer_save_scene. summer_inspect_node takes only path — it has no scenePath and reads the currently-edited scene.

If the character will use multiple clips, leave the AnimationPlayer in place — every subsequent generation appends to the same library. State-machine wiring belongs to animation-tree, not here.

Confirmation gates

  • Before generation: state the motion name and that it uses credits. Wait for OK.
  • Before attaching: state which AnimationPlayer and which library slot. Wait for OK.
  • After generation: if the user hasn't seen the preview, link previewUrl and ask "land or regenerate?" before wiring it into the scene.

Reference card

Curated motion library — what motionNames actually accepts

There are five short canonical aliases, and only five:

idle, walk, run, jump, attack

Everything else must be an exact raw Meshy library name (or its display name, or its numeric action id 0–696). The library is 678 entries, and its naming is nothing like a tidy snake_case scheme — real names look like Walking_Woman, Jump_Run, Run_02, Hit_Reaction, Roll_Dodge, Block1, Dead, Stand_Dodge, Triple_Combo_Attack, Wave_One_Hand, Chair_Sit_Idle_F, Lean_Forward_Sprint.

Plausible-looking names that do not resolve, verified against the resolver: attack_sword, hit_react, death, sprint, block, dodge_left, crouch_idle, walk_back, run_strafe_left, jump_land, idle_combat, wave, dance, sit_idle. They resolve to nothing and the call errors. For a sword attack, use attack.

So: if the user asks for something outside the five aliases, do not guess a snake_case name. Either use one of the five, quote an exact raw library name you have actually seen, or route to the manual-authoring fallback.

Pitfalls

  • Invented motionNames entries fail. "run_fast", "attack_sword", "death" all resolve to nothing and the call errors. Name resolution is exact — five aliases, or a real library name / display name / numeric id. Do not extrapolate a naming scheme.
  • Locomotion clips have a forward bias. Meshy's run translates the root forward by ~5m. Either the code drives movement (then the baked root translation causes a lunge-and-snap every loop — strip it) or the clip does via root_motion_track + get_root_motion_position() — never both. The full root-motion setup and its playtest verification live in character-animation-wiring.
  • Rig pose mismatch. If your rig was rigged with a non-T-pose reference image, the limbs may bend wrong. Re-rig from a T-pose mannequin (see asset-strategy) before re-generating.
  • Rig still preparing. New rigs need ~3 minutes after the rig job completes before the animation library is ready. Called too early, assets.generate_motion answers in_progress with retry: "after" and details.retryAfterSeconds (about 180). Wait and retry.

Anti-patterns

  • Calling assets.generate_motion on a .glb that wasn't rigged — the call is refused; a dry run says so first.
  • Generating the same clip twice because you forgot to save the animationAssetId from the first call. Search the asset library first: assets.search({ query: "goblin run", assetType: "animation", scope: "mine" }).
  • Wiring clips into an AnimationTree inside this skill. That's the next skill's job. Generate, attach, hand off.
  • Asking the model to invent a motion name that isn't on the list. Quote from the list verbatim, or fall back to manual authoring.

Edge cases

  • Custom signature move (e.g. "drops to one knee, draws bow"). The custom prompt-driven route is text-to-motion. If it is unavailable, workarounds: hand-author the clip in Summer Engine's animation panel, import a licensed clip as an AnimationLibrary, or compose curated clips in an AnimationTree OneShot blend.
  • Quadruped rig. Meshy library is humanoid-only. For quadrupeds and other non-humanoid rigs use text-to-motion, or hand-author / import an external library.
  • Character is < 1m tall (child / dwarf). Library clips assume a ~1.8m humanoid. Apply the clip; the proportions retarget but stride length looks long. Either accept it or tune playback_speed on the AnimationPlayer track.
  • Character has wings / tail. The library ignores the extra bones — they sag. Hand-author additive overlays for the extra bones, or accept the visual hit.

Without Summer Engine

In a session without Summer Engine tools (the assets profile; the summer-assets skill has the whole loop), do steps 1-3 and skip step 4 (the AnimationPlayer). Save the clip where the person asked with out on jobs.wait (the summer-assets skill says how), and tell them the path and format.

Fallback (no MCP)

The user can upload to Meshy directly at meshy.ai, generate through the dashboard, download .glb, and import it as an AnimationLibrary in Summer Engine.

Handoff

  • After generating locomotion clips, suggest character-animation-wiring — the end-to-end wiring path (inspect what landed, idle/walk/run state machine with blend times, footstep method tracks, root motion, playtest proof). For blend spaces and attack/hit overlays on top, animation-tree.
  • After generating a one-shot (death, hit-react), suggest design-npc to fire it from the behavior state machine.
  • For first-person hand animations on a player, use this skill on a hands-only rig and then fps-controller for the wiring.
  • If the user wants to apply these clips to a second character, hand off to retarget.

See also

  • asset-strategy — how to get a Meshy-rigged character in the first place.
  • animation-tree — wire the generated clips into a state machine.
  • retarget — re-use one library across many characters without regenerating.

From a shell

No Summer MCP tools in this session? Run each one as a command; when summer --version is missing or below 4.0, use npx -y summer-engine@latest in place of summer. Fields are flags in kebab-case (--scene-path res://main.tscn) or one --input '<json>', and summer ops describe <op> prints the exact input. The summer-cli skill has the rest.

In this skillCommand
assets.generate_3dsummer assets generate-3d
assets.generate_motion, summer_assets_generate_motionsummer assets generate-motion
summer_assets_getsummer assets get
assets.search, summer_assets_searchsummer assets search
summer_add_nodesummer engine add-node
summer_get_scene_treesummer engine get-scene-tree
summer_inspect_nodesummer engine inspect-node
summer_inspect_resourcesummer engine inspect-resource
summer_save_scenesummer engine save-scene
summer_set_propsummer engine set-prop
summer_set_resource_propertysummer engine set-resource-property
jobs.wait, summer_jobs_waitsummer jobs wait

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Generate Motion làm được gì?

Attach a library animation clip (idle, walk, run, attack) to a rigged character via AnimationPlayer.

Vì sao nên dùng Generate Motion trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Generate Motion là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Generate Motion trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/SummerEngine/summer/tree/main/library/skills/generate-motion. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Generate Motion?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Generate Motion với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Generate Motion với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Generate Motion có miễn phí không?

Có. Kỹ năng này được SummerEngine phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇