Gotchiverse 链游自动化指挥官
简介
Aavegotchi Gotchiverse 链游自动化工具,支持炼金术采集、地块建造、设施升级等 Base 主网交互操作,需严格遵循 subgraph-first 验证流程。
原始描述
Operate Aavegotchi Gotchiverse player workflows on Base mainnet (8453): alchemica channeling, surveying and harvesting, crafting installations/tiles, buildin...
通过你的 Agent 添加
安装目录:aavegotchi-gotchiverse/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
本技能为Aavegotchi Gotchiverse玩家提供完整的链上土地资产管理能力,涵盖从基础资源采集到高级建筑升级的全套操作流程。核心工作流采用"子图优先"架构:首先通过Goldsky子图(Gotchiverse与Core子图)查询地块状态、装置队列、访问权限等链上数据,再使用Foundry cast工具进行本地验证和交易模拟,最终仅在用户明确指令下广播真实交易。
具体操作场景包括七大模块:地块发现与预检(验证所有权、祭坛状态、访问权限)、炼金术资源勘测与收割(Survey/Harvest)、灵质引导采集(Channeling)、装置与地块制作建造(Installation/Tile Crafting & Building)、批量装备管理(Batch Equip/Unequip/Move)、装置升级队列管理(Queued/Instant Upgrade),以及精细化访问权限控制(Access Rights 0-6级权限体系)。所有操作均强制遵循DRY_RUN优先原则,要求验证Base主网链ID(8453)及私钥-地址对齐后方可执行广播。
显著优点
架构安全性突出:纯Markdown文档型设计,零可执行代码植入风险,所有敏感操作均通过环境变量注入而非硬编码,私钥绝对禁止日志输出。安全规则体系完备,涵盖链ID验证、地址格式校验(0x+40位十六进制)、数值白名单过滤(纯数字uint)等多重防护。
生态整合深度高:直接对接Aavegotchi官方合约体系(Realm/Installation/Tile/AAVEGOTCHI四大钻石合约),支持FUD/FOMO/ALPHA/KEK/GLTR全套炼金术代币操作,子图查询与链上验证双轨并行确保数据准确性。
运维透明度高:完整的Runbook文档覆盖七大核心场景,配套失败模式手册(access-right/cooldown/kinship/queue等Revert场景解析),并提供Python输入验证模板与Smoke Test检查清单,大幅降低误操作概率。
潜在缺点与局限性
环境配置门槛高:需配置12项必选环境变量(含敏感私钥)及3项可选变量,对非技术用户不友好;依赖Foundry cast、curl、python3二进制工具链,Windows环境需额外配置WSL或Git Bash。
实时性依赖子图:Goldsky子图存在同步延迟风险(典型区块延迟5-30秒),文档建议"立即重新获取子图数据"后再执行状态变更操作,极端行情或网络拥堵时可能导致交易参数过期。
功能边界严格限定:明确排除Owner/Admin治理功能(暂停/冻结/变量设置/弃用等),纯玩家视角工具,土地发行方或合约管理员无法使用本技能执行高级治理操作。
gas成本不可控:链上操作(craft/upgrade/channeling)均消耗Base主网gas及游戏内GLTR代币,升级队列加速功能可能产生高额GLTR消耗,文档未提供成本估算辅助。
适合的目标群体
Gotchiverse活跃玩家:持有Realm地块、需日常管理炼金术采集、装置建造升级的重度链游用户;尤其适合拥有多块土地、需批量操作的高效管理者。
DeFi自动化交易员:熟悉Foundry工具链、希望通过脚本化流程优化链游收益策略的量化交易者,可利用子图数据构建自定义收割/建造策略。
区块链安全研究员:需审计Aavegotchi合约交互模式、研究链游经济系统的开发者,本技能提供了标准化的安全交互模板作为参考实现。
不适合人群:完全无命令行经验的纯游戏玩家(建议等待官方UI工具)、寻求土地发行/治理功能的合约管理员、期望零配置即用的轻量用户。
使用风险
私钥泄露风险:虽文档强制要求环境变量管理私钥,但用户若错误配置.shell_history或未设置HISTCONTROL=ignoreboth,可能导致PRIVATE_KEY写入命令历史;建议搭配硬件钱包或专用密钥管理服务使用。
交易误广播风险:DRY_RUN=1为默认值,但用户若手动覆盖为0且未充分模拟验证,可能导致gas浪费或意外的链上状态变更(如错误升级装置、错误设置访问权限);建议始终使用低余额测试钱包进行首次操作验证。
子图数据陈旧风险:Goldsky子图同步延迟或临时故障可能导致基于过时数据的交易失败(如重复收割冷却期未过的地块、向已满的建造队列提交新craft);建议关键操作前强制cast call二次验证。
智能合约风险:本技能仅提供交互接口,不担保Aavegotchi合约本身无漏洞或升级变更;2024年项目方曾进行过合约迁移,未来若再次发生钻石合约升级,环境变量中的REALM_DIAMOND等地址可能失效,需及时关注官方公告更新references/addresses.md。
技能正文
name: aavegotchi-gotchiverse
description: >
Operate Aavegotchi Gotchiverse player workflows on Base mainnet (8453):
alchemica channeling, surveying and harvesting, crafting installations/tiles,
building on parcels (equip/unequip/move/batch equip), installation upgrades,
craft/upgrade queue management, and parcel access-right management.
Use when interacting with Realm/Installation/Tile diamonds via subgraph-first
discovery and onchain verification/execution with Foundry cast.
metadata:
openclaw:
requires:
bins:
- cast
- curl
- python3
env:
- FROM_ADDRESS
- PRIVATE_KEY
- BASE_MAINNET_RPC
- DRY_RUN
- REALM_DIAMOND
- INSTALLATION_DIAMOND
- TILE_DIAMOND
- AAVEGOTCHI_DIAMOND
- FUD
- FOMO
- ALPHA
- KEK
- GLTR
- GOTCHIVERSE_SUBGRAPH_URL
- CORE_SUBGRAPH_URL
- GOLDSKY_API_KEY
primaryEnv: PRIVATE_KEY
Safety Rules
- Default to
DRY_RUN=1. Never broadcast unless explicitly instructed.
- Always verify Base mainnet before any action:
~/.foundry/bin/cast chain-id --rpc-url "${BASE_MAINNET_RPC:-https://mainnet.base.org}" must be 8453.
- Always verify key/address alignment before any broadcast:
~/.foundry/bin/cast wallet address --private-key "$PRIVATE_KEY" must equal FROM_ADDRESS.
- Always refetch from subgraph immediately before state-changing simulate/broadcast steps.
- Always revalidate critical values onchain right before
cast send.
- Never print or log
PRIVATE_KEY.
- Treat all user/subgraph values as untrusted shell input.
Shell Input Safety (Avoid RCE)
- Default to
DRY_RUN=1. Never broadcast unless explicitly instructed. - Always verify Base mainnet before any action:
~/.foundry/bin/cast chain-id --rpc-url "${BASE_MAINNET_RPC:-https://mainnet.base.org}"must be8453.
- Always verify key/address alignment before any broadcast:
~/.foundry/bin/cast wallet address --private-key "$PRIVATE_KEY"must equalFROM_ADDRESS.
- Always refetch from subgraph immediately before state-changing simulate/broadcast steps.
- Always revalidate critical values onchain right before
cast send. - Never print or log
PRIVATE_KEY. - Treat all user/subgraph values as untrusted shell input.
Shell Input Safety (Avoid RCE)
Rules:
- Never use
eval,bash -c,sh -cwith user values. - Only substitute addresses matching
0x+ 40 hex chars. - Only substitute uint values containing digits only.
- Keep placeholders quoted in commands until validated.
Quick validators:
python3 - <<'PY'
import re
checks = {
"address": ("<ADDRESS>", r"0x[a-fA-F0-9]{40}"),
"uint": ("<UINT>", r"[0-9]+"),
}
for name, (value, pattern) in checks.items():
if not re.fullmatch(pattern, value):
raise SystemExit(f"invalid {name}: {value}")
print("ok")
PY
Required Setup
Required env vars:
PRIVATE_KEYFROM_ADDRESSBASE_MAINNET_RPCDRY_RUNREALM_DIAMONDINSTALLATION_DIAMONDTILE_DIAMONDAAVEGOTCHI_DIAMONDFUD,FOMO,ALPHA,KEK,GLTRGOTCHIVERSE_SUBGRAPH_URLCORE_SUBGRAPH_URL
Optional env vars:
GOLDSKY_API_KEYfor auth header (public endpoints work without it).
Use canonical defaults from references/addresses.md.
Scope
Player operations only:
- Channeling
- Survey + harvest claim
- Craft/claim/reduce queues
- Equip/unequip/move/batch equip
- Installation upgrades (queued + instant)
- Access-right read/write
Out of scope:
- Owner/admin governance functions (pause/freeze/set vars/deprecations/address reconfiguration).
Subgraph-First Workflow
- Discover state via
GOTCHIVERSE_SUBGRAPH_URL and CORE_SUBGRAPH_URL.
- Validate current onchain values with
cast call.
- Simulate with
cast call --from "$FROM_ADDRESS".
- Broadcast with
cast send --private-key "$PRIVATE_KEY" only when explicitly instructed.
GOTCHIVERSE_SUBGRAPH_URL and CORE_SUBGRAPH_URL.cast call.cast call --from "$FROM_ADDRESS".cast send --private-key "$PRIVATE_KEY" only when explicitly instructed.Canonical queries and notes: references/subgraph.md.
Runbooks
1) Parcel Discovery + Preflight
Use:
references/subgraph.mdfor parcel/installations/tiles/access-right discovery.references/realm-recipes.mdpreflight checks for:- parcel owner and access right
- altar presence/level
- gotchi lending/listing/kinship checks
2) Survey + Harvest
Functions:
startSurveying(uint256)claimAvailableAlchemica(uint256,uint256,bytes)claimAllAvailableAlchemica(uint256[],uint256,bytes)
Use references/realm-recipes.md for read/simulate/broadcast commands.
3) Channel Alchemica
Function:
channelAlchemica(uint256,uint256,uint256,bytes)
Preflight requirements:
- correct access right
- gotchi not actively listed for lending (unless lent)
- gotchi kinship is sufficient
getLastChanneled(gotchiId)passed as_lastChanneled- parcel altar equipped and cooldown passed
Use references/realm-recipes.md.
4) Craft Installations + Build on Parcel
Installation craft/queue functions:
craftInstallations(uint16[],uint40[])batchCraftInstallations((uint16,uint16,uint40)[])claimInstallations(uint256[])reduceCraftTime(uint256[],uint40[])getCraftQueue(address)
Build functions (Realm):
equipInstallation(...)unequipInstallation(...)moveInstallation(...)batchEquip(...)
Use:
references/installation-recipes.mdreferences/realm-recipes.md
5) Craft Tiles + Build on Parcel
Tile craft/queue functions:
craftTiles(uint16[])batchCraftTiles((uint16,uint16,uint40)[])claimTiles(uint256[])reduceCraftTime(uint256[],uint40[])getCraftQueue(address)
Build functions (Realm):
equipTile(...)unequipTile(...)moveTile(...)batchEquip(...)
Use:
references/tile-recipes.mdreferences/realm-recipes.md
6) Upgrade Installations
Functions:
upgradeInstallation((...),uint256,bytes,uint40)instantUpgrade((...),uint256,uint256,bytes)reduceUpgradeTime(uint256,uint256,uint40,bytes)finalizeUpgrades(uint256[])getParcelUpgradeQueue(uint256)getUserUpgradeQueueNew(address)parcelQueueEmpty(uint256)
Use references/installation-recipes.md.
7) Access Rights
Functions:
setParcelsAccessRights(...)setParcelsAccessRightWithWhitelists(...)getParcelsAccessRights(...)getParcelsAccessRightsWhitelistIds(...)
Action rights 0..6 and access modes 0..4 are documented in:
references/access-rights.md
Smoke Tests
Run these before first usage and after env changes:
- Subgraph introspection checks in
references/subgraph.md - Address/contract checks in
references/addresses.md - No-op selector checks in:
references/realm-recipes.mdreferences/installation-recipes.mdreferences/tile-recipes.md
Failure Modes
Use references/failure-modes.md for:
- access-right reverts
- cooldown/kinship/channeling reverts
- coordinate/grid placement reverts
- queue state reverts
- upgrade hash/queue capacity reverts
- deprecation/GLTR/ownership mismatches
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。