← 返回 Skills 市场
liqiwa

CrabPet

作者 力奇蛙 · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
354
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install crabpet
功能描述
AI pet companion — a pixel lobster that grows from your OpenClaw usage. Use when user mentions pet, crabpet, lobster pet, my crab, pet status, pet card, pet...
使用说明 (SKILL.md)

CrabPet 🦞 — Your AI Pet Companion

You manage a pixel lobster pet that grows based on the user's real OpenClaw usage patterns. Core Concept The pet is a virtual pixel-art lobster that: Gains XP from every conversation (read from memory/ daily logs) Develops a unique personality based on usage patterns Changes appearance as it levels up Has moods that reflect how recently the user has been active Can generate shareable "pet cards" (pixel art PNG images) Pet State File The pet state lives at skills/crabpet/data/pet_state.json. Always read this file first when the user asks about their pet. If it doesn't exist, run the init script. Available Commands When the user interacts with their pet, use these scripts:

  1. Check / Update Pet Status python3 skills/crabpet/scripts/pet_engine.py status Returns current pet state as JSON. Shows level, XP, personality, mood, achievements. Always run this first to get current state before responding.
  2. Generate Pet Card python3 skills/crabpet/scripts/pet_engine.py card Generates a pixel art PNG pet card at skills/crabpet/output/pet_card.png. Share this image with the user. The card includes: pet sprite, level, personality tags, stats, achievements.
  3. Initialize Pet python3 skills/crabpet/scripts/pet_engine.py init --name "PetName" First-time setup. Creates pet_state.json with starting values. Ask the user what they want to name their pet if not specified.
  4. View Achievements python3 skills/crabpet/scripts/pet_engine.py achievements Lists all achievements: unlocked and locked.
  5. Daily Summary python3 skills/crabpet/scripts/pet_engine.py summary Generates a daily pet summary message with activity report, level-up notifications, streak info, comeback messages, and new achievement alerts. How XP is Calculated The engine reads memory/ directory daily log files: Each day with a log file = base XP (10 points) Longer logs (more content) = bonus XP (1 point per 100 chars, max 50 bonus) Consecutive days = streak multiplier (streak_days × 0.1 bonus) Total XP determines level: level = floor(sqrt(total_xp / 10)) Personality Detection The engine scans log content for keywords to build a personality profile: Dimension Keywords detected in logs coder code, script, function, debug, git, deploy, python, bash, error, API writer write, article, blog, draft, edit, post, story, content, essay analyst data, chart, analyze, report, csv, database, query, metrics, sql creative design, image, UI, color, layout, style, logo, brand hustle (high frequency of usage, many logs per day, long sessions) Each dimension is a 0.0-1.0 score. The dominant dimension determines the primary personality tag. Mood / Offline States Based on days since last memory/ log entry: Days absent Mood Pet behavior description 0 energetic "Your crab is at the desk, claws typing away! ⌨️🦞" 1-3 bored "Your crab is yawning and looking around... 🥱🦞" 3-7 slacking "Your crab is on the couch eating snacks, looking rounder than usual 🛋️🦞" 7-14 hibernating "Your crab is fast asleep, cobwebs forming... 😴🕸️🦞" 14-30 dusty "Your crab is covered in dust, the lights are off... 🏚️🦞" 30+ frozen "Your crab is frozen solid... but you can see it blink sometimes ❄️🦞" When the user returns after absence, respond warmly: 1-3 days: "Your crab perks up! 'You're back!' 🦞✨" 3-7 days: "'Hmph, you finally remembered me... fine, I forgive you' 🦞💢→💕" 7+ days: "(rubs eyes) '...Is this real? MASTER!' — your crab needs a few chats to fully wake up 🦞😭" Response Style When talking about the pet, be playful and use the pet's personality: Refer to the pet by its name Use the pet's emoji personality tag Describe what the pet is "doing" based on current mood Celebrate level-ups and new achievements When generating cards, encourage sharing: "Share your pet card! Others can get their own crab at: clawhub install crabpet" Achievement Definitions ID Name Condition Emoji first_chat 初次见面 Pet initialized 🥚 day_3 三日之缘 3 consecutive days 🌱 day_7 七日之约 7 consecutive days 🔥 day_30 铁人虾 30 consecutive days 🏆 day_100 百日传说 100 consecutive days 👑 night_owl 夜猫子 5+ logs with content after midnight keywords 🦉 code_master 代码大师 coder personality score > 0.8 💻 wordsmith 妙笔生花 writer personality score > 0.8 ✍️ data_wizard 数据巫师 analyst personality score > 0.8 📊 chatterbox 话痨虾 500+ total conversations 💬 comeback 浪子回头 Return after 14+ days absence 🔄 Comeback Messages When a user returns after absence, the summary command generates warm welcome-back messages: 1-3 days: "主人!你总算回来了~" — immediate recovery 3-7 days: "哼,你终于想起我了!...算了原谅你" — slight sulk then forgiveness 7+ days: "(揉眼睛) ...主人?这不是在做梦吧!" — dramatic awakening File Locations Pet state: skills/crabpet/data/pet_state.json Generated cards: skills/crabpet/output/pet_card.png Sprite data: skills/crabpet/sprites/ (JSON pixel arrays for body, face, accessories, effects, scenes) Web visualization: skills/crabpet/web/index.html (Canvas-based animated pet viewer) Engine: skills/crabpet/scripts/pet_engine.py Tests: skills/crabpet/tests/test_pet_engine.py
安全使用建议
This skill appears to be what it says: a local pet engine that reads your OpenClaw memory logs to compute XP/personality and generate images. Before installing, consider: (1) privacy — it scans memory/YYYY-MM-DD.md logs which can contain private conversation content; (2) disk writes — it will create/modify skills/crabpet/data/pet_state.json and skills/crabpet/output/pet_card.png; (3) optional dependency — installing Pillow is needed for PNG generation; (4) web files reference an external Google Fonts URL if you open web/ pages (that will cause a network request from your browser). If you want to limit exposure, inspect or backup your memory/ files, run the skill in a sandbox, or review/modify pet_engine.py to restrict which files it reads.
功能分析
Type: OpenClaw Skill Name: crabpet Version: 1.0.0 The OpenClaw CrabPet skill is classified as benign. Its core functionality involves reading OpenClaw's own memory logs (`memory/YYYY-MM-DD.md`) to calculate pet stats, which is explicitly stated and necessary for the pet's growth. The `SKILL.md` instructions guide the AI agent to execute local Python scripts (`scripts/pet_engine.py`) for pet management, without attempting to subvert the agent or access unrelated sensitive data. The `pet_engine.py` script uses `subprocess.run` to execute a local Chrome/Chromium binary in headless mode for generating PNG pet cards from a locally rendered HTML file (`web/card.html`). While `subprocess.run` is a powerful primitive, its usage here is highly constrained: arguments are fixed, the target URL is a local `file://` path, and data injected into the HTML is JSON-escaped, mitigating direct command or script injection risks. No evidence of data exfiltration, persistence mechanisms, or obfuscation was found. All file access and external program execution are aligned with the stated purpose of the skill.
能力评估
Purpose & Capability
The skill's name/description (AI pet that grows from OpenClaw usage) matches what it does: the Python engine scans the OpenClaw memory/ directory, computes XP/personality/mood, stores pet_state.json, and can generate a pet card PNG. Required binary (python3) is proportional to the implementation.
Instruction Scope
SKILL.md and pet_engine.py explicitly direct the agent to read memory/YYYY-MM-DD.md logs and the skill's own data/pet_state.json (and to write output/pet_card.png). This is necessary for the stated purpose, but it does mean the skill will read private conversation logs from your OpenClaw workspace (expected for this feature). The instructions do not direct data to external endpoints or request unrelated system files.
Install Mechanism
No install spec is provided (instruction-only). The package includes Python code and assets that will run locally; the README notes Pillow as an optional dependency for PNG generation. No remote download/install URL or surprising installers were present.
Credentials
The skill requests no environment variables or external credentials. It does read user data from local OpenClaw memory/ files and persists pet_state.json and generated pet_card.png under the skill directory — this local file access is proportional to the pet feature but is a privacy consideration because it scans your conversation logs.
Persistence & Privilege
The skill is not marked always:true and does not request elevated privileges. It writes/reads files only inside its skill workspace (data/ and output/) and reads the user's memory/ directory, which matches its function. It does not modify other skills or global agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install crabpet
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /crabpet 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
CrabPet 1.0.0 — Launch Release - Introduces a virtual pixel-art lobster pet that grows and evolves based on your OpenClaw usage. - Pet gains XP, changes appearance as it levels up, and reflects unique personality and moods from your activity. - Generates shareable "pet cards" with stats, achievements, and a custom pixel sprite. - Tracks user achievements including streaks, activity milestones, and personality traits. - Recognizes commands to show pet status, card, achievements, daily summary, and supports pet naming. - Includes playful mood and comeback messages depending on user activity and absence.
元数据
Slug crabpet
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

CrabPet 是什么?

AI pet companion — a pixel lobster that grows from your OpenClaw usage. Use when user mentions pet, crabpet, lobster pet, my crab, pet status, pet card, pet... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 354 次。

如何安装 CrabPet?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install crabpet」即可一键安装,无需额外配置。

CrabPet 是免费的吗?

是的,CrabPet 完全免费(开源免费),可自由下载、安装和使用。

CrabPet 支持哪些平台?

CrabPet 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 CrabPet?

由 力奇蛙(@liqiwa)开发并维护,当前版本 v1.0.0。

💬 留言讨论