Loading...
Loading...
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: '插件商店有什么', '有什么插件', '有什么项目', '什么项目最火', '最热门的项目', '有哪些工具', '推荐一些项目', 'what plugins are available', 'show me plugins', 'what projects are hot', 'trending projects', 'plugin marketplace', '插件市场', '有什么好用的插件'. 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 development: 'I want to create a plugin', 'how to submit a plugin', '我想开发一个插件', '怎么提交插件', '如何贡献', 'contribute a plugin', 'build a plugin', 'create a skill', '创建插件', '开发插件', 'hackathon', 'submit my project', '提交我的项目'. Also activates when the skill has just been installed and the user has not yet chosen a direction.
npx skill4agent add migokg/plugin-store plugin-storeReadfor common dependencies (onchainos CLI, skills, install report)._shared/preflight.md
plugin-store listplugin-store list| User Intent | Action |
|---|---|
| "What dapps / strategies / skills are available?" | Run |
| "What can you do?" / capability discovery | Run |
| "插件商店有什么" / "有什么插件" / "有什么项目" | Run |
| "什么项目最火" / "最热门的项目" / "trending projects" | Run |
| "怎么玩DeFi" / "链上怎么赚币" / "链上有什么玩法" | Run |
| "有什么好的策略" / "推荐策略" | Run |
| "有什么DeFi协议" / "推荐DeFi项目" | Run |
| "Install X" / "安装 X" | Run |
| "Uninstall X" / "卸载 X" | Run |
| "Update all" / "更新插件" | Run |
| "Show installed" / "已安装" | Run |
| "Search X" / "搜索 X" | Run |
| "I want to create/submit a plugin" / "我想开发插件" | Guide through the Developer Workflow below |
| "How to contribute" / "怎么提交插件" / "hackathon" | Guide through the Developer Workflow below |
CLI Reference: For full parameter tables, output fields, and error cases, see cli-reference.md.
| # | Command | Description |
|---|---|---|
| 1 | | List all available plugins in the registry |
| 2 | | Search plugins by name, tag, or description |
| 3 | | Show detailed plugin info (components, chains, protocols) |
| 4 | | Install a plugin (interactive agent selection) |
| 5 | | Install non-interactively (auto-detects agents) |
| 6 | | Install skill component only |
| 7 | | Uninstall a plugin from all agents |
| 8 | | Update all installed plugins |
| 9 | | Show all installed plugins and their status |
| 10 | | Force refresh registry cache |
| 11 | | Update plugin-store CLI itself to latest version |
| # | Command | Description |
|---|---|---|
| 12 | | Scaffold a new plugin (creates plugin.yaml, SKILL.md, LICENSE, etc.) |
| 13 | | Validate a plugin before submission (30+ checks) |
plugin-store listinstall <name>plugin-store install <name> --yes--yesRead file: ~/.claude/skills/<name>/SKILL.mdplugin-store installedplugin-store update --allplugin-store uninstall <name>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)# Fork https://github.com/okx/plugin-store-community on GitHub, then:
git clone --depth=1 git@github.com:YOUR_USERNAME/plugin-store-community.git
cd plugin-store-community
plugin-store init <your-plugin-name>submissions/<your-plugin-name>/submissions/<your-plugin-name>/
├── plugin.yaml # Plugin manifest (fill in your details)
├── skills/<name>/
│ └── SKILL.md # Skill definition (built-in onchainos demo)
│ └── references/
├── LICENSE
├── CHANGELOG.md
└── README.mdschema_version: 1
name: <your-plugin-name> # lowercase + hyphens, 2-40 chars
version: "1.0.0"
description: "What your plugin does"
author:
name: "Your Name"
github: "your-github-username" # must match PR submitter
license: MIT
category: utility # trading-strategy | defi-protocol | analytics | utility | security | wallet | nft
tags: [keyword1, keyword2]
components:
skill:
dir: skills/<your-plugin-name>
api_calls: [] # external API domains your plugin callsbuild# ... same as above, plus:
build:
lang: rust # rust | go | typescript | node | python
source_repo: "your-org/your-tool" # your GitHub repo with source code
source_commit: "a1b2c3d4e5f6..." # full 40-char commit SHA (git rev-parse HEAD)
binary_name: "your-tool" # compiled output name
# main: "src/index.js" # required for typescript/node/pythoncd your-source-repo
git push origin main
git rev-parse HEAD # copy this 40-char string into build.source_commitplugin-store lint ./submissions/<your-plugin-name>/git checkout -b submit/<your-plugin-name>
git add submissions/<your-plugin-name>/
git commit -m "[new-plugin] <your-plugin-name> v1.0.0"
git push origin submit/<your-plugin-name>okx/plugin-store-communityPhase 2: Structure check (~30s) — bot validates plugin.yaml + SKILL.md
Phase 3: AI code review (~2min) — Claude reads your code, writes a 9-section report
Phase 4: Build check (if binary) — compiles your source code on 3 platforms
Phase 7: After merge — auto-publishes to registry, users can install immediatelyplugin-store install <your-plugin-name>| Language | Key requirements |
|---|---|
| Rust | |
| Go | |
| TypeScript | |
| Node.js | |
| Python | |
| Error | Fix |
|---|---|
| E031 name format invalid | Use lowercase + hyphens only: |
| E052 missing SKILL.md | Put SKILL.md in the path specified by |
| E110/E111 binary needs build | Add |
| E122 source_repo format | Use |
| E123 commit SHA invalid | Must be full 40-char hex from |
| Agent | Detection | Skills Path | MCP Config |
|---|---|---|---|
| Claude Code | | | |
| Cursor | | | |
| OpenClaw | | | Same as skills |
| Source | Meaning | Behavior |
|---|---|---|
| Plugin Store official | Install directly |
| Published by the DApp project | Install directly |
| Community contribution | Show warning, require user confirmation |
| Error | Action |
|---|---|
| Network timeout during install | Retry once; if still failing, suggest manual install from https://github.com/okx/plugin-store |
| Try |
| Command returns non-zero exit | Report error verbatim; suggest |
| Registry cache stale / corrupt | Run |
| Show error codes and fixes; refer to the lint error table above |
plugin-store install plugin-store --agent claude-code --skill-onlycurl -sSL https://raw.githubusercontent.com/okx/plugin-store/main/skills/plugin-store/install.sh | sh