aicoin-onchain

aicoin-onchain is a skill for Claude Code from aicoincom/coinos-skills. It costs 373 tokens per session (3,986 once invoked), scanned A, original, MIT.

A TypeScript coding guide for advanced type systems and end-to-end type safety. TypeScript adds checks to JavaScript code, while a monorepo is one repository that contains several related projects or packages.

In plain words
What is it for?
Use it to create generic types, type guards, branded types, utility types, and typed APIs. It also helps configure TypeScript projects, including monorepos and projects with shared packages.
Why use it?
It helps make shared code and APIs safer by catching invalid data and type mistakes during development. It also provides patterns for keeping large TypeScript projects organized and buildable.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; built for openclaw.

Part of the coinos-skills plugin — 6 skills shipped together

Good fit Use it to create generic types, type guards, branded types, utility types, and typed APIs. It also helps configure TypeScript projects, including monorepos and projects with shared packages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aicoincom/coinos-skills/aicoin-onchain
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 aicoincom/coinos-skills --skill aicoin-onchain
Clone the repo
git clone --depth 1 https://github.com/aicoincom/coinos-skills

Made for: Claude Code.

Or install coinos-skills, the plugin that ships this one along with the rest of its 6 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 aicoin-onchain

README.md
[![agentmods](https://agentmods.dev/badge/skills/aicoincom/coinos-skills/aicoin-onchain/github.svg)](https://agentmods.dev/skills/aicoincom/coinos-skills/aicoin-onchain)
Your own site
<a href="https://agentmods.dev/skills/aicoincom/coinos-skills/aicoin-onchain"><img src="https://agentmods.dev/badge/skills/aicoincom/coinos-skills/aicoin-onchain/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 aicoin-onchain

Your own site · 80×15
<a href="https://agentmods.dev/skills/aicoincom/coinos-skills/aicoin-onchain"><img src="https://agentmods.dev/badge/skills/aicoincom/coinos-skills/aicoin-onchain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 373 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,986 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
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 66
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
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.00373 $0.03986
Opus 5 $0.00187 $0.01993
Sonnet 5 $0.00075 $0.00797
Haiku 4.5 $0.00037 $0.00399

Measured 13d ago against content hash 9425f4fb34e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

aicoin-onchain 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 13d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (lib/env-loader.mjs, lib/okx-api.mjs, scripts/gateway.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

2. **NEVER use curl, web_fetch, web_search** for on-chain data. Always use these scripts.
skills/aicoin-onchain/SKILL.md · 244 lines

How it starts

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

运行脚本: 从 SKILL.md 所在目录运行 node scripts/<file>.mjs <action>. 三引擎(OpenClaw / Hermes / Claude Code)容器自动加载 skill, 直接 cd 到 skill 目录即可.

AiCoin Onchain

On-chain DEX toolkit powered by OKX Web3 DEX API. Token discovery, swap execution, wallet portfolio, gas estimation, and transaction broadcasting across 20+ blockchains.

Version: 1.0.0

Critical Rules

  1. NEVER fabricate data. Always run scripts. If data is empty or errors, say so — do NOT invent prices or balances.
  2. NEVER use curl, web_fetch, web_search for on-chain data. Always use these scripts.
  3. NEVER run env or printenv — leaks API secrets.
  4. Scripts auto-load .env — never pass credentials inline.
  5. Reply in user's language. Chinese input = Chinese response.
  6. User confirmation required before swap execution. Always show quote details (amount, gas, price impact, honeypot status) and get explicit user approval before calling swap swap.
  7. This skill does NOT sign transactions. It returns unsigned tx data. User must sign locally with their own wallet/key.

⚠️ 路由优先级 (用户问"链上大资金动向"先去 hyperliquid + market,不是这里)

本 skill 主要服务 DEX swap / 钱包查询 / 链上交易动作, 不是"链上数据探查"的首选.

用户问数据类问题时正确路由:

用户问 优先 skill 理由
今天链上有什么大资金动向 aicoin-hyperliquid + aicoin-market HL 本身是链上 perp DEX, whale_positions / whale_events / liquidations / OI 都是真链上数据,免费 tickers + 标准版 whale 信号都能拿
链上鲸鱼/聪明钱在买啥 aicoin-hyperliquid smart_find / whale_positions 同上,HL 数据真实可查
Ethereum/Solana 链上代币热门 aicoin-onchain token.mjs trending OKX Web3 endpoint, 但需要 key — 数据探查不是首选用法
我钱包 0x... 有多少 / Uniswap 报价 / swap aicoin-onchain 这才是本 skill 主战场

关键归属: 本 skill 跟 AiCoin 付费会员没关系, 调用的是 OKX Web3 DEX API. 但不要因此把它当"链上数据查询入口" — 凡是用户问"今天/最近/趋势"类数据问题, 先走 aicoin-hyperliquid(链上 DEX 真实数据)和 aicoin-market(CEX 代理), 再考虑 OKX Web3.

两个数据源不要混:

  • aicoin-onchain (本 skill) → DEX 交易动作 + 钱包, OKX_WEB3_API_KEY 是为了签名 swap / 报价 / 查钱包而申请, 不是为了拉数据
  • aicoin-hyperliquid → 链上 perp DEX whale 数据, 用 AiCoin Open Data API
  • aicoin-market → CEX 大单 / 资金费率 / K线 / 多空比, 也用 AiCoin Open Data API

Read the full file on GitHub · 244 lines

Files

What ships with it

9 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. 13d ago First seen · 244 lines · 373 tokens per session scan A 9425f4fb34e5

Subscribe to this mod's changes

aicoin-onchain is a skill published in the GitHub repository aicoincom/coinos-skills (52 stars, last pushed 14d ago), licensed MIT. It adds 373 tokens to every session and 3,986 once invoked, about $0.0019 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-08-30.

Related

Other skills, from other repositories

frontend-conventions

Coding conventions, architecture patterns, and testing rules for the SkillHub React frontend. Ensures agents follow Feature-Sliced Design and use the generated OpenAPI types.

iflytek/skillhub · 36 tokens

elizaos

Use when the task involves elizaOS core runtime concepts, plugins, actions, providers, evaluators, services, memories, state composition, or upstream elizaOS development. Covers the main abstractions and the TypeScript runtime mental model.

elizaOS/eliza · 52 tokens

backend-module-structure

Rules for the SkillHub backend Maven multi-module clean architecture. Ensures agents place new code in the correct module and respect dependency direction.

iflytek/skillhub · 32 tokens

starknet-js

Use when writing or debugging JavaScript/TypeScript that interacts with Starknet through the starknet.js SDK — building Call objects or calldata, encoding/decoding Cairo types (felt252, u256, structs, arrays, spans, ByteArray, Option/Result/custom enums), or working with contracts, accounts, providers, transactions…

starknet-io/starknet.js · 79 tokens

typescript-expert

TypeScript expert for type system, generics, utility types, and strict mode patterns.

RightNow-AI/openfang · 21 tokens

adding-personhog-rpc

Guide for adding a new RPC to personhog-replica and personhog-router. Covers eligibility checks, proto definition, code generation for Python and Node.js clients, Rust implementation (storage trait, postgres queries, service handler, router wiring), and index compatibility validation. Use when adding a new gRPC…

PostHog/posthog · 88 tokens