Install
Clone https://github.com/to-nexus/skill-cross-dex-trade into a temporary directory and run the install.sh script inside it to install the skill-cross-dex-trade skill into my Claude Code environment. Tell me the result in one line when you're done.
- For personal testing, keep local signer config in the skill
.envbefore write commands. - For team, hosted-agent, or production funds, prefer Vault/KMS/HSM-backed signing.
- Set
MAX_TRADE_CROSSlocally to cap per-transaction size.
Heads-up: CROSS DEX runs on local agent runtimes only — see the Where it runs section for the supported list. Hosted chat environments cannot execute this skill.
Where it runs
Supported
Not supported
What you can do
List GameTokens with metadata, game, and price stats.
🟢 Read · no authShow token/game details, market stats, swaps, liquidity events, and candles.
🟢 Read · no authList AMM pairs and reserves.
🟢 Read · no authQuote buy, buy-exact, or sell without signing.
🟢 Read · no authShow CROSS and GameToken balances for the configured EOA.
🟡 Read · local signerSpend exact CROSS for a GameToken with slippage bounds.
🔴 Write · signs txBuy an exact GameToken amount with max CROSS input.
🔴 Write · signs txSell exact GameToken amount for CROSS with slippage bounds.
🔴 Write · signs txQuote token needed and expected LP tokens.
🟢 Read · no authAdd GameToken + CROSS liquidity with slippage bounds.
🔴 Write · signs txQuote CROSS needed and expected LP tokens from a token amount.
🟢 Read · no authAdd liquidity from a GameToken amount with slippage bounds.
🔴 Write · signs txQuote token + CROSS outputs for LP removal.
🟢 Read · no authRemove liquidity with LP tokens.
🔴 Write · signs txTry it · natural-language prompts
Copy any of these into your agent — they map 1-to-1 onto a skill command.
Command reference
| command | args | auth | mutation | description |
|---|---|---|---|---|
| tokens | [--query=TEXT] [--limit=N] | — | read | List GameTokens. |
| token-info | <symbol|all> [--history=N] [--candles=N] [--tick=1h] | — | read | Inspect token and game info. |
| pairs | — | — | read | List AMM pairs. |
| quote | <buy|sell|buy-exact> <symbol> <amount> | — | read | Quote a swap. |
| balance | — | PK | read | Wallet balances. |
| buy | <symbol> <crossSpend> [--slippage-bps=300] | PK | tx | Exact-input CROSS to token. |
| buy-exact | <symbol> <tokenAmount> [--slippage-bps=300] | PK | tx | Exact-output token buy. |
| sell | <symbol> <tokenAmount> [--slippage-bps=300] | PK | tx | Exact-input token to CROSS. |
| quote-deposit | <symbol> <crossAmount> [--slippage-bps=300] | — | read | Quote liquidity deposit. |
| deposit | <symbol> <crossAmount> [--slippage-bps=300] | PK | tx | Add token + CROSS liquidity. |
| quote-deposit-token | <symbol> <tokenAmount> [--slippage-bps=300] | — | read | Quote token-based deposit. |
| deposit-token | <symbol> <tokenAmount> [--slippage-bps=300] | PK | tx | Add liquidity from token amount. |
| quote-withdraw | <symbol> <lpAmount|all> [--slippage-bps=300] | — | read | Quote liquidity withdrawal. |
| withdraw | <symbol> <lpAmount|all> [--slippage-bps=300] | PK | tx | Remove liquidity. |
Safety & credentials
This skill signs on-chain transactions
- Required credential —
PRIVATE_KEYin local.envor a hosted-agent secret manager. - Where it lives — your local machine, or the secret manager of your hosted agent.
- Guard env vars —
MAX_TRADE_CROSScaps buy spend, buy-exact max input, sell quoted output, deposit CROSS input, and withdraw quoted CROSS output. - Slippage bound — default
--slippage-bps=300; values above 5000 bps are refused. - Hosted agents (Claude.ai, etc.) — never paste your main-wallet PK. Use a disposable hot wallet.
Troubleshooting
›Can I place a limit order?
quote and slippage bounds instead.›What does buy-exact do?
›What are deposit and withdraw?
deposit adds GameToken + CROSS liquidity to the AMM pool. withdraw removes liquidity by burning LP tokens.›How do I verify the migration?
npm test in the skill folder. It checks API reads, quote modes, deposit/withdraw quote math, and router calldata selectors without signing.›PRIVATE_KEY missing?
tokens, pairs, quote) work without a key. Write commands and balance require it.