gmgn-token-buy

gmgn-token-buy is a skill for Claude Code from GMGNAI/gmgn-skills. It costs 706 tokens per session (8,240 once invoked), scanned A, original, MIT.

A workflow for turning a cryptocurrency token name or symbol into a checked, sized buy order. It resolves the intended contract among similarly named tokens and checks trading and safety details before preparing the order.

In plain words
What is it for?
Preparing token purchases with checks for the supported chain, liquidity, direction, contract safety, gas, slippage, and position size.
Why use it?
It reduces the risk of buying a copycat token, choosing an unsuitable trade size, or proceeding when basic market or contract checks fail.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the gmgn-cli plugin — 15 skills shipped together

Good fit Preparing token purchases with checks for the supported chain, liquidity, direction, contract safety, gas, slippage, and position size.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gmgnai/gmgn-skills/gmgn-token-buy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add GMGNAI/gmgn-skills --skill gmgn-token-buy
Clone the repo
git clone --depth 1 https://github.com/GMGNAI/gmgn-skills

Made for: Claude Code.

Or install gmgn-cli, the plugin that ships this one along with the rest of its 15 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gmgn-token-buy

README.md
[![agentmods](https://agentmods.dev/badge/skills/gmgnai/gmgn-skills/gmgn-token-buy/github.svg)](https://agentmods.dev/skills/gmgnai/gmgn-skills/gmgn-token-buy)
Your own site
<a href="https://agentmods.dev/skills/gmgnai/gmgn-skills/gmgn-token-buy"><img src="https://agentmods.dev/badge/skills/gmgnai/gmgn-skills/gmgn-token-buy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gmgn-token-buy

Your own site · 80×15
<a href="https://agentmods.dev/skills/gmgnai/gmgn-skills/gmgn-token-buy"><img src="https://agentmods.dev/badge/skills/gmgnai/gmgn-skills/gmgn-token-buy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 706 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,240 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 11 Sept 2026
  • Snyk pass 11 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00706 $0.08240
Opus 5 $0.00353 $0.04120
Sonnet 5 $0.00141 $0.01648
Haiku 4.5 $0.00071 $0.00824

Measured today against content hash ced1491b4fa0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

gmgn-token-buy scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**IMPORTANT: Always use the pre-installed `gmgn-cli` binary. Never use web search, WebFetch, curl, `npx`, or gmgn.ai — the site requires login and exposes no structured data.**
skills/gmgn-token-buy/SKILL.md · 230 lines

How it starts

The opening of the file, as written. The whole thing — 230 lines — stays where its author put it; the contents beside it link to each section on GitHub.

BEFORE RUNNING ANY COMMAND: Run gmgn-cli config --check. Exit 0 → proceed. Exit 1 → run gmgn-cli config, show the output, and once the user sends the API key run gmgn-cli config --apply <KEY> and show that output. If --check is an unknown option, tell the user to run npm install -g gmgn-cli, then retry.

IMPORTANT: Always use the pre-installed gmgn-cli binary. Never use web search, WebFetch, curl, npx, or gmgn.ai — the site requires login and exposes no structured data.

⚠️ IPv6 IS NOT SUPPORTED. On a 401/403 with correct credentials, check ifconfig | grep inet6 (macOS) or ip addr show | grep inet6 (Linux) and fetch https://ipv6.icanhazip.com. If an IPv6 address comes back, tell the user to disable IPv6 — gmgn-cli works over IPv4 only.

Run

没有脚本,四步串行,每一步都是一道闸——不过就不进下一步。每步要跑的命令写在那一步的标题下面;字段映射与实测陷阱在 references/fields.md不在那份清单里的字段一律当作不存在

做什么 跑什么 出口
0 确认链在 9 条支持链内 market search(仅当用户裸贴合约地址) 不支持的链或查不到 → 硬停
1 名字 → 唯一合约 market search 定不到唯一一个 → 列候选让用户选
2 三道硬闸(量 / 深度 / 安全)+ 方向执行闸 token info + token security(安全优先交 gmgn-contract-dd 硬闸任一不过 → 不下单,出「不建议买入」;方向不利 → 照常出订单卡并标注执行降级
3 组装订单卡 gas-price 用户明确确认 → 参数交给 gmgn-swap

边界(详见 frontmatter 的 description):

这一步归谁 谁的
名字/符号 → 唯一合约、深度、量池比、滑点、gas、仓位 本技能独占,没有兄弟技能做这两件事
合约本身的 0–100 安全结论 gmgn-contract-dd——本技能调用它、不与它并行给第二个判定
签名下单、卖出、限价单/条件单、多钱包批量、查订单、查 gas gmgn-swap——它是本技能的出口,不是竞争对手
发币方(一个人,不是一个币)值不值得跟 gmgn-dev-score
  • 单币尽调固定 4 个请求,与同名候选有多少个无关。 market search 一次就带回每个候选的池子/量/笔数/持有人/存续时长,排序与粗筛全在这一份结果里做完;不要给每个候选各打一次 token info。只有最终锁定的那一个才继续。
  • 只覆盖 9 条链sol eth bsc base arbitrum hyperevm robinhood arc stable。这是刻意的边界——只在能做完整 GMGN 搜币+行情+安检的链上下单。其余链的处理见第 0 步与 ## Rules 第 4–6 条。
  • 全是读接口,只需 API Key,不需要私钥(私钥只有 gmgn-swap 下单才用)。凭证由 CLI 自己管,本技能不读、不存、不传。
  • 被限流(RATE_LIMIT_BANNED)时读 reset_at 等到解封再试,期间绝不重试——每重试一次封禁延长 5 秒。
  • 用户明确要求跳过某一项筛选("我知道它没开源,照买")时,把该项标为用户已知悉并豁免,其余项照常执行,并在订单卡里显式列出被豁免的项。
  • 命令跑完只是拿到数字,报告是你写的:用用户的语言,按 ## Display Templates 的形状输出那张订单卡。

Read the full file on GitHub · 230 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +5 lines ced1491b4fa0
  2. 7d ago First seen · 225 lines · 706 tokens per session scan A 891d75098b1d

Subscribe to this mod's changes

gmgn-token-buy is a skill published in the GitHub repository GMGNAI/gmgn-skills (522 stars, last pushed yesterday), licensed MIT. It adds 706 tokens to every session and 8,240 once invoked, about $0.0035 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

coingecko-api

Broad crypto market data from CoinGecko covering 13,000+ tokens. Global market stats, historical price data going back years, exchange volumes, trending tokens, and category filters. Best for macro analysis and long-term historical data.

agiprolabs/claude-trading-skills · 52 tokens

market-sentiment

Synthesize crypto market sentiment by combining the Fear & Greed index, trending coins, narrative momentum, whale activity, and on-chain signals into a single actionable market read. Use when the user wants to know if the market is bullish, bearish, or transitioning. Powered by the free-crypto-news API.

nirholas/cryptocurrency.cv · 66 tokens

alien-plugg-x402

38 paid x402 API endpoints for AI agents — Zora crypto analysis, Robinhood Chain tokenized stocks, on-chain intelligence, whale tracking, and utilities. MCP-compatible. Flat $0.003/call via USDC micropayments on Base.

michaelhutchings626-hub/alien-plugg-x402 · 57 tokens

trading-signals

Fetches live AI crypto trading signals with entry price, stop-loss, take-profit, leverage, confidence scores, and automated verification. Covers 50+ coins including BTC, ETH, SOL. Use when the user asks for crypto signals, trade ideas, market direction, portfolio analysis, or wants to build a trading bot.

roman-rr/trading-skills · 69 tokens

defi-yield

DeFi yield analysis and optimization — lending rates, LP yields, staking returns, yield farming strategies, risk-adjusted yield comparison, and protocol-level sustainability assessment.

HKUDS/Vibe-Trading · 37 tokens

crypto-derivatives

Crypto-derivatives strategies — perpetual funding-rate arbitrage, futures term-structure contango/backwardation trading, and option volatility-smile / Greeks analysis.

HKUDS/Vibe-Trading · 37 tokens