본문으로 건너뛰기
Skillpedia
기타7.0k · #13663

okx-defi

하는 일

이 스킬은 에이전트가 onchainos defi 명령으로 DeFi 수익 상품을 검색하고 예치, 출금, 보상 관리를 하게 합니다. 특정 프로토콜에 묶이지 않고 DeFi를 한곳에서 이용하려는 암호화폐 사용자를 위한 스킬입니다.

사용하는 경우

  • ✓특정 토큰의 수익률이 가장 높은 DeFi 상품을 찾고 싶을 때.
  • ✓특정 프로토콜을 지정하지 않고 예치, 스테이킹, 출금, 보상 청구를 하고 싶을 때.
  • ✓DeFi 보유 자산과 포지션을 전체적으로 보고 싶을 때.

스킬 링크

https://github.com/internet-court/internet-court-skill/blob/main/vendored/okx/okx-defi/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/internet-court/internet-court-skill/blob/main/vendored/okx/okx-defi/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 USDC에 가장 높은 수익률을 내는 DeFi 상품을 찾고, 제 현재 DeFi 포지션도 보여 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 통합된 상품 목록을 검색하고, APY와 허용 토큰 같은 세부 정보를 읽은 뒤, defi 명령으로 예치나 출금을 실행합니다. 또한 여러분의 포지션과 세부 내용을 보여 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

OKX DeFi (experimental merge of okx-defi-invest + okx-defi-portfolio)

Multi-chain, OKX-aggregated DeFi in two capabilities behind one skill. Both wrap the same onchainos defi CLI command group.

Pre-flight Checks

Read ../okx-agentic-wallet/_shared/preflight.md. If that file does not exist, read _shared/preflight.md instead.

Intent Routing

User Intent Reference
Discover / search DeFi products, find best APY invest.md
Product detail (APY, TVL, accepted tokens) invest.md
Deposit / stake / provide liquidity invest.md
Withdraw / redeem a position (full or partial) invest.md
Claim rewards (platform / investment / V3 fee / bonus / unlocked principal) invest.md
APY history, TVL history, V3 depth / price charts invest.md
View DeFi positions / holdings overview (持仓) portfolio.md
Per-protocol position detail (持仓详情) portfolio.md
Exact parameters / return schemas — invest & charts commands invest-cli-reference.md
Exact parameters / return schemas — positions commands portfolio-cli-reference.md
Errors / failed deposits / expired calldata invest-troubleshooting.md
Errors / empty positions / address-format issues portfolio-troubleshooting.md

Typical flow spans both: view positions (Portfolio) → redeem or claim (Invest). Read both reference files when the request chains them.

Skill Routing

  • For DApp-named investing/lending/staking/positions ("on Aave", "my Hyperliquid balance") → use okx-dapp-discovery
  • For token price/chart or token search by name/contract → use okx-dex-market
  • For DEX spot swap execution → use okx-agentic-wallet
  • For wallet token balances → use okx-agentic-wallet
  • For broadcasting signed transactions → use okx-agentic-wallet
  • For Agentic Wallet login, balance, contract-call → use okx-agentic-wallet

Chain Support

CLI resolves chain names automatically (e.g. ethereum → 1, bsc → 56, solana → 501). Full alias table: references/portfolio.md §Chain Support.

Step 0: Address Resolution (shared by both capabilities)

When the user does NOT provide a wallet address, resolve it automatically from the Agentic Wallet before running any defi command:

1. onchainos wallet status          → check if logged in, get active account
2. onchainos wallet addresses       → get addresses grouped by chain category:
                                       - XLayer addresses
                                       - EVM addresses (Ethereum, BSC, Polygon, etc.)
                                       - Solana addresses
3. Match address to target chain:
   - EVM chains → use EVM address
   - Solana     → use Solana address
   - XLayer     → use XLayer address

Rules:

  • If the user provides an explicit address, use it directly — skip this step
  • If wallet is not logged in, ask the user to log in first (→ okx-agentic-wallet) or provide an address manually
  • If the user says "check all accounts" or "all wallets", use wallet balance --all to get all account IDs, then wallet switch <id> + wallet addresses for each account
  • Always confirm the resolved address with the user before proceeding if the account has multiple addresses of the same type

Address-Chain Compatibility (shared — CRITICAL)

The --address and chain parameters must be compatible. EVM addresses (0x…) can only query EVM chains; Solana addresses (base58) can only query solana. Never mix them — the API will return error 84019 (Address format error).

  • 0x… address → only pass EVM chains: ethereum,bsc,polygon,arbitrum,base,xlayer,avalanche,optimism,fantom,linea,scroll,zksync
  • base58 address → only pass solana
  • Sui address → only pass sui; Tron address (T…) → only pass tron; TON address → only pass ton
  • If the user wants positions across both EVM and Solana, make two separate calls with the respective addresses

Global Notes

  • The wallet address parameter for ALL defi commands is --address
  • defi positions uses --chains (plural, comma-separated); defi position-detail uses --chain (singular)
  • For CLI parameter details, se
자주 묻는 질문

특정 프로토콜 이름을 말하면 어떻게 하나요?

스킬은 Aave 같은 이름이 있는 프로토콜은 대신 DApp 탐색 스킬로 보내라고 말합니다.

과거 수익률 기록도 보여 주나요?

네. APY 기록, TVL 기록, 가격 차트를 다룹니다.

오류와 실패한 예치는 어디서 설명하나요?

스킬에는 오류와 실패한 예치를 설명하는 문제 해결 참고 자료가 있습니다.

상세 정보

작성자의 원본 설명

OKX-aggregated DeFi (no specific DApp named) — product discovery, deposit/withdraw/claim execution, AND positions viewing. **If the user names ANY third-party protocol/DApp (Aave, Lido, PancakeSwap, Uniswap, Curve, Compound, Morpho, Pendle, Kamino, Raydium, Hyperliquid, Polymarket, …), route to okx-dapp-discovery — NOT here, even for 'show my Aave positions'.** INVEST triggers: 'invest in DeFi', 'earn yield', 'find best APY', 'deposit/stake for yield', 'search DeFi products', 'redeem/withdraw position', 'claim DeFi rewards', 'borrow against asset', 'repay loan', 'add/remove CLMM liquidity', 'A

repo: internet-court/internet-court-skill

인기도

GitHub 스타
7.0k
순위
#13663
라이선스
—
업데이트
2026. 10. 26.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬