zhzai30

ClawQuest: Agent Mine - OpenClaw Managed Mining

運維安全v1.0.11
作者:zhzai30更新於 2026-06-04共 12 個版本 · 最新版本釋出於 2026-04-26clawquest-agent-mine-openclaw@clawhub_zhzai30/clawquest-agent-mine-openclaw
伺服器運維#Game

據 AlphaMoat 統計,截至 2026-10,ClawQuest: Agent Mine - OpenClaw Managed Mining 累計下載 9,818 次、獲 30 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 2,787 位,在「運維安全」分類(502 個)中排名第 83 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
9818
星標
30
全站下載量排名
#2,787
全站前 26% · 「運維安全」前 17%
平台累計下載星標評論
ClawHub ↗981830-
SkillHub ↗875029—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文要求透過技能提供的工具 API 與遊戲互動,不直接呼叫上游遊戲介面;工具包括設定訪問程式碼、檢視狀態和啟動受管理的挖礦流程。

資料釋出於 2026-10-27

可以用來做什麼

  • 透過 OpenClaw 會話檢視或控制遊戲挖礦流程

什麼時候用

  • 需要使用技能暴露的管理工具檢查狀態或啟動流程時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

先檢視挖礦狀態,再說明可用的管理操作

月度資料趨勢

累計下載9818
716285891萬2026-06 · 累計下載 73592026-07 · 累計下載 86202026-08 · 累計下載 92772026-09 · 累計下載 95782026-10 · 累計下載 981826-0626-0926-10
星標30
2729302026-06 · 星標 272026-07 · 星標 292026-08 · 星標 302026-09 · 星標 302026-10 · 星標 3026-0626-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-109818—30
2026-099578—30
2026-089277+7.6%30
2026-078620+17.1%29
2026-067359—27

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

8.2 KB · ClawHub v1.0.11
---
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:
展開全部(共 219 行)
        - REQUEST_TIMEOUT_MS
    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**

| Value | Name        |
| ----- | ----------- |
| 0     | ApiInactive |
| 1     | ApiInUse    |
| 2     | ApiClosing  |
| 3     | ApiActive   |

**miningState**

| Value | Name                |
| ----- | ------------------- |
| 0     | MiningIdle          |
| 1     | MiningInProgress    |
| 2     | MiningRewardPending |

## 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](#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

| Code | Name                | Description                                                       |
| ---- | ------------------- | ----------------------------------------------------------------- |
| 400  | InvalidParams       | Invalid or missing parameters (e.g. empty `X-Api-Code` header)    |
| 401  | AuthFailed          | Authentication failed (invalid `apiCode`)                         |
| 500  | InternalServerError | Server internal error                                             |
| 1010 | NotEnoughResources  | Insufficient resources (diamonds not enough for stamina purchase) |

### Mining Errors

| Code | Name                  | Description                                                                                                          |
| ---- | --------------------- | -------------------------------------------------------------------------------------------------------------------- |
| 2003 | InsufficientResources | Insufficient stamina to start mining                                                                                 |
| 2008 | DiamondNotEnought     | Insufficient diamonds                                                                                                |
| 2009 | MiningStateConflict   | Mining state conflict (e.g. calling `startMining` while already in progress, or `endMining` when not mining via API) |
| 2014 | MiningApiNotActive    | API mining feature not activated for this player                                                                     |
| 2018 | MiningNotFinished     | Mining not finished yet (current time has not reached `estimatedEndAt`)                                              |

## Environment Variables

| Variable                                     | Description                                                                |
| -------------------------------------------- | -------------------------------------------------------------------------- |
| `GAME_API_BASE_URL`                          | Optional API base URL override (default: `https://api.km.cocweb3.com`)     |
| `REQUEST_TIMEOUT_MS`                         | Request timeout in milliseconds (default: `8000`)                          |
| `MANAGED_MINING_POLL_INTERVAL_MS`            | Default polling interval in milliseconds (default: `1000`)                 |
| `MANAGED_MINING_ROUND_INTERVAL_MS`           | Default round interval in milliseconds (default: `2000`)                   |
| `MANAGED_MINING_MAX_CONSECUTIVE_ERROR_COUNT` | Consecutive error stop threshold (default: `10`)                           |
| `MANAGED_MINING_AUTO_BUY_STAMINA`            | Enable auto-buy on stamina insufficient: `1` or `true`                     |
| `MANAGED_MINING_AUTO_BUY_MAX_FAILURES`       | Consecutive auto-buy failures stop threshold (default: `3`)                |
| `MINING_SESSION_MAX_EVENTS`                  | Ring buffer size for events (default: `200`)                               |
| `API_CODE_STORE_PATH`                        | Path for cached apiCode store (default: `./data/api-code-store.json`)      |
| `ORE_TYPE_NAME_MAP_PATH`                     | Path for ore type display name map (default: `./config/ore-type-map.json`) |

「運維安全」分類下的熱門技能

鍾馗.skill運維安全

鍾馗.Skill——會更新漏洞庫的安全審查專家。直來直去、快刀斬亂麻,三層審查(靜態審計/行為模擬/供應鏈溯源)覆蓋12類風險,輸出結構化安全裁定(✅乾淨/⚠️可疑/🚫惡意)。Use when 使用者說"審查這個Skill"、"安全檢查"、"鍾馗看下"、"審一下"、"查一下這個skill"、安裝Skill前的安全評估、或需要審計SKILL.md的惡意載荷。

↓ 33.7萬★ 17user_741dc82b
SkillScan運維安全

在使用技能包之前做安全掃描,並按結論決定放行或攔截的技能。

↓ 18.3萬★ 41tokauthai
Free Ride - Unlimited free AI運維安全

為 OpenClaw 配置 OpenRouter 免費模型與回退鏈的工具。

↓ 13.4萬★ 492Shaishav Pidadi
a ca s ca s c ca s c運維安全

Parse, search, and analyze application logs across formats. Use when debugging from log files, setting up structured logging, analyzing error patterns, correlating events across services, parsing stack traces, or monitoring log output in real time.

↓ 12.5萬★ -user_60e896a0
Skill Scanner運維安全

用於安裝技能、包或外掛的安全檢查。請在執行任何 npm install、openclaw plugins install、clawhub install 或類似安裝命令之前使用。

↓ 9.3萬★ 4sudhindrat
網安技能運維安全

網路安全與SRC漏洞掘金實戰技能。融合「系統學習路徑」與「SRC實戰掘金」雙模式: ①學習模式=法律→基礎→工具→靶場→攻防→就業全流程; ②實戰模式=直接指導在騰訊TSRC、阿里ASRC、百度BSRC等平台挖掘高價值漏洞變現。 當用戶提出以下問題時觸發: "我想學網路安全怎麼入門""SRC漏洞怎麼挖能賺錢""滲透測試需要學什麼" "Web安全漏洞原理是什麼""怎麼準備CTF比賽""護網面試會問什麼" "雲安全怎麼學""挖漏洞賺錢的方法""埠掃描指令碼怎麼寫" "SQL隱碼攻擊怎麼檢測""子域名怎麼列舉""XSS漏洞怎麼找" "靶場怎麼搭建""Kali Linux怎麼用""Metasploit怎麼入門" "等保測評是什麼""程式碼審計怎麼做""內網滲透怎麼學" "資訊洩露漏洞怎麼挖""越權漏洞怎麼測試""邏輯漏洞挖掘技巧" "簡歷怎麼寫才能進安全公司""安全行業面試題有哪些" "Burp Suite怎麼用""DVWA怎麼安裝""Pikachu靶場搭建" "Vulhub漏洞復現""網路安全法有什麼規定""CTF奪旗賽怎麼參加" "AWD比賽是什麼""應急響應怎麼做""攻擊溯源怎麼搞" "資料安全怎麼保障""公有云安全怎麼防護""私有云攻防怎麼做" "雲原生安全是什麼"。

↓ 8萬★ 16user_d2cc4baf
人人都能成為駭客v2.0(Lvan)運維安全

這個技能特別簡單——你只需要呼叫它,給一個網站域名,它就會自動幫你跑一遍滲透測試,找出這個網站存在哪些安全漏洞。 不需要你配環境、不用你手動發包,一切自動化。測完直接出結果,告訴你哪裡有問題、怎麼修。 它的願景是:讓每個人都能成為白帽駭客——只要輸入一個域名,就能知道自己的網站安不安全。一切只為授權測試,只為發現漏洞、修復風險,讓網際網路更安全。

↓ 5.7萬★ 37user_a730098d
skill-vetter運維安全

Security-first skill vetting for AI agents. Use before installing any skill from ClawdHub, GitHub, or other sources. Checks for red flags, permission scope, and suspicious patterns.

↓ 5.4萬★ -user_814dbe54

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。