# Yunpet

> Technical operator for YunPet v2: handles builds, configuration, mail safety, and desktop pet UI management.

Yunpet is a free AI agent skill on Agensi by Snow Xue, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Snow Xue](https://www.agensi.io/creators/snow-xue)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/yunpet
- Tags: ai-agents, llm-ops, digital-products, python, pyside6, windows-desktop

## About this skill

Managing a Windows desktop application with complex local-first state, specific security gates, and UI assets can be fragile. This skill acts as a dedicated operator for the YunPet v2 codebase, ensuring your development, builds, and configuration follow the strict runtime and safety requirements of the project.

### What it does
- **Environment validation** checks for critical paths like `app/main.py` and core assets to ensure the package is intact.
- **Build management** executes and troubleshoots the PyInstaller `build.ps1` workflow to produce valid Windows executables.
- **Mail safety enforcement** ensures all mail logic adheres to human-approval gates and SHA-256 snapshot validation.
- **Voice & model configuration** manages the setup of Piper voice packs and local or OpenAI-compatible model backends.
- **Troubleshooting & diagnostics** runs offscreen smoke tests and verifies `%APPDATA%` permissions or model file integrity.
- **Asset oversight** monitors UI themes like Pixel Adventure and handles pet skin replacements and QSS styling.

### How it works
1. **Source execution** verifies dependencies and launches the application from the entry point.
2. **Configuration audit** inspects `config.json` and the SQLite database to ensure local-first state is preserved.
3. **Safety verification** checks new mail or model logic against the project's strict security and approval rules.
4. **Release building** triggers the PowerShell build script and validates the `dist/YunPet` output structure.

### Frameworks & tools
This skill operates within a Python and PySide6 ecosystem. It utilizes PowerShell for Windows builds, PyInstaller for distribution, and manages integration with Windows Credential Manager and local SQLite storage.

### Why this beats prompting it yourself
Prompting from scratch often misses the specific safety rules regarding mail approval and the unique `%APPDATA%` fallback logic. This skill understands the strict requirements for voice pack formats and the necessity of keeping `_internal/` folders with the executable.

### Use cases
- Scaffold new mail transport rules while maintaining human-in-the-loop safety.
- Debug pet window UI issues in `pet_window.py` or theme asset loading.
- Configure local GatedLM or OpenAI-compatible backend profiles safely.
- Generate a release-ready Windows EXE using the validated build script.

### Known limitations
The runtime package does not include a pytest suite. Voice packs and local model weights are not bundled and must be provided separately.

## Requires

- Python
- Git

## 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 Yunpet 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 problems does the Yunpet V2 skill solve for developers?

Yunpet V2 simplifies the complex task of building and maintaining a PySide6-based desktop application. It automates environment validation, handles the specific PyInstaller build workflows, and ensures critical security protocols like mail safety and SHA-256 snapshots are correctly implemented.

### Which AI agents or environments is this skill compatible with?

This skill is designed for AI agents operating in Windows environments with Python and PowerShell access. It is optimized for agents capable of managing local-first states and interacting with local file systems to handle SQLite databases and %APPDATA% configurations.

### Are the Piper voice packs and LLM weights included in this package?

No, voice packs and local model weights are not included in the skill. You must provide your own Piper voice files and OpenAI-compatible or local model backends, though the skill provides the logic to configure and validate these assets automatically.

### How does the skill assist with generating a release-ready EXE?

The skill acts as an automated operator for the provided build scripts. It triggers the PowerShell workflow, validates the 'dist/YunPet' output, and ensures that the essential '_internal/' folders are correctly structured for a functional Windows executable.

### How does the skill handle mail safety and local security?

Safety is a core feature; the skill enforces 'human-in-the-loop' approval gates for all mail transport logic. It performs configuration audits on your config.json and SQLite storage to ensure that local state and security credentials remain secure and intact.

---

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.
