wu-haotian34/img2mo-std
Standardize a 2D animation baseline image with `/img2mo-std xxx.png/pos`. Use when preparing a character, creature, prop, or weapon baseline before motion generation, especially if the source image is too large, tightly cropped, lacks transparent action margin, has a white background, or later walk/attack/idle frames show clipping, overlap, scale popping, or inconsistent character size.
npx skills add https://github.com/WU-HAOTIAN34/2dimg2motion --skill img2mo-std
Use this skill when the user invokes:
/img2mo-std xxx.png/pos
The command audits and standardizes a baseline frame before animation generation. It creates a smaller, padded, transparent-canvas source image that leaves enough room for walk, attack, idle, weapon swing, cape, tail, horn, or limb stretch poses.
Resolve the argument after /img2mo-std as follows:
s7.png, first try sample\s7.png.s7, first try sample\s7.png, then sample\s7.jpg, then sample\s7.webp.Examples:
/img2mo-std s7
/img2mo-std s7.png
/img2mo-std sample\s7.png
/img2mo-std C:\AI\2dimg2motion-v1\sample\s7.png
A baseline is not standard if any of these are true:
Run the repository tool from the workspace root after resolving the image path:
python scripts\standardize_baseline.py <resolved-image-path>
Default output:
sample\<input-stem>-standard.png
Useful options:
python scripts\standardize_baseline.py sample\s7.png --subject-max 360 --margin-ratio 0.75
python scripts\standardize_baseline.py sample\s7.png --output sample\s7-standard.png
python scripts\standardize_baseline.py sample\s7.png --check-only
Recommended default target:
3600.65 to 0.85The tool prints a JSON report. Treat the standardized output as ready when:
needs_standardization is false after processing.subject_longest_side is between 300 and 400.edge_clearance_ratio leaves enough room for the intended motion.warnings is empty or only contains acceptable notes.If the report still warns that the image is tight or too large, rerun with a smaller --subject-max or larger --margin-ratio.
After /img2mo-std, use the standardized output image as the baseline for all later walk, attack, idle, or other sprite generation. Do not continue from the original oversized or tightly cropped source unless the user explicitly asks to bypass standardization.
Take wu-haotian34/img2mo-std from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.