Agent skill

Img2mo Learn

by WU-HAOTIAN34 in WU-HAOTIAN34/2dimg2motion

Learn reusable 2D motion-generation knowledge from user-specified action resources with /img2mo-learn <resource.

MITAuto-check passedGame Development

Install Img2mo Learn

skills CLI
$ npx skills add WU-HAOTIAN34/2dimg2motion --skill img2mo-learn -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install WU-HAOTIAN34/2dimg2motion img2mo-learn --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/WU-HAOTIAN34/2dimg2motion.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/img2mo-learn .claude/skills/img2mo-learn && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
img2mo-learn
GitHub stars
208
Token cost
~1.7k tokens
SKILL.md length
671 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Learn reusable 2D motion-generation knowledge from user-specified action resources with /img2mo-learn <resource.

  • Works in 4 steps: If it is an existing relative or… → If it is a bare name, first try sample\,… → If it is a folder, inspect likely assets… → …
  • The user provides videos
  • SKILL.md covers Overview, Input Resolution, Knowledge Location and Learning Workflow, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Img2mo Learn is an agent skill from WU-HAOTIAN34/2dimg2motion. Learn reusable 2D motion-generation knowledge from user-specified action resources with /img2mo-learn <resource. Use when the user provides videos, extracted frame sequences, spritesheets, Spine assets, generated outputs, failed attempts, or reference motion folders and wants to summarize animation timing, pose beats, style traits, prompt patterns, extraction/cropping rules, or failure lessons into the project img2mo-knowledge/ folder for later /img2motion generation.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Game Development, covering Sprites and pixel art and Prompt engineering. The repository describes itself as: Agent skill for converting 2D character into style-consistent transparent animation sequences and spritesheets for game engines | 用于将静态 2D 角色/物体图片,通过 agent 转化为一致的透明背景游戏动画序列帧。 The licence is MIT.

When your agent uses it

  • The user provides videos
  • Extracted frame sequences
  • Generated outputs
  • Failed attempts

Example prompts

  • “/img2mo-learn”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. If it is an existing relative or absolute path, use it directly.
  2. If it is a bare name, first try sample\, then output\, then motion.
  3. If it is a folder, inspect likely assets in this order: manifest.json, preview.gif, contact-sheet.*, spritesheet.*, fullframe/, frames/…
  4. If no matching resource exists, report the missing path and ask for the correct path.

What it can do on your machine

Read from SKILL.md and the folder at commit d4d73e2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Img2mo Learn loads about 1.7k tokens when it runs. Until then it costs about 123 tokens; SKILL.md has 671 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~123
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from WU-HAOTIAN34/2dimg2motion at commit d4d73e2, republished under its MIT licence (© WU-HAOTIAN34). 671 words, ~1,725 tokens.

Download SKILL.mdSave it as .claude/skills/img2mo-learn/SKILL.md (or your agent's skills folder).
name
img2mo-learn
description
Learn reusable 2D motion-generation knowledge from user-specified action resources with `/img2mo-learn <resource>`. Use when the user provides videos, extracted frame sequences, spritesheets, Spine assets, generated outputs, failed attempts, or reference motion folders and wants to summarize animation timing, pose beats, style traits, prompt patterns, extraction/cropping rules, or failure lessons into the project `img2mo-knowledge/` folder for later `/img2motion` generation.

Img2mo-learn

Overview

Use this skill when the user invokes:

text
/img2mo-learn <resource-path-or-folder>
img2mo-learn <resource-path-or-folder>

The goal is to turn finished or reference motion assets into reusable project knowledge. Store learned knowledge in the project-level img2mo-knowledge/ folder, never in the installed Codex skill directory during normal work.

Input Resolution

Resolve the argument after img2mo-learn as follows:

  1. If it is an existing relative or absolute path, use it directly.
  2. If it is a bare name, first try sample\<name>, then output\<name>, then motion\<name>.
  3. If it is a folder, inspect likely assets in this order: manifest.json, preview.gif, contact-sheet.*, spritesheet.*, fullframe/, frames/, Spine .json/.atlas/.skel, then videos.
  4. If no matching resource exists, report the missing path and ask for the correct path.

Supported resources:

  • video files such as .mp4, .mov, .webm;
  • PNG frame folders, spritesheets, contact sheets, or GIF previews;
  • project outputs from this skill such as output/<action-id>/;
  • Spine-style assets such as .json, .atlas, .skel, texture folders;
  • local reference-library folders under motion/.

Knowledge Location

Create this structure if missing:

text
img2mo-knowledge/
|-- index.md
|-- learnings.jsonl
|-- action-patterns.md
|-- style-patterns.md
|-- prompt-patterns.md
`-- failures.md

Append one JSON object per learning session to img2mo-knowledge/learnings.jsonl. Keep Markdown files concise and curated; do not paste huge logs, full prompts, or complete frame listings.

Learning Workflow

  1. Identify the resource type.

    • For video: read frame size, fps, duration, and frame count with ffprobe when available.
    • For frame sequences: count frames, inspect canvas sizes, alpha/background, and contact sheet if present.
    • For spritesheets: infer grid/cell count when possible; otherwise describe visible beats.
    • For Spine assets: inspect animation names, bone/slot names, skins, attachments, timeline names, and texture organization without assuming rendered motion if frames are not available.
  2. Create review surfaces if useful.

    • For video or frame folders, create temporary or output-side contact sheets and preview GIFs if they do not exist.
    • Do not alter the source resource.
    • Do not store bulky extracted frames in img2mo-knowledge/; store outputs under output/ or tmp/ and reference their paths in JSON.
  3. Summarize motion timing.

    • Identify action type: attack, walk, idle, block, suffer, death, born, skill/cast, or other.
    • Record frame count, fps, loop behavior, and major beats.
    • For attacks, prefer beat labels such as guard, anticipation, acceleration, contact, contact hold, follow-through, recovery.
    • Record which frame ranges are most useful as key poses.
  4. Summarize pose and topology lessons.

    • Record active limb/feature, weapon or prop owner, anchor limb/surface, facing direction, and stable baseline behavior.
    • Note silhouette expansion, squash/stretch, center drift, foot/bottom baseline, and whether motion needs extra canvas margin.
  5. Summarize style lessons.

    • Record line weight, palette, shading, material treatment, outline softness, shape language, effects style, and background/keying considerations.
    • Distinguish character style from detached effects.
  6. Summarize prompt lessons.

    • Write reusable prompt clauses that could improve later generation.
    • Keep prompt clauses short and parameterized; avoid overfitting to one character name unless the lesson is character-specific.
  7. Summarize failures and constraints.

    • Record what should be rejected: hand swaps, scale popping, bad alpha, cut weapons, over-crowded sheets, text/watermark contamination, or mismatched style.
  8. Write project knowledge.

    • Append structured session data to learnings.jsonl.
    • Update the relevant Markdown files with durable, reusable lessons.
    • If the learning is only useful for one output, also write output/<action-id>/retro.md.
Show full SKILL.md (163 more words)Show less

JSONL Schema

Each line in img2mo-knowledge/learnings.jsonl should be a compact JSON object:

json
{
  "id": "learn-YYYYMMDD-HHMMSS-short-name",
  "date": "YYYY-MM-DD",
  "source": "relative/or/absolute/path",
  "resource_type": "video|frame_sequence|spritesheet|spine|output|reference_folder",
  "action_type": "attack|walk|idle|block|suffer|death|born|skill|unknown",
  "fps": 24,
  "frame_count": 14,
  "loop": true,
  "beats": [
    {"name": "anticipation", "frames": "02-04", "notes": "body compresses before strike"}
  ],
  "key_pose_guidance": ["frame 05 should be the clearest contact silhouette"],
  "topology": {
    "active": "screen-left sword hand",
    "anchor": "screen-right hand",
    "weapon_owner": "screen-left hand"
  },
  "style": ["thick dark outline", "warm orange shadow shapes"],
  "prompt_clauses": ["same foot/bottom baseline in every cell"],
  "failure_lessons": ["reject sheets where the weapon hand swaps"],
  "artifacts": ["output/.../contact-sheet.jpg"]
}

Use null for unknown scalar fields and [] for empty lists. Keep one line per session.

Markdown Update Rules

  • index.md: list recent learning sessions and high-level tags.
  • action-patterns.md: update durable motion timing rules by action type.
  • style-patterns.md: update durable visual style observations.
  • prompt-patterns.md: update short reusable prompt clauses and anti-clauses.
  • failures.md: update rejection checks and known failure modes.

When adding Markdown entries, include the source path and date. Keep entries short enough that /img2motion can read them quickly.

Use During Generation

Later /img2motion work must read img2mo-knowledge/index.md first when it exists. Then read only the relevant knowledge files for the requested action/style:

  • action timing: action-patterns.md;
  • visual style: style-patterns.md;
  • prompt wording: prompt-patterns.md;
  • known pitfalls: failures.md;
  • detailed recent examples: search learnings.jsonl for matching action_type, source tags, or character style.

Do not let learned knowledge override the current user's explicit request or the current baseline image identity. Treat project knowledge as guidance, not ground truth.

© WU-HAOTIAN34, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/img2mo-learn of WU-HAOTIAN34/2dimg2motion.

Open the folder on GitHubat commit d4d73e2

Compare with similar skills

Img2mo Learn next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Img2mo Learn compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Img2mo Learn this skillWU-HAOTIAN34/2dimg2motion208—~1.7kAutomated safety check: PassMIT
Game Asset Generatorhtdt/godogen7.1k—~2.8kAutomated safety check: PassMIT
Code-Drawn 2D Game Art0x0funky/agent-sprite-forge4.4k—~2.5kAutomated safety check: PassMIT
Sprite Genaldegad/sprite-gen2.7k—~4.9kAutomated safety check: PassApache-2.0
Pixel Artmateaix/mateclaw1.2k5 repos~1.8kAutomated safety check: PassApache-2.0
Petdexcrafter-station/petdex4.2k—~614Automated safety check: PassMIT

Similar skills

  • Generates game art from text prompts: PNG images, GLB 3D models, rigged characters, animations and sprites, with background removal.

    7.1k GitHub stars~2.8k tokensUpdated 9 days ago
    Game DevelopmentAuto-check passed
  • Code-Drawn 2D Game Art

    0x0funky/agent-sprite-forge

    Draws 2D game art from code with no image model: pixel sprites, SVG props and icons, rigged characters, FX, autotiles and layouts, only when explicitly asked for.

    4.4k GitHub stars~2.5k tokensUpdated 4 days ago
    Game DevelopmentAuto-check passed
  • Sprite Gen

    aldegad/sprite-gen

    Generates images and game sprites through GPT or Grok with guided provider choices, separate saved defaults, automatic cleanup and optional curation.

    2.7k GitHub stars~4.9k tokensUpdated yesterday
    Game DevelopmentAuto-check passed
  • Pixel Art

    mateaix/mateclaw

    Pixel art w/ era palettes (NES, Game Boy, PICO-8). An agent skill from mateaix/mateclaw.

    1.2k GitHub starsUsed in 5 repos~1.8k tokens
    Game DevelopmentAuto-check passed
  • Petdex

    crafter-station/petdex

    Browse, install, submit, and edit pixel-art pets with the Petdex CLI.

    4.2k GitHub stars~614 tokensUpdated today
    Game DevelopmentAuto-check passed
  • Asset Pipeline

    rehan-remade/universal-modder

    Turn generated or hand-made art into exactly what a game engine loads.

    6.5k GitHub stars~2k tokensUpdated today
    Game DevelopmentAuto-check passed

More from WU-HAOTIAN34/2dimg2motion

  • 2dimg2motion

    WU-HAOTIAN34/2dimg2motion

    A skill your agent uses when a user provides one baseline image and requests game animation frames, sprite sequences, attack/walk/idle/hit/death/casting motion, transparent PNG frames, a…

    208 GitHub stars~9k tokensUpdated 3 mo ago
    Auto-check passed
  • Img2mo Std

    WU-HAOTIAN34/2dimg2motion

    Standardize a 2D animation baseline image with /img2mo-std xxx.png/pos.

    208 GitHub stars~844 tokensUpdated 3 mo ago
    Auto-check passed

Questions about Img2mo Learn

What does Img2mo Learn do?

Learn reusable 2D motion-generation knowledge from user-specified action resources with /img2mo-learn <resource. Img2mo Learn is an agent skill from WU-HAOTIAN34/2dimg2motion. Learn reusable 2D motion-generation knowledge from user-specified action resources with /img2mo-learn <resource.

When should I use Img2mo Learn?

Img2mo Learn fits situations like: the user provides videos; extracted frame sequences; generated outputs; failed attempts.

How do I install Img2mo Learn in Claude Code?

Run `npx skills add WU-HAOTIAN34/2dimg2motion --skill img2mo-learn -a claude-code`. Or copy the skill folder (skills/img2mo-learn in WU-HAOTIAN34/2dimg2motion) into .claude/skills/img2mo-learn in your project. Claude Code loads it when a task matches its description.

How do I install Img2mo Learn in Codex?

Run `npx skills add WU-HAOTIAN34/2dimg2motion --skill img2mo-learn -a codex`. Or copy the skill folder (skills/img2mo-learn in WU-HAOTIAN34/2dimg2motion) into .agents/skills/img2mo-learn in your project. Codex loads it when a task matches its description.

Can I use Img2mo Learn in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add WU-HAOTIAN34/2dimg2motion --skill img2mo-learn -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/img2mo-learn, .gemini/skills/img2mo-learn, .github/skills/img2mo-learn and .opencode/skills/img2mo-learn in your project.

What does Img2mo Learn need to run?

SKILL.md names no scripts, command-line tools or credentials: Img2mo Learn is instructions for the agent only.

Does Img2mo Learn access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Img2mo Learn safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Img2mo Learn use?

Img2mo Learn is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Img2mo Learn use?

About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Img2mo Learn?

Skills that share tags, products or a category with Img2mo Learn: Game Asset Generator (htdt/godogen, 7.1k stars), Code-Drawn 2D Game Art (0x0funky/agent-sprite-forge, 4.4k stars), Sprite Gen (aldegad/sprite-gen, 2.7k stars) and Pixel Art (mateaix/mateclaw, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Img2mo Learn?

WU-HAOTIAN34 (a GitHub user) maintains it in WU-HAOTIAN34/2dimg2motion, which has 208 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on July 2, 2026.

Source: WU-HAOTIAN34/2dimg2motion on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.