Pet Companion · Desktop Pet Builder
Paste the following prompt into your AI chat to install this skill:
Please install @user_92508e76/deskpetchristina according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
When turning a character image into a desktop pet, the hard parts are not just “make a window move.” The result needs clean transparency, no gray halo, consistent canvas alignment, distinct idle animations, coherent click feedback, and a reproducible packaging layout. This skill targets that concrete engineering problem: given one character image or a set of expression images, produce a desktop pet with transparent always-on-top behavior, dragging, resizing, roaming, and interaction mapping.
How It Works
- Image pipeline:
process_v6.pyremoves watermarks, cleans white/light-gray backgrounds with flood-fill, removes edge halos, locks the largest connected component, and aligns outputs to a shared transparent canvas. - Expression animation: nine states ship with independent
MOTION_PROFILES, so each face can breathe, sway, bounce, or wiggle differently.QPropertyAnimationdrivesanim_rotation,anim_scale_x, and offset properties for smooth idle motion. - Interaction and roaming: click actions map to expressions and speech bubbles, while autonomous walking/swimming uses edge bouncing, facing flips, and periodic state changes. A do-not-disturb mode hides the pet during full-screen work or text input.
- Packaging:
product/is the canonical package withpet.py, ninecharacter_*.pngfiles, and build scripts for macOS.appor Windows.exeflows.
Boundaries
- Best suited for relatively clean character images or teams willing to validate pixel metrics such as background residue and edge halos.
- Generating new expressions with image-to-image models can introduce eye artifacts or asymmetry, so a processed multi-expression set is safer.
- Runtime depends on
PyQt6,Pillow,NumPy, andSciPy; Windows executables should be built on a Windows host.
Use Cases
- Clean AI-generated white-background character images into nine transparent expression PNGs for a desktop pet.
- Package the product/ directory into /Applications/宠伴.app on macOS and set launch-on-login.
- Fix WeChat text-input focus not triggering stealth by walking the AX parent chain to detect text controls.
- Add a new click interaction by editing animation duration, offsets, and the matching expression bubble in pet.py.
Best For
- PyQt desktop-tool engineer who needs a transparent always-on-top, draggable, resizable character app.
- AI character-asset engineer who needs watermark, background, and gray-halo cleanup with largest-component locking.
- macOS app release owner who needs to package product/ into an .app and keep development copies in sync.
- Cross-platform client engineer who needs full-screen and text-focus detection to hide the pet automatically.
Related Skills
Convert Chinese or natural-language requests into paste-ready English image prompts for ChatGPT's web UI, covering generation, editing, multi-image references, and exact text without performing image generation.
A creative AI image workflow for style transfer, reference-based creation, scene replacement, series expansion, material conversion, era shifts, composition rework, lineart conversion, and cartoonization.
Translates star-inspired football memories and fan resonance into compliant original IP poster concepts while avoiding real names, likenesses, official badges, and event logos.
Extracts real web page colors, typography, components, layouts, and interaction styles with a Playwright script to produce a verifiable design guideline.