Logo Spritecook Use Assets In Godot

Spritecook Use Assets In Godot

Tổ chức
SpriteCook
spritecook-use-assets-in-godot

Quy trình làm việc với Godot cho asset SpriteCook. Dùng khi bạn muốn chuyển spritesheet PNG, asset hoạt ảnh hoặc chuỗi hoạt ảnh nhân vật của SpriteCook thành tài nguyên SpriteFrames và node hoạt ảnh AnimatedSprite2D/AnimatedSprite3D trong Godot. Hướng dẫn cả cách thiết lập spritesheet thủ công trong Godot lẫn endpoint xuất Godot tùy chọn của SpriteCook MCP.

Tổng quan

Nhà phát hànhSpriteCook
Kho mãskills
Tên kỹ năngspritecook-use-assets-in-godot
Sao
51
Bản fork
4
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 SpriteCook 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 Spritecook Use Assets In Godot 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/SpriteCook/skills/tree/main/skills/spritecook-use-assets-in-godot
  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/SpriteCook/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/spritecook-use-assets-in-godot .claude/skills/spritecook-use-assets-in-godot
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 Spritecook Use Assets In Godot 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 Spritecook Use Assets In Godot 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 Spritecook Use Assets In Godot 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.

SpriteCook Use Assets In Godot

Use this skill when moving existing SpriteCook assets into Godot. Pair it with spritecook-workflow-essentials for safe downloads and asset manifests. Pair it with spritecook-animate-assets only when animations still need to be generated first.

Prefer the manual path first: most agents can create the Godot animation resource directly from SpriteCook spritesheets, which gives more freedom and avoids extra MCP server work. Use the MCP export endpoint second when the user wants SpriteCook to return a packaged set of files.

Choose A Path

  1. Manual Godot setup, preferred: Use SpriteCook animation spritesheets plus metadata to create a Godot SpriteFrames resource and an AnimatedSprite2D node yourself.
  2. MCP packaged export: Call export_godot_character_package to get prebuilt text files and asset downloads, then materialize the returned manifest.

Manual AnimatedSprite2D Setup

Use this path when the agent has downloaded SpriteCook animation outputs, has explicit animation asset IDs, or can access spritesheet URLs and frame metadata. The goal is only to make the spritesheets usable as a Godot animation component, not to build gameplay, controllers, playground scenes, or complete demo levels unless the user explicitly asks for those.

Required per animation:

  • PNG spritesheet URL or local file.
  • Animation name such as idle, walk, attack, jump, fall, hurt, or death.
  • Frame width, frame height, frame count, and fps.
  • Loop behavior. Loop locomotion/idles; usually do not loop attack, hurt, or death.

Important: use the output spritesheet frame size, not the original source asset size. Detailed animations may return larger frames because SpriteCook adds margin, for example a 512x512 source can produce 640x640 frames.

File Layout

For a new package inside an existing Godot project, use a contained folder and avoid overwriting the user's existing scenes:

text
SpriteCook/
  assets/
    player_idle.png
    player_walk.png
    player_attack.png
    player_frames.tres

If the user already has a scene, add or update only the AnimatedSprite2D node and its sprite_frames reference.

Create SpriteFrames

Create a .tres SpriteFrames resource that references each spritesheet as a Texture2D ext_resource and creates one AtlasTexture sub_resource per frame.

For each frame i, use:

gdresource
region = Rect2(i * frame_width, 0, frame_width, frame_height)

The resource shape is:

gdresource
[gd_resource type="SpriteFrames" load_steps=<resource_count> format=3]

[ext_resource type="Texture2D" path="res://SpriteCook/assets/player_idle.png" id="idle_sheet"]

[sub_resource type="AtlasTexture" id="AtlasTexture_idle_0"]
atlas = ExtResource("idle_sheet")
region = Rect2(0, 0, 64, 64)

[resource]
animations = [{
"frames": [{"duration": 1.0, "texture": SubResource("AtlasTexture_idle_0")}],
"loop": true,
"name": &"idle",
"speed": 8.0
}]

Generate all frames, not only frame 0. If there are multiple animations, append each animation object to the animations array. Set speed to the SpriteCook animation_fps.

Add AnimatedSprite2D

Add an AnimatedSprite2D node to the target scene, or create a minimal scene containing only the animation node when no target scene exists:

gdscene
[gd_scene load_steps=2 format=3]

[ext_resource type="SpriteFrames" path="res://SpriteCook/assets/player_frames.tres" id="frames"]

[node name="AnimatedSprite2D" type="AnimatedSprite2D"]
sprite_frames = ExtResource("frames")
animation = &"idle"
autoplay = "idle"

If the user's scene already has a character/player node, attach the AnimatedSprite2D as a child and leave gameplay logic alone.

Manual Verification

  • Confirm every spritesheet path in .tres exists under res://.
  • Confirm frame_count * frame_width == spritesheet_width for horizontal sheets.
  • Confirm the target scene contains an AnimatedSprite2D and references the SpriteFrames resource.
  • Open the project in Godot 4.x and check for missing ext_resource warnings.
  • Preview the AnimatedSprite2D animations in Godot and verify frame slicing/playback.

MCP Packaged Export

Use this path when the user wants SpriteCook to return a complete package manifest, or when a completed character animation run_id is available and state inference from presets is useful. Even when using the endpoint, focus on the returned SpriteFrames/AnimatedSprite setup unless the user asks for demo scenes.

Call export_godot_character_package.

ParameterTypeDefaultDescription
run_idstringnullCompleted character animation run ID. Prefer this when available because SpriteCook can infer animation states from presets
animation_asset_idsstring[]nullExplicit animation asset IDs when no run ID is available
character_namestringnullOptional name used in export metadata
state_hints_by_asset_idobjectnullOptional mapping from asset ID to animation state

Valid state hints include Idle, Walk, Run, Jump, Fall, IdleDown, IdleUp, IdleRight, WalkDown, WalkUp, WalkRight, RunDown, RunUp, RunRight, Attack, Hurt, and Death.

The tool returns:

  • text_files: write each { path, content } exactly.
  • asset_downloads: download each signed url to its path.
  • main_scene: scene to open or run after Godot imports resources.
  • package_kind: character for a playable setup, or animation_preview for a single animation.

Do not assume the MCP server wrote files locally. The agent must create the returned files in the user's Godot project.

Example arguments:

json
{
  "animation_asset_ids": ["idle-id", "walk-id", "attack-id"],
  "character_name": "Player",
  "state_hints_by_asset_id": {
    "idle-id": "Idle",
    "walk-id": "Walk",
    "attack-id": "Attack"
  }
}

After materializing the package, use the same verification checklist as the manual path.

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 Spritecook Use Assets In Godot làm được gì?

Quy trình làm việc với Godot cho asset SpriteCook. Dùng khi bạn muốn chuyển spritesheet PNG, asset hoạt ảnh hoặc chuỗi hoạt ảnh nhân vật của SpriteCook thành tài nguyên SpriteFrames và node hoạt ảnh AnimatedSprite2D/AnimatedSprite3D trong Godot. Hướng dẫn cả cách thiết lập spritesheet thủ công trong Godot lẫn endpoint xuất Godot tùy chọn của SpriteCook MCP.

Vì sao nên dùng Spritecook Use Assets In Godot 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. Spritecook Use Assets In Godot 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 Spritecook Use Assets In Godot trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/SpriteCook/skills/tree/main/skills/spritecook-use-assets-in-godot. 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 Spritecook Use Assets In Godot?

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 Spritecook Use Assets In Godot 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 Spritecook Use Assets In Godot 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 Spritecook Use Assets In Godot có miễn phí không?

Có. Kỹ năng này được SpriteCook 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 👇