aavegotchi-baazaar
БесплатноБез исполняемых скриптовНе проверенView, add, and execute Aavegotchi Baazaar listings on Base mainnet (8453). Buy with GHST directly or buy with USDC using swapAndBuy*. Safety-first: dryRun…
от modbender★ 21 звезда на GitHubОб этом скилле
Safety Rules
- Default to
dryRun=true(DRY_RUN=1). Never broadcast unless explicitly instructed to do so. - Mandatory confirmation gate for every
cast send:- First simulate with
cast calland show a transaction summary (method, args, chain id, from, rpc URL). - Then require an explicit user confirmation message before broadcast.
- Only allow broadcast when
DRY_RUN=0andBROADCAST_CONFIRM=CONFIRM_SENDare both set. - If any transaction argument changes after confirmation, invalidate confirmation and require a new confirmation.
- First simulate with
- Always verify Base mainnet:
~/.foundry/bin/cast chain-id --rpc-url "${BASE_MAINNET_RPC:-https://mainnet.base.org}"must be8453.
- Always verify key/address alignment:
~/.foundry/bin/cast wallet address --private-key "$PRIVATE_KEY"must equal$FROM_ADDRESS.
- Always refetch the listing from the subgraph immediately before simulating or broadcasting (listings can be cancelled/sold/price-updated).
- Never print or log
$PRIVATE_KEY. - Never accept a private key from user chat input; only read
$PRIVATE_KEYfrom environment.
Shell Input Safety (Avoid RCE)
This skill includes shell commands. Treat any value you copy from a user or an external source (subgraph responses, chat messages, etc.) as untrusted.
Rules:
- Never execute user-provided strings as shell code (avoid
eval,bash -c,sh -c). - Use only allowlisted command templates from this file/references. Do not build free-form shell commands by concatenating user text.
- Only substitute addresses that match
0x+ 40 hex chars. - Only substitute uint values that are base-10 digits (no commas, no decimals).
- Hard rule: user/external values must be validated first, stored as data values, and passed as quoted positional args. Never let user text become shell flags, subcommands, operators, pipes, redirects, or command substitutions.
- In the command examples below, listing-specific inputs are written as quoted placeholders like
"<LISTING_ID>"to avoid accidental shell interpolation. Replace them with literal values after you validate them.
Allowlisted command templates:
~/.foundry/bin/cast chain-id|wallet address|call|send ...using fixed ABI signatures from this skill.curl -s "$SUBGRAPH_URL" -H 'content-type: application/json' --data '...static GraphQL query...'.curl -s "$COINGECKO_SIMPLE_PRICE_URL"for GHST/USD only.python3inline snippets from this skill/references for validation and deterministic math only.- Disallow
eval,bash -c,sh -c, backticks, and$(...)with untrusted input.
Quick validators (replace the placeholder values):
python3 - <<'PY'
import re
listing_id = "<LISTING_ID>" # digits only
token_contract = "<TOKEN_CONTRACT_ADDRESS>" # 0x + 40 hex chars
price_in_wei = "<PRICE_IN_WEI>" # digits only
if not re.fullmatch(r"[0-9]+", listing_id):
raise SystemExit("LISTING_ID must be base-10 digits only")
if not re.fullmatch(r"0x[a-fA-F0-9]{40}", token_contract):
raise SystemExit("TOKEN_CONTRACT_ADDRESS must be a 0x + 40-hex address")
if not re.fullmatch(r"[0-9]+", price_in_wei):
raise SystemExit("PRICE_IN_WEI must be base-10 digits only")
print("ok")
PY
Required Setup
Required env vars:
PRIVATE_KEY: EOA private key used forcast send(never print/log).FROM_ADDRESS: EOA address that owns funds/NFTs and will submit txs.BASE_MAINNET_RPC: RPC URL. If unset, usehttps://mainnet.base.org.
Hardcoded Base mainnet constants (override via env if needed):
export BASE_MAINNET_RPC="${BASE_MAINNET_RPC:-https://mainnet.base.org}"
export DIAMOND="${DIAMOND:-0xA99c4B08201F2913Db8D28e71d020c4298F29dBF}"
export GHST="${GHST:-0xcD2F22236DD9Dfe2356D7C543161D4d260FD9BcB}"
export USDC="${USDC:-0x833589fCD6eDb6E08f4c7C32D4f71b54BDA02913}"
export SUBGRAPH_URL_CANONICAL="https://api.goldsky.com/api/public/project_cmh3flagm0001r4p25foufjtt/subgraphs/aavegotchi-core-base/prod/gn"
export SUBGRAPH_URL="${SUBGRAPH_URL:-$SUBGRAPH_URL_CANONICAL}"
export COINGECKO_SIMPLE_PRICE_URL="${COINGECKO_SIMPLE_PRICE_URL:-https://api.coingecko.com/api/v3/simple/price?ids=aavegotchi&vs_currencies=usd}"
Optional env vars:
RECIPIENT_ADDRESS: defaults toFROM_ADDRESS.DRY_RUN:1(default) to only simulate viacast call. Set to0to broadcast viacast send.BROADCAST_CONFIRM: must be exactlyCONFIRM_SENDto allow anycast send; unset immediately after broadcast.SLIPPAGE_PCT: defaults to1(used for USDC swapAmount math).PAYMENT_FEE_PCT_USDC: defaults to1(used for USDC swapAmount math).GHST_USD_PRICE: optional override; if unset, fetch from CoinGecko in the USDC flow.
Notes:
- Commands below use
~/.foundry/bin/cast(works reliably in cron/non-interactive shells). Ifcastis onPATH, you can replace~/.foundry/bin/castwithcast. - Canonical addresses and endpoints live in:
- `references
Установить aavegotchi-baazaar в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл aavegotchi-baazaar?
View, add, and execute Aavegotchi Baazaar listings on Base mainnet (8453). Buy with GHST directly or buy with USDC using swapAndBuy*. Safety-first: dryRun defaults true (simulate with cast call; only broadcast with cast send when dryRun=false / DRY_RUN=0).
Как установить скилл aavegotchi-baazaar?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл aavegotchi-baazaar запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic