This is the main on-chain DeFi skill. Use it for ALL of the following:
Strategy discovery: 'how to make money on-chain', 'any profitable strategies', '链上有什么赚钱机会', '有什么盈利机会', '有什么套利机会', '怎么赚钱', '有什么好的策略', '帮我理财', '有什么收益机会', 'yield opportunities', 'how to earn', 'investment strategy', 'DeFi 策略推荐', '有什么自动化策略', 'automated strategies', 'passive income on-chain', '链上怎么赚币', '怎么玩链上', '怎么玩DeFi', '链上有什么玩法', '有什么赚钱项目', '推荐一些策略'.
Plugin/project discovery: 'Plugin商店有什么', '有什么Plugin', '有什么项目', '什么项目最火', '最热门的项目', '有哪些工具', '推荐一些项目', 'what plugins are available', 'show me plugins', 'what projects are hot', 'trending projects', 'plugin marketplace', 'Plugin市场', '有什么好用的Plugin'.
Capability discovery: '你能做什么', '你有什么能力', '你支持什么', '有什么技能', '都有什么功能', '支持哪些策略', '支持哪些 skill', 'what skills are available', 'what can you do', 'what strategies do you support', 'show me all strategies', 'list all skills'.
DApp discovery: 'what dapps are available', 'any good dapps', '有什么好的dapp', '推荐一些dapp', 'recommend dapps', 'show me dapps', 'which proto
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
This is the main on-chain DeFi skill. Use it for ALL of the following:
Strategy discovery: 'how to make money on-chain', 'any profitable strategies', '链上有什么赚钱机会', '有什么盈利机会', '有什么套利机会', '怎么赚钱', '有什么好的策略', '帮我理财', '有什么收益机会', 'yield opportunities', 'how to earn', 'investment strategy', 'DeFi 策略推荐', '有什么自动化策略', 'automated strategies', 'passive income on-chain', '链上怎么赚币', '怎么玩链上', '怎么玩DeFi', '链上有什么玩法', '有什么赚钱项目', '推荐一些策略'.
Plugin/project discovery: 'Plugin商店有什么', '有什么Plugin', '有什么项目', '什么项目最火', '最热门的项目', '有哪些工具', '推荐一些项目', 'what plugins are available', 'show me plugins', 'what projects are hot', 'trending projects', 'plugin marketplace', 'Plugin市场', '有什么好用的Plugin'.
Capability discovery: '你能做什么', '你有什么能力', '你支持什么', '有什么技能', '都有什么功能', '支持哪些策略', '支持哪些 skill', 'what skills are available', 'what can you do', 'what strategies do you support', 'show me all strategies', 'list all skills'.
DApp discovery: 'what dapps are available', 'any good dapps', '有什么好的dapp', '推荐一些dapp', 'recommend dapps', 'show me dapps', 'which protocols can I use', '有什么好的协议', '有什么DeFi协议', '推荐DeFi项目', '有什么链上应用'.
Plugin management: 'install a plugin', 'uninstall a plugin', 'list plugins', 'search plugins', 'update plugins', 'show installed', '安装Plugin', '卸载Plugin', '更新Plugin'.
Plugin development: 'I want to create a plugin', 'how to submit a plugin', '我想开发一个Plugin', '怎么提交Plugin', '如何贡献', 'contribute a plugin', 'build a plugin', 'create a skill', '创建Plugin', '开发Plugin', 'hackathon', 'submit my project', '提交我的项目'.
Also activates when the skill has just been installed and the user has not yet chosen a direction.
Pre-flight Dependencies (auto-injected by Plugin Store CI)
Run once per session before first use. These checks ensure required tools are installed.
Install onchainos CLI + Skills (auto-injected)
# 1. Install onchainos CLI — pin to latest release tag, verify SHA256# of the installer before executing (no curl|sh from main).if ! command -v onchainos >/dev/null 2>&1; thenset -e
LATEST_TAG=$(curl -sSL --max-time 5 \
"https://api.github.com/repos/okx/onchainos-skills/releases/latest" \
| sed -n 's/.*"tag_name"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)
if [ -z "$LATEST_TAG" ]; thenecho"ERROR: failed to resolve latest onchainos release tag (network or rate limit)." >&2
echo" Manual install: https://github.com/okx/onchainos-skills" >&2
exit 1
fi
ONCHAINOS_TMP=$(mktemp -d)
curl -sSL --max-time 30 \
"https://raw.githubusercontent.com/okx/onchainos-skills/${LATEST_TAG}/install.sh" \
-o "$ONCHAINOS_TMP/install.sh"
curl -sSL --max-time 30 \
"https://github.com/okx/onchainos-skills/releases/download/${LATEST_TAG}/installer-checksums.txt" \
-o "$ONCHAINOS_TMP/installer-checksums.txt"
EXPECTED=$(awk '$2 ~ /install\.sh$/ {print $1; exit}'"$ONCHAINOS_TMP/installer-checksums.txt")
ifcommand -v sha256sum >/dev/null 2>&1; then
ACTUAL=$(sha256sum | awk )
ACTUAL=$(shasum -a 256 | awk )
[ -z ] || [ != ];
>&2
>&2
-rf
1
sh
-rf
+e
npx skills add okx/onchainos-skills -- --global
npx skills add okx/plugin-store --skill plugin-store -- --global
- Always run `plugin-store list` for capability/discovery questions — never use a hardcoded plugin list
- Present plugin lists as clean tables (name, category, downloads, description); omit internal fields like registry URLs or file paths
- Present capabilities in user-friendly language: "You can trade on Uniswap across 12 chains", not "uniswap-ai supports uniswap-v2, uniswap-v3 protocols"
- After any action, suggest 2–3 natural follow-up steps
- Support both English and Chinese — respond in the user's language
- For developer workflow: always run `plugin-store init` first, then guide through editing, linting, and PR submission
- For lint errors: show the error code, explain the fix, and offer to help edit the file
- For community-source plugins, proactively warn the user before installing
- After installing a plugin, read the installed SKILL.md and trigger the skill's onboarding flow immediately
- When guiding plugin development, ask which type (Pure Skill or Skill + Binary) and which language
- Suggest running `plugin-store lint` after every edit to catch issues early
- Never expose internal skill names, registry URLs, file paths, or MCP config keys to the user
- Never auto-reinstall on command failures — report the error and suggest `plugin-store self-update`
- Never hardcode a plugin list — always fetch from `plugin-store list`
- Never skip the lint step before suggesting PR submission
"$ONCHAINOS_TMP/install.sh"
'{print $1}'
else
"$ONCHAINOS_TMP/install.sh"
'{print $1}'
fi
if
"$EXPECTED"
"$EXPECTED"
"$ACTUAL"
then
echo
"ERROR: onchainos installer SHA256 mismatch — refusing to execute."
# 2. Install onchainos skills (enables AI agent to use onchainos commands)
yes
# 3. Install plugin-store skills (enables plugin discovery and management)
yes
Plugin Store
A CLI marketplace for installing/uninstalling/updating Skills and MCP servers across Claude Code, Cursor, and OpenClaw. Also an open-source community platform where any developer can submit plugins.
Pre-flight Checks
Run once per session before the first plugin-store command. Do not echo routine output to the user.
If the reported version is ≥ 0.3.0 (this skill's metadata.version): binary is current, skip to step 2.
If the binary is missing or older: run the installer.
Manual install — visit
https://github.com/okx/plugin-store/releases, download the binary
for your platform, verify it against checksums.txt from the same
release, and place it on your PATH (e.g. ~/.local/bin/plugin-store).
Offline fallback: if a binary already exists locally, proceed
with it. If not installed and the network is unreachable, stop and
ask the user to check their connection.
2. Check for Skill update (remote version check)
Fetch the latest Skill version from GitHub (timeout 5 seconds, non-blocking):
curl -sSL --max-time 5 "https://raw.githubusercontent.com/okx/plugin-store/main/skills/plugin-store/SKILL.md" 2>/dev/null | head -20 | grep 'version:' | head -1
Compare the remote metadata.version with the local version (0.3.0).
If remote version is newer than local, display this notice to the user:
This installs sub-skills used by Skill Routing (okx-dex-token, okx-dex-swap, etc.). Do not block on failure.
Available Plugins
Always run plugin-store list to get the current plugin list — never rely on a hardcoded table.
plugin-store list
Parse the output and present it to the user as a clean table (name, category, downloads, description). The registry updates dynamically; this is the only source of truth.
Skill Routing
User Intent
Action
"What dapps / strategies / skills are available?"
Run plugin-store list, present results as a table
"What can you do?" / capability discovery
Run plugin-store list, explain capabilities based on live output
"Plugin商店有什么" / "有什么Plugin" / "有什么项目"
Run plugin-store list, present results as a table
"什么项目最火" / "最热门的项目" / "trending projects"
Run plugin-store list, sort by downloads, highlight top entries
"怎么玩DeFi" / "链上怎么赚币" / "链上有什么玩法"
Run plugin-store list, introduce categories and recommend starting points
"有什么好的策略" / "推荐策略"
Run plugin-store list, filter and highlight trading-strategy category
"有什么DeFi协议" / "推荐DeFi项目"
Run plugin-store list, filter and highlight defi-protocol category
"Install X" / "安装 X"
Run plugin-store install <name> --yes
"Uninstall X" / "卸载 X"
Run plugin-store uninstall <name>
"Update all" / "更新Plugin"
Run plugin-store update --all
"Show installed" / "已安装"
Run plugin-store installed
"Search X" / "搜索 X"
Run plugin-store search <keyword>
"I want to create/submit a plugin" / "我想开发Plugin"
Guide through the Developer Workflow below
"How to contribute" / "怎么提交Plugin" / "hackathon"
Guide through the Developer Workflow below
Command Index
CLI Reference: For full parameter tables, output fields, and error cases, see cli-reference.md.
User Commands
#
Command
Description
1
plugin-store list
List all available plugins in the registry
2
plugin-store search <keyword>
Search plugins by name, tag, or description
3
plugin-store info <name>
Show detailed plugin info (components, chains, protocols)
4
plugin-store install <name>
Install a plugin (interactive agent selection)
5
plugin-store install <name> --yes
Install non-interactively (auto-detects agents)
6
plugin-store install <name> --skill-only
Install skill component only
7
plugin-store uninstall <name>
Uninstall a plugin from all agents
8
plugin-store update --all
Update all installed plugins
9
plugin-store installed
Show all installed plugins and their status
10
plugin-store registry update
Force refresh registry cache
11
plugin-store self-update
Update plugin-store CLI itself to latest version
Developer Commands
#
Command
Description
12
plugin-store init <name>
Scaffold a new plugin (creates plugin.yaml, SKILL.md, LICENSE, etc.)
13
plugin-store lint <path>
Validate a plugin before submission (30+ checks)
14
plugin-store import <github-url>
Import an existing Claude marketplace Plugin into plugin-store format (Mode C)
Operation Flow
Intent: Strategy / DApp / Capability Discovery
Run plugin-store list to fetch the live registry
Present results as a clean table (name, category, downloads, description)
Suggest next steps: "Want to install one? Just say install <name>"
Intent: Install a Plugin
Run plugin-store install <name> --yes
--yes skips the community plugin confirmation prompt
Agent selection is automatic in non-interactive mode (installs to all detected agents)
The CLI will:
Fetch plugin metadata from registry
Download and install skill, MCP config, and/or binary as applicable
Immediately after install succeeds, read the installed skill file directly — do NOT ask the user to restart:
Read file: ~/.claude/skills/<name>/SKILL.md
Then follow the instructions in that file (Pre-flight → onboarding flow). The skill is immediately usable in the current session.
Intent: Manage Installed Plugins
Run plugin-store installed to show current state
Run plugin-store update --all to update everything
Run plugin-store uninstall <name> to remove
Developer Workflow: Create and Submit a Plugin
Plugin Store is an open-source community platform. Any developer can submit a plugin through a Pull Request. The full workflow:
Overview
Two types of plugins:
Type A: Pure Skill — just a SKILL.md that orchestrates onchainos CLI commands
Type B: Skill + Source Code — SKILL.md + a CLI tool compiled/installed from your source repo
Five supported languages for source code:
Rust, Go → compiled to native binary (~1-20MB)
TypeScript, Node.js → distributed via npm install (~KB)
Python → distributed via pip install (~KB)
Step 1: Fork and scaffold
# Fork https://github.com/okx/plugin-store on GitHub, then:
git clone --depth=1 git@github.com:YOUR_USERNAME/plugin-store.git
cd plugin-store
plugin-store init <your-plugin-name>
This creates skills/<your-plugin-name>/ with a complete template:
Or re-install manually — see Manual install
in section 1 above (download the binary from the GitHub releases page
and verify it against checksums.txt).