← 返回 Skills 市场
Lobster Buddy
作者
wangxiaofei860208-source
· GitHub ↗
· v1.0.0
· MIT-0
97
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install lobster-buddy
功能描述
麻薯的电子宠物系统。基于用户ID确定性生成的RPG风格宠物,有物种、稀有度、属性和闪光机制。当用户问"我的宠物"、"看看我的buddy"、"抽宠物"时触发。
使用说明 (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 属性越高,宠物的"评论"越毒舌
- 闪光宠物会有特殊的展示效果
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lobster-buddy - 安装完成后,直接呼叫该 Skill 的名称或使用
/lobster-buddy触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of lobster-buddy: 麻薯的电子宠物系统
- 为每个用户确定性生成专属 RPG 风格宠物,含物种、稀有度、属性和闪光机制
- 支持 18 种物种、5 级稀有度,具备 DEBUGGING、PATIENCE、CHAOS、WISDOM、SNARK 五项属性
- 展示格式美观,宠物头像带有表情和帽子,支持闪光特效
- 指令触发:如“我的宠物”、“看看我的buddy”、“抽宠物”查看宠物信息
- 宠物数据持久存储,允许用户自定义宠物名字
- 宠物活跃和对话频率、毒舌程度受属性影响
元数据
常见问题
Lobster Buddy 是什么?
麻薯的电子宠物系统。基于用户ID确定性生成的RPG风格宠物,有物种、稀有度、属性和闪光机制。当用户问"我的宠物"、"看看我的buddy"、"抽宠物"时触发。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 97 次。
如何安装 Lobster Buddy?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lobster-buddy」即可一键安装,无需额外配置。
Lobster Buddy 是免费的吗?
是的,Lobster Buddy 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Lobster Buddy 支持哪些平台?
Lobster Buddy 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Lobster Buddy?
由 wangxiaofei860208-source(@wangxiaofei860208-source)开发并维护,当前版本 v1.0.0。
推荐 Skills