gemachdao/gdex-skill/gdex-onboarding
Claude Code and agent skill by gemachdao/gdex-skill
- community
- ext:[{"type":"context","description":"Custom context provider definitions"}]
Checking that the SKILL.md file is still in the repository.
Start here — GDEX overview, architecture, supported chains, available skills, and quickstart for cross-chain DeFi trading via managed-custody wallets
Install
npx vskill@latest install gemachdao/gdex-skill/gdex-onboardingSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as gemachdao/gdex-skill/gdex-onboarding.
GDEX: Agent Onboarding
GDEX is a cross-chain DeFi trading infrastructure for AI agents. It provides spot trading, perpetual futures (HyperLiquid), portfolio management, token discovery, copy trading, and bridging across Solana, Sui, and 12+ EVM chains — all through a single SDK with managed-custody wallets.
When to Use
- You're new to GDEX and need to understand the platform
- You need to decide which skill to load for a specific task
- You want a quick overview of supported chains and capabilities
Architecture
Key concepts:
- Managed custody — GDEX provisions and manages all on-chain trading wallets server-side. Your control wallet only signs in once.
- Encrypted payloads — All trades use AES-256-CBC encrypted
computedDatapayloads. The API key derives the AES key deterministically via SHA256 hash chain. - Session keypairs — A secp256k1 session key signs trade payloads after initial control-wallet sign-in.
- Shared API keys — Pre-configured keys let agents authenticate instantly without wallet signing.
Quick Start
Using the MCP server? Run gdex_connect once and pass the returned accountRef to every trading tool (buy_token, open_perp_position, usdc_buy, ...) instead of keys.
Shared API Keys (pre-configured for all agents):
- Primary:
9b4e1c73-6a2f-4d88-b5c9-3e7a2f1d6c54 - Secondary:
2c8f0a91-5d34-4e7b-9a62-f1c3d8e4b705
Supported Chains
| Chain | ChainId | DEXes | Perps | Bridge | |
|---|---|---|---|---|---|
| Ethereum | 1 | Uniswap v2/v3, Odos | — | Yes | |
| Optimism | 10 | Uniswap v3, Odos | — | Yes | |
| BSC | 56 | PancakeSwap, Odos | — | Yes | |
| Sonic | 146 | — | — | Yes | |
| Fraxtal | 252 | Uniswap v3 | — | Yes | |
| Robinhood Chain | 4663 | Uniswap v2, KyberSwap | — | No | |
| Nibiru | 6900 | — | — | Yes | |
| Base | 8453 | Uniswap v3, Odos, Arcadia | — | Yes | |
| Arbitrum | 42161 | Uniswap v3, Odos | — | Yes | |
| Berachain | 80094 | — | — | Yes | |
| Solana | 622112261 / 'solana' | Raydium, Raydium v2, Orca | — | Yes | |
| Sui | 1313131213 / 'sui' | Cetus, Bluefin | — | Yes | |
| HyperLiquid | — | — | Native perp engine | — |
Chain IDs for managed-custody: 900 = Solana, 101 = Sui, or standard EVM chain IDs.
Available Skills
| Category | Skill | Description | |
|---|---|---|---|
| Getting Started | gdex-onboarding | You are here — Overview, architecture, quickstart | |
| Auth | gdex-authentication | Managed-custody auth, encryption, session key flow | |
| Trading | gdex-spot-trading | Buy/sell tokens on any supported chain | |
gdex-perp-trading | HyperLiquid perpetual futures — positions, orders, leverage | ||
gdex-perp-funding | Deposit/withdraw USDC to/from HyperLiquid | ||
gdex-limit-orders | Create, cancel, and list limit orders | ||
| Data | gdex-portfolio | Cross-chain portfolio, balances, trade history | |
gdex-token-discovery | Token details, trending tokens, OHLCV charts (no auth) | ||
| Platform | gdex-copy-trading | Copy trade wallets, create/manage configs, tx history, DEXes (Solana writes only) | |
gdex-perp-copy-trading | HL perp copy trading — top traders, create/manage configs, market data | ||
gdex-bridge | Cross-chain bridging with quotes | ||
gdex-usdc-wallet | Unified USDC wallet — one USDC balance across chains, auto-bridge funding | ||
gdex-wallet-setup | Generate EVM wallets, session keys, get wallet info | ||
| Frontend | gdex-ui-install-setup | React/Next.js project setup, SDK context providers | |
gdex-ui-trading-components | React component patterns for trading UIs | ||
gdex-ui-portfolio-dashboard | Portfolio dashboard components | ||
gdex-ui-wallet-connection | Wallet connection UI and auth flows | ||
gdex-ui-theming | CSS theming — dark/light mode, trading colors | ||
gdex-ui-page-layouts | Full page compositions for trading apps | ||
| Developer Tools | gdex-sdk-debugging | Troubleshoot errors, chain quirks, common pitfalls |
Recommended Next Steps
If you want to trade tokens (spot):
- Load gdex-authentication for auth setup
- Load gdex-spot-trading for buy/sell operations
If you want perpetual futures:
- Load gdex-authentication for auth setup
- Load gdex-perp-funding to deposit USDC to HyperLiquid
- Load gdex-perp-trading for positions and orders
If you just need market data (no auth):
- Load gdex-token-discovery — works immediately, no authentication needed
If the user has no wallet:
- Load gdex-wallet-setup to generate an EVM control wallet
- Load gdex-authentication to sign in via managed custody
If you want to copy successful traders:
- Load gdex-authentication for auth setup
- Load gdex-copy-trading for tracking wallets and settings
If you want to bridge assets cross-chain:
- Load gdex-authentication for auth setup
- Load gdex-bridge for bridging operations
- For USDC, load gdex-usdc-wallet: it trades and bridges USDC across chains as one balance
If you want to build a trading frontend:
- Load gdex-ui-install-setup for React/Next.js project setup
- Load gdex-ui-trading-components for order forms and position tables
- Load gdex-ui-theming for dark/light mode and trading colors
- Load gdex-ui-page-layouts for full page compositions
If you're debugging an issue:
- Load gdex-sdk-debugging for error codes, chain quirks, and common pitfalls
Key Links
| Resource | URL | |
|---|---|---|
| SDK (npm) | https://www.npmjs.com/package/@gemachdao/gdex-skill | |
| Repository | https://github.com/GemachDAO/gdex-skill | |
| Trading Dashboard | https://gdex.pro | |
| Backend API | https://trade-api.gemach.io/v1 |
Installation
MCP Server
For AI clients that support Model Context Protocol, the GDEX MCP server exposes 157 tools covering the full SDK surface — spot and perp trading, HyperLiquid funding, limit orders, copy trading, bridging, portfolio and token data, transfers/social, and Hyperliquid HIP-4 outcome markets (e.g. buy_token, open_perp_position, place_perp_order, hl_create_outcome_order, hl_swap_collateral, get_account_state, estimate_bridge).
Auto-configure (one command, no npm account)
This writes the MCP config for your agent (e.g. .mcp.json) wired to launch the server straight from GitHub with the shared API key — no npm publish required:
The skills.sh install configures skills, not MCP — run the command above to addthe MCP server. The skills also work via the SDK without MCP. The first launchbuilds the package from source (cached afterward).
Autonomous Agent Quickstart
If you're an AI agent operating autonomously (no human to ask), here's the minimum viable flow:
1. Initialize
2. Research Before Trading
3. Full Managed-Custody Setup (for actual trading)
4. Key Rules for Autonomous Operation
- Always use control wallet address (the one that signed in) for
userId/walletAddressin API calls - Never use managed wallet address in API calls (except
getHlUserStats()) - Amounts in raw units for managed trades (lamports for Solana, wei for EVM)
- Check `dexId` before buying on Solana — skip Meteora tokens
- Generate fresh nonce for every operation
- Portfolio/balances use raw client — high-level methods send wrong params
- If `hlCloseAll` fails, use reduce-only order instead
Related Skills
- gdex-authentication — Managed-custody auth flow and encryption details
- gdex-spot-trading — Buy/sell tokens on any chain
- gdex-perp-trading — HyperLiquid perpetual futures
- gdex-token-discovery — Token info without authentication
- gdex-wallet-setup — Wallet generation for new users
- gdex-ui-install-setup — Frontend project setup with React/Next.js
- gdex-sdk-debugging — Error troubleshooting and debugging guide
Live-Tested Operational Playbook
_Consolidated reference (migrated from the umbrella skill). Critical notes and an autonomous-agent playbook validated against the live backend._
Critical Notes (Live-Tested)
walletAddress = CONTROL address, NOT managed address. All HL write operations (hlCreateOrder,hlCloseAll,perpDeposit, etc.) requirewalletAddressset to the control wallet address used during sign-in — NOT the managed-custody address returned by/v1/user. The backend verifies the session key signature against the sign-inuserId. Passing the managed address causes400 Unauthorized (code 103).
`hlCloseAll` / `/v1/hl/close_all_positions` is unreliable. It frequently returnsTIMEOUTor JSON parse errors. Close per coin withclosePerpPosition(MCP:close_perp_position), which closes the live position at market (reduce-only).
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gdex-onboarding/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
contextCustom context provider definitions
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gemachdao/gdex-skill/gdex-onboarding)