Agent skill

Vendor Implementation

by No-Trade-No-Life in No-Trade-No-Life/Yuan

基于Hyperliquid成功实现经验,为新交易所供应商提供Yuan框架集成指南。使用此技能当需要为新的交易所创建供应商实现,包括项目结构设计、API集成、核心服务实现和最佳实践。适用于交易所API集成、金融系统开发、微服务架构设计。

MITAuto-check passedBusiness, Finance & HR

Install Vendor Implementation

skills CLI
$ npx skills add No-Trade-No-Life/Yuan --skill vendor-implementation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install No-Trade-No-Life/Yuan vendor-implementation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/No-Trade-No-Life/Yuan.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/vendor-implementation .claude/skills/vendor-implementation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
vendor-implementation
GitHub stars
352
Used in
1 other repo
Token cost
~1.4k tokens
SKILL.md length
216 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

基于Hyperliquid成功实现经验,为新交易所供应商提供Yuan框架集成指南。使用此技能当需要为新的交易所创建供应商实现,包括项目结构设计、API集成、核心服务实现和最佳实践。适用于交易所API集成、金融系统开发、微服务架构设计。

  • Works in 4 steps: 使用原生 API → 日志标准 → 类型安全 → …
  • Business, Finance & HR work in your project
  • SKILL.md covers 使用场景, 核心原则, 标准目录结构 and 核心实现模式, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Vendor Implementation is an agent skill from No-Trade-No-Life/Yuan. 基于Hyperliquid成功实现经验,为新交易所供应商提供Yuan框架集成指南。使用此技能当需要为新的交易所创建供应商实现,包括项目结构设计、API集成、核心服务实现和最佳实践。适用于交易所API集成、金融系统开发、微服务架构设计。

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Business, Finance & HR. It works with Hyperliquid. The repository describes itself as: Yuan - Personal Investment Operating System. The licence is MIT.

When your agent uses it

  • Business, Finance & HR work in your project

Example prompts

  • “/vendor-implementation”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 使用原生 API
  2. 日志标准
  3. 类型安全
  4. 文档维护

What it can do on your machine

Read from SKILL.md and the folder at commit 10695de. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Vendor Implementation loads about 1.4k tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 216 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from No-Trade-No-Life/Yuan at commit 10695de, republished under its MIT licence (© No-Trade-No-Life). 216 words, ~1,433 tokens.

Download SKILL.mdSave it as .claude/skills/vendor-implementation/SKILL.md (or your agent's skills folder).
name
vendor-implementation
description
基于Hyperliquid成功实现经验,为新交易所供应商提供Yuan框架集成指南。使用此技能当需要为新的交易所创建供应商实现,包括项目结构设计、API集成、核心服务实现和最佳实践。适用于交易所API集成、金融系统开发、微服务架构设计。
license
Complete terms in LICENSE.txt

Vendor Implementation

为新的交易所供应商提供完整的 Yuan 框架集成指南,基于 Hyperliquid、Aster、OKX 等成功实现经验。

使用场景

使用此技能当需要:

  • 为新交易所创建供应商实现
  • 设计微服务架构和 API 集成
  • 实现交易系统核心功能(账户、订单、市场数据)
  • 遵循 Yuan 框架规范和最佳实践

核心原则

简洁至上

上下文窗口是公共资源。技能与系统提示、对话历史、其他技能的元数据和用户请求共享上下文。

**默认假设:Claude 已经很智能。**只添加 Claude 不具备的上下文。对每条信息进行挑战:"Claude 真的需要这个解释吗?","这个段落是否值得其令牌成本?"

优先使用简洁示例而非冗长解释。

设置适当的自由度

将特异性级别与任务的脆弱性和可变性匹配:

高自由度(文本指令):当多种方法都有效、决策依赖上下文,或启发式指导方法时使用。

中等自由度(伪代码或带参数的脚本):当存在首选模式、某些变化可接受,或配置影响行为时使用。

低自由度(特定脚本,少数参数):当操作易错、一致性至关重要,或必须遵循特定序列时使用。

标准目录结构

apps/vendor-{exchange}/src/
├── api/                           # API层
│   ├── client.ts                # HTTP客户端设置
│   ├── public-api.ts            # 公共API端点
│   ├── private-api.ts           # 私有API端点
│   └── types.ts                 # TypeScript类型定义
├── services/                     # 服务层
│   ├── accounts/                # 账户服务
│   │   └── perp.ts              # 永续账户信息
│   ├── orders/                  # 订单管理
│   │   ├── submitOrder.ts       # 订单提交
│   │   ├── cancelOrder.ts       # 订单取消
│   │   ├── modifyOrder.ts       # 订单修改
│   │   └── listOrders.ts         # 订单列表
│   ├── markets/                 # 市场数据
│   │   ├── quote.ts             # 实时报价
│   │   ├── product.ts           # 产品信息
│   │   ├── ohlc.ts              # K线数据
│   │   └── interest-rate.ts     # 利率数据
│   ├── account-actions-with-credential.ts  # 账户RPC
│   ├── order-actions-with-credential.ts     # 订单RPC
│   └── fill-history.ts          # 成交记录(如果支持)
├── utils.ts                      # 工具函数
├── sign.ts                       # 请求签名
├── index.ts                      # 主入口
├── cli.ts                        # CLI入口
├── AGENTS.md                     # Agent文档
├── SESSION_NOTES.md              # 会话记录
└── package.json                  # 依赖

核心实现模式

缓存模式(使用 createCache)
typescript
import { createCache } from '@yuants/cache';

const CACHE_TTL = 60_000;

const metaCache = createCache<Map<string, AssetInfo>>(
  async () => {
    console.info(`[${formatTime(Date.now())}] 刷新交易所元数据缓存`);
    const data = await fetchExchangeMetadata();
    return processData(data);
  },
  { expire: CACHE_TTL },
);

export const getAssetInfo = async (symbol: string) => {
  const cache = await metaCache.query('meta');
  return cache.get(symbol);
};
服务注册模式
typescript
export const submitOrder = async (credential: ICredential, order: IOrder) => {
  console.info(`[${formatTime(Date.now())}] 提交订单: ${order.product_id}`);

  try {
    const payload = buildOrderPayload(order);
    const result = await placeOrder(credential, payload);

    if (!result.status || result.status !== 'ok') {
      throw new Error(`订单提交失败: ${result.error}`);
    }

    const orderId = extractOrderId(result);
    console.info(`[${formatTime(Date.now())] 订单提交成功: ${orderId}`);
    return { order_id: `${orderId}` };
  } catch (error) {
    const errorMessage = error instanceof Error ? error.message : '未知错误';
    console.error(`[${formatTime(Date.now())}] 订单提交失败: ${errorMessage}`);
    throw new Error(`订单提交失败: ${errorMessage}`);
  }
};
RPC 注册模式
typescript
import { provideOrderActionsWithCredential } from '@yuants/data-order';

provideOrderActionsWithCredential<ICredential>(
  Terminal.fromNodeEnv(),
  'EXCHANGE',
  {
    type: 'object',
    required: ['private_key', 'address'],
    properties: {
      private_key: { type: 'string' },
      address: { type: 'string' },
    },
  },
  {
    submitOrder,
    cancelOrder,
    modifyOrder,
    listOrders,
  },
);

实现检查清单

✅ 必需核心功能
  1. 账户信息

    • 现货账户余额和持仓
    • 永续账户保证金和持仓
    • 多账户类型支持
  2. 订单管理

    • 订单提交(市价/限价)
    • 订单取消
    • 订单修改(如果支持)
    • 待成交订单列表
  3. 市场数据

    • 实时报价
    • K 线数据
    • 产品信息
    • 利率数据(如适用)
  4. API 集成

    • 公共 API 端点
    • 带认证的私有 API
    • 错误处理和重试逻辑
🎯 高级功能
  1. 交易历史

    • 成交记录实现
    • 交易记录
  2. 转账支持

    • 内部转账
    • 提现
    • 充值地址

质量标准

代码质量
  • ✅ TypeScript 严格模式
  • ✅ 全面的错误处理
  • ✅ 单元测试覆盖
  • ✅ 集成测试验证
性能
  • ✅ createCache高效缓存
  • ✅ API 速率限制
  • ✅ 批量操作优化
文档
  • ✅ AGENTS.md 实现细节
  • ✅ SESSION_NOTES.md 变更跟踪
  • ✅ API 文档集成
  • ✅ 完整 README

参考实现

学习这些示例
  1. Hyperliquid: 原生 modify order API + 完整功能集
  2. Aster: 清晰结构 + 现货/永续分离
  3. OKX: 综合功能 + 转账支持
关键学习点
  1. 目录结构: vendor-aster 的可扩展模式
  2. 缓存策略: createCache vs 手动管理
  3. 错误处理: 跨服务的一致模式
  4. 类型安全: 完整 TypeScript 接口
  5. 文档维护: AGENTS.md + SESSION_NOTES.md

关键经验

1. 使用原生 API

优先使用交易所的原生 API 而非模拟方案:

  • 使用 modify order 而非 cancel + place new
  • 保持订单优先级,减少 API 调用
2. 日志标准
typescript
console.info(`[${formatTime(Date.now())] 操作成功`);
console.error(`[${formatTime(Date.now())] 操作失败: ${error.message}`);
3. 类型安全
typescript
interface IExchangeResponse {
  status: string;
  data?: any;
  error?: string;
}

function validateResponse<T>(response: IExchangeResponse): T {
  if (response.status !== 'ok') {
    throw new Error(response.error || 'API调用失败');
  }
  return response.data as T;
}
4. 文档维护

SESSION_NOTES.md 记录每次重要变更,包括:

  • 技术决策 (D1, D2, ...)
  • 架构变更
  • 错误解决记录
  • TODO 和风险项

常见陷阱

  1. API 限制 - 始终检查官方文档
  2. 速率限制 - 实现适当节流
  3. 认证安全 - 绝不在代码中硬编码密钥
  4. 数据一致性 - 处理部分失败场景
  5. 测试依赖 - 正确模拟外部服务

成功指标

成功的供应商实现应该:

  1. ✅ 通过所有集成测试
  2. ✅ 优雅处理 API 限制
  3. ✅ 提供一致的错误消息
  4. ✅ 支持所有必需 RPC 方法
  5. ✅ 包含全面文档
  6. ✅ 遵循既定编码模式
  7. ✅ 可维护和可扩展

进阶资源

  • 工作流模式: references/workflows.md
  • 输出模式: references/output-patterns.md
  • 错误处理: references/error-handling.md

基于 Hyperliquid、Aster、OKX 供应商实现经验生成

© No-Trade-No-Life, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/vendor-implementation of No-Trade-No-Life/Yuan.

Open the folder on GitHubat commit 10695de

Used in 1 other repository

We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in No-Trade-No-Life/Yuan, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Vendor Implementation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Vendor Implementation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Vendor Implementation this skillNo-Trade-No-Life/Yuan3521 repos~1.4kAutomated safety check: PassMIT
Fintoolsecond-state/fintool316—~5.9kAutomated safety check: PassNone
Guard Trailing StopNunchi-trade/agent-cli521—~1.9kAutomated safety check: PassMIT
Moss Trade Bot Factorymoss-site/moss-trade-bot-skills390—~2.2kAutomated safety check: PassMIT-0
Opportunity RadarNunchi-trade/agent-cli521—~1.2kAutomated safety check: PassMIT
Hyperliquid Smart Money Flow ReaderSenpi-ai/senpi-skills134—~4kAutomated safety check: PassApache-2.0

Similar skills

  • Fintool

    second-state/fintool

    Financial trading CLIs — spot and perp trading on Hyperliquid, Binance, Coinbase, OKX.

    316 GitHub stars~5.9k tokensUpdated 4 mo ago
    Business, Finance & HRAuto-check passed
  • Guard Trailing Stop

    Nunchi-trade/agent-cli

    Guard — two-phase ROE-based trailing stop system for Hyperliquid perps.

    521 GitHub stars~1.9k tokensUpdated 3 mo ago
    Business, Finance & HRAuto-check passed
  • Moss Trade Bot Factory

    moss-site/moss-trade-bot-skills

    用户用自然语言描述币种、回测时间区间和策略风格时,自动创建加密货币交易 Bot,读取内置 Hyperliquid CSV 覆盖并运行本地回测/进化;若币种、时间区间或策略风格缺失,则主动询问缺失项并展示 CSV 解析出的可用回测区间。也可在回测后上传平台 verify 或创建模拟实盘 Bot。适用于创建bot、交易策略、回测、backtest、evolve、upload verify、live…

    390 GitHub stars~2.2k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Opportunity Radar

    Nunchi-trade/agent-cli

    Screens all Hyperliquid perps and surfaces top trading setups

    521 GitHub stars~1.2k tokensUpdated 3 mo ago
    Business, Finance & HRAuto-check passed
  • Reads where proven profitable Hyperliquid wallets are positioned versus smaller traders, surfacing the divergence worth paying attention to.

    134 GitHub stars~4k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Senpi Trading Runtime Contract

    Senpi-ai/senpi-skills

    Documents how a Senpi strategy's scan function talks to the runtime that schedules it, sizes orders, and manages stop-loss exits on Hyperliquid.

    134 GitHub stars~2.6k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed

More from No-Trade-No-Life/Yuan

  • Git Changes Reporter

    No-Trade-No-Life/Yuan

    生成结构化 git 变更报告(JSON + Markdown)。使用此技能当用户提到"git 变更"、"commit 摘要"、"代码审查"、"release note"、"近期改动"、"每日摘要",或需要分析指定 commit 区间的代码变更。包含三元组结构(设计意图、核心代码、影响范围)的语义化报告,适用于代码审查、发布说明、团队同步、CI/CD 等场景。

    352 GitHub stars~1.2k tokensUpdated 5 mo ago
    Auto-check passed
  • Context Management

    No-Trade-No-Life/Yuan

    在多轮对话和多 Agent 协作场景下,帮助模型管理指令、项目状态和长上下文。通过外部文档与会话笔记实现可控的“记忆”、指令冲突检测和高质量交接。适用于任务跨多次调用、跨 Agent、需要稳定行为规范时使用。

    352 GitHub stars~1.4k tokensUpdated 5 mo ago
    Auto-check passed

Works with

Questions about Vendor Implementation

What does Vendor Implementation do?

基于Hyperliquid成功实现经验,为新交易所供应商提供Yuan框架集成指南。使用此技能当需要为新的交易所创建供应商实现,包括项目结构设计、API集成、核心服务实现和最佳实践。适用于交易所API集成、金融系统开发、微服务架构设计。. Vendor Implementation is an agent skill from No-Trade-No-Life/Yuan.

When should I use Vendor Implementation?

Vendor Implementation fits situations like: business, Finance & HR work in your project.

How do I install Vendor Implementation in Claude Code?

Run `npx skills add No-Trade-No-Life/Yuan --skill vendor-implementation -a claude-code`. Or copy the skill folder (.claude/skills/vendor-implementation in No-Trade-No-Life/Yuan) into .claude/skills/vendor-implementation in your project. Claude Code loads it when a task matches its description.

How do I install Vendor Implementation in Codex?

Run `npx skills add No-Trade-No-Life/Yuan --skill vendor-implementation -a codex`. Or copy the skill folder (.claude/skills/vendor-implementation in No-Trade-No-Life/Yuan) into .agents/skills/vendor-implementation in your project. Codex loads it when a task matches its description.

Can I use Vendor Implementation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add No-Trade-No-Life/Yuan --skill vendor-implementation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/vendor-implementation, .gemini/skills/vendor-implementation, .github/skills/vendor-implementation and .opencode/skills/vendor-implementation in your project.

What does Vendor Implementation need to run?

SKILL.md names no scripts, command-line tools or credentials: Vendor Implementation is instructions for the agent only.

Does Vendor Implementation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Vendor Implementation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Vendor Implementation use?

Vendor Implementation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Vendor Implementation use?

About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Vendor Implementation?

Skills that share tags, products or a category with Vendor Implementation: Fintool (second-state/fintool, 316 stars), Guard Trailing Stop (Nunchi-trade/agent-cli, 521 stars), Moss Trade Bot Factory (moss-site/moss-trade-bot-skills, 390 stars) and Opportunity Radar (Nunchi-trade/agent-cli, 521 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Vendor Implementation?

No-Trade-No-Life (a GitHub organization) maintains it in No-Trade-No-Life/Yuan, which has 352 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on April 29, 2026.

Source: No-Trade-No-Life/Yuan on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.