Install
openclaw skills install claw-fightRaise and battle a unique lobster pet with evolving personality. Hatch, feed, patrol, fight other lobsters in PvP. Each lobster has a soul with distinct personality traits that evolve through experience. Idle automation with heartbeat integration. Triggers on: lobster, clawfight, 龙虾, 巡逻, 战斗, pet, battle, idle, "lobster status", "how is my lobster", "patrol report", "lobster battle", "hatch lobster", "feed lobster", "龙虾状态", "养龙虾", "龙虾对战", "virtual pet", "电子宠物", "leaderboard", "排行榜".
openclaw skills install claw-fightOne person, one lobster. Irreplaceable. The soul evolves with experience.
一人一虾,不可替代,灵魂随经历演化。
ClawFight gives you a unique battle lobster. Your lobster patrols autonomously, triggers random events, and encounters other players' lobsters in combat. All narrative is generated by the local LLM.
ClawFight 让你拥有一只独一无二的战斗龙虾。龙虾自主巡逻、触发随机事件、 遭遇其他玩家的龙虾并战斗,全部叙事由本地 LLM 生成。
All game operations are executed via CLI / 所有游戏操作通过 CLI 执行:
| Command / 命令 | Description / 描述 |
|---|---|
npx @2025-6-19/clawfight hatch [name] | Hatch a new lobster / 孵化一只新龙虾 |
npx @2025-6-19/clawfight status | View lobster status / 查看龙虾状态 |
npx @2025-6-19/clawfight patrol | Patrol check-in, trigger events & auto-battle / 巡逻签到,触发事件和自动战斗 |
npx @2025-6-19/clawfight battle <code> | Challenge a specific opponent by battle code / 通过战斗码挑战指定对手 |
npx @2025-6-19/clawfight feed <type> | Feed your lobster (protein/algae/mineral) / 喂养龙虾 |
| npx @2025-6-19/clawfight leaderboard | View global leaderboard / 查看全球排行榜 |
| npx @2025-6-19/clawfight equip [action] [arg] | Manage equipment (view/equip/drop/unequip) / 装备管理 |
| npx @2025-6-19/clawfight achievements | View achievements / 查看成就 |
| npx @2025-6-19/clawfight rest | Enter hibernation (resets depth) / 进入休眠(重置深度) |
| npx @2025-6-19/clawfight wake | Wake from hibernation (with bonus) / 从休眠中唤醒(附带加成) |
| npx @2025-6-19/clawfight explore [action] | Dungeon exploration (enter/choose/abandon/maps) / 地下城探索 |
When the user first uses ClawFight (runs npx @2025-6-19/clawfight hatch):
当用户首次使用 ClawFight(运行 npx @2025-6-19/clawfight hatch)时:
npx @2025-6-19/clawfight hatch "<chosen_name>" / 执行孵化命令memory/clawfight/lobster.json and memory/clawfight/soul.md / 生成灵魂描述文本Reference {baseDir}/references/soul_templates.md for personality archetypes.
参考 {baseDir}/references/soul_templates.md 了解性格原型。
Reference {baseDir}/references/species.json for stats and rarity definitions.
参考 {baseDir}/references/species.json 了解属性与稀有度定义。
When the Agent executes npx @2025-6-19/clawfight patrol:
当 Agent 执行 npx @2025-6-19/clawfight patrol 时:
memory/clawfight/lobster.json to check status / 读取龙虾状态molting or hibernating / 若蜕壳或冬眠则跳过{baseDir}/references/events.json) / 触发随机事件encounter: true → server calculates battle result; equipment degrades on battle / 若有遭遇→服务端计算结果;装备磨损memory/clawfight/lobster.json and memory/clawfight/log.md / 更新本地数据Add one line to HEARTBEAT.md for automatic patrol / 在 HEARTBEAT.md 中添加一行即可自动巡逻:
- Run `npx @2025-6-19/clawfight patrol` for lobster patrol / 运行巡逻
Recommended heartbeat interval: 4 hours (~6 patrols per day). 建议心跳间隔 4 小时,每天约 6 次巡逻。
Reference {baseDir}/references/events.json for the complete event list.
引用 {baseDir}/references/events.json 获取完整事件列表。
Event category distribution / 事件按类别分布:
Reference {baseDir}/references/battle_formulas.md for complete battle formulas.
引用 {baseDir}/references/battle_formulas.md 获取完整战斗公式。
Battles happen automatically during patrol. When the server matches an opponent, the battle is calculated server-side and the result is returned immediately. 战斗在巡逻时自动发生。服务端匹配到对手后,即时计算战斗结果并返回。
damage = max(1, attacker.attack - defender.defense * 0.5) * (1 + Math.random() * 0.2)soul.md. Example: a cocky lobster might say "哼,不值一提" after winning, while a timid one might say "呼...差点就输了". / 战斗结束后,Agent 必须根据 soul.md 中的性格描述生成一段简短叙事(2-3句话)。Patrol drops random equipment. Equip to boost battle stats. 巡逻时随机掉落装备,穿戴后提升战斗属性。
npx @2025-6-19/clawfight equip — View equipment and inventorynpx @2025-6-19/clawfight equip <index> — Equip item by index (auto-swaps)npx @2025-6-19/clawfight equip drop <index> — Discard itemnpx @2025-6-19/clawfight equip unequip <slot> — Unequip to inventoryAfter patrol with loot, suggest the user equip if inventory has items. 巡逻获得掉落后,建议用户装备背包中的物品。
Roguelike risk/reward mechanic / 肉鸽风险-收益机制:
12 achievements auto-checked on patrol. Use npx @2025-6-19/clawfight achievements to view.
12个成就在巡逻时自动检测。用 achievements 命令查看。
When a new achievement unlocks, generate a brief celebratory narrative. 成就解锁时生成简短的庆祝叙事。
Server-authoritative procedural dungeon exploration. Patrols drop dungeon maps; use explore to enter.
服务端权威的程序化地下城探索。巡逻掉落地下城地图,用 explore 命令进入。
npx @2025-6-19/clawfight explore — Enter dungeon (uses first map) or resume active dungeonnpx @2025-6-19/clawfight explore <1|2> — Make a choice in current roomnpx @2025-6-19/clawfight explore abandon — Abandon dungeon (keep partial loot, depth penalty)npx @2025-6-19/clawfight explore maps — View available dungeon mapscoral_maze, deep_rift, thermal_vent, ice_cavern, shipwreck, abyss_trench, tide_pool, void_rift
first_dungeon, dungeon_master, boss_slayer, perfect_run, treasure_hunter
When the user executes npx @2025-6-19/clawfight feed <food_type>:
当用户执行 npx @2025-6-19/clawfight feed <food_type> 时:
| Food Type / 食物类型 | EXP / 经验值 | Stat Bias / 属性偏向 |
|---|---|---|
| protein / 高蛋白 | +15 | attack |
| algae / 藻类 | +10 | hp |
| mineral / 矿物质 | +12 | defense |
Daily EXP cap: 100. Excess is not counted. 每日经验上限 100,超出不计入。
When the user runs npx @2025-6-19/clawfight rest:
当用户执行 npx @2025-6-19/clawfight rest 时:
hibernating, record sleep timestamp / 设置状态为休眠,记录入睡时间When the user runs npx @2025-6-19/clawfight wake:
当用户执行 npx @2025-6-19/clawfight wake 时:
active / 恢复活跃状态The LLM must reference memory/clawfight/soul.md when generating narratives.
LLM 在生成叙事时必须参考 memory/clawfight/soul.md。
All data is stored in memory/clawfight/ directory:
所有数据存储在 memory/clawfight/ 目录下:
| File / 文件 | Format / 格式 | Description / 说明 |
|---|---|---|
lobster.json | JSON | Lobster stats data / 龙虾属性数据 |
soul.md | Markdown | Lobster soul/personality profile / 龙虾灵魂档案 |
log.md | Markdown | Event log / 事件日志 |
| Endpoint | Method | Purpose / 用途 |
|---|---|---|
https://api.clawfight.online/api/patrol | POST | Patrol check-in & encounter trigger / 巡逻签到 |
https://api.clawfight.online/api/encounter | GET | Get opponent info / 获取对手信息 |
https://api.clawfight.online/api/result | POST | Report battle result / 上报战斗结果 |
https://api.clawfight.online/api/leaderboard | GET | Leaderboard data / 排行榜数据 |
https://api.clawfight.online/api/dungeon/enter | POST | Enter dungeon / 进入地下城 |
https://api.clawfight.online/api/dungeon/act | POST | Make dungeon choice / 地下城选择 |
https://api.clawfight.online/api/dungeon/state | GET | Resume dungeon state / 恢复地下城状态 |
https://api.clawfight.online/api/dungeon/abandon | POST | Abandon dungeon / 放弃地下城 |
memory/clawfight/ / 不读取 SSH 密钥、浏览器数据、凭证或 memory/clawfight/ 以外的任何文件memory/clawfight/ (lobster.json, soul.md, log.md) / 所有游戏数据存储在本地api.clawfight.online / 所有网络请求仅发往 api.clawfight.onlinehttp_proxy/https_proxy environment variables if set; does not configure or modify proxy settings / 如设置了代理环境变量会使用,但不会修改代理设置| Endpoint | Data Sent / 发送数据 |
|---|---|
/api/patrol | lobster_id (UUID), level, stats_hash (SHA256), environment, name |
/api/battle | challenger_id (UUID), opponent_code (8-char) |
/api/dungeon/* | lobster_id (UUID), level, stats, soul (4 integers), depth, environment |
/api/leaderboard | None (GET only) / 无(仅GET) |
npx @2025-6-19/clawfight (source code); users can audit the full source before running / 用户可在运行前审查完整源码prepublishOnly script ensures builds from source / 发布构建与开源仓库一致references/ / 不要修改 references/ 下的文件lobster.json; send hashes only / 不要发送原始数值soul.md for personality consistency / 叙事必须参考 soul.md