npx skills add majiayu000/claude-skill-registry --skill drift-sdk --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Drift Protocol SDK Direct SDK-based trading on Drift Protocol, Solana's leading perpetual futures DEX. Bypass the gateway requirement with native SDK integration. ## Quick Start ```bash # Set credentials export DRIFT_PRIVATE_KEY="your-solana-private-key" export SOLANA_RPC_URL="https://api.mainnet-beta.solana.com" # Check balance /drift balance # Open a position /drift long BTC 0.1 /drift short ETH 1 2500 # Close position /drift close BTC ``` ## Commands ### Trading | Command | Description | |---------|-------------| | `/drift long <coin> <size> [price]` | Open long position | | `/drift short <coin> <size> [price]` | Open short position | | `/drift close <coin>` | Close position at market | | `/drift closeall` | Close all positions | | `/drift leverage <coin> <1-20>` | Set leverage | **Examples:** ```bash /drift long BTC 0.1 # Market buy 0.1 BTC /drift short ETH 1 2500 # Limit sell 1 ETH at $2500 /drift leverage SOL 5 # Set SOL leverage to 5x ``` ### Orders | Command | Description | |---------|-------------| | `/drift orders` | List open orders | | `/drift cancel <orderId>` | Cancel order by ID | | `/drift cancel <coin>` | Cancel all orders for coin | | `/drift cancelall` | Cancel
- Quick Start
- Commands
- Trading
- Orders
- Account
- Configuration
- Features
- Markets
- Resources
Set credentials export DRIFT_PRIVATE_KEY="your-solana-private-key" export SOLANA_RPC_URL="https://api.mainnet-beta.solana.com" Check balance Open a position Close position Required export DRIFT_PRIVATE_KEY="base58_or_json_array" Optional export DRY_RUN=true # Test mode
What does the drift-sdk skill do?
Drift Protocol perpetual futures trading on Solana (direct SDK)
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill drift-sdk --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
