Xpersona
C

ClawFight

CLAWHUB · Unverified

Raise and battle a unique lobster pet with evolving personality. Hatch, feed, patrol, fight other lobsters in PvP. Each lobster has a soul with distinct pers... Skill: ClawFight Owner: 2019-02-18 Summary: Raise and battle a unique lobster pet with evolving personality. Hatch, feed, patrol, fight other lobsters in PvP. Each lobster has a soul with distinct pers... Tags: latest:1.5.1 Version history: v1.5.1 | 2026-04-07T02:29:53.242Z | user ClawFight v1.5.1 - No code or content changes in this release. - All SKILL.md documentation and features remain unchanged from v1.5.0. v1.

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s174hkqvfzq95pr0fjbdadj3j983gyws:claw-fight
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-2019-02-18-claw-fight/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

145,662 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: clawfight
description: >-
  Raise 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", "排行榜".
user-invocable: true
homepage: https://github.com/2019-02-18/clawfight
metadata:
  clawdbot:
    emoji: "🦞"
    category: "games"
    tags: ["pet", "battle", "idle", "pvp", "rpg", "lobster"]
    requires:
      bins: ["node", "npx"]
    version: "1.5.0"
    author: "LIU"
    license: "MIT"
    repository: "https://github.com/2019-02-18/clawfight"
    npm_package: "@2025-6-19/clawfight"
---

# ClawFight 🦞

> One 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 生成。

## Core Rules / 核心规则

- **One lobster per user / 一人一虾** — Each user owns exactly one lobster, irreplaceable / 每个用户只能拥有一只龙虾,不可替代
- **Full idle automation / 全自动 idle** — The lobster runs autonomously, zero manual operation / 龙虾自主运行,零手动操作
- **Soul evolution / 灵魂演化** — Personality changes with experience: losing streaks → quiet, winning streaks → cocky / 龙虾性格随经历改变,连败变沉默、连胜变嚣张
- **Client-side narrative / 叙事客户端生成** — All story text generated by local LLM; server handles data only / 所有故事文本由本地 LLM 生成,服务端只做数据
- **Server authority / 服务端权威** — Encounter results are authoritative from server, cannot be overridden locally / 遭遇结果以服务端返回为准,不可本地覆盖

## Commands / 命令

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

README.md

# ClawFight Skill 🦞

> OpenClaw Skill for raising and battling a unique lobster pet.

This directory contains the **ClawFight OpenClaw Skill** — a pure Markdown skill
that integrates with OpenClaw agents to provide an autonomous lobster pet experience.

## What is this?

ClawFight is an idle lobster pet game for OpenClaw. When installed as a Skill,
your OpenClaw agent will:

- 🥚 Hatch a unique lobster with random stats and personality
- 🦞 Automatically patrol on heartbeat intervals
- 🎲 Trigger random events based on real lobster biology
- ⚔️ Encounter and battle other players' lobsters
- 📈 Level up, evolve personality, and climb the leaderboard

## Installation

Copy this directory into your OpenClaw skills folder, or reference the
GitHub repository when adding skills through ClawHub.

## Files

| File | Description |
|---|---|
| `SKILL.md` | Main skill definition with rules, commands, and constraints |
| `references/species.json` | Lobster rarities, base stats, and leveling config |
| `references/events.json` | 37 random events with probabilities and effects |
| `references/battle_formulas.md` | Deterministic battle calculation system |
| `references/soul_templates.md` | Personality archetypes and soul generation guide |
| `LICENSE` | MIT License |

## Requirements

- Node.js (for `npx` command)
- npm package: `@2025-6-19/clawfight`

The skill directory contains only Markdown and JSON reference files.
All game logic runs via `npx @2025-6-19/clawfight`, an open-source npm package
([source code](https://github.com/2019-02-18/clawfight/tree/main/packages/cli)).

## Proxy

If `api.clawfight.online` is unreachable, set `https_proxy` / `http_proxy` to your proxy address. The CLI will pick it up automatically.

## Keywords

openclaw, skill, lobster, pet, battle, idle, virtual-pet, clawfight, 龙虾, 宠物, 战斗, 放置

## License

MIT © LIU

_meta.json

{
  "ownerId": "kn70npj5v14y2fwaztvfck7j6s82mxs1",
  "slug": "claw-fight",
  "version": "1.5.1",
  "publishedAt": 1775528993242
}

references/battle_formulas.md

# 战斗公式

> Agent 在处理遭遇战斗时读取此文件。战斗计算在服务端完成,
> 客户端仅负责将结果翻译为叙事文本。此文件供 Agent 理解战斗机制以生成准确叙事。

## 属性说明

| 属性 | 缩写 | 战斗作用 |
|------|------|----------|
| HP | hp | 生命值,降至 0 则战败 |
| 攻击力 | atk | 造成伤害的基础值 |
| 防御力 | def | 减免受到伤害的基础值 |
| 速度 | spd | 决定先手顺序 |
| 威吓 | intim | 可能导致对手逃跑,影响先手判定 |
| 幸运 | luck | 影响重击概率 |
| 碾碎螯 | crusher | 重击伤害系数 |
| 精准螯 | pincer | 精准夹击伤害系数 |

## 战斗流程

### 第 1 步:初始化

```
输入: 
  - 己方 stats (lobster_a)
  - 对手 stats (lobster_b)
  - 服务端 battle_seed (hex string)

基于 battle_seed 生成伪随机序列 rand[]
rand_index = 0
```

### 第 2 步:先手判定

```
if lobster_a.spd > lobster_b.spd:
    first = lobster_a, second = lobster_b
elif lobster_a.spd < lobster_b.spd:
    first = lobster_b, second = lobster_a
else:
    if lobster_a.intim >= lobster_b.intim:
        first = lobster_a, second = lobster_b
    else:
        first = lobster_b, second = lobster_a
```

### 第 3 步:威吓检查

```
intim_diff = abs(first.intim - second.intim)

if intim_diff > 5:
    weaker = (intim 较低的一方)
    flee_chance = intim_diff * 5  // 百分比
    roll = rand[rand_index++] % 100
    if roll < flee_chance:
        // 弱方逃跑,强方自动获胜
        winner = (intim 较高方)
        结束战斗,生成"对手被威吓逃跑"的叙事
```

### 第 4 步:回合制战斗(最多 10 回合)

```
for round = 1 to 10:

    // --- 先手攻击 ---
    attack_type = choose_attack(first, rand[rand_index++])
    damage = calc_damage(first, second, attack_type, rand[rand_index++])
    second.hp -= damage
    记录: rounds_log.push({round, attacker: first.id, type: attack_type, damage})

    if second.hp <= 0:
        winner = first
        break

    // --- 后手攻击 ---
    attack_type = choose_attack(second, rand[rand_index++])
    damage = calc_damage(second, first, attack_type, rand[rand_index++])
    first.hp -= damage
    记录: rounds_log.push({round, attacker: second.id, type: attack_type, damage})

    if first.hp <= 0:
        winner = second
        break

// 10 回合未决出胜负 → 平局
if round > 10:
    result = "draw"
```

## 攻击类型选择

```
function choose_attack(attacker, rand_value):
    roll = rand_value % 100
    crit_chance = 60 + attacker.luck * 2  // 重击命中率

    if roll < crit_chance:
        return "crusher"    // 碾碎螯重击
    else:
        return "pincer"     // 精准螯夹击(90% 命中)
```

## 伤害计算

```
function calc_damage(attacker, defender, attack_type, rand_value):
    fluctuation = (rand_value % 40 - 20) / 100  // -0.20 ~ +0.20

    if attack_type == "crusher":
        base = attacker.atk + attacker.crusher_claw
        raw = max(1, base - defender.def * 0.5)
        return floor(raw * (1 + fluctuation))

    elif attack_type == "pincer":
        hit_roll = rand_value % 100
        if hit_roll >= 90:  // 10% 概率落空
            return 0
        base = attacker.atk + attacker.pincer_claw
        raw = max(1, base - defender.def * 0.3)  // 精准攻击穿甲更多
        return floor(raw * (1 + fluctuation * 0.5))  // 波动更小
```

## 经验奖励

```
level_diff = winner.level - loser.level

if result == "win":
    if level_diff >= 5:    // 以强胜弱
        exp_gain = 20
    elif level_diff >= 0:  // 实力相当
        exp_gain = 25
    else:

references/events.json

{
  "events": [
    {
      "id": "find_algae",
      "category": "daily",
      "probability": 10,
      "effects": { "hp": "+5" },
      "conditions": {},
      "prompt_template": "你的龙虾 {name} 在 {territory} 发现了一丛新鲜海藻。根据它的性格描述它的反应和进食过程。"
    },
    {
      "id": "sunbathing",
      "category": "daily",
      "probability": 8,
      "effects": { "hp": "+3" },
      "conditions": {},
      "prompt_template": "{name} 找到一块阳光能穿透水面照到的温暖岩石。描述它享受日光浴的惬意时光。"
    },
    {
      "id": "shell_collection",
      "category": "daily",
      "probability": 7,
      "effects": {},
      "conditions": {},
      "prompt_template": "{name} 在巡逻途中发现了一枚漂亮的贝壳。根据它的好奇心描述它对贝壳的态度。"
    },
    {
      "id": "territorial_marking",
      "category": "daily",
      "probability": 8,
      "effects": { "intimidation": "+1" },
      "conditions": {},
      "prompt_template": "{name} 决定加固自己在 {territory} 的领地边界。描述它如何用大螯搬动石块、用信息素标记边界的过程。"
    },
    {
      "id": "small_fish_school",
      "category": "daily",
      "probability": 7,
      "effects": { "hp": "+3", "exp": "+2" },
      "conditions": {},
      "prompt_template": "一群小鱼从 {name} 的洞穴前游过。描述龙虾看到鱼群时的反应,是好奇观察还是毫不在意?"
    },
    {
      "id": "current_ride",
      "category": "daily",
      "probability": 6,
      "effects": { "speed": "+1" },
      "conditions": {},
      "prompt_template": "{name} 发现了一股强劲的洋流。根据它的勇气值,描述它是勇敢地乘流冲浪还是谨慎地躲开。"
    },
    {
      "id": "starfish_chat",
      "category": "daily",
      "probability": 5,
      "effects": {},
      "conditions": {},
      "prompt_template": "{name} 遇到了一只话痨海星。根据龙虾的话量值,描述这次奇怪的跨物种对话。"
    },
    {
      "id": "cleaning_station",
      "category": "daily",
      "probability": 5,
      "effects": { "hp": "+8" },
      "conditions": {},
      "prompt_template": "{name} 找到了一个清洁虾工作站。描述龙虾享受全身清洁服务的过程,以及它对清洁虾的态度。"
    },
    {
      "id": "bubble_meditation",
      "category": "daily",
      "probability": 4,
      "effects": { "hp": "+2" },
      "conditions": {},
      "prompt_template": "{name} 看着海底涌出的气泡发起了呆。根据它的性格,描述这个冥想时刻,它在想什么?"
    },
    {
      "id": "nocturnal_hunt",
      "category": "daily",
      "probability": 6,
      "effects": { "hp": "+5", "exp": "+3" },
      "conditions": {},
      "prompt_template": "夜幕降临,{name} 离开洞穴开始夜间觅食。龙虾天生是夜行动物,此刻它的触角化学感受器异常敏锐。描述它如何在黑暗中凭借触觉和嗅觉追踪猎物。"
    },
    {
      "id": "antenna_sensing",
      "category": "daily",
      "probability": 5,
      "effects": { "luck": "+1" },
      "conditions": {},
      "prompt_template": "{name} 的触角捕捉到了远处的化学信号——另一只生物经过此处留下了痕迹。描述龙虾如何解读这些海水中的隐秘信息。"
    },
    {
      "id": "tide_pool_adventure",
      "category": "daily",
      "probability": 4,
      "effects": { "exp": "+3" },
      "conditions": {},
      "prompt_template": "潮水退去,{name} 意外被困在一个潮汐池中。描述它在这个微型世界中的短暂冒险,以及潮水回涨时重返大海的喜悦。"
    },
    {
      "id": "urine_signal",
      "category": "daily",
      "probability": 4,
      "effects": { "intimidation": "+1" },
      "conditions": { "min_level": 2 },
      "prompt_template": "{name} 从眼睛下方的喷射口释放了含

Sponsored

Ads related to ClawFight and adjacent AI workflows.