skills$openclaw/openpet
mdealiaga8.6k

by mdealiaga

openpet – OpenClaw Skill

openpet is an OpenClaw Skills integration for communication workflows. Virtual pet (Tamagotchi-style) game for chat platforms. Triggers on pet commands like "feed pet", "pet status", "play with pet", "name pet", "pet sleep", "new pet". Supports multi-user across Discord, WhatsApp, Telegram, etc. Each user gets their own pet that evolves based on care.

8.6k stars9.1k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026communication

Skill Snapshot

nameopenpet
descriptionVirtual pet (Tamagotchi-style) game for chat platforms. Triggers on pet commands like "feed pet", "pet status", "play with pet", "name pet", "pet sleep", "new pet". Supports multi-user across Discord, WhatsApp, Telegram, etc. Each user gets their own pet that evolves based on care. OpenClaw Skills integration.
ownermdealiaga
repositorymdealiaga/openpet
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @mdealiaga/openpet
last updatedFeb 7, 2026

Maintainer

mdealiaga

mdealiaga

Maintains openpet in the OpenClaw Skills directory.

View GitHub profile
File Explorer
6 files
.
references
config.json
566 B
sprites.json
599 B
_meta.json
269 B
README.md
899 B
SKILL.md
3.0 KB
SKILL.md

name: openpet description: Virtual pet (Tamagotchi-style) game for chat platforms. Triggers on pet commands like "feed pet", "pet status", "play with pet", "name pet", "pet sleep", "new pet". Supports multi-user across Discord, WhatsApp, Telegram, etc. Each user gets their own pet that evolves based on care.

OpenPet

Virtual pet game. Each user gets one pet, tracked by {platform}_{userId}.

State

Pets stored in tamagotchi/pets/{platform}_{userId}.json:

{
  "name": "Blobby",
  "species": "blob",
  "hunger": 30,
  "happiness": 70,
  "energy": 50,
  "age": 5,
  "born": "2026-02-01T12:00:00Z",
  "lastUpdate": 1738442780000,
  "alive": true,
  "evolution": 1,
  "totalFeedings": 12,
  "totalPlays": 8,
  "ownerId": "202739061796896768",
  "platform": "discord",
  "ownerName": "mattzap"
}

Create tamagotchi/pets/ directory if missing.

Commands

TriggerAction
pet, pet statusShow stats + ASCII art
feed pethunger -30, happiness +5
play with pethappiness +25, energy -20
pet sleepenergy +40, happiness +5
name pet [name]Set pet name
new petReset (only if dead or confirm)
pet helpShow commands

New User Flow

  1. Any pet command from unknown user → create egg
  2. First interaction → hatch to blob
  3. Show welcome message + commands

Stats Display

    ╭──────────╮
    │ (◕‿◕)    │
    │   ♥      │
    │ "Name"   │
    ╰──────────╯
    
 ❤️ Happiness: ████████░░░░  70%
 🍖 Hunger:    ███░░░░░░░░░  30%
 ⚡ Energy:    █████░░░░░░░  50%

Use sprites from references/sprites.json. Mood = happy (≥70), neutral (40-69), sad (<40).

Evolution

StageRequirement
egg → blobFirst interaction
blob → catage ≥10, feedings ≥15, plays ≥10
cat → dragonage ≥30, feedings ≥50, plays ≥40

Check evolution after each interaction. Announce with fanfare.

Death

Pet dies if: hunger ≥ 100 OR happiness ≤ 0

BUT if immortalMode: true in config, pets don't die — they just get very sad and hungry. Stats cap at 99/1 instead of triggering death. Default is immortal mode ON.

Show memorial (if death enabled), offer new pet to restart.

Decay (Cron)

Set up cron job openpet-tick every 2 hours:

  • hunger +15, happiness -10, energy -5
  • Clamp all stats 0-100
  • Check death conditions
  • Alert owner if critical (hunger >80 or happiness <20)
  • Increment age daily

Platform Detection

Extract from message context:

  • Discord: discord_{userId}
  • WhatsApp: whatsapp_{phoneNumber}
  • Telegram: telegram_{chatId}
  • Signal: signal_{uuid}

Alerts

Send to user's origin platform when:

  • Pet is hungry (>80): "🍖 {name} is starving!"
  • Pet is sad (<20): "😢 {name} misses you!"
  • Pet died: "💀 {name} has passed away..."
  • Evolution: "✨ {name} evolved into a {species}!"
README.md

🥚 OpenPet

A Tamagotchi-style virtual pet skill for OpenClaw.

Each user gets their own pet that hatches, evolves, and needs care. Works across Discord, WhatsApp, Telegram, and other OpenClaw channels.

Install

openclaw skills install github:mdealiaga/openpet

Commands

CommandEffect
pet / pet statusCheck your pet
feed petReduce hunger
play with petIncrease happiness
pet sleepRestore energy
name pet [name]Name your pet
new petStart over (if dead)

Evolution

🥚 Egg → 🫧 Blob → 🐱 Cat → 🐲 Dragon

Evolve by taking good care of your pet over time!

How It Works

  • Stats decay every 2 hours (hunger ↑, happiness ↓)
  • If hunger hits 100% or happiness hits 0%... 💀
  • Good care = evolution to cooler forms

License

MIT

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install openpet?

Run openclaw add @mdealiaga/openpet in your terminal. This installs openpet into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/mdealiaga/openpet. Review commits and README documentation before installing.