Turn 2+ user reference images into a high-fidelity animated Codex companion using PocketMen's own local stack. Prefer the open-weight Neural Local Studio (FLUX.2 klein 4B; optional Qwen-Image-Edit-2511 Identity-Max) on compatible hardware; otherwise fall back to the deterministic local renderer. Never require hatch-pet or OPENAI_API_KEY for the normal workflow.
npx skills add https://github.com/six-nut/PocketMen-with-you --skill pocketmen-with-you
Create a Codex companion from at least two user-provided reference images. The normal workflow is self-contained and must not invoke $hatch-pet or request OPENAI_API_KEY.
The user should be able to upload 2+ images and get a polished, identity-consistent Codex companion with minimal setup. PocketMen should aim for hosted-image-editor-like quality within this narrow companion-creation task, while being honest that local open-weight models are not guaranteed to equal a proprietary frontier model on every visual task.
Use this decision order:
neural-local;flux2-klein-4b
qwen-image-edit-2511
Use only when the user prioritizes identity consistency over setup size/latency or when FLUX state outputs visibly drift. This backend is heavier and should not be silently installed unless needed.
local-deterministic-motion-puppet
Guaranteed no-model path. It preserves supplied pixels and produces a valid Codex atlas, but cannot invent unseen anatomy/poses at neural quality.
Before running any command, inspect all supplied references and summarize only stable visible details.
Record:
subject_type: person, animal, creature, mascot, or auto;Turn these into one concise --identity-notes string. This is important: the local neural backend sees image references, but explicit stable identity notes substantially reduce drift across animation states.
Do not infer sensitive identity attributes. Describe only visible appearance needed for rendering.
Allowed styles:
soft-real — photo-faithful humans/animals; preserve fur/hair/eyes/markings/accessories;hero-chibi — premium 3D toy-like chibi, handsome/cute balance, roughly 2.7–3 heads tall;plush — premium collectible plush interpretation;capsule-creature — original PocketMen pocket-creature styling using PocketMen's own red/yellow Companion Capsule;auto — conservative; use soft-real unless the user clearly requests stylization.For a real deceased or memorial pet, prioritize identity fidelity over cuteness and do not imply the digital pet is literally the deceased animal.
draft: one neural canonical master + deterministic nine-state motion;balanced: canonical master + state-specific neural key poses; recommended default;max: independently generate every state key pose; best for publication-quality showcases and important personal companions.Use max when the user explicitly asks for maximum quality, ImageGen-like results, or very high fidelity.
Resolve the installed skill directory first.
Runtime Python:
Windows:
<skill-dir>\.venv\Scripts\python.exe
macOS/Linux:
<skill-dir>/.venv/bin/python
If the virtual environment does not exist, run:
python <skill-dir>/scripts/setup_runtime.py --skill-dir <skill-dir> --profile core
Run:
<python> <skill-dir>/scripts/create_local_pet.py doctor
If recommended_engine is neural-local but the neural dependencies are missing, run once:
python <skill-dir>/scripts/setup_runtime.py --skill-dir <skill-dir> --profile neural
The first real neural creation may download black-forest-labs/FLUX.2-klein-4B into the normal Hugging Face cache. This is a local model download, not an OpenAI API call, and no OpenAI key is required.
If the user explicitly requests Identity-Max, use:
python <skill-dir>/scripts/setup_runtime.py --skill-dir <skill-dir> --profile identity-max
<python> <skill-dir>/scripts/create_local_pet.py create \
--reference /absolute/path/ref1.jpg \
--reference /absolute/path/ref2.jpg \
--name "<display name>" \
--pet-id "<stable-id>" \
--subject-type <person|animal|creature|mascot|auto> \
--identity-notes "<stable visible identity details>" \
--style <soft-real|hero-chibi|plush|capsule-creature|auto> \
--engine auto \
--backend auto \
--quality balanced \
--output /absolute/path/to/output \
--install
For maximum local quality:
--engine neural --backend flux2-klein-4b --quality max
For identity-sensitive heavy mode:
--engine neural --backend qwen-image-edit-2511 --quality max
Do not ask for API credentials if these fail. If neural fallback is allowed, PocketMen will use the deterministic path and report the reason.
PocketMen owns the full pipeline:
Rows and frame counts:
idle — 6running-right — 8running-left — 8waving — 4jumping — 5failed — 8waiting — 6running — 6, meaning Codex is actively working, not physical locomotionreview — 6The neural engine generates a true semantic key pose for each state in balanced/max modes. Deterministic transforms are reserved for subtle breathing, bounce, lean and timing—not for pretending a static cutout is a completely new pose.
For animals, waving should use a raised front paw with natural anatomy. For people, use a real hand wave. running should depict focused work with a compact plain laptop. review should depict inspection of a plain paper/blueprint. No readable brand logos or UI text.
Expected output:
<output>/
package/<pet-id>/
pet.json
spritesheet.webp
run/final/
spritesheet.webp
validation.json
run/qa/
identity-lock.json
neural-generation.json # neural runs only
neural-raw/*.png # local QA artifacts
neural-cutouts/*.png # local QA artifacts
contact-sheet.png
review.json
run-summary.json
previews/*.gif
Before installation acceptance:
validation.json must report ok: true;contact-sheet.png visually;idle, running-right, waving, jumping, running, and review GIFs when available;OPENAI_API_KEY as the default recovery path.balanced or draft quality;--identity-notes;qwen-image-edit-2511 --quality max when the hardware can support it;Normal PocketMen output must report:
api_key_required: false
hatch_pet_required: false
openai_imagegen_used: false
Do not invoke $hatch-pet. Do not inspect or request OPENAI_API_KEY. Do not silently call an external paid image endpoint.
PocketMen code is MIT. Model weights are downloaded separately and are not redistributed by this repository.
Raw reference images remain local. Do not copy them into Git commits, public releases, bug reports or example datasets without explicit user permission. Final pet packages should contain only the required install assets unless the user asks to retain QA files.
Report:
hatch_pet_required=false;api_key_required=false;openai_imagegen_used=false.Take six-nut/pocketmen-with-you 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.