diff --git a/skills/gmgn-market/SKILL.md b/skills/gmgn-market/SKILL.md index 208f132..bfd4eaf 100644 --- a/skills/gmgn-market/SKILL.md +++ b/skills/gmgn-market/SKILL.md @@ -55,9 +55,24 @@ Use the `gmgn-cli` tool to query K-line data for a token, browse trending tokens ## Prerequisites -- `.env` file with `GMGN_API_KEY` set -- Run from the directory where your `.env` file is located, or set `GMGN_HOST` in your environment -- `gmgn-cli` installed globally: `npm install -g gmgn-cli` +- `gmgn-cli` installed globally — if missing, run: `npm install -g gmgn-cli` +- `GMGN_API_KEY` configured in `~/.config/gmgn/.env` + +**First-time setup** (if `GMGN_API_KEY` is not configured): + +1. Generate key pair and show the public key to the user: + ```bash + openssl genpkey -algorithm ed25519 -out /tmp/gmgn_private.pem 2>/dev/null && \ + openssl pkey -in /tmp/gmgn_private.pem -pubout 2>/dev/null + ``` + Tell the user: *"This is your Ed25519 public key. Go to **https://gmgn.ai/ai**, paste it into the API key creation form, then send me the API Key value shown on the page."* + +2. Wait for the user's API key, then configure: + ```bash + mkdir -p ~/.config/gmgn + echo 'GMGN_API_KEY=' > ~/.config/gmgn/.env + chmod 600 ~/.config/gmgn/.env + ``` ## `market kline` Parameters diff --git a/skills/gmgn-portfolio/SKILL.md b/skills/gmgn-portfolio/SKILL.md index 80656c2..8b0e918 100644 --- a/skills/gmgn-portfolio/SKILL.md +++ b/skills/gmgn-portfolio/SKILL.md @@ -46,9 +46,24 @@ Use the `gmgn-cli` tool to query wallet portfolio data based on the user's reque ## Prerequisites -- `.env` file with `GMGN_API_KEY` set -- Run from the directory where your `.env` file is located, or set `GMGN_HOST` in your environment -- `gmgn-cli` installed globally: `npm install -g gmgn-cli` +- `gmgn-cli` installed globally — if missing, run: `npm install -g gmgn-cli` +- `GMGN_API_KEY` configured in `~/.config/gmgn/.env` + +**First-time setup** (if `GMGN_API_KEY` is not configured): + +1. Generate key pair and show the public key to the user: + ```bash + openssl genpkey -algorithm ed25519 -out /tmp/gmgn_private.pem 2>/dev/null && \ + openssl pkey -in /tmp/gmgn_private.pem -pubout 2>/dev/null + ``` + Tell the user: *"This is your Ed25519 public key. Go to **https://gmgn.ai/ai**, paste it into the API key creation form, then send me the API Key value shown on the page."* + +2. Wait for the user's API key, then configure: + ```bash + mkdir -p ~/.config/gmgn + echo 'GMGN_API_KEY=' > ~/.config/gmgn/.env + chmod 600 ~/.config/gmgn/.env + ``` ## Usage Examples diff --git a/skills/gmgn-swap/SKILL.md b/skills/gmgn-swap/SKILL.md index 4ede05a..a105088 100644 --- a/skills/gmgn-swap/SKILL.md +++ b/skills/gmgn-swap/SKILL.md @@ -67,13 +67,26 @@ Currency tokens are the base/native assets of each chain. They are used to buy o ## Prerequisites -Both `GMGN_API_KEY` and `GMGN_PRIVATE_KEY` must be set in `.env`. The private key must correspond to the wallet bound to the API Key. +Both `GMGN_API_KEY` and `GMGN_PRIVATE_KEY` must be configured in `~/.config/gmgn/.env`. The private key must correspond to the wallet bound to the API Key. -`gmgn-cli` must be installed globally before use (one-time setup): +- `gmgn-cli` installed globally — if missing, run: `npm install -g gmgn-cli` -```bash -npm install -g gmgn-cli -``` +**First-time setup** (if credentials are not configured): + +1. Generate key pair and show the public key to the user: + ```bash + openssl genpkey -algorithm ed25519 -out /tmp/gmgn_private.pem 2>/dev/null && \ + openssl pkey -in /tmp/gmgn_private.pem -pubout 2>/dev/null + ``` + Tell the user: *"This is your Ed25519 public key. Go to **https://gmgn.ai/ai**, paste it into the API key creation form (enable swap capability), then send me the API Key value shown on the page."* + +2. Wait for the user's API key, then configure both credentials: + ```bash + mkdir -p ~/.config/gmgn + echo 'GMGN_API_KEY=' > ~/.config/gmgn/.env + echo 'GMGN_PRIVATE_KEY=""' >> ~/.config/gmgn/.env + chmod 600 ~/.config/gmgn/.env + ``` ### Credential Model diff --git a/skills/gmgn-token/SKILL.md b/skills/gmgn-token/SKILL.md index 472bf20..d899683 100644 --- a/skills/gmgn-token/SKILL.md +++ b/skills/gmgn-token/SKILL.md @@ -46,9 +46,24 @@ Use the `gmgn-cli` tool to query token information based on the user's request. ## Prerequisites -- `.env` file with `GMGN_API_KEY` set -- Run from the directory where your `.env` file is located, or set `GMGN_HOST` in your environment -- `gmgn-cli` installed globally: `npm install -g gmgn-cli` +- `gmgn-cli` installed globally — if missing, run: `npm install -g gmgn-cli` +- `GMGN_API_KEY` configured in `~/.config/gmgn/.env` + +**First-time setup** (if `GMGN_API_KEY` is not configured): + +1. Generate key pair and show the public key to the user: + ```bash + openssl genpkey -algorithm ed25519 -out /tmp/gmgn_private.pem 2>/dev/null && \ + openssl pkey -in /tmp/gmgn_private.pem -pubout 2>/dev/null + ``` + Tell the user: *"This is your Ed25519 public key. Go to **https://gmgn.ai/ai**, paste it into the API key creation form, then send me the API Key value shown on the page."* + +2. Wait for the user's API key, then configure: + ```bash + mkdir -p ~/.config/gmgn + echo 'GMGN_API_KEY=' > ~/.config/gmgn/.env + chmod 600 ~/.config/gmgn/.env + ``` ## Parameters — `token info` / `token security` / `token pool` diff --git a/skills/gmgn-track/SKILL.md b/skills/gmgn-track/SKILL.md index 16a76b4..d6afca9 100644 --- a/skills/gmgn-track/SKILL.md +++ b/skills/gmgn-track/SKILL.md @@ -59,10 +59,29 @@ Use the `gmgn-cli` tool to query on-chain tracking data based on the user's requ ## Prerequisites -- `.env` file with `GMGN_API_KEY` set -- `GMGN_PRIVATE_KEY` required for `track follow-wallet` (signature auth); not needed for `track kol` / `track smartmoney` -- Run from the directory where your `.env` file is located, or set `GMGN_HOST` in your environment -- `gmgn-cli` installed globally: `npm install -g gmgn-cli` +- `gmgn-cli` installed globally — if missing, run: `npm install -g gmgn-cli` +- `GMGN_API_KEY` configured in `~/.config/gmgn/.env` +- `GMGN_PRIVATE_KEY` required only for `track follow-wallet`; not needed for `track kol` / `track smartmoney` + +**First-time setup** (if `GMGN_API_KEY` is not configured): + +1. Generate key pair and show the public key to the user: + ```bash + openssl genpkey -algorithm ed25519 -out /tmp/gmgn_private.pem 2>/dev/null && \ + openssl pkey -in /tmp/gmgn_private.pem -pubout 2>/dev/null + ``` + Tell the user: *"This is your Ed25519 public key. Go to **https://gmgn.ai/ai**, paste it into the API key creation form, then send me the API Key value shown on the page."* + +2. Wait for the user's API key, then configure: + ```bash + mkdir -p ~/.config/gmgn + echo 'GMGN_API_KEY=' > ~/.config/gmgn/.env + chmod 600 ~/.config/gmgn/.env + ``` + If the user also needs `track follow-wallet`, append the private key: + ```bash + echo 'GMGN_PRIVATE_KEY=""' >> ~/.config/gmgn/.env + ``` ## Usage Examples