/galleon-defi-derivatives-skills:velocity-positionfrom galleon-defi-derivatives-skills
Inspects Velocity Exchange Solana positions and margin, distinguishing paused legacy Drift accounts from the new Velocity deployment using official SDK account layouts.
Ships in galleon-defi-derivatives-skills. 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.
Return a deployment-specific Velocity position assessment. Official migration guidance says the original Drift program is paused; Velocity has a new program, new account layouts and no transferred onchain state. A legacy Drift address is not a Velocity balance.
Collect cluster, RPC, public owner/subaccount and market. Resolve the current Velocity program ID and SDK version from official deployment/source records, then verify the onchain account owner. Use @velocity-exchange/sdk with its matching account layout. Do not decode a Velocity account with archived Drift types because a discriminator happens to match.
If the user supplied a Drift account, identify its original program and observed legacy state first. Report migration as unresolved unless actual new-program account evidence exists. Do not describe a program rename as automatic asset migration or create new funded accounts as setup.
Use the existing read client or version-matched account decoding in reads. SDK subscribe() can return false; check it explicitly. Record slot, market/oracle freshness and subscription health, then read positions, collateral, orders and margin with official SDK math. A connected RPC with a failed subscription is not current market evidence.
Keep BN integer precision for quote, base, price and funding calculations; convert only for display. Separate oracle price, vAMM bid/ask and order-book depth. Evaluate stale oracle, open-order margin, funding, liquidation and reduce-only behavior under the deployed program's actual limits.
An unsigned plan names program, subaccount, market index, side, base amount, limit, reduce-only flag, fees and margin before/after. SDK methods such as placePerpOrder send transactions; do not invoke them as read checks. Current delegate/Swift permissions must be inspected rather than assumed harmless.
For an existing signature inspect confirmation, transaction errors, fills and resulting position/orders. An accepted order can be resting. On timeout query the original signature and account before another send. Close subscriptions when the bounded read finishes; do not leave a polling service running.
Synthetic legacy Drift account shows 5 SOL exposure; the same owner has no discovered Velocity user account. Report legacy 5 SOL and no verified Velocity exposure. If a new-program subscription returns false, report failed data readiness, not zero positions or permission to initialize a wallet.
Primary documentation and source reviewed 2026-10-25; no account authorization, signing or financial action was tested. Read recipes and current primary sources ship with this skill. Recheck supported deployments and schemas before a consequential handoff. Research adds no permission to trade, transfer, vote or change account authority.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub galleonlabs/crypto-defi-skills --plugin galleon-defi-derivatives-skills6 skills in this plugin
/derive-optionsUse when reviewing Derive v3 option instruments, premium and margin scenarios, or reconciling subaccount orders, fills and session scope./galleon-defi-derivativesAssess perpetuals, options and funding-rate derivatives, prepare bounded exposure plans, and reconcile order and margin state. Use when comparing GMX, Velocity (formerly Drift), Derive, Jupiter Perps or Boros, planning hedges, monitoring positions or recovering orders./gmx-positionUse when reviewing a GMX perpetual position or order through SDK v2, including market capacity, fees, keeper execution and request-id reconciliation.Other plugins' skills for the same job