Index of every page on this site: llms.txt
All skills
gmgnai avatar

/gmgn-token-buy

@3a8cd51
by GMGN.AIgmgnai/gmgn-skills734 stars
148
Run it yourself

Turn a token name into a vetted, sized buy order. Two things here are exclusive to this skill: resolving a NAME or symbol to the one right contract among its copycats, and sizing an order — amount, slippage, gas, position. No sibling does either. USE THIS SKILL WHEN a buy is being prepared, which shows up as a NAME or symbol, or an AMOUNT, or both — including the plainest possible ask with no mention of checking: 我想买 200u 的 PENGU, 帮我买 500 刀的 BONK, 买 1 个 SOL 的 WIF, 帮我买点 dogwifhat, 想梭 100u 的 XX, PENGU 现在能买吗, PENGU 能不能买, 能不能冲, 值不值得进, 确认是正主不是仿盘再买, buy me $500 of PENGU — and including a bare contract address once an amount arrives with it. DO NOT USE THIS SKILL for a bare contract address with no name to resolve and no amount to size (「这个地址能不能买」, 打个分, 尽调, 有没有貔貅, rug check, is this token safe): that one belongs to gmgn-contract-dd, which is the skill that returns the 0-100 safety verdict. This skill never computes a second verdict of its own — it CALLS gmgn-contract-dd and defers to it — so there is nothing to gain by taking that ask, and the user gets an order card they never asked for. Come back here the moment they name an amount. A buy question about a LAUNCHER rather than about a token — 「这个 dev 的新盘能不能买」, 「他下一个盘值不值得冲」, "should I buy his next launch", "will this dev rug at open" — is gmgn-dev-score: it scores the creator's own record, and there is no token name to resolve or amount to size yet. Come back here once they name the coin. Naming a token with no buy intent at all is gmgn-market search. gmgn-swap is where this skill ENDS, not a rival for it: gmgn-swap signs and submits, and this skill never touches a private key and never places an order, so a plain buy request starts HERE and reaches gmgn-swap only after the user confirms the order card. Note that gmgn-swap cannot start from a name either — its --output-token is a contract address and the only names it resolves are the currencies SOL/BNB/ETH/USDC — so 帮我买点 dogwifhat has to come here regardless of who is asked. Go straight to gmgn-swap only when the user says the pre-buy check is unwanted (skip the checks, 直接买, 不用尽调, 我很急), or for what this skill does not do at all: selling, percentage sells, limit orders, stop loss, take profit, trailing orders, multi-wallet batch trading, order status, gas-price lookups. The split is by what the ask still needs done, not by who executes: a name needs resolving and an amount needs sizing, so both start here; a bare address needs only a verdict, so it is gmgn-contract-dd's; a signed transaction is always gmgn-swap's.

Use this Skill: https://skilld.dev/gh/gmgnai/gmgn-skills/gmgn-token-buy

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesresolution.md

≈1.5k tokens on demand. Your agent reads this file only when SKILL.md points to it.

名字 → 唯一合约(Step 1 的全部判据)

Step 1 只有一句出口:唯一确定就继续,确定不了就列候选让用户选,绝不猜。 这份文件是"怎么算唯一确定"的全部依据。

一、先剔除模糊命中

搜索接口是模糊匹配,返回结果里常混入符号完全不同的代币——搜 WIF 会返回 dogwifcap、KWIF,搜 PEPE 会返回 TOAD。判定精确匹配时先归一化:忽略大小写、全角/半角、$ 前缀,符号或名称任一精确匹配都算候选(符号 NiuLai 配名称 牛来 是同一个币,只比符号会把它降级成模糊命中);再退一档,去掉空格/连字符/下划线/标点后完全相等的也算命中(用户手打 mee ko、mee-ko 指的都是 MEEKO),但这一档要求压缩后完全相等,不做子串匹配。

用户全小写输入是常态,meeko 必须命中 MEEKO / Meeko / MeeKo——这由归一化保证,不需要额外规则。模糊命中一律排除,并在报告里说明排除了几个。若一个精确匹配都没有,不要退而求其次,直接把模糊结果列给用户确认。

二、可交易深度怎么取

深度取自 GMGN 主池储备(token info 的 pool 块):两侧折美元储备都 > 0 时取较小值,任一侧为 0 或缺失时改用 pool.liquidity / 2(实测 BONK 主池 base 侧未定价,取小值会把蓝筹算成 $0 深度,见 fields.md)。粗筛阶段用 market search 的 liquidity / 2——那个字段是两侧之和。

不用行情源给的"挂单额/TVL",那是单边口径、会高估。GMGN 只给最大单池,多池分散的币深度偏保守,但这是安全方向(宁可低估)。实测过外部源在 Robinhood 这类链上会把深度算崩($333 vs 真实 $72K),所以深度只信 GMGN 主池,不引入任何外部源交叉印证。

三、排序:先分档,同档内才比分

命中方式分档在前,分数在后(地址 4.0 > 符号 3.0 > 名称 2.0 > 去分隔符后一致 1.5/1.2 > 模糊 0),否则"符号 XYZ / 名称 Meeko"会被分数顶到"符号 MEEKO"前面去。

四元印证,不要只按单一维度排序。 市值、可交易深度、24h 成交额、持有人数必须互相印证才可信,任一维度单独看都能被伪造:

  • 池子显示几十亿美元、24h 成交额只有几美元 → 虚假池子;
  • $37M 市值配 $19 可交易深度 → 空壳(不要把市值最大的直接当正主,市值同样能靠拉盘伪造);
  • 千万级市值配 21 个持有人 → 代币从未真正分发。

公式(四元几何平均、credible_cap 的封顶、缺数据不加分也不扣分的退化规则)见 thresholds.md 六、。不设市值硬门槛——刚起盘的真币市值天然很小,用市值下限筛会把它们连同仿盘一起误杀。

四、存续时长这个先验

抗操纵综合分对存续时长完全无感,而它恰恰是同名堆里最锋利的"谁是正主"信号:实测搜 meeko,正主存续 672 天、综合分只领先第二名 1.9 倍(够不上自动锁定),而挤在它前后的 8 个同名币全是 11~34h 内新建的仿盘;算进存续时长后领先 5.6 倍。

三条约束:存续时长只进排序、绝不进任何一道闸(技能要覆盖新币),加成上限 4.1 倍(压不过一个数量级的真实质量差距),有社交只加分不减分。同名候选都是新盘时这一档自然抹平,回落到问用户——那时确实没有证据指向谁。

五、消歧顺序

按这个顺序走,能唯一确定就继续,否则列候选让用户选:

  1. 用户给了合约地址 → 直接用,跳过搜索。
  2. 用户给了官网 / 推特 / TG → 用社交链接匹配。
  3. 候选中只有一个同时满足可交易深度 ≥ 阈值且 24h 交易量 ≥ 阈值 → 用它,注明"同名代币还有 N 个,已按深度与成交额选择"。
  4. 相关性第一名领先第二名 5 倍以上 → 用它,注明领先幅度与理由。
  5. 其余情况 → 让用户选。

⚠️ 粗排不定生死。 market search 返回的是单池视角,正主可能只被搜到一个小池。给排名靠前的候选拉过 token info 的权威深度之后必须重排一次。实测搜 MEME 粗排第一是 eth 上的 Memecoin,拉权威数据后它的 24h 成交额只有 $26.95K(不达标),而 robinhood 上的同名币是 $63.14M。

六、候选清单怎么列

列 符号、CA 缩写、链、市值、可交易深度、24h 交易量、持有人数、量/深度、创建时间。

  • 精确匹配全部列出,不因条数截断(同名 meme 常有几十个);模糊命中按分数取前 5 个。
  • 市值缺失时用 FDV 并标注。
  • 市值最大的那个精确匹配无论分数高低都必须出现在列表里——用户是照着市值找币的,看不到它就没法判断是不是选错了。
  • 几十个候选时可以折叠,但要写清折了几个、按什么标准折的,并且能展开。实测搜 meeko 有 47 个符号精确匹配,41 个深度与成交额双双不达标;静默截断会让用户以为搜索只找到这几个。

持有人数是识别空壳与仿盘最锋利的信号,而且只有 GMGN 有。 三位数以下配百万级市值,几乎必然是空壳或未真正分发的盘子。拿不到时按"数据缺失"处理并注明,不要当成通过。

注意仿盘。 符号完全相同、创建时间很新、流动池很小的,几乎总是仿盘。发现这种情况要主动说出来,不要只是静默排除。

七、链的确认

用户没说链时不要默认 Solana——按候选结果里可交易深度最高的链提问确认,除非只有一条链有结果。

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts25d3 checks · Risk SAFE
  • Gen Agent Trust Hub25d

    The skill provides a structured and security-conscious workflow for analyzing and preparing cryptocurrency buy orders using the gmgn-cli tool. It incorporates multiple validation gates, including volume, liquidity, and safety score checks, and treats all external metadata as untrusted data. No malicious patterns were detected.

  • Socket25d

    No alerts

  • Snyk25d

    Risk: LOW · No issues

Signed by skilld at 3a8cd51. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 4 weeks ago
metadata
{
  "cliHelp": "gmgn-cli market search --help"
}
Other metadata
argument-hint
<token name | symbol | contract address> [amount, e.g. 200u | 0.5 ETH | 1 sol] [--chain <sol|bsc|base|eth|arbitrum|hyperevm|robinhood|arc|stable|avalanche>]

README badge

README badge for gmgnai/gmgn-skills/gmgn-token-buy