drift

drift is a skill for Claude Code from ChainGPT-org/chaingpt-claude-skill. It costs 133 tokens per session (1,054 once invoked), scanned A, original, MIT.

A read-only tool for viewing live data from Drift Protocol, a Solana-based exchange for perpetual contracts, which are derivatives that track an asset's price without an expiry date. It covers markets, funding, order books, and user positions.

In plain words
What is it for?
Use it to scan markets, inspect prices and funding rates, review order-book depth, or audit positions and open orders on Drift.
Why use it?
It helps analyze current trading conditions and account exposure without placing trades or requiring the tool to control the user's keys.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the chaingpt plugin — 24 skills, 1 command, 3 agents, 1 hook, 1 MCP server shipped together

Good fit Use it to scan markets, inspect prices and funding rates, review order-book depth, or audit positions and open orders on Drift.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chaingpt-org/chaingpt-claude-skill/drift
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ChainGPT-org/chaingpt-claude-skill --skill drift
Clone the repo
git clone --depth 1 https://github.com/ChainGPT-org/chaingpt-claude-skill

Made for: Claude Code.

Or install chaingpt, the plugin that ships this one along with the rest of its 24 skills, 1 command, 3 agents, 1 hook, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for drift

README.md
[![agentmods](https://agentmods.dev/badge/skills/chaingpt-org/chaingpt-claude-skill/drift.svg)](https://agentmods.dev/skills/chaingpt-org/chaingpt-claude-skill/drift)
Your own site
<a href="https://agentmods.dev/skills/chaingpt-org/chaingpt-claude-skill/drift"><img src="https://agentmods.dev/badge/skills/chaingpt-org/chaingpt-claude-skill/drift.svg" alt="Measured on agentmods" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,054 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00133 $0.01054
Opus 5 $0.00067 $0.00527
Sonnet 5 $0.00027 $0.00211
Haiku 4.5 $0.00013 $0.00105

Measured 8d ago against content hash 58b68ed59b5d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

drift scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/drift/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ChainGPT Drift Skill

You read live Drift Protocol data on behalf of the user. Drift is Solana's dominant perpetuals DEX — same non-custodial model as Hyperliquid (user keeps the keys, the on-chain program holds collateral), running on Solana mainnet instead of an app-chain.

This release is read-only. Trading on Drift requires constructing Solana program instructions (Anchor IDL) and signing with the user's Solana keypair (Ed25519) — a different signing flow than the EVM-only path the rest of this plugin uses. Deferred to a follow-up.

Tools

Tool Purpose
chaingpt_drift_markets Enumerate all perp markets sorted by volume / OI / funding
chaingpt_drift_market One-market detail: mark, oracle, funding, max leverage
chaingpt_drift_orderbook L2 orderbook depth for sizing trades
chaingpt_drift_funding Historical funding rates (24h / 7d) with annualized avg
chaingpt_drift_user Account state: collateral, positions, leverage, open orders

When to use Drift over Hyperliquid

  • The user is already on Solana and doesn't want to bridge to Hyperliquid's L1.
  • The user wants to trade Solana-native memecoin perps (BONK, WIF, POPCAT, etc.) which Drift lists earlier and more aggressively than Hyperliquid.
  • The user is running a Solana-side funding-rate arb (long spot on Jupiter, short perp on Drift) where keeping everything on one chain saves rent + transfer time.
  • Composition with other Solana protocols (Kamino, marginfi) for delta-neutral yield strategies.

When Hyperliquid is the right call

  • Higher liquidity / tighter spreads on majors (BTC, ETH, SOL).
  • Deeper orderbooks for large size.
  • The user already has USDC on Hyperliquid's L1 and doesn't want to bridge to Solana.

Typical pipeline

chaingpt_drift_markets sortBy=volume           # scan top markets
       │  (user picks a candidate)
       ▼
chaingpt_drift_market marketIndex=0            # confirm mark/oracle/funding
chaingpt_drift_funding marketIndex=0 window=24h  # check recent funding trend
chaingpt_drift_orderbook marketIndex=0 depth=10  # check size vs liquidity
       │
       ▼
[user trades via https://app.drift.trade]
       │
       ▼
chaingpt_drift_user authority=<solana-pubkey>  # confirm fill landed

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 81 lines · 133 tokens per session scan A 58b68ed59b5d

Subscribe to this mod's changes

drift is a skill published in the GitHub repository ChainGPT-org/chaingpt-claude-skill (16 stars, last pushed 9d ago), licensed MIT. It adds 133 tokens to every session and 1,054 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

perp-cli

Multi-DEX perpetual futures trading via the perp-cli command-line tool. Use when user asks to: trade perps, check funding rates, scan/execute arbitrage (perp-perp or spot-perp), run delta-neutral strategies, bridge USDC across chains, manage positions/orders/leverage, deposit/withdraw, hedge spot+perp, trade HIP-3…

hypurrquant/perp-cli · 152 tokens

suwappu

Build with the Suwappu REST API: cross-chain quotes, simulation, self-custody or managed swaps, managed-wallet portfolio/prices, Polymarket research and orders, Hyperliquid market research, and Morpho lending-market research.

0xSoftBoi/suwappubot · 55 tokens

suwappu-dex

Use Suwappu's hosted MCP server for cross-chain quotes, swap simulation and unsigned transaction preparation, managed-wallet portfolio reads, prices, prediction-market research, Hyperliquid research, and Morpho market data.

0xSoftBoi/suwappubot · 50 tokens

ethereum-defi

Ethereum DeFi skill — query balances, get Chainlink prices, estimate gas, resolve ENS names, call smart contracts, ABI-encode functions, interact with ERC-8004 agent registry, query EAS attestations.

tenzro/tenzro-network · 48 tokens

defi-protocols

DeFi protocol authority — flashloans, AMM design, lending markets, concentrated liquidity, MEV, triangular and cross-DEX arbitrage, stablecoin depeg dynamics, and on-chain capital routing across Uniswap V3, Aerodrome, Balancer, Curve, and Aave V3 on Ethereum, Base, Arbitrum, Optimism, and Polygon.

LuuOW/meridian-mcp · 81 tokens

propfund

Trade on PropFund, the decentralized on-chain prop firm for AI agents. Use this skill to get funded with the liquidity pool's capital and trade without risking your own bankroll — pass a transparent evaluation, then place leveraged long/short trades with mandatory stop-loss/take-profit and on-chain risk limits, and…

NO7r34L/PropFund.eth · 103 tokens