scallop-money-market
Integrate Scallop money market on Sui. Use when the user mentions Scallop or wants to lend or borrow on Sui via Scallop.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Integrate Scallop money market on Sui. Use when the user mentions Scallop or wants to lend or borrow on Sui via Scallop.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Pick a brand name, color palette, or typography for a Sui product. Use when the user wants to name or brand a Sui project.
Build an AI agent that signs Sui transactions or runs onchain actions. Use when the user wants an AI agent on Sui.
Build a Sui data indexer or analytics pipeline. Use when the user wants to index Sui events, build a pipeline, or query Sui RPC data.
Build a mobile Sui app with React Native or the Sui Mobile SDK. Use when the user wants iOS, Android, or mobile Sui flows.
Pair with a coding agent to build a Sui MVP step by step. Use when the user wants to build the MVP iteratively with an agent.
Author Sui Move modules and packages with a senior Move dev as your pair. Use when the user wants to write, build, author, add, or scaffold Move code, smart contracts, or Sui programs at the module or function level, in any phrasing.
| name | scallop-money-market |
| description | Integrate Scallop money market on Sui. Use when the user mentions Scallop or wants to lend or borrow on Sui via Scallop. |
# 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 scallop-money-market build completed
# Or use "failed" / "aborted" if it ended that way.
command -v suiperpower >/dev/null 2>&1 && suiperpower track scallop-money-market 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 Scallop's money market into the project. Sets up the Scallop SDK (mainnet only, testnet not supported), creates the user's Obligation Object, walks through deposit-borrow-repay end to end against a live pool, surfaces oracle and liquidation risk, and verifies the round-trip works on mainnet before declaring done.
deepbook-orderbook instead.find-next-sui-idea first.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:
Scallop SDK client setup.
Obligation Object creation and persistence.
Deposit, borrow, repay, withdraw flows.
A live mainnet round-trip: deposit, borrow, repay, observable on suiscan. (SDK is mainnet-only.)
Append to .suiperpower/build-context.md:
## scallop-money-market session, <timestamp>
- obligation id: <id>
- markets: <list of asset symbols>
- sample deposit tx digest: <digest>
- sample borrow tx digest: <digest>
- sample repay tx digest: <digest>
- oracle: Pyth (sole active provider)
- 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.Network and SDK setup
@scallop-io/sui-scallop-sdk and @mysten/sui.Scallop class (not ScallopClient directly), passing addressId, networkType, and secretKey. Call await scallopSDK.init() before using any sub-clients.Obligation Object
openObligationEntry() on the ScallopTxBlock. This is a per-user Object holding their cross-market positions.Deposit
getObligationAccount.Borrow
Repay
getObligationAccount(obligationId) before constructing repay. Interest accrues continuously, so paying the original borrow amount leaves dust debt.Risk surfacing
liquidation_factor and borrow_weight per market, not a generic "health factor" with "collateral_factor".Writeback
.suiperpower/build-context.md.Closing handoff
.suiperpower/intent.md exists and the session was non-trivial (new Scallop integration, Obligation Object created, deposit-borrow-repay path live), recommend verify-against-intent as the next step so the sponsor-load-bearing flow and health-factor surfacing are 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/scallop-quickstart.md: Deposit, borrow, repay recipes for the TS SDK.references/scallop-risk.md: Risk level math, oracle drift, liquidation surface, borrow caps.references/scallop-obligation.md: Obligation Object lifecycle and ownership.Knowledge docs (load when scope expands beyond what is in references):
skills/data/sui-knowledge/sponsor-docs/scallop.md: Concepts, key terms, deeper integration notes.claude "/suiper:scallop-money-market <your message>"codex "/scallop-money-market <your message>"grok, then /scallop-money-market <your message> in the session~/.cursor/rules/scallop-money-market.mdc and reference it.If you activated this and the user actually wants something else, consult skills/SKILL_ROUTER.md and hand off.