/galleon-defi-derivatives-skills:gmx-positionfrom galleon-defi-derivatives-skills
Reviews GMX perpetual positions and orders via SDK v2, covering market capacity, fees, keeper execution, and request-id reconciliation for research and verification.
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 market/position risk view or reconcile one GMX order. An API relay acknowledgement, onchain order creation and keeper execution are separate stages.
Collect chain, public account, market, side, collateral token, intended size and order type. Discover the precise market symbol/address through current GmxApiSdk reads in recipes. Keep spot-only markets, long/short collateral and market-token identities distinct. Use SDK v2 for new integration; SDK v1 is maintenance-only, not the preferred new implementation.
Read prices, market configuration, available trading capacity, current positions and orders. Confirm data age and JIT-aware capacity for the requested side/size. Measure collateral and margin with protocol math, retaining raw USD/token units. Include position fees, borrowing, signed funding, price impact, execution/keeper gas and any relay charges separately. A displayed leverage limit does not guarantee current capacity.
For a proposed change show size delta, collateral delta, acceptable price, execution fee, trigger/limit conditions and expected remaining exposure. Identify whether this is increase, reduce or collateral-only, and whether collateral/output swaps occur. SDK prepare/sign/submit stages are not all reads; stop at reviewed preparation for research. Resolve current order/relay schema and contract deployments before any authorized handoff; never copy example private keys.
Preserve API requestId and the reviewed idempotency key, then any order key and transaction hashes. Query status for that original request. Relay accepted is not keeper filled; an order can remain pending, cancel or fail. Reconcile final order events, actual position size/collateral and fees. A stop order is contingent execution, not a guaranteed loss cap.
On timeout, rate limits or ambiguous acknowledgement inspect the original request and onchain order before resubmitting. Do not generate a fresh idempotency key to bypass uncertainty. Report partial fills or missing position evidence explicitly.
Synthetic request to reduce a $10,000 long by $4,000 is accepted by relay, but the position still reads $10,000 and keeper status is pending. Report pending reduction and unchanged observed exposure. Only after execution events and a $6,000 remaining size agree can the reduction be called verified.
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
gmx, perpetual-positions, order-reconciliation, defi-analysis
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./jupiter-perpsUse when inspecting Jupiter Perpetuals position and PositionRequest accounts, borrowing fees, triggers or pending close evidence on Solana.Other plugins' skills for the same job