wu-haotian34/2dimg2motion/img2mo-learn
Claude Code and agent skill by wu-haotian34/2dimg2motion
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install wu-haotian34/2dimg2motion/img2mo-learnSKILL.md
Img2mo-learn
Overview
Use this skill when the user invokes:
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:
- If it is an existing relative or absolute path, use it directly.
- If it is a bare name, first try
sample\<name>, thenoutput\<name>, thenmotion\<name>. - 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. - 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:
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
- Identify the resource type.
- For video: read frame size, fps, duration, and frame count with
ffprobewhen 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.
- 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 underoutput/ortmp/and reference their paths in JSON.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
JSONL Schema
Each line in img2mo-knowledge/learnings.jsonl should be a compact JSON object:
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.jsonlfor matchingaction_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.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/img2mo-learn/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wu-haotian34/2dimg2motion/img2mo-learn)