Lobster Buddy

v1.0.0

麻薯的电子宠物系统。基于用户ID确定性生成的RPG风格宠物,有物种、稀有度、属性和闪光机制。当用户问"我的宠物"、"看看我的buddy"、"抽宠物"时触发。

0· 92·1 current·1 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for wangxiaofei860208-source/lobster-buddy.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Lobster Buddy" (wangxiaofei860208-source/lobster-buddy) from ClawHub.
Skill page: https://clawhub.ai/wangxiaofei860208-source/lobster-buddy
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install lobster-buddy

ClawHub CLI

Package manager switcher

npx clawhub@latest install lobster-buddy
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk978qqs07xevcysn5xtva4ec1x846k0d
92downloads
0stars
1versions
Updated 3w ago
v1.0.0
MIT-0

🐣 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级)

稀有度概率星级属性下限
普通 Common60%5
稀有 Uncommon25%⭐⭐15
罕见 Rare10%⭐⭐⭐25
史诗 Epic4%⭐⭐⭐⭐35
传说 Legendary1%⭐⭐⭐⭐⭐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 属性越高,宠物的"评论"越毒舌
  • 闪光宠物会有特殊的展示效果

Comments

Loading comments...