Integrates DeepBook v3 orderbook on Sui (limit orders, CLOB, DEX). Sets up BalanceManager, handles tick/lot constraints, and verifies a real testnet order settles on chain.
Ships in suiper. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
# Suiperpower telemetry. Routes through the CLI so projects.json + Convex stay in sync.
# Silent on failure so the skill never blocks. Opt out: SUIPERPOWER_TELEMETRY=off.
#
# AGENT NOTE: when this skill finishes, run the matching completion command:
# suiperpower track deepbook-orderbook build completed
# Or use "failed" / "aborted" if it ended that way.
command -v suiperpower >/dev/null 2>&1 && suiperpower track deepbook-orderbook build started >/dev/null 2>&1 &
true
If TEL_PROMPTED is no, before doing real work, ask the user:
Help suiperpower get better. We track which skills get used and how long they take. No code, no file paths, no PII. Change anytime in
~/.suiperpower/config.json.A) Sure, anonymous B) No thanks
Write the answer to ~/.suiperpower/config.json telemetryTier field and create ~/.suiperpower/.telemetry-prompted. Then continue.
Integrates DeepBook v3 into a project so the user can place and settle real orders on testnet. Picks the right pool, sets up a BalanceManager, walks the user through tick and lot constraints, writes the place-order, cancel-order, and read-book code, and verifies one real order settles on chain before declaring done.
deepbook-research (idea phase) instead.scaffold-project first.If you activated this and the user actually wants something else, consult skills/SKILL_ROUTER.md and hand off.
.suiperpower/build-context.md from scaffold-project. Read it if present.If unclear, interview the user for:
DeepBook v3 client code that places, cancels, and reads orders.
BalanceManager creation and deposit code.
A verifiable testnet trade: one real order placed and either filled or cancelled, observable on suiscan.
Append to .suiperpower/build-context.md:
## deepbook-orderbook session, <timestamp>
- pool: <poolKey>
- balance manager id: <id>
- sample order ids: <list>
- first settled tx digest: <digest>
- tick size: <value>
- lot size: <value>
- open issues: <list>
The skill never deletes files outside the integration source path without explicit user confirmation.
Context gathering
.suiperpower/build-context.md if it exists.Pool selection
build-context.md.BalanceManager
Implementation
Demo settlement
Slippage and tick alignment
Writeback
.suiperpower/build-context.md.Closing handoff
.suiperpower/intent.md exists and the session was non-trivial (new DeepBook integration, BalanceManager wiring, real on-chain settlement path), recommend verify-against-intent as the next step so the sponsor-load-bearing settlement is checked before shipping.intent.md exists and the session was non-trivial, surface that gap once: offer clarify-intent to backfill, do not force it.Before reporting done, the skill asks itself the following and refuses to declare success if any answer is no:
If any answer is no, the skill reports the gap and works through it before claiming the integration is complete.
On-demand references (load when relevant to the user's question):
references/deepbook-quickstart.md: Place, cancel, read recipes for the v3 TS SDK.references/deepbook-pitfalls.md: Tick and lot violations, BalanceManager funding, pay-with-DEEP, stale prices, v2 vs v3 pools.references/balancemanager-setup.md: BalanceManager creation, deposit, and lifetime.Knowledge docs (load when scope expands beyond what is in references):
skills/data/sui-knowledge/sponsor-docs/deepbook.md: Concepts, key terms, deeper integration notes.These are separate DeepBook modules. Do not integrate them into the core orderbook flow unless the user specifically asks.
| Feature | Status | What it is | Docs |
|---|---|---|---|
| DeepBook Predict | Testnet only | On-chain prediction markets built on the DeepBook engine. | https://docs.sui.io/onchain-finance/deepbook-predict/ |
| DeepBook Margin | Mainnet | Margin trading with multiplier, settled through DeepBook pools. | https://docs.sui.io/onchain-finance/deepbook-margin |
| DeepBook Sandbox | Dev tool | Docker-based local dev environment for testing DeepBook integrations without hitting testnet. | https://github.com/MystenLabs/deepbook-sandbox |
claude "/suiper:deepbook-orderbook <your message>"codex "/deepbook-orderbook <your message>"grok, then /deepbook-orderbook <your message> in the session~/.cursor/rules/deepbook-orderbook.mdc and reference it.If you activated this and the user actually wants something else, consult skills/SKILL_ROUTER.md and hand off.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/suiper:deepbook-orderbookfrom suiper
npx claudepluginhub pivyme/suiperpower --plugin suiper60 skills in this plugin
/apply-grantDraft a Sui Foundation grant application with milestones and sustainability plan. Use when the user wants to apply for a Sui grant or draft a grant application./brand-designPick a brand name, color palette, or typography for a Sui product. Use when the user wants to name or brand a Sui project./build-ai-agentBuild an AI agent that signs Sui transactions or runs onchain actions. Use when the user wants an AI agent on Sui./build-data-pipelineBuild a Sui data indexer or analytics pipeline. Use when the user wants to index Sui events, build a pipeline, or query Sui RPC data.Other plugins' skills for the same job