character-generation
Skill15 starsChanged 3 months agoMITView on GitHub
Convert one front-facing person photo into a Create World bright-chibi 2D pixel character pack with three views, transparent four-direction walk sheets, and animations. Use when a user wants to game-ify a photographed person or create reusable pixel-character walking assets; do not use for 3D rigs, vector characters, or non-character images.
- Reads credentials
In this repository4 other files it gives its agents.
- art-directionSkill
- content-understandingSkill
- narrative-npc-dialogueSkill
- scene-generationSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create a standalone asset pack.
- Very specific: line 15
Default to 48x64, four frames, 170ms, ./output/character-generation/, and generation_mode=balanced.
- Very specific: line 21
Read references/generation-workflow.md.
- Very specific: line 25
Read references/pack-contract.md, then run scripts/build_character_pack.py --production-sheet ....
- Very specific: line 35
If built-in image generation is unavailable, explain that the CLI/API fallback requires OPENAI_API_KEY.
- Very specific: line 39
Never overwrite a pack; create -v2, -v3, and later siblings.
- Distinctive: line 40
Never store the source photo or absolute paths in the final pack.
- Distinctive: line 41
Never add the source photo to this Skill, its bundled references, tests, or an open-source repository.
- Distinctive: line 42
Do not add network calls, runtime dependencies beyond Pillow, external assets, or engine integration.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Character Generation
Create a standalone asset pack. Do not register the character in a game, edit game code, or copy the source photo into the result unless the user separately asks.
Inputs and defaults
- Require one image containing one recognizable, front-facing person. Accept a headshot or full-body photo.
- Preserve identity, approximate age, hairstyle, skin tone, glasses, and visible clothing. Conservatively complete unseen body and clothing details.
- Accept optional
character_id,output_dir,cell_size,frame_duration, andgeneration_mode. - Default to
48x64, four frames,170ms,./output/character-generation/, andgeneration_mode=balanced. - Modes:
balanceduses one production sheet and repairs only failed directions;fastnever supplements a failed sheet;qualityuses separate masters and generates the three walk directions concurrently.
Workflow
- Inspect the photo. Stop for multiple people, an unusable face, or severe obstruction.
- Read references/generation-workflow.md. Inspect both assets/beyond-walls-style-board.png and assets/walk-layout-template.png with
view_imagebefore prompting. These references are anonymous, programmatically generated assets; reproduce them withscripts/generate_reference_assets.pywhen auditing or updating the Skill. - Initialize or resume staging with
scripts/character_job.py init. It derives a readable ID, fingerprints the photo without copying it, and reports any reusable artifacts. - Use built-in
image_gen. Inbalancedorfastmode, generate one plain-white3x4production sheet: rowsdown, up, right; columnsneutral, gait-A, neutral, gait-B. Treat the manifest's legacyleft-step/right-stepnames as compatibility labels, not anatomical instructions. The photo is the identity reference, the bright board is the primary style reference, and the layout template controls only poses and arrangement. - Immediately copy each built-in result into staging with
scripts/character_job.py record. Never leave a deliverable only under the default generated-images location. - Read references/pack-contract.md, then run
scripts/build_character_pack.py --production-sheet .... The builder removes supported white/checkerboard backgrounds, strips low-alpha halos, derives the turnaround from neutral frames, duplicates the neutral frame deterministically, mirrors left, and packs all outputs. - Do not spend image-generation retries on background or alpha defects. If the builder reports
MOTION_PHASE_FAILED directions=...or another row-scoped failure inbalancedmode, preserve accepted rows, generate only the named four-frame rows concurrently, and pass them back as direction overrides. If the full grid is unusable, allow one targeted full-sheet retry. Stop after that supplement or retry round and preserve valid staging artifacts. Infastmode, stop on the first failure. - In
qualitymode, use the separate-master prompts in the workflow reference, request a plain white canvas, run the three direction calls concurrently, and use the legacy builder arguments. Retry only the master named by content, layout, or motion-phase QA; never retry accepted masters. - Inspect the final views sheet, all direction sheets, and overview GIF at nearest-neighbor scale. Confirm bright chibi style, identity and clothing consistency, correct directions, readable motion, and clean transparency. Mark staging complete with
scripts/character_job.py completeonly after QA passes. - Report the pack path, generation mode and call count, final prompt set, inferred appearance details, resumed/reused work, and remaining QA warnings.
Image input handling
- With local paths, pass the photo, style board, and layout template through
referenced_image_paths, labeling their roles in the prompt. - Without a local photo path, show both bundled assets with
view_image, then use the smallestnum_last_images_to_includecontaining the photo and both references. Never mix the two image-input mechanisms. - If built-in image generation is unavailable, explain that the CLI/API fallback requires
OPENAI_API_KEY; continue only if the user explicitly chooses it.
Boundaries
- Never overwrite a pack; create
-v2,-v3, and later siblings. - Never store the source photo or absolute paths in the final pack.
- Never add the source photo to this Skill, its bundled references, tests, or an open-source repository. Only pass it to the active image-generation request and hash it for resumable local staging.
- Do not add network calls, runtime dependencies beyond Pillow, external assets, or engine integration.
- Left-facing art mirrors asymmetric clothing details; disclose that when relevant.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

