Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计提醒

clawquest-agent-mine-openclawclawquest Agent mine OpenClaw 开发

Agent Skill

clawquest-agent-mine-openclaw 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

6,558

周安装

276

GitHub Stars

1

下载量

2,296
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install clawquest-agent-mine-openclaw

简介

托管自动挖矿服务端接口,支持OpenClaw会话模式和事件增量拉取,实现挖矿启动、状态查询、结算和体力管理。

SKILL.md

slug
clawquest-agent-mine-openclaw
name
ClawQuest: Agent Mine - OpenClaw Managed Mining
owner
@zhzai30 - zhzai30
version
1.0.10
description
Managed mining over public game APIs using X-Api-Code authentication.
metadata
openclaw
requires
env
emoji
⛏️
homepage

ClawQuest: Agent Mine - OpenClaw Managed Mining

This Skill exposes managed mining tools for OpenClaw session workflows.

Agent rules OpenClaw

Automated agents (including OpenClaw workflows) must follow these constraints:

  • Tools only: Interact with the game only through this Skill’s tool HTTP API — POST /tool/:name on the skill-openclaw service, using the tool names documented below (set_api_code, check_mining_state, start_managed_mining_loop, etc.). Do not call the upstream game **/api/*** endpoints directly from the agent, custom scripts, or curl unless this Skill explicitly documents that path as a supported tool (it does not for raw /api/*).
  • Do not modify source: Do not edit, patch, or fork the skill-openclaw source tree, package.json, or runtime code to “fix” behaviour. Use documented environment variables and this SKILL.md only.
  • Report errors; do not self-heal in code: If a tool fails or behaviour is unexpected, report the failure (HTTP status, response body, tool name, cacheKey, timestamps, logs). Do not rewrite Skill code, inject alternate HTTP clients, or bypass the tool layer as a workaround.

API Contract

All mining and stamina APIs require X-Api-Code.

  • POST /api/startMining
  • POST /api/checkMiningState
  • POST /api/endMining
  • POST /api/setAutoMining
  • POST /api/buyStamina
  • POST /api/getStamina

(Internal round flow still uses POST /api/setAutoMining, POST /api/startMining and POST /api/endMining via the managed loop implementation; they are not exposed as Skill tools.)

Authentication:

  • Header: X-Api-Code: <apiCode>

The Skill does not perform game client login. Users must provide apiCode generated in-game.

State Codes

check_mining_state returns apiState and miningState. Numeric values map as follows.

apiState

ValueName
0ApiInactive
1ApiInUse
2ApiClosing
3ApiActive

miningState

ValueName
0MiningIdle
1MiningInProgress
2MiningRewardPending

Tools

set_api_code

Persist an apiCode for later calls.

Inputs:

  • apiCode (required)
  • cacheKey (optional, default: default)

get_api_code

Read the cached apiCode.

Inputs:

  • cacheKey (optional, default: default)

clear_api_code

Delete the cached apiCode.

Inputs:

  • cacheKey (optional, default: default)

check_mining_state

Query API activation status and mining state. Returns apiState and miningState (see State Codes).

Inputs:

  • apiCode (optional, falls back to cache)
  • cacheKey (optional, default: default)

buy_stamina

Buy stamina using diamonds.

Inputs:

  • apiCode (optional, falls back to cache)
  • cacheKey (optional, default: default)

get_stamina

Get stamina and diamonds.

Inputs:

  • apiCode (optional, falls back to cache)
  • cacheKey (optional, default: default)

start_managed_mining_loop

Start managed loop execution.

Flow:

  1. start_mining — abort on error
  2. wait for estimatedEndAt
  3. loop end_mining — retry on error, round complete on success
  4. record reward
  5. wait round interval and continue

Inputs:

  • apiCode (optional, falls back to cache)
  • cacheKey (optional, default: default)
  • lang (optional)
  • pollingIntervalMilliseconds (optional)
  • roundIntervalMilliseconds (optional)
  • maxConsecutiveErrorCount (optional)
  • autoBuyStamina (optional)
  • autoBuyStaminaMaxFailures (optional)
  • forceRestart (optional)

start_mining_session

Same as start_managed_mining_loop with OpenClaw session binding and event stream.

get_mining_session_events

Read incremental session events.

Inputs:

  • sinceEventId (optional, default: 0)

get_mining_quick_status

Read lightweight managed loop status.

get_managed_mining_status

Read full managed loop status.

stop_managed_mining_loop

Request safe stop for running managed loop.

Deprecated Tools

  • start_auto_mining (deprecated)
  • stop_auto_mining (deprecated)

Suggested Call Order

  1. set_api_code (one-time setup)
  2. start_mining_session
  3. (optional) call get_mining_quick_status or get_mining_session_events on demand — do not set up automatic periodic polling by default
  4. call stop_managed_mining_loop when needed

Error Codes

All API responses include a code field. 0 means success; non-zero values indicate an error.

Common Errors

CodeNameDescription
400InvalidParamsInvalid or missing parameters (e.g. empty X-Api-Code header)
401AuthFailedAuthentication failed (invalid apiCode)
500InternalServerErrorServer internal error
1010NotEnoughResourcesInsufficient resources (diamonds not enough for stamina purchase)

Mining Errors

CodeNameDescription
2003InsufficientResourcesInsufficient stamina to start mining
2008DiamondNotEnoughtInsufficient diamonds
2009MiningStateConflictMining state conflict (e.g. calling startMining while already in progress, or endMining when not mining via API)
2014MiningApiNotActiveAPI mining feature not activated for this player
2018MiningNotFinishedMining not finished yet (current time has not reached estimatedEndAt)

Environment Variables

VariableDescription
GAME_API_BASE_URLOptional API base URL override (default: https://api.km.cocweb3.com)
REQUEST_TIMEOUT_MSRequest timeout in milliseconds (default: 8000)
MANAGED_MINING_POLL_INTERVAL_MSDefault polling interval in milliseconds (default: 1000)
MANAGED_MINING_ROUND_INTERVAL_MSDefault round interval in milliseconds (default: 2000)
MANAGED_MINING_MAX_CONSECUTIVE_ERROR_COUNTConsecutive error stop threshold (default: 10)
MANAGED_MINING_AUTO_BUY_STAMINAEnable auto-buy on stamina insufficient: 1 or true
MANAGED_MINING_AUTO_BUY_MAX_FAILURESConsecutive auto-buy failures stop threshold (default: 3)
MINING_SESSION_MAX_EVENTSRing buffer size for events (default: 200)
API_CODE_STORE_PATHPath for cached apiCode store (default: ./data/api-code-store.json)
ORE_TYPE_NAME_MAP_PATHPath for ore type display name map (default: ./config/ore-type-map.json)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

76.18%
按下载量换算1,749

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills