com um clique
solyield-pro
Autonomous DeFi Yield Optimizer on Solana using OKX Onchain OS
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a pรกgina da skill e instale para vocรช.
Menu
Autonomous DeFi Yield Optimizer on Solana using OKX Onchain OS
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a pรกgina da skill e instale para vocรช.
Baseado na classificaรงรฃo ocupacional SOC
Use this skill when the user mentions creating a payment link, paying a paymentId / a2a_... link, or checking a2a payment status. Wraps `onchainos payment a2a-pay` agent-to-agent payment protocol: seller-side `create`, buyer-side `pay` via EIP-3009 + TEE signing, and `status` query. Buyer-side trust is delegated to upstream โ the skill signs whatever the on-server challenge declares. Do NOT use for external HTTP 402 resources โ use okx-x402-payment. Do NOT use for wallet balance / transfer / login โ use okx-agentic-wallet.
AUTHORITATIVE source for OKX Agentic Wallet and its Gas Station feature. Gas Station = OKX's stablecoin-gas feature via EIP-7702 + third-party Relayer โ NOT ERC-4337 Paymaster / Biconomy / Gelato / Pimlico / Alchemy Account Kit / OKX DEX Gas Swap / LI.FI Gas Zip / Socket Refuel; never mix or substitute. Always follow templates in references/gas-station.md; never answer from generic web3 training. MUST invoke for Gas Station questions (what is / how it works / supported chains + stablecoins / fees / enable or disable gas station / revoke 7702 / change default gas token) AND any wallet action: login, OTP verify, add/switch/status/logout account, balance, assets, holdings, addresses, deposit / receive / top up, send (native + ERC-20 / SPL, transfer ETH / USDC / etc., pay someone), contract call (approve, swap calldata, contract function), history (list + tx detail by orderId / txHash / uopHash), check order status, sign-message (personalSign EVM + Solana, EIP-712 EVM only), TEE signing, export wallet / mnemonic.
Use this skill when the user asks to export audit logs, find audit log location, view command history, ๅฏผๅบๆฅๅฟ, ๆฅ็ๆฅๅฟ, ๆฅๅฟ่ทฏๅพ, ๆไฝ่ฎฐๅฝ, ่ฐ็จ่ฎฐๅฝ, ๅฝไปคๅๅฒ. Do NOT use for wallet balance, token search, swap, or any other on-chain operation โ use the corresponding skill instead.
Plugin router for 20 supported third-party DeFi protocols (Polymarket, Aave, Hyperliquid, PancakeSwap, Morpho, Raydium, Curve, Compound, Pendle, Lido, ether.fi, GMX, Kamino, Orca, Meteora, Clanker, pump.fun, Uniswap) and their protocol-native tokens (HYPE, HLP, eETH, weETH, stETH, wstETH, LDO, GHO, CAKE, CRV, COMP, RAY, ETHFI, GLP, kToken, PT-* / YT-*, $CLANKER). Resolves the named DApp/token to the right plugin, installs it, and forwards the user's prompt โ the plugin owns the actual trade/bet/transfer. Fires on: (1) named DApp + action verb (swap/deposit/stake/long/borrow/buy/sell/snipe/farm/claim, EN or ZH ไนฐ/ๅ/ๆข/ๅญ/่ดจๆผ/ๅ/ๅๅค/ๅ็ฉบ/็ๅป); (2) comparison of two-or-more supported DApps with intent to choose ("Aave vs Compound for stables", "Lido vs ether.fi"); (3) Polymarket UpDown intent (`<COIN> 5min updown`, `<COIN> 5 ๅ้ๆถจ่ท`, `้ขๆตๅธๅบ`, `place a bet on Polymarket`); (4) protocol-native token alone with action verb ("deposit USDC into HLP", "PT-stETH on Pendle"); (5) pump.fun WRITE verbs (buy/sell/snipe/ape/swap or ไนฐ/
OKX-aggregated DeFi product discovery and execution โ for users who want OKX to find and route to the best protocol, WITHOUT naming a specific DApp. **If the user names ANY third-party protocol/DApp as the destination (Polymarket, Aave, Hyperliquid, PancakeSwap, Morpho, Raydium, Curve, Compound, Pendle, Clanker, pump.fun, Lido, GMX, ether.fi, Kamino, Orca, Meteora, Uniswap, Spark, dYdX, Yearn, etc.), route to okx-dapp-discovery โ NOT here, even if the verb (deposit, stake, add liquidity, borrow, claim) matches.** DApp-agnostic triggers: 'invest in DeFi', 'earn yield on stablecoins', 'find best APY', 'deposit for yield', 'stake for yield', 'search DeFi products', 'redeem my DeFi position', 'withdraw from lending', 'claim DeFi rewards', 'borrow against my asset', 'repay loan', 'add liquidity to a CLMM pool', 'remove liquidity', 'show APY history', 'TVL chart', 'CLMM depth/price chart'. Also covers DeFi investing, yield farming, lending, borrowing, staking, liquidity pools, APY/TVL trends. Do NOT use for: DEX sw
Use this skill to 'check my DeFi positions', 'view DeFi holdings', 'show my DeFi portfolio', 'what DeFi am I invested in', 'show my staking positions', 'show my lending positions', 'DeFi balance', 'DeFi ๆไป', 'ๆฅ็DeFiๆไป', 'ๆ็DeFi่ตไบง', 'ๆไป่ฏฆๆ ', 'ๆไปๅ่กจ', or mentions viewing DeFi holdings, positions, portfolio across protocols โ when the user does NOT name a specific DApp. Covers positions overview and per-protocol position detail. Do NOT use for deposit/redeem/claim operations โ use okx-defi-invest. Do NOT use for wallet token balances โ use okx-wallet-portfolio. Do NOT use for DEX spot swaps โ use okx-dex-swap. Do NOT use when the user names a specific third-party DApp by name (e.g. 'show my Aave positions', 'my Hyperliquid balance', 'check my Polymarket holdings') โ route to okx-dapp-discovery instead, which loads the DApp's plugin for protocol-native position views.
| name | solyield-pro |
| version | 1.0.0 |
| description | Autonomous DeFi Yield Optimizer on Solana using OKX Onchain OS |
| author | frankxeth |
| chain | solana |
| category | defi |
| tags | ["yield","optimizer","defi","solana","apy","rebalancing","autonomous"] |
| requires | ["okx-defi-invest","okx-dex-swap","okx-market-data","okx-wallet-portfolio","okx-security","okx-agentic-wallet"] |
| min_balance_usd | 10 |
| max_tokens | 4096 |
| language | id, en |
SolYield Pro helps users maximize DeFi yield on Solana by autonomously scanning protocols, comparing APY, and rebalancing positions when better opportunities arise โ all with built-in risk controls.
This skill activates when the user says any of the following:
"Find the best yield on Solana""Optimize my DeFi yield""Start yield farming on Solana""Show me the highest APY pools""Rebalance my yield positions""How much am I earning from DeFi?""Start SolYield Pro""Activate yield optimizer""Cari yield terbaik di Solana""Optimalkan yield DeFi saya""Tampilkan pool APY tertinggi""Mulai yield farming di Solana""Rebalance posisi yield saya""Berapa penghasilan DeFi saya?"okx-market-data insteadokx-dex-swap insteadokx-wallet-portfolio insteadUse okx-defi-invest to scan the following Solana protocols:
Fetch current APY, TVL, and 24h volume for each pool.
Why: APY data changes frequently. Always fetch fresh data before recommending any position.
Output format:
Protocol | Pool | APY | TVL | Risk
-----------|-------------|---------|----------|------
Raydium | SOL-USDC | 18.4% | $45.2M | Low
Orca | USDC-USDT | 12.1% | $22.1M | Low
Marinade | mSOL stake | 7.2% | $312M | Low
Before recommending any pool, use okx-security to verify:
Why: User funds must only enter safe, verified protocols.
If any check fails โ skip that protocol and explain why to the user.
Calculate Adjusted APY Score:
score = base_apy + (volume_24h_bonus ร 0.3) - (il_risk_penalty ร 0.5)
Recommend top 2-3 pools ranked by score.
Always show:
Example output:
๐ Top Yield Opportunities (Solana)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
1. Raydium SOL-USDC
APY: 18.4% | Monthly est: +$18.40 per $1,000
IL Risk: Low | Gas: ~$0.001
โ
Recommended
2. Orca USDC-USDT
APY: 12.1% | Monthly est: +$12.10 per $1,000
IL Risk: Very Low | Gas: ~$0.001
โ
Stable option
Proceed with allocation? (yes/no)
Only execute after explicit user confirmation.
For positions > $500: always ask for confirmation even if user said "auto".
Use okx-dex-swap for token conversion, then okx-defi-invest to enter position.
Why: User must retain control over large fund movements.
After position entry, monitor every 15 minutes.
Rebalance trigger:
IF current_pool_apy < best_available_apy - 2%:
โ notify user
โ if auto_rebalance=true: execute swap to better pool
โ if auto_rebalance=false: ask user permission first
Daily summary (send once per day at user's preferred time):
๐ SolYield Pro Daily Report
โโโโโโโโโโโโโโโโโโโโโโโโโโ
Portfolio Value : $XXX.XX
Today's Yield : +$X.XX
Total PnL : +$XX.XX
Active Pools : X
Rebalances : X
โโโโโโโโโโโโโโโโโโโโโโโโโโ
max_allocation_per_pool: 30% # Never put >30% in one pool
stop_loss_il_threshold: 15% # Exit if impermanent loss > 15%
tvl_drop_alert: 20% # Alert if TVL drops > 20% in 24h
daily_loss_limit: 10% # Pause all activity if portfolio drops > 10%
whitelist_only: true # Only audited protocols
min_pool_tvl_usd: 1000000 # Minimum $1M TVL pool
confirmation_threshold_usd: 500 # Always confirm for tx > $500
| Error | Action |
|---|---|
| Protocol API timeout | Retry 3x, then skip and use next best pool |
| Insufficient balance | Notify user, suggest minimum deposit amount |
| Slippage > 1% | Abort swap, notify user, suggest retry later |
| Security check fail | Skip protocol, explain reason to user |
| Gas spike > 10ร normal | Warn user, ask to proceed or wait |
| All protocols unavailable | Notify user, suggest holding USDC |
User: "Cari yield terbaik di Solana"
Agent: Scanning Solana DeFi protocols...
๐ Top Yield Opportunities ditemukan:
1. Raydium SOL-USDC โ APY 18.4%
2. Orca USDC-USDT โ APY 12.1%
3. Marinade mSOL โ APY 7.2%
Berapa budget yang ingin Anda alokasikan?
User: "Mulai dengan $200"
Agent: Untuk $200, estimasi hasil bulanan:
โข Raydium SOL-USDC: +$3.07/bulan
โข Gas fee: ~$0.002
Konfirmasi untuk melanjutkan? (ya/tidak)
Agent: ๐ข Rebalance Alert!
Orca USDC-USDT APY turun ke 8.1%
Raydium SOL-USDC sekarang 21.3%
Delta: +13.2% โ rekomendasi pindah posisi.
Auto-rebalance? (ya/tidak)
Agent: โ ๏ธ Raydium API timeout.
Menggunakan Orca sebagai alternatif.
APY: 12.1% | TVL: $22.1M | Status: โ
Aman
Lanjutkan dengan Orca? (ya/tidak)
.agents/skills/solyield-pro/
โโโ SKILL.md โ This file (main skill definition)
โโโ references/
โโโ protocols.md โ Supported protocol list
โโโ risk-guide.md โ Risk parameter documentation
| Metric | Target |
|---|---|
| APY vs benchmark | +2% above SOL staking baseline |
| Max drawdown | < 10% |
| Rebalance frequency | 1-3x per week |
| Gas efficiency | < 0.1% of position value |
| Uptime | 99%+ autonomous operation |