You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(skills): consolidate 30 skills into single zerion skill + fix init.js
Onboarding pain: 30 separate skills polluted agentskills.io picker and
scattered install counts. Now one `zerion` skill at the top, with
progressive disclosure via nested `capabilities/*.md` (core: analyze,
trading, sign, wallet, agent-management, swap-0x) and `partners/*.md`
(Bankr, Li.Fi, Moonpay, Vaults.fyi, Trails, etc.). Same total content,
loaded on demand — root SKILL.md stays ~150 lines.
init.js fixes:
- ensureGlobalInstall now short-circuits if `zerion --version` already
resolves globally, even when npx temp dir hosts the binary (was
re-installing on every run when CLI was already present).
- installSkills auto-detects the user's coding agent (env fingerprints
+ ~/.<agent> dirs for claude-code, cursor, codex, gemini) and passes
`-a <agent>` to `npx skills add` so the 55-agent multi-select picker
doesn't open. ~70% of users are on Claude Code — this skips the
manual checkbox dance evgen flagged.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+39-33Lines changed: 39 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,37 +25,43 @@ npm install -g zerion-cli
25
25
26
26
Requires Node.js 20 or later.
27
27
28
-
## Agent skills
29
-
30
-
All skills live under [`./skills/`](./skills/) and follow the [agentskills.io](https://agentskills.io) open standard — a single `skills/` tree powers every supported host.
31
-
32
-
### Core skills (Zerion)
33
-
34
-
| Skill | What it does |
35
-
|-------|--------------|
36
-
|[`zerion`](./skills/zerion/SKILL.md)| Umbrella: install, authentication, routing to specific skills, chains reference |
|[`zerion-agent-management`](./skills/zerion-agent-management/SKILL.md)| Agent tokens + policies (the autonomous-trading primitives) |
42
-
43
-
### Partner skills
44
-
45
-
Skills contributed by ecosystem partners that combine their product with the Zerion CLI. See [`zerion-partner-skill-creator`](./skills/zerion-partner-skill-creator/SKILL.md) to contribute one.
|[`zerion-moonpay-onramp`](./skills/zerion-moonpay-onramp/SKILL.md)| Buy crypto with card or bank transfer via MoonPay, then trade with Zerion |[MoonPay](https://moonpay.com)|
51
-
|[`zerion-moonpay-iron`](./skills/zerion-moonpay-iron/SKILL.md)| USD bank-wire to Iron virtual account (IBAN/ACH) → USDC → DCA via Zerion |[MoonPay](https://moonpay.com)|
52
-
|[`zerion-moonpay-predict`](./skills/zerion-moonpay-predict/SKILL.md)| Trade prediction markets (Polymarket, Kalshi) via MoonPay CLI |[MoonPay](https://moonpay.com)|
53
-
|[`zerion-sendai-ideas`](./skills/zerion-sendai-ideas/SKILL.md)| Crypto idea discovery, validation, competitive landscape, DeFi TVL research |[SendAI](https://github.com/sendaifun/solana-new) (MIT) |
|[`zerion-trails-deposit`](./skills/zerion-trails-deposit/SKILL.md)| Bridge + DeFi vault deposit on Polygon in one intent (Aave, Morpho, ERC-4626) |[Trails](https://docs.trails.build)|
58
-
|[`zerion-0x`](./skills/zerion-0x/SKILL.md)| Token swaps via 0x API v2 — AllowanceHolder, Permit2, and Gasless flows across 20+ EVM chains |[0x](https://0x.org)|
28
+
## Agent skill
29
+
30
+
One skill, [`zerion`](./skills/zerion/SKILL.md), under [`./skills/zerion/`](./skills/zerion/) — follows the [agentskills.io](https://agentskills.io) open standard. All capabilities and partner integrations live as nested files that load on demand (progressive disclosure), so a single install + single picker entry exposes everything below.
|[`agent-management.md`](./skills/zerion/capabilities/agent-management.md)| Agent tokens + policies (the autonomous-trading primitives) |
41
+
|[`swap-0x.md`](./skills/zerion/capabilities/swap-0x.md)| Token swaps via 0x API v2 — AllowanceHolder, Permit2, and Gasless flows across 20+ EVM chains |
Ecosystem partners that combine their product with the Zerion CLI. See [`partner-skill-creator.md`](./skills/zerion/partner-skill-creator.md) to contribute one. Loaded only when the user names the partner.
|[`moonpay-onramp.md`](./skills/zerion/partners/moonpay-onramp.md)| Buy crypto with card or bank transfer via MoonPay, then trade with Zerion |[MoonPay](https://moonpay.com)|
53
+
|[`moonpay-iron.md`](./skills/zerion/partners/moonpay-iron.md)| USD bank-wire to Iron virtual account (IBAN/ACH) → USDC → DCA via Zerion |[MoonPay](https://moonpay.com)|
54
+
|[`moonpay-predict.md`](./skills/zerion/partners/moonpay-predict.md)| Trade prediction markets (Polymarket, Kalshi) via MoonPay CLI |[MoonPay](https://moonpay.com)|
55
+
|[`sendai-ideas.md`](./skills/zerion/partners/sendai-ideas.md)| Crypto idea discovery, validation, competitive landscape, DeFi TVL research |[SendAI](https://github.com/sendaifun/solana-new) (MIT) |
|[`trails-deposit.md`](./skills/zerion/partners/trails-deposit.md)| Bridge + DeFi vault deposit on Polygon in one intent (Aave, Morpho, ERC-4626) |[Trails](https://docs.trails.build)|
|[`consolidate.md`](./skills/zerion/partners/consolidate.md)| Sweep all tokens on a chain into one target | Zerion |
59
65
60
66
### Install via zerion CLI (recommended)
61
67
@@ -126,13 +132,13 @@ After install, ask the agent in natural language.
126
132
127
133
> Sign the EIP-712 message in `typed.json` using my `bot-1` wallet.
128
134
129
-
The agent reaches for the right skill (e.g. `zerion-analyze` for "what's in this wallet", `zerion-trading` for swap/bridge/send) and invokes the underlying `zerion` CLI commands. Skills load only when relevant — agentskills.io's progressive disclosure keeps your context window clean. Multiple skills compose at runtime: a "create wallet, set up agent token, then swap" flow loads `zerion-wallet` → `zerion-agent-management` → `zerion-trading` in sequence.
135
+
The agent reaches for the `zerion` skill, which routes by task to the right nested file under `capabilities/` or `partners/`. Progressive disclosure means only the matching capability doc loads — context stays clean. A "create wallet, set up agent token, then swap" flow Reads `capabilities/wallet.md` → `capabilities/agent-management.md` → `capabilities/trading.md` in sequence.
130
136
131
137
## Manual setup, agent execution
132
138
133
139
Zerion CLI splits into two surfaces, by design.
134
140
135
-
-**Wallet management and agent token setup are manual.**`wallet create`, `import`, `backup`, and `delete` all prompt for a passphrase. `wallet sync` emits a QR code you scan with the Zerion app. `agent create-token` mints a scoped trading credential bound to a specific wallet, and `agent create-policy` attaches the rules it has to obey — allowed chains, expiry, transfer/approval gates, contract allowlists. The sibling admin commands (`agent list-tokens`, `use-token`, `revoke-token`, `list-policies`, `show-policy`, `delete-policy`) are also gestures you make yourself. No key material moves and no spending credential widens without you in the loop. For CI and headless servers, `agent create-token` accepts `--passphrase-file <path>` (file must be mode `0600`) so token issuance can be scripted without an interactive TTY — see the `zerion-agent-management` skill.
141
+
-**Wallet management and agent token setup are manual.**`wallet create`, `import`, `backup`, and `delete` all prompt for a passphrase. `wallet sync` emits a QR code you scan with the Zerion app. `agent create-token` mints a scoped trading credential bound to a specific wallet, and `agent create-policy` attaches the rules it has to obey — allowed chains, expiry, transfer/approval gates, contract allowlists. The sibling admin commands (`agent list-tokens`, `use-token`, `revoke-token`, `list-policies`, `show-policy`, `delete-policy`) are also gestures you make yourself. No key material moves and no spending credential widens without you in the loop. For CI and headless servers, `agent create-token` accepts `--passphrase-file <path>` (file must be mode `0600`) so token issuance can be scripted without an interactive TTY — see [`capabilities/agent-management.md`](./skills/zerion/capabilities/agent-management.md).
136
142
-**Analysis, signing, trading, and discovery are for agents.**`analyze`, `portfolio`, `positions`, `history`, `pnl`, `sign-message`, `sign-typed-data`, `swap`, `bridge`, `send`, `swap tokens`, `search`, `chains`, `wallet list`, `wallet fund`, and `watch list` emit JSON to stdout, structured errors to stderr, and skip confirmation dialogs. Once an agent token is configured, signing and trading fire immediately — the token authorizes operations on behalf of the wallet without a passphrase prompt.
137
143
138
144
Setup gestures (`init`, `setup skills`, `config set/unset/list`, `watch` add/remove) are one-time configuration steps you run yourself before automation takes over.
0 commit comments