mirror of
https://github.com/GMGNAI/gmgn-skills.git
synced 2026-08-16 17:48:06 +00:00
initial import
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
# Installing gmgn-cli Skills for OpenCode
|
||||
|
||||
Enable GMGN skills in OpenCode via native skill discovery. Just clone and symlink.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Git
|
||||
- GMGN API Key from [gmgn.ai/settings/api](https://gmgn.ai/ai)
|
||||
|
||||
## Installation
|
||||
|
||||
1. **Clone the repository:**
|
||||
|
||||
```bash
|
||||
git clone https://github.com/gmgn-ai/gmgn-skills ~/.opencode/gmgn-cli
|
||||
```
|
||||
|
||||
2. **Register the plugin:**
|
||||
|
||||
```bash
|
||||
mkdir -p ~/.opencode/plugins
|
||||
ln -s ~/.opencode/gmgn-cli ~/.opencode/plugins/gmgn-cli
|
||||
```
|
||||
|
||||
3. **Link the skills:**
|
||||
|
||||
```bash
|
||||
mkdir -p ~/.agents/skills
|
||||
ln -s ~/.opencode/gmgn-cli/skills ~/.agents/skills/gmgn-cli
|
||||
```
|
||||
|
||||
4. **Configure credentials:**
|
||||
|
||||
```bash
|
||||
cp ~/.opencode/gmgn-cli/.env.example ~/.opencode/gmgn-cli/.env
|
||||
# Edit .env and set GMGN_API_KEY
|
||||
```
|
||||
|
||||
5. **Restart OpenCode** to discover the skills.
|
||||
|
||||
## Verify
|
||||
|
||||
After restarting, ask OpenCode: *"What GMGN skills are available?"* — it should list the four skills.
|
||||
|
||||
## Available Skills
|
||||
|
||||
| Skill | When to Use |
|
||||
|-------|-------------|
|
||||
| `gmgn-token` | Token info, security, pool, top holders, top traders |
|
||||
| `gmgn-market` | K-line / candlestick market data |
|
||||
| `gmgn-portfolio` | Wallet holdings, activity, trading stats, token balance |
|
||||
| `gmgn-swap` | Swap execution + order status query (requires private key) |
|
||||
|
||||
## Updating
|
||||
|
||||
```bash
|
||||
cd ~/.opencode/gmgn-cli && git pull
|
||||
```
|
||||
|
||||
## Uninstalling
|
||||
|
||||
```bash
|
||||
rm ~/.agents/skills/gmgn-cli
|
||||
rm ~/.opencode/plugins/gmgn-cli
|
||||
rm -rf ~/.opencode/gmgn-cli # optional
|
||||
```
|
||||
Reference in New Issue
Block a user