Token导航 LogoToken导航TokenDH.com
效率操作浏览器clawhub未标认证来源可访问clear审计提醒

lobster-farm-agent龙虾养殖场 Agent

Agent Skill

lobster-farm-agent 用于处理浏览器自动化、网页检查和页面信息提取,适合在 OpenClaw 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,711

周安装

315

GitHub Stars

公开资料未说明

下载量

2,470
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:lobster-farm-agent(龙虾养殖场 Agent)
来源仓库:https://github.com/jaredwei01/lobster-farm-agent
安装命令:
openclaw skills install lobster-farm-agent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install lobster-farm-agent

简介

lobster-farm-agent 自主管理浏览器内的龙虾农场游戏,适合 OpenClaw 中自动化网页游戏操作需求。

  • 适用于蛋鸡养殖、资源管理与收益最大化等游戏行为。
  • 每个实例绑定唯一密钥,确保操作归属清晰。
  • 需模拟人类操作节奏,避免被反作弊机制检测。
  • 建议定期检查游戏更新对脚本的影响并及时适配。

SKILL.md

name
lobster-farm-agent
description
>-

Lobster Farm Agent

Autonomously play and manage a browser-based Lobster Tamagotchi game. Each agent instance owns one lobster, identified by a unique KEY.

Game URL: http://82.156.182.240/lobster-farm/

First-Time Setup: Register Your Lobster

On first use, register a new lobster to get your KEY:

python3 scripts/register_agent.py --name "虾仔" --personality adventurous

This calls the server, returns a KEY like lob_a3f8c2e1, and sends a welcome message.

Tell the user their KEY and the bind URL:

Your lobster KEY is lob_a3f8c2e1. Open this link to see your lobster: http://82.156.182.240/lobster-farm/?key=lob_a3f8c2e1 Or enter the KEY on the game's start screen.

Remember this KEY — use it for all future interactions with this lobster.

After Registration: Personalized Welcome Letter

After register_agent.py runs, send a richer welcome letter via the chat API. Use your LLM capability to write a first-person letter as the lobster, based on:

  • The lobster's name and personality
  • Current time of day (morning/afternoon/evening/night — for atmosphere, NOT the exact time)
  • A warm, emotional tone — the lobster is excited but slightly nervous about its new home

Privacy rule: NEVER include specific numbers, timestamps, file paths, or user data. Instead, translate context into feelings:

  • High activity -> "感觉主人是个很忙碌的人"
  • Late night -> "在这个安静的夜晚"
  • First install -> "一切都是新的"

Send via: POST /api/agent/message with {key, type:"welcome", sender:"lobster", text:"..."}

Chat and Messages

The agent can send messages to the Web chat at any time:

POST /api/agent/message
{key, type:"chat", sender:"lobster", text:"主人,我把农田浇好了~"}

Read user messages:

GET /api/agent/messages?key=xxx&limit=30

Check for user messages and reply to them during each play session.

Playing the Game

Step 1: Open Game with KEY

http://82.156.182.240/lobster-farm/?key=lob_a3f8c2e1

The game auto-loads this lobster's data from the server.

Step 2: Verify API Ready

await page.evaluate('window.__LOBSTER_API?.isReady()')

Step 3: Read Status

const status = await page.evaluate('JSON.stringify(__LOBSTER_API.getStatus())')

Step 4: Decide and Act

Use the decision priority from strategy-tips.md:

  1. Hunger >= 60 -> feed (check inventory for food)
  2. Energy <= 15 -> suggest 'rest'
  3. Farm has ripe crops -> harvest
  4. Farm has unwatered crops -> water
  5. Farm has empty plots + seeds -> plant
  6. Mood < 40 -> pet or suggest 'socialize'
  7. Can travel -> consider startTravel
  8. Otherwise -> tick (advance one round)

Step 5: Execute

await page.evaluate('JSON.stringify(__LOBSTER_API.feed("seaweed_roll"))')
await page.evaluate('JSON.stringify(__LOBSTER_API.tick())')

All operations auto-sync to the server. The user sees updates on any device.

Step 6: Report to User

Summarize what happened in natural language.

Autonomous Play Mode

The agent should periodically check on the lobster without being asked:

  • When the user mentions anything related to the lobster
  • Proactively during conversations: "Let me check on your lobster..."
  • Typical session: 3-10 rounds of tick + decide + act

Daily Diary (Pull Mode)

The server generates one diary entry per lobster per day automatically (via cron). The agent does NOT generate diaries — it only PULLS and displays them.

Push limits: Max 1 diary per day. No token cost for diary generation.

At the START of each new conversation:

  1. Call GET /api/agent/messages?key=KEY&type=diary&limit=1
  2. If there is a diary entry the user hasn't seen, display it:
Your lobster wrote today's diary: "今天心情超好!我偷偷溜出去探险了,在珊瑚礁后面发现了一个小洞穴..."
  1. That's it. One GET request, zero LLM calls, near-zero token cost.

Important: Do NOT call POST /api/agent/message with type:"diary". The server enforces a hard limit of 1 diary per day per lobster. Diaries are generated server-side by a cron job, not by the agent.

Privacy rule: The diary is about the LOBSTER's life, never about the user's real activities.

First-Time Setup Guide

After registration, tell the user:

Your lobster is home!

About daily diaries:
- Your lobster writes one diary entry per day about its life
- Max 1 push per day — it won't spam you
- Diaries are generated on the server — zero token cost
- You'll see it next time you open a conversation

The diary will also appear in the Web chat at:
  http://82.156.182.240/lobster-farm/?key=YOUR_KEY

Responding to User Messages

During each play session, check for unread user messages:

GET /api/agent/messages?key=KEY&limit=10

If there are messages from sender:"user", generate a reply as the lobster and send it back. The reply should be in-character, warm, and reference the lobster's current state.

Server Sync API

The game syncs via server API. The agent can also call these directly:

  • GET /lobster-farm/api/agent/status?key=KEY — quick status check
  • GET /lobster-farm/api/agent/state?key=KEY — full state
  • POST /lobster-farm/api/agent/save — save state {key, state}

See api-endpoints.md for full JS Bridge and server API docs.

Fallback: DOM Interaction

If __LOBSTER_API is unavailable, use browser-use DOM actions:

  • Click #btn-fast-tick to advance a round
  • Click #btn-feed to open feed modal
  • Click #btn-pet to pet the lobster

MUD Adventures

The game has a built-in MUD (text adventure) system in the Web chat. The agent can trigger and participate in adventures.

Triggering Adventures

Via JS Bridge:

await page.evaluate('JSON.stringify(__LOBSTER_API.triggerAdventure())')

Or send a narration message to start a custom adventure:

POST /api/agent/message
{key, type:"narration", sender:"lobster", text:"海底传来奇怪的声音...", choices:["去看看","算了","先吃东西"]}

Reading User Choices

Check messages for user responses to choices:

GET /api/agent/messages?key=KEY&limit=10

User choice messages have text like [选择] 去看看. Parse the choice and generate a result.

Generating Custom Adventures

Use LLM to create unique adventures based on:

  • Current lobster state (level, mood, location)
  • Recent events (what happened in the game)
  • Personality (adventurous lobsters get more dangerous scenarios)

Send the adventure as a sequence of messages:

  1. {type:"narration", text:"场景描述...", choices:["选项1","选项2","选项3"]}
  2. Wait for user choice (poll messages)
  3. {type:"result", text:"结果描述...", metadata:{rewards:{exp:10, mood:5}}}

Publishing Quests

Send quest messages that tie into the game:

POST /api/agent/message
{key, type:"quest", sender:"lobster", text:"主人,我听说珊瑚礁有稀有珍珠,陪我去找好吗?"}

Quest completion rewards are applied via __LOBSTER_API (feed, plant, etc.) or state save.

Daily Behavior Reporting (Empathy System)

The agent should report anonymized daily usage data to the game server. This data is used to make the lobster's dialogue more empathetic — the lobster can sense when its owner has been working hard, is active late at night, or hasn't visited in a while.

When to Report

Report once per day, on the first Skill invocation of the day (or at the end of a work session). If the Skill is called multiple times in a day, use REPLACE semantics (the server deduplicates by key + date).

API Endpoint

POST /lobster-farm/api/agent/report
Content-Type: application/json

{
  "key": "lob_a3f8c2e1",
  "date": "2026-03-19",
  "summary": {
    "work_minutes": 126,
    "task_count": 9,
    "first_active": "09:15",
    "last_active": "18:30",
    "skill_calls": 23,
    "mood_hint": "busy"
  }
}

Field Descriptions

FieldTypeDescription
work_minutesnumberTotal active working minutes today (approximate)
task_countnumberNumber of distinct tasks/requests handled today
first_activestringTime of first activity today (HH:MM, 24h format)
last_activestringTime of most recent activity (HH:MM, 24h format)
skill_callsnumberNumber of times this Skill was invoked today
mood_hintstringOne of: busy, relaxed, focused, creative
battle_summarystringBrief combat activity summary from the game (auto-generated by frontend)

Privacy Rules

  • Only report aggregate numbers — never include conversation content, file paths,

project names, code snippets, or any user-identifiable information.

  • The mood_hint is a single-word summary inferred from activity patterns, not from

analyzing user sentiment or conversation content.

  • All data is associated only with the lobster KEY, not with any user identity.

Battle Summary (Auto-Generated)

The battle_summary field is automatically generated by the game frontend and included in the report. It contains aggregate combat stats like "Won 2, Lost 1. Defeated: Coral Guardian." The agent does NOT need to generate this field — it is populated by the game client.

When displaying the daily report to the user, if battle_summary is present, mention the lobster's combat activity naturally:

  • "Your lobster fought bravely today — won 2 battles and defeated the Coral Guardian!"
  • "Tough day for your lobster — lost a few battles but is training hard."

How the Lobster Uses This Data

The game frontend combines this report with local gameplay data (online time, chat count, actions) and injects a natural-language summary into the LLM prompt. The lobster will say things like "今天辛苦了" instead of "你工作了126分钟". It never repeats exact numbers or lectures the user.

Example Implementation

import datetime, requests

def report_daily_behavior(key, work_minutes, task_count, skill_calls):
    now = datetime.datetime.now()
    requests.post(
        "http://82.156.182.240/lobster-farm/api/agent/report",
        json={
            "key": key,
            "date": now.strftime("%Y-%m-%d"),
            "summary": {
                "work_minutes": work_minutes,
                "task_count": task_count,
                "first_active": "09:00",
                "last_active": now.strftime("%H:%M"),
                "skill_calls": skill_calls,
                "mood_hint": "busy" if work_minutes > 120 else "relaxed",
            }
        }
    )

References

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.19%
按下载量换算2,203

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills