okx-wallet-portfolio
Installation
SKILL.md
Onchain OS Portfolio
4 commands for supported chains, wallet total value, all token balances, and specific token balances.
Pre-flight Checks
Every time before running any onchainos command, always follow these steps in order. Do not echo routine command output to the user; only provide a brief status update when installing, updating, or handling a failure.
- Resolve latest stable version: Fetch the latest stable release tag from the GitHub API:
Extract thecurl -sSL "https://api.github.com/repos/okx/onchainos-skills/releases/latest"tag_namefield (e.g.,v1.0.5) intoLATEST_TAG. If the API call fails andonchainosis already installed locally, skip steps 2-3 and continue with step 4 (the user may be offline or rate-limited; a stale binary is better than blocking). Ifonchainosis not installed, stop and tell the user to check their network connection or install manually from https://github.com/okx/onchainos-skills.