Skip to main content

petdex

Install and select animated petdex mascots for Sonic.

Informações da origem

Repositório
dabit3/sonic-agent
Última atividade na origem
17 de setembro de 2026 às 16:17
Idioma detectado do SKILL.md
inglês
Estrelas
0
Forks
0

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
petdex
description
Install and select animated petdex mascots for Sonic.
version
1.0.0
author
Sonic Agent
license
MIT
platforms
["linux","macos","windows"]
metadata
{"sonic":{"tags":["petdex","mascot","display","cli","tui","desktop"],"category":"productivity","homepage":"https://petdex.dev"}}
# Petdex Skill Browse, install, and select animated "pet" mascots from the public [petdex](https://github.com/crafter-station/petdex) gallery. An installed pet reacts to agent activity (idle, running a tool, reviewing, error, done) across the Sonic CLI, TUI, and desktop app. This skill drives the `sonic pets` CLI and the `display.pet` config — it does not generate sprites. ## When to Use - The user wants a desktop/terminal mascot or asks about "pets" / petdex. - The user wants to change, preview, or disable the active pet. - Diagnosing why a pet isn't showing (terminal graphics support, config). ## Prerequisites - Network access to `petdex.dev` for the gallery/manifest (read-only, no auth). - Pillow (a core Sonic dependency) for sprite decoding — already installed. - For full-fidelity terminal rendering: a graphics-capable terminal (kitty, Ghostty, WezTerm, iTerm2, or sixel). Otherwise a truecolor Unicode half-block fallback is used automatically. ## How to Run Use the `terminal` tool to run `sonic pets <subcommand>`. ## Quick Reference | Goal | Command | | --- | --- | | Browse the gallery | `sonic pets list` (add a substring to filter: `sonic pets list cat`) | | List installed pets | `sonic pets list --installed` | | Install a pet | `sonic pets install <slug>` (add `--select` to make it active) | | Set the active pet | `sonic pets select <slug>` (omit slug for a picker) | | Resize the pet everywhere | `sonic pets scale <factor>` (e.g. `0.5`, clamped 0.1–3.0) | | Preview/animate in terminal | `sonic pets show [slug] [--cycle] [--state run]` | | Disable the pet | `sonic pets off` | | Remove a pet | `sonic pets remove <slug>` | | Diagnose setup | `sonic pets doctor` | ## Procedure 1. Find a pet: `sonic pets list <query>` and note its `slug`. 2. Install + activate: `sonic pets install <slug> --select`. 3. Preview it: `sonic pets show` (Ctrl+C to stop). 4. Confirm setup: `sonic pets doctor` — shows the resolved pet, configured render mode, detected terminal graphics protocol, and effective mode. Pets install into `<SONIC_HOME>/pets/<slug>/` (profile-aware). Selecting a pet writes `display.pet.slug` + `display.pet.enabled` to `config.yaml`. ## Configuration Under `display.pet` in `config.yaml`: - `enabled` (bool) — master on/off. - `slug` (str) — active pet; empty = first installed. - `render_mode` — `auto` (detect) | `kitty` | `iterm` | `sixel` | `unicode` | `off`. - `scale` (float) — on-screen size of the native 192×208 frames (default 0.33, clamped 0.1–3.0). One knob resizes every surface; set it with `sonic pets scale <factor>`, the `/pet scale` slash command, or the desktop Appearance slider. - `unicode_cols` (int) — width in columns for the Unicode fallback. ## Pitfalls - A pet only shows once one is installed AND selected (`enabled: true`). - Inside a pipe/redirect (no TTY) terminal rendering is disabled by design. - The petdex npm CLI installs to `~/.codex/pets`; Sonic uses its own profile-scoped `<SONIC_HOME>/pets/` instead — install through `sonic pets`. ## Verification - `sonic pets doctor` reports `✓ ready` when a pet is installed, selected, enabled, and Pillow is importable.
Ver no GitHub