Deepbook Overviewのロゴ

Deepbook Overview

組織
MystenLabs
deepbook-overview

Explains DeepBook V3 on Sui: the central limit order book (CLOB) design, how a Pool is built from Book, State, and Vault, the DEEP token's role in fees, staking and governance, the three integration models, and mainnet package and pool IDs. Use when the user asks what DeepBook is or how it compares to an AMM like Uniswap, asks about DeepBook Pool internals, BigVector, or order matching, asks whether to integrate via Move package, TypeScript SDK, or read-only queries, asks about DEEP fees, staking, whitelisted pools, or voting, or needs a DeepBook mainnet package ID, pool object ID, coin type, or fee tier.

概要

公開者MystenLabs
リポジトリskills
スキル名deepbook-overview
スター
21
フォーク
12
同梱ファイル
3
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    MystenLabsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Deepbook Overview」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/MystenLabs/skills/tree/main/deepbook-overview
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MystenLabs/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/deepbook-overview .claude/skills/deepbook-overview
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDeepbook Overviewを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDeepbook Overviewを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Deepbook Overviewは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

DeepBook V3 Overview

Quick start

QuestionAnswer
What is it?A central limit order book (CLOB) on Sui — not an AMM. Price-time priority matching, limit and market orders, discrete tick and lot sizes. No end-user interface.
What is a Pool made of?Book (two BigVectors: bids, asks), State (Governance, History, Account), Vault (settlement + DeepPrice).
How do I integrate?Move package, TypeScript SDK & PTBs, or read-only queries — see §3.
What is DEEP for?Default fee token (or input token at +25%), taker-fee discounts via staking, and governance voting.
Mainnet v6 package0x337f4f4f6567fcd778d5454f27c16c70e2f274cc6377ea6249ddf491482ef497

Related skills: deepbook-sdk (TypeScript trading), deepbook-move (Move integration). Reference files: design.md (matching/injection, governance mechanics, epoch history, full order-placement flow), contract-info.md (all 23 mainnet pools, every coin type and decimals, historical package versions, registry IDs).


1. Explaining DeepBook vs an AMM

State all five points:

  • DeepBook V3 is a central limit order book (CLOB), not an AMM — there is no bonding curve, no LP pool pricing, and no constant-product formula.
  • Orders are matched by price-time priority: best price first, then earliest submission.
  • It supports limit orders (rest on the book as maker) and market orders (take immediately), plus flash loans via a hot potato pattern within a single PTB.
  • Prices move in tick size increments and quantities in lot size increments, set per pool. Orders not aligned to them are rejected. AMMs accept any continuous amount.
  • DeepBook ships no end-user interface. It is infrastructure for trading apps, bots, and protocols.

2. Pool internals (Book / State / Vault)

A Pool is one market (e.g. SUI/USDC) as a Sui shared object with three components:

  • Book — order storage and matching. Holds two BigVector structures, one for bids and one for asks. BigVector is implemented as a B+ tree, so insertion, cancellation, and in-price-order traversal stay efficient as the book grows.
  • State — three submodules: Governance (fee/stake proposals and epoch voting), History (per-epoch volumes, fees collected, rebates), Account (per-user balances, stake, open orders, settled amounts).
  • Vault — asset settlement: custodies pool balances, moves funds on fill and withdrawal, and maintains DeepPrice conversion rates so DEEP-denominated fees can be computed from the pool's own assets.

Full order placement flow, injection/matching details, and governance arithmetic: design.md.

3. Choosing an integration model

ModelUse whenDependency
Move packageA protocol needs on-chain logic guarantees and composability with other Move packagesdeepbook = { mvr = "@deepbook/core" }
SDK & PTBsApps, bots, and wallets submitting trades from TypeScriptnpm install @mysten/deepbook-v3
Read-only dataPrice and order book queries only, via indexer or RPCNone — query the endpoints directly

Checklist for a new integration:

  • Pick one model from the table above; default to SDK & PTBs unless on-chain composability is required.
  • Create one BalanceManager per user and reuse it; grant TradeCap/DepositCap/WithdrawCap for delegated access.
  • Fund the BalanceManager with the trading assets and DEEP (unless trading a whitelisted pool).
  • Read the pool's tick size, lot size, and current taker/maker fees on-chain before sizing orders.
  • Reference pools by SDK pool/coin keys, not hardcoded IDs, so the code works on mainnet and testnet.

4. The DEEP token

  • Default fee token. Trading fees on non-whitelisted pools are paid in DEEP from the BalanceManager.
  • Alternative: pay fees in the input token at a 25% premium.
  • Staking: staking DEEP reduces taker fees — up to halving them once stake and volume thresholds are met. Maker fees are unaffected.
  • Governance: stakers propose and vote on pool parameters each epoch — taker fee, maker fee, and stake requirement.
  • Whitelisted pools: DEEP/SUI and DEEP/USDC have 0% taker and 0% maker fees, providing gateway liquidity for DEEP.

5. Addresses and pools

Mainnet essentials:

  • Current package (v6): 0x337f4f4f6567fcd778d5454f27c16c70e2f274cc6377ea6249ddf491482ef497
  • SUI/USDC pool: 0xe05dafb5133bcffb8d59f4e12465dc0e9faeaa05e3e342a08fe135800e3e4407, 1 bps taker fee, 0 bps maker fee

Everything else — the other mainnet pools, coin types and decimals, historical package versions, registry IDs — is in contract-info.md. Load it before answering any address question not listed above; do not guess an ID.

Answer style for an address lookup — give the label, the full ID, and the fee tier, no truncation:

DeepBook V3 mainnet package (v6): 0x337f4f4f6567fcd778d5454f27c16c70e2f274cc6377ea6249ddf491482ef497 SUI/USDC pool: 0xe05dafb5133bcffb8d59f4e12465dc0e9faeaa05e3e342a08fe135800e3e4407 — 1 bps taker, 0 bps maker.

Pitfalls

  • No DEEP in the BalanceManager → trades fail on every non-whitelisted pool.
  • Hardcoded fees go stale. Governance can change taker/maker fees and stake requirements each epoch; read them on-chain.
  • Misaligned orders are rejected. Round price to tick size and quantity to lot size before submitting.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Deepbook Overview」では何ができますか?

Explains DeepBook V3 on Sui: the central limit order book (CLOB) design, how a Pool is built from Book, State, and Vault, the DEEP token's role in fees, staking and governance, the three integration models, and mainnet package and pool IDs. Use when the user asks what DeepBook is or how it compares to an AMM like Uniswap, asks about DeepBook Pool internals, BigVector, or order matching, asks whether to integrate via Move package, TypeScript SDK, or read-only queries, asks about DEEP fees, staking, whitelisted pools, or voting, or needs a DeepBook mainnet package ID, pool object ID, coin typ...

TypingMindでDeepbook Overviewを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Deepbook Overviewはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDeepbook Overviewをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/MystenLabs/skills/tree/main/deepbook-overviewを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Deepbook Overviewを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Deepbook Overviewで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDeepbook Overviewを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Deepbook Overview」は無料ですか?

はい。MystenLabsがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇