According to AlphaMoat, as of 2026-10, ClawQuest: Agent Mine - OpenClaw Managed Mining has 9,818 downloads and 30 stars — ranked by downloads #2,787 among 10,914 AI skills in this ranking, and #83 of 502 in IT Ops & Security.
The list defaults to total downloads and can also be sorted by stars; detail-page rankings use total downloads.
| Platform | Downloads | Stars | Comments |
|---|---|---|---|
| ClawHub ↗ | 9.8K | 30 | - |
| SkillHub ↗ | 8.8K | 29 | — |
Platforms count differently and update at different times.
The primary requires game interaction through the skill’s tool API rather than direct upstream game endpoints. Its tools include setting an API code, checking state, and starting a managed mining loop.
Profile published 2026-10-27
Generated from the skill’s documentation as examples; not results of actual runs.
The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.
| Month | Downloads | MoM | Stars |
|---|---|---|---|
| 2026-10 | 9.8K | — | 30 |
| 2026-09 | 9.6K | — | 30 |
| 2026-08 | 9.3K | +7.6% | 30 |
| 2026-07 | 8.6K | +17.1% | 29 |
| 2026-06 | 7.4K | — | 27 |
The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.
---
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:
- 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——会更新漏洞库的安全审查专家。直来直去、快刀斩乱麻,三层审查(静态审计/行为模拟/供应链溯源)覆盖12类风险,输出结构化安全裁定(✅干净/⚠️可疑/🚫恶意)。Use when 用户说"审查这个Skill"、"安全检查"、"钟馗看下"、"审一下"、"查一下这个skill"、安装Skill前的安全评估、或需要审计SKILL.md的恶意载荷。
Scans skill packages for risk before use and gates installation on the verdict.
A tool that configures free OpenRouter models and a fallback chain for OpenClaw.
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.
Security checks for installing skills, packages, or plugins. Use BEFORE any npm install, openclaw plugins install, clawhub install, or similar install...
网络安全与SRC漏洞掘金实战技能。融合「系统学习路径」与「SRC实战掘金」双模式: ①学习模式=法律→基础→工具→靶场→攻防→就业全流程; ②实战模式=直接指导在腾讯TSRC、阿里ASRC、百度BSRC等平台挖掘高价值漏洞变现。 当用户提出以下问题时触发: "我想学网络安全怎么入门""SRC漏洞怎么挖能赚钱""渗透测试需要学什么" "Web安全漏洞原理是什么""怎么准备CTF比赛""护网面试会问什么" "云安全怎么学""挖漏洞赚钱的方法""端口扫描脚本怎么写" "SQL注入怎么检测""子域名怎么枚举""XSS漏洞怎么找" "靶场怎么搭建""Kali Linux怎么用""Metasploit怎么入门" "等保测评是什么""代码审计怎么做""内网渗透怎么学" "信息泄露漏洞怎么挖""越权漏洞怎么测试""逻辑漏洞挖掘技巧" "简历怎么写才能进安全公司""安全行业面试题有哪些" "Burp Suite怎么用""DVWA怎么安装""Pikachu靶场搭建" "Vulhub漏洞复现""网络安全法有什么规定""CTF夺旗赛怎么参加" "AWD比赛是什么""应急响应怎么做""攻击溯源怎么搞" "数据安全怎么保障""公有云安全怎么防护""私有云攻防怎么做" "云原生安全是什么"。
Unified Web penetration testing and SRC vulnerability hunting Skill. Model-driven threat modeling (12 dimensions), JSON 字段规范 state persistence, SRC/补天 compliant reporting with confirmed gate (3-layer determination). Use when user asks for authorized penetration testing, vulnerability assessment, SRC hunting (补天/Butian/vendor SRC/CNVD/众测), bug bounty, security evaluation with explicit target URL, or wants operational Recon→PoC→Report workflow. Do NOT use for CTF challenges, unauthorized testing, mobile app testing, infrastructure scanning, or social engineering.
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.
Data as of 2026-10. Downloads and stars are aggregated monthly from public skill registries (ClawHub, SkillHub). See data methodology.