Skip to content

feat: add zerion-uniswap-lp and zerion-uniswap-x402 partner skills#65

Merged
graysonhyc merged 3 commits into
mainfrom
skill/zerion-uniswap
May 13, 2026
Merged

feat: add zerion-uniswap-lp and zerion-uniswap-x402 partner skills#65
graysonhyc merged 3 commits into
mainfrom
skill/zerion-uniswap

Conversation

@graysonhyc
Copy link
Copy Markdown
Collaborator

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 zerion invocations verified against zerion --help and existing core skills:

Command Status
zerion positions <address> ✅ canonical
zerion pnl <address> ✅ canonical
zerion portfolio <address> ✅ canonical
zerion history <address> ✅ canonical
zerion bridge <from-chain> <from-token> <amount> <to-chain> <to-token> ✅ fixed before commit
zerion init -y --browser (via npx) ✅ matches CLI help

Bridge signature was initially the 3-arg form (<token> <chain> <amount>); corrected to the canonical 5-arg form used by zerion-trading and the core zerion skill, with ethereum → base worked examples and --cheapest flag.

Test plan

  • Verify zerion init -y --browser and npx skills add Uniswap/uniswap-ai install side-by-side cleanly
  • Run end-to-end LP workflow: zerion positionszerion pnlzerion portfoliozerion bridge ethereum ETH 1 base ETH --cheapest/liquidity-planner
  • Run end-to-end x402 workflow: zerion positionszerion bridge ethereum USDC 50 base USDC --cheapestzerion portfolio/pay-with-any-token
  • Confirm README partner-skills section renders both entries

🤖 Generated with Claude Code

graysonhyc and others added 2 commits May 11, 2026 21:59
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>
@graysonhyc graysonhyc marked this pull request as ready for review May 12, 2026 09:02
@graysonhyc graysonhyc merged commit 175cc6a into main May 13, 2026
1 check passed
Copy link
Copy Markdown

@ocandocrypto-uniswap ocandocrypto-uniswap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 correct
  • zerion-uniswap-x402 with Path B (skip bridge): works fine,
    /pay-with-any-token handles Phase 4A/4B funding itself
  • zerion-uniswap-x402 with 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants