Agent skill

drift-sdk

Drift Protocol perpetual futures trading on Solana (direct SDK)

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill drift-sdk --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 2 KB
Bundled scripts: none
Path: skills/api/drift-sdk/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Quick Start
  2. Commands
  3. Trading
  4. Orders
  5. Account
  6. Configuration
  7. Features
  8. Markets
  9. Resources
Ships with 1 file
  • metadata.json
Commands it runs
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
More from claude-skill-registry
All skills →
About this skill
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.

Keep going