# DSH Pet Maker — 24fps Transparent WebM Pets

> 6-stage pipeline to build, dual-chroma key (#00FF00/#FF00FF), loop-pin, QA-verify, and package 24fps transparent VP9 WebM desktop pets for DeepSeek Harness (dsh-pet).

DSH Pet Maker — 24fps Transparent WebM Pets is a free AI agent skill on Agensi by Linyucion, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Linyucion](https://www.agensi.io/creators/linyucion)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-11-22
- Security: scan passed (2026-11-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/dsh-pet-maker-24fps-transparent-webm-pets
- Tags: automation, image, web-design, ffmpeg, npm, animation, python, webm

## About this skill

Battle-tested 6-stage production workflow and deterministic Python/Node CLI scripts for creating **640×360 @ 24fps transparent `VP9 yuva420p` WebM desktop pets** and instant-install CDN bundle plugins for **DeepSeek Harness (`dsh-pet` v0.4.3+)**.

### Why This Skill Exists
Turning AI character sheets or green/magenta-screen video clips into desktop pets usually fails due to dark/green edge halos, green screens punching holes through emerald eyes, jittery foot baselines, and visible frame pops when animations loop or mirror-flip. **DSH Pet Maker** automates the entire pipeline with deterministic computer-vision math and `ffprobe` quality gates.

### 6-Stage End-to-End Pipeline
1. **Stage 1 (`prepare_masters.py`)**: Automatic background connected-component removal, 4-step interior color dilation despill, rigid `foot_y = 330` baseline locking, and dark/light split-background QA sheets.
2. **Stage 2 (`generate_wan3_videos.py` / `export_colab_h3.py`)**: Supports cloud first+last-frame 720p synthesis, zero-cost Google Colab A100 `MiniMax-H3` batch packs, or **100% offline 24fps spring-physics synthesis (`--studio-fallback`)**.
3. **Stage 3 (`encode_chroma_webm.py`)**: Exterior-connected adaptive dual-chroma flood-fill keying (`#00FF00` green & `#FF00FF` magenta to protect green irises/clothes), symmetric boomerang guard, premultiplied 3-frame endpoint pinning, and `VP9 yuva420p` (`alpha_mode="1"`) encoding.
4. **Stage 4 (`build_immersion_clips.py`)**: Synthesizes 4 fourth-wall interactive clips (`13 + 4 = 17` clips per pet), `320×320` RGBA avatars, 4 rounded stickers, `<id>-config.json`, and `preview/showcase.gif`.
5. **Stage 5 (`qa_verify_pack.py`)**: Decodes all 17 `.webm` clips per character to assert `640×360 @ 24/1`, `ALPHA_MODE=1`, 4-corner `alpha == 0`, loop/turn/sleep-relay `MAE`, and zero leaked local paths/keys.
6. **Stage 6 (`scaffold_dsh_plugin.mjs`)**: Scaffolds lightweight DeepSeek Harness bundle manifests (`cordis.patch.yml`, `index.js`, `package.json`, and CI).

### Open-Source Repository & MIT License
- **GitHub Repository**: https://github.com/linyucion/dsh-pet-maker-skill
- **Production Showcases**: [dsh-pet-ai-sisters](https://github.com/linyucion/dsh-pet-ai-sisters) (16 characters, 272 WebMs) & [dsh-pet-nailong](https://github.com/linyucion/dsh-pet-nailong) (6 characters, 102 WebMs)
- **License**: Free and open-source under the **MIT License**.

## Requires

- Git
- Python 3.10+ (Pillow, numpy)
- FFmpeg & FFprobe
- Node.js 20+

Includes an offline 24fps spring-physics engine (--studio-fallback) so you can generate all 17 transparent WebM clips per pet locally with zero cloud API keys.

## Known limitations

Requires FFmpeg with libvpx-vp9 support. Cloud video engines require Aliyun Bailian API keys. Best results for character height between 245px and 268px.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the DSH Pet Maker — 24fps Transparent WebM Pets skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific problem does the 'dsh pet maker' solve for desktop pet creators?

This skill automates the complex conversion of video assets into transparent, loop-perfect VP9 WebM animations, specifically formatted to function as interactive overlays without the 'jumping' or alignment issues common in manual exports.

### Which AI frameworks and pet engines is this skill compatible with?

The skill is designed specifically for the dsh-pet (v0.4.3+) ecosystem and integrates with cloud engines like Wan3.0 or local Python environments to generate and process the animation data.

### What exactly is included in the purchase of this skill?

You receive the complete end-to-end processing pipeline, including the chroma-keying logic, VP9 encoding scripts, and the automated npm plugin scaffolding for easy distribution.

### Are there any external dependencies or API keys required to run the full pipeline?

Yes, you will need FFmpeg installed in your local environment for final encoding, and usage of cloud-based generation requires a valid Aliyun API key or a Token Plan subscription.

### How does the skill ensure that animations don't 'float' or 'glitch' on the user's taskbar?

The skill enforces a precise 640x360 geometry with a fixed 330-pixel baseline and uses automated loop pinning to ensure characters remain grounded and transitions stay fluid during interaction.

### Can I use this skill to publish my custom pets to public registries?

The skill supports a split-architecture npm plugin structure, allowing you to bundle assets that bypass RPC timeouts and sync across both global and Chinese registry mirrors instantly.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
