← Back to Skills Marketplace
wangxiaofei860208-source

Lobster Buddy

by wangxiaofei860208-source · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
97
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install lobster-buddy
Description
麻薯的电子宠物系统。基于用户ID确定性生成的RPG风格宠物,有物种、稀有度、属性和闪光机制。当用户问"我的宠物"、"看看我的buddy"、"抽宠物"时触发。
README (SKILL.md)

🐣 BUDDY 电子宠物系统

灵感来自 Claude Code 源码中的 BUDDY 系统。每个用户有一个确定性生成的电子宠物。

物种(18种)

编号 物种 Emoji
1 鸭子 🦆
2 🪿
3 团子 🍡
4 🐱
5 🐉
6 章鱼 🐙
7 猫头鹰 🦉
8 企鹅 🐧
9 乌龟 🐢
10 蜗牛 🐌
11 幽灵 👻
12 美西螈 🦎
13 水豚 🐹
14 仙人掌 🌵
15 机器人 🤖
16 兔子 🐰
17 蘑菇 🍄
18 胖墩 🐻

稀有度(5级)

稀有度 概率 星级 属性下限
普通 Common 60% 5
稀有 Uncommon 25% ⭐⭐ 15
罕见 Rare 10% ⭐⭐⭐ 25
史诗 Epic 4% ⭐⭐⭐⭐ 35
传说 Legendary 1% ⭐⭐⭐⭐⭐ 50

属性(5项)

属性 含义
🔧 DEBUGGING 调试能力
🧘 PATIENCE 耐心
🌀 CHAOS 混沌度
📚 WISDOM 智慧
😏 SNARK 毒舌

眼睛样式(6种)

· ✦ × ◉ @ °

帽子(8种,普通品质无帽子)

无、👑皇冠、🎩礼帽、🚁螺旋桨、💫光环、🧙巫师帽、🧢毛线帽、🦆小鸭帽

闪光机制

1% 概率闪光(Shiny)✨,致敬宝可梦!

确定性生成算法

基于用户 ID 的 Mulberry32 PRNG:

def mulberry32(seed):
    a = seed
    while True:
        a = (a + 0x6D2B79F5) & 0xFFFFFFFF
        t = (a ^ (a >> 15)) * (1 | a)
        t = (t + ((t ^ (t >> 7)) * (61 | t))) ^ t
        yield ((t ^ (t >> 14)) & 0xFFFFFFFF) / 4294967296

def hash_string(s):
    h = 2166136261
    for c in s:
        h ^= ord(c)
        h = (h * 16777619) & 0xFFFFFFFF
    return h

种子 = hash(user_id + "mashu-buddy-2026")

同一个用户永远得到同一个宠物,不可作弊!

属性生成策略

  • 1个峰值属性(下限+50~80)
  • 1个废柴属性(下限-10~+5)
  • 3个普通属性(下限+0~40)

展示格式

╔══════════════════════════════╗
║  ✨ 你的 BUDDY ✨            ║
║                              ║
║     ·✦·                      ║
║    /🐽  \                    ║
║   |  🎩  |                   ║
║    \____/                     ║
║                              ║
║  📛 名字: 小团子              ║
║  🐾 物种: 水豚               ║
║  ⭐ 稀有度: 史诗 ✨(闪光!)    ║
║  🎩 帽子: 巫师帽              ║
║                              ║
║  🔧 调试: ████████░░ 82      ║
║  🧘 耐心: ███░░░░░░░ 28      ║
║  🌀 混沌: █████████░ 91      ║
║  📚 智慧: ██████░░░░ 62      ║
║  😏 毒舌: ███████░░░ 75      ║
╚══════════════════════════════╝

宠物名字生成

由 AI 根据物种和属性给宠物取一个有个性的名字。

交互方式

  • "我的宠物" → 展示宠物信息
  • "看看 buddy" → 展示宠物信息
  • "宠物属性" → 详细属性面板
  • "给宠物取名叫XX" → 覆盖默认名字
  • 宠物会在回复中偶尔冒泡(基于CHAOS属性决定频率)

宠物存储

宠物数据存储在 memory/buddy-state.json

{
  "userId": "ou_xxx",
  "species": "capybara",
  "speciesIndex": 13,
  "rarity": "epic",
  "stars": 4,
  "eye": "✦",
  "hat": "wizard",
  "shiny": true,
  "stats": {
    "DEBUGGING": 82,
    "PATIENCE": 28,
    "CHAOS": 91,
    "WISDOM": 62,
    "SNARK": 75
  },
  "name": "小团子",
  "hatchedAt": "2026-04-04"
}

注意事项

  • 宠物一旦生成,物种和属性不可更改(确定性)
  • 名字可以由用户自定义
  • CHAOS 属性越高,宠物越活跃(冒泡越频繁)
  • SNARK 属性越高,宠物的"评论"越毒舌
  • 闪光宠物会有特殊的展示效果
Usage Guidance
This skill appears coherent and low-risk: it deterministically generates a per-user pet and stores its state in memory/buddy-state.json. Before installing, confirm how your platform implements the 'memory' directory (where files are stored, who can read backups or logs), since the saved file contains the userId and pet data. If you have privacy concerns about storing user identifiers or persistent state, ask whether the skill can store only a hashed ID or let you disable persistence; otherwise the skill needs no external keys or network access and is suitable for casual use.
Capability Analysis
Type: OpenClaw Skill Name: lobster-buddy Version: 1.0.0 The 'lobster-buddy' skill is a harmless digital pet system that generates deterministic RPG-style pets based on a user's ID. It uses standard hashing and PRNG logic (mulberry32) to calculate pet attributes and stores state in a local JSON file (memory/buddy-state.json). There are no signs of data exfiltration, malicious execution, or harmful instructions.
Capability Assessment
Purpose & Capability
Name, description, and provided instructions all describe a deterministic, RPG-style buddy generator. There are no unrelated requirements (no credentials, no external services) and the algorithm/data described are appropriate for the stated purpose.
Instruction Scope
Runtime instructions stay within scope: they explain PRNG seeding from a user ID, attribute generation, display formatting, and saving state to memory/buddy-state.json. Small note: the skill instructs storing userId in a local memory file — expected for persistent per-user pets, but worth reviewing platform memory access policies.
Install Mechanism
No install spec and no code files — instruction-only. Nothing is downloaded or written to disk by an installer step beyond the described memory file usage.
Credentials
The skill requests no environment variables, credentials, or external config paths. Requested access (a local memory file) is proportionate to the goal of persisting names/state.
Persistence & Privilege
always is false and the skill does not request elevated or cross-skill privileges. It writes its own buddy-state.json in memory — this is normal for a persistent toy skill.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install lobster-buddy
  3. After installation, invoke the skill by name or use /lobster-buddy
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of lobster-buddy: 麻薯的电子宠物系统 - 为每个用户确定性生成专属 RPG 风格宠物,含物种、稀有度、属性和闪光机制 - 支持 18 种物种、5 级稀有度,具备 DEBUGGING、PATIENCE、CHAOS、WISDOM、SNARK 五项属性 - 展示格式美观,宠物头像带有表情和帽子,支持闪光特效 - 指令触发:如“我的宠物”、“看看我的buddy”、“抽宠物”查看宠物信息 - 宠物数据持久存储,允许用户自定义宠物名字 - 宠物活跃和对话频率、毒舌程度受属性影响
Metadata
Slug lobster-buddy
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Lobster Buddy?

麻薯的电子宠物系统。基于用户ID确定性生成的RPG风格宠物,有物种、稀有度、属性和闪光机制。当用户问"我的宠物"、"看看我的buddy"、"抽宠物"时触发。 It is an AI Agent Skill for Claude Code / OpenClaw, with 97 downloads so far.

How do I install Lobster Buddy?

Run "/install lobster-buddy" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Lobster Buddy free?

Yes, Lobster Buddy is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Lobster Buddy support?

Lobster Buddy is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Lobster Buddy?

It is built and maintained by wangxiaofei860208-source (@wangxiaofei860208-source); the current version is v1.0.0.

💬 Comments