feat: add zerion-uniswap-lp and zerion-uniswap-x402 partner skills#65
Conversation
Two partner skills pairing Uniswap AI workflows with Zerion CLI: - zerion-uniswap-lp: portfolio + PnL context before sizing a Uniswap v4 LP position via /liquidity-planner - zerion-uniswap-x402: cross-chain balance check + bridge before paying an HTTP 402 challenge via /pay-with-any-token Bridge commands use canonical signature `zerion bridge <from-chain> <from-token> <amount> <to-chain> <to-token>`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ocandocrypto-uniswap
left a comment
There was a problem hiding this comment.
wallet setup, prereqs, optional bridge framing, scope clarification, and eval link all landed great. one thing to revert: the bridge signature in zerion-uniswap-x402 went back to the 3-arg form, while zerion-uniswap-lp in the same PR uses the canonical 5-arg form. besides the inconsistency, the CLI only accepts the 5-arg one,zerion bridge USDC base 50 ... errors with missing_args.
what this means for the skill as-is:
zerion-uniswap-lp: ready to use as-is, bridge signature is correctzerion-uniswap-x402with Path B (skip bridge): works fine,
/pay-with-any-token handles Phase 4A/4B funding itselfzerion-uniswap-x402with Path A (pre-bridge): breaks at step 2 with missing_args. the CLI error does show the canonical signature, so a human can recover, but an agent following the SKILL literally will hit the error and stop
since Path A is listed first in Step 2, most agentic runs will hit the error in practice. worth fixing before merge even though Path B works.
two diffs to apply:
Key Commands line:
zerion bridge <from-chain> <from-token> <amount> <to-chain><to-token> --to address <address> --cheapest
Step 2 Path A example:
zerion bridge ethereum USDC 50 base USDC --to-address $WALLET --cheapest
with that fix in, the skill is good to go. nit: trailing newline at EOF still missing
Summary
Two partner skills pairing Uniswap AI workflows with Zerion CLI for portfolio-aware capital deployment:
zerion-uniswap-lp— fetch positions + PnL + portfolio value via Zerion CLI, then size a Uniswap v4 LP position with/liquidity-planner. Avoids over-concentration and IL compounding on losing assets.zerion-uniswap-x402— check balances by chain, bridge if needed, then pay HTTP 402 (x402) challenges via Uniswap/pay-with-any-token.Command audit
All
zerioninvocations verified againstzerion --helpand existing core skills:zerion positions <address>zerion pnl <address>zerion portfolio <address>zerion history <address>zerion bridge <from-chain> <from-token> <amount> <to-chain> <to-token>zerion init -y --browser(via npx)Bridge signature was initially the 3-arg form (
<token> <chain> <amount>); corrected to the canonical 5-arg form used byzerion-tradingand the corezerionskill, withethereum → baseworked examples and--cheapestflag.Test plan
zerion init -y --browserandnpx skills add Uniswap/uniswap-aiinstall side-by-side cleanlyzerion positions→zerion pnl→zerion portfolio→zerion bridge ethereum ETH 1 base ETH --cheapest→/liquidity-plannerzerion positions→zerion bridge ethereum USDC 50 base USDC --cheapest→zerion portfolio→/pay-with-any-token🤖 Generated with Claude Code